{ "id": 0, "name": "@supabase/storage-js", "kind": 0, "flags": {}, "originalName": "", "children": [ { "id": 270, "name": "\"SupabaseStorageClient\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/storage-js/storage-js/src/SupabaseStorageClient.ts", "children": [ { "id": 271, "name": "SupabaseStorageClient", "kind": 128, "kindString": "Class", "flags": { "isExported": true }, "children": [ { "id": 272, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": { "isExported": true }, "signatures": [ { "id": 273, "name": "new SupabaseStorageClient", "kind": 16384, "kindString": "Constructor signature", "flags": { "isExported": true }, "parameters": [ { "id": 274, "name": "url", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 275, "name": "headers", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 276, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "indexSignature": [ { "id": 277, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": { "isExported": true }, "parameters": [ { "id": 278, "name": "key", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "string" } } ], "sources": [ { "fileName": "SupabaseStorageClient.ts", "line": 4, "character": 35 } ] } }, "defaultValue": "{}" } ], "type": { "type": "reference", "id": 271, "name": "SupabaseStorageClient" }, "overwrites": { "type": "reference", "id": 96, "name": "StorageBucketApi.__constructor" } } ], "sources": [ { "fileName": "SupabaseStorageClient.ts", "line": 3, "character": 61 } ], "overwrites": { "type": "reference", "id": 96, "name": "StorageBucketApi.__constructor" } }, { "id": 283, "name": "headers", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 6, "character": 19 } ], "type": { "type": "reflection", "declaration": { "id": 284, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "indexSignature": [ { "id": 285, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": { "isExported": true }, "parameters": [ { "id": 286, "name": "key", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "string" } } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 6, "character": 20 } ] } }, "inheritedFrom": { "type": "reference", "id": 92, "name": "StorageBucketApi.headers" } }, { "id": 282, "name": "url", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 5, "character": 15 } ], "type": { "type": "intrinsic", "name": "string" }, "inheritedFrom": { "type": "reference", "id": 91, "name": "StorageBucketApi.url" } }, { "id": 298, "name": "createBucket", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 299, "name": "createBucket", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Creates a new Storage bucket", "returns": "newly created bucket id\n" }, "parameters": [ { "id": 300, "name": "id", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "A unique identifier for the bucket you are creating." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 301, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 302, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 303, "name": "public", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 47, "character": 21 } ], "type": { "type": "intrinsic", "name": "boolean" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 303 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 47, "character": 12 } ] } }, "defaultValue": "{ public: false }" } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 304, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 305, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 48, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "string" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 306, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 48, "character": 41 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 305, 306 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 48, "character": 13 } ] } } ], "name": "Promise" }, "inheritedFrom": { "type": "reference", "id": 114, "name": "StorageBucketApi.createBucket" } } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 45, "character": 20 } ], "inheritedFrom": { "type": "reference", "id": 114, "name": "StorageBucketApi.createBucket" } }, { "id": 326, "name": "deleteBucket", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 327, "name": "deleteBucket", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.\nYou must first `empty()` the bucket." }, "parameters": [ { "id": 328, "name": "id", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The unique identifier of the bucket you would like to delete.\n" }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 329, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 330, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 106, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 331, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 332, "name": "message", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 106, "character": 30 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 332 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 106, "character": 20 } ] } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 333, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 106, "character": 54 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 330, 333 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 106, "character": 13 } ] } } ], "name": "Promise" }, "inheritedFrom": { "type": "reference", "id": 142, "name": "StorageBucketApi.deleteBucket" } } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 104, "character": 20 } ], "inheritedFrom": { "type": "reference", "id": 142, "name": "StorageBucketApi.deleteBucket" } }, { "id": 318, "name": "emptyBucket", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 319, "name": "emptyBucket", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Removes all objects inside a single bucket." }, "parameters": [ { "id": 320, "name": "id", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The unique identifier of the bucket you would like to empty.\n" }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 321, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 322, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 89, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 323, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 324, "name": "message", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 89, "character": 30 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 324 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 89, "character": 20 } ] } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 325, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 89, "character": 54 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 322, 325 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 89, "character": 13 } ] } } ], "name": "Promise" }, "inheritedFrom": { "type": "reference", "id": 134, "name": "StorageBucketApi.emptyBucket" } } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 87, "character": 19 } ], "inheritedFrom": { "type": "reference", "id": 134, "name": "StorageBucketApi.emptyBucket" } }, { "id": 279, "name": "from", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 280, "name": "from", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Perform file operation in a bucket." }, "parameters": [ { "id": 281, "name": "id", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The bucket id to operate on.\n" }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "id": 154, "name": "StorageFileApi" } } ], "sources": [ { "fileName": "SupabaseStorageClient.ts", "line": 13, "character": 6 } ] }, { "id": 292, "name": "getBucket", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 293, "name": "getBucket", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Retrieves the details of an existing Storage bucket." }, "parameters": [ { "id": 294, "name": "id", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The unique identifier of the bucket you would like to retrieve.\n" }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 295, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 296, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 30, "character": 45 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "Bucket" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 297, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 30, "character": 67 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 296, 297 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 30, "character": 39 } ] } } ], "name": "Promise" }, "inheritedFrom": { "type": "reference", "id": 108, "name": "StorageBucketApi.getBucket" } } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 30, "character": 17 } ], "inheritedFrom": { "type": "reference", "id": 108, "name": "StorageBucketApi.getBucket" } }, { "id": 287, "name": "listBuckets", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 288, "name": "listBuckets", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Retrieves the details of all Storage buckets within an existing product." }, "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 289, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 290, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 16, "character": 37 } ], "type": { "type": "union", "types": [ { "type": "array", "elementType": { "type": "reference", "id": 58, "name": "Bucket" } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 291, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 16, "character": 61 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 290, 291 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 16, "character": 31 } ] } } ], "name": "Promise" }, "inheritedFrom": { "type": "reference", "id": 103, "name": "StorageBucketApi.listBuckets" } } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 16, "character": 19 } ], "inheritedFrom": { "type": "reference", "id": 103, "name": "StorageBucketApi.listBuckets" } }, { "id": 307, "name": "updateBucket", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 308, "name": "updateBucket", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Updates a new Storage bucket" }, "parameters": [ { "id": 309, "name": "id", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "A unique identifier for the bucket you are creating.\n" }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 310, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 311, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 312, "name": "public", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 68, "character": 21 } ], "type": { "type": "intrinsic", "name": "boolean" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 312 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 68, "character": 12 } ] } } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 313, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 314, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 69, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 315, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 316, "name": "message", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 69, "character": 30 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 316 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 69, "character": 20 } ] } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 317, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 69, "character": 54 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 314, 317 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 69, "character": 13 } ] } } ], "name": "Promise" }, "inheritedFrom": { "type": "reference", "id": 123, "name": "StorageBucketApi.updateBucket" } } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 66, "character": 20 } ], "inheritedFrom": { "type": "reference", "id": 123, "name": "StorageBucketApi.updateBucket" } } ], "groups": [ { "title": "Constructors", "kind": 512, "children": [ 272 ] }, { "title": "Properties", "kind": 1024, "children": [ 283, 282 ] }, { "title": "Methods", "kind": 2048, "children": [ 298, 326, 318, 279, 292, 287, 307 ] } ], "sources": [ { "fileName": "SupabaseStorageClient.ts", "line": 3, "character": 34 } ], "extendedTypes": [ { "type": "reference", "id": 90, "name": "StorageBucketApi" } ] } ], "groups": [ { "title": "Classes", "kind": 128, "children": [ 271 ] } ], "sources": [ { "fileName": "SupabaseStorageClient.ts", "line": 1, "character": 0 } ] }, { "id": 334, "name": "\"index\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/storage-js/storage-js/src/index.ts", "children": [ { "id": 335, "name": "Bucket", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 58 }, { "id": 336, "name": "FileObject", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 65 }, { "id": 338, "name": "FileOptions", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 79 }, { "id": 340, "name": "Metadata", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 87 }, { "id": 339, "name": "SearchOptions", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 83 }, { "id": 337, "name": "SortBy", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 76 } ], "groups": [ { "title": "References", "kind": 16777216, "children": [ 335, 336, 338, 340, 339, 337 ] } ], "sources": [ { "fileName": "index.ts", "line": 1, "character": 0 } ] }, { "id": 89, "name": "\"lib/StorageBucketApi\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageBucketApi.ts", "children": [ { "id": 90, "name": "StorageBucketApi", "kind": 128, "kindString": "Class", "flags": { "isExported": true }, "children": [ { "id": 96, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": { "isExported": true }, "signatures": [ { "id": 97, "name": "new StorageBucketApi", "kind": 16384, "kindString": "Constructor signature", "flags": { "isExported": true }, "parameters": [ { "id": 98, "name": "url", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 99, "name": "headers", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 100, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "indexSignature": [ { "id": 101, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": { "isExported": true }, "parameters": [ { "id": 102, "name": "key", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "string" } } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 8, "character": 35 } ] } }, "defaultValue": "{}" } ], "type": { "type": "reference", "id": 90, "name": "StorageBucketApi" } } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 6, "character": 46 } ] }, { "id": 92, "name": "headers", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 6, "character": 19 } ], "type": { "type": "reflection", "declaration": { "id": 93, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "indexSignature": [ { "id": 94, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": { "isExported": true }, "parameters": [ { "id": 95, "name": "key", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "string" } } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 6, "character": 20 } ] } } }, { "id": 91, "name": "url", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 5, "character": 15 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 114, "name": "createBucket", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 115, "name": "createBucket", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Creates a new Storage bucket", "returns": "newly created bucket id\n" }, "parameters": [ { "id": 116, "name": "id", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "A unique identifier for the bucket you are creating." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 117, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 118, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 119, "name": "public", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 47, "character": 21 } ], "type": { "type": "intrinsic", "name": "boolean" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 119 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 47, "character": 12 } ] } }, "defaultValue": "{ public: false }" } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 120, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 121, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 48, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "string" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 122, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 48, "character": 41 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 121, 122 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 48, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 45, "character": 20 } ] }, { "id": 142, "name": "deleteBucket", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 143, "name": "deleteBucket", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.\nYou must first `empty()` the bucket." }, "parameters": [ { "id": 144, "name": "id", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The unique identifier of the bucket you would like to delete.\n" }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 145, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 146, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 106, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 147, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 148, "name": "message", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 106, "character": 30 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 148 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 106, "character": 20 } ] } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 149, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 106, "character": 54 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 146, 149 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 106, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 104, "character": 20 } ] }, { "id": 134, "name": "emptyBucket", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 135, "name": "emptyBucket", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Removes all objects inside a single bucket." }, "parameters": [ { "id": 136, "name": "id", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The unique identifier of the bucket you would like to empty.\n" }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 137, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 138, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 89, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 139, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 140, "name": "message", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 89, "character": 30 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 140 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 89, "character": 20 } ] } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 141, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 89, "character": 54 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 138, 141 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 89, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 87, "character": 19 } ] }, { "id": 108, "name": "getBucket", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 109, "name": "getBucket", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Retrieves the details of an existing Storage bucket." }, "parameters": [ { "id": 110, "name": "id", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The unique identifier of the bucket you would like to retrieve.\n" }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 111, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 112, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 30, "character": 45 } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 58, "name": "Bucket" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 113, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 30, "character": 67 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 112, 113 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 30, "character": 39 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 30, "character": 17 } ] }, { "id": 103, "name": "listBuckets", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 104, "name": "listBuckets", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Retrieves the details of all Storage buckets within an existing product." }, "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 105, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 106, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 16, "character": 37 } ], "type": { "type": "union", "types": [ { "type": "array", "elementType": { "type": "reference", "id": 58, "name": "Bucket" } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 107, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 16, "character": 61 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 106, 107 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 16, "character": 31 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 16, "character": 19 } ] }, { "id": 123, "name": "updateBucket", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 124, "name": "updateBucket", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Updates a new Storage bucket" }, "parameters": [ { "id": 125, "name": "id", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "A unique identifier for the bucket you are creating.\n" }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 126, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 127, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 128, "name": "public", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 68, "character": 21 } ], "type": { "type": "intrinsic", "name": "boolean" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 128 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 68, "character": 12 } ] } } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 129, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 130, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 69, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 131, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 132, "name": "message", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 69, "character": 30 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 132 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 69, "character": 20 } ] } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 133, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 69, "character": 54 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 130, 133 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 69, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 66, "character": 20 } ] } ], "groups": [ { "title": "Constructors", "kind": 512, "children": [ 96 ] }, { "title": "Properties", "kind": 1024, "children": [ 92, 91 ] }, { "title": "Methods", "kind": 2048, "children": [ 114, 142, 134, 108, 103, 123 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 4, "character": 29 } ], "extendedBy": [ { "type": "reference", "id": 271, "name": "SupabaseStorageClient" } ] } ], "groups": [ { "title": "Classes", "kind": 128, "children": [ 90 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", "line": 1, "character": 0 } ] }, { "id": 153, "name": "\"lib/StorageFileApi\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageFileApi.ts", "children": [ { "id": 154, "name": "StorageFileApi", "kind": 128, "kindString": "Class", "flags": { "isExported": true }, "children": [ { "id": 161, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": { "isExported": true }, "signatures": [ { "id": 162, "name": "new StorageFileApi", "kind": 16384, "kindString": "Constructor signature", "flags": { "isExported": true }, "parameters": [ { "id": 163, "name": "url", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 164, "name": "headers", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "reflection", "declaration": { "id": 165, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "indexSignature": [ { "id": 166, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": { "isExported": true }, "parameters": [ { "id": 167, "name": "key", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "string" } } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 26, "character": 35 } ] } }, "defaultValue": "{}" }, { "id": 168, "name": "bucketId", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true, "isOptional": true }, "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "type": { "type": "reference", "id": 154, "name": "StorageFileApi" } } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 24, "character": 29 } ] }, { "id": 160, "name": "bucketId", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 24, "character": 20 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 156, "name": "headers", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 23, "character": 19 } ], "type": { "type": "reflection", "declaration": { "id": 157, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "indexSignature": [ { "id": 158, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": { "isExported": true }, "parameters": [ { "id": 159, "name": "key", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "string" } } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 23, "character": 20 } ] } } }, { "id": 155, "name": "url", "kind": 1024, "kindString": "Property", "flags": { "isProtected": true, "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 22, "character": 15 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 248, "name": "_getFinalPath", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 249, "name": "_getFinalPath", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 250, "name": "path", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "string" } } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 321, "character": 15 } ] }, { "id": 209, "name": "createSignedUrl", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 210, "name": "createSignedUrl", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Create signed url to download file without requiring permissions. This URL can be valid for a set number of seconds." }, "parameters": [ { "id": 211, "name": "path", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The file path to be downloaded, including the current file name. For example `folder/image.png`." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 212, "name": "expiresIn", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The number of seconds until the signed URL expires. For example, `60` for a URL which is valid for one minute.\n" }, "type": { "type": "intrinsic", "name": "number" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 213, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 214, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 188, "character": 8 } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 215, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 216, "name": "signedURL", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 188, "character": 21 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 216 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 188, "character": 9 } ] } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 217, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 189, "character": 9 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 218, "name": "signedURL", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 190, "character": 13 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "string" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 214, 217, 218 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 187, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 184, "character": 23 } ] }, { "id": 219, "name": "download", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 220, "name": "download", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Downloads a file." }, "parameters": [ { "id": 221, "name": "path", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The file path to be downloaded, including the path and file name. For example `folder/image.png`.\n" }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 222, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 223, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 212, "character": 46 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Blob" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 224, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 212, "character": 66 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 223, 224 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 212, "character": 40 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 212, "character": 16 } ] }, { "id": 225, "name": "getPublicUrl", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 226, "name": "getPublicUrl", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Retrieve URLs for assets in public buckets" }, "parameters": [ { "id": 227, "name": "path", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The file path to be downloaded, including the path and file name. For example `folder/image.png`.\n" }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reflection", "declaration": { "id": 228, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 229, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 234, "character": 8 } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 230, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 231, "name": "publicURL", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 234, "character": 21 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 231 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 234, "character": 9 } ] } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 232, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 235, "character": 9 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 233, "name": "publicURL", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 236, "character": 13 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "string" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 229, 232, 233 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 233, "character": 4 } ] } } } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 231, "character": 14 } ] }, { "id": 240, "name": "list", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 241, "name": "list", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Lists all the files within a bucket." }, "parameters": [ { "id": 242, "name": "path", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true, "isOptional": true }, "comment": { "text": "The folder path." }, "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 243, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true, "isOptional": true }, "comment": { "text": "Search options, including `limit`, `offset`, and `sortBy`." }, "type": { "type": "reference", "id": 83, "name": "SearchOptions" } }, { "id": 244, "name": "parameters", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true, "isOptional": true }, "comment": { "text": "Fetch parameters, currently only supports `signal`, which is an AbortController's signal\n" }, "type": { "type": "reference", "id": 8, "name": "FetchParameters" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 245, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 246, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 306, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "array", "elementType": { "type": "reference", "id": 65, "name": "FileObject" } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 247, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 306, "character": 47 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 246, 247 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 306, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 302, "character": 12 } ] }, { "id": 200, "name": "move", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 201, "name": "move", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Moves an existing file, optionally renaming it at the same time." }, "parameters": [ { "id": 202, "name": "fromPath", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The original file path, including the current file name. For example `folder/image.png`." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 203, "name": "toPath", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The new file path, including the new file name. For example `folder/image-copy.png`.\n" }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 204, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 205, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 165, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 206, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 207, "name": "message", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 165, "character": 30 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 207 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 165, "character": 20 } ] } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 208, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 165, "character": 54 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 205, 208 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 165, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 162, "character": 12 } ] }, { "id": 234, "name": "remove", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 235, "name": "remove", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Deletes files within the same bucket" }, "parameters": [ { "id": 236, "name": "paths", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "An array of files to be deletes, including the path and file name. For example [`folder/image.png`].\n" }, "type": { "type": "array", "elementType": { "type": "intrinsic", "name": "string" } } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 237, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 238, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 253, "character": 47 } ], "type": { "type": "union", "types": [ { "type": "array", "elementType": { "type": "reference", "id": 65, "name": "FileObject" } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 239, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 253, "character": 75 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 238, 239 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 253, "character": 41 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 253, "character": 14 } ] }, { "id": 190, "name": "update", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 191, "name": "update", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Replaces an existing file at the specified path with a new one." }, "parameters": [ { "id": 192, "name": "path", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 193, "name": "fileBody", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The body of the file to be stored in the bucket." }, "type": { "type": "union", "types": [ { "type": "reference", "name": "ArrayBuffer" }, { "type": "reference", "name": "ArrayBufferView" }, { "type": "reference", "name": "Blob" }, { "type": "reference", "name": "Buffer" }, { "type": "reference", "name": "File" }, { "type": "reference", "name": "FormData" }, { "type": "reference", "name": "ReadableStream" }, { "type": "reference", "typeArguments": [ { "type": "reference", "name": "Uint8Array" } ], "name": "ReadableStream" }, { "type": "reference", "name": "URLSearchParams" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 194, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true, "isOptional": true }, "comment": { "text": "HTTP headers.\n`cacheControl`: string, the `Cache-Control: max-age=` seconds value.\n`contentType`: string, the `Content-Type` header value. Should be specified if using a `fileBody` that is neither `Blob` nor `File` nor `FormData`, otherwise will default to `text/plain;charset=UTF-8`.\n`upsert`: boolean, whether to perform an upsert.\n" }, "type": { "type": "reference", "id": 79, "name": "FileOptions" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 195, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 196, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 152, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 197, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 198, "name": "Key", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 152, "character": 26 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 198 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 152, "character": 20 } ] } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 199, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 152, "character": 50 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 196, 199 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 152, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 138, "character": 14 } ] }, { "id": 180, "name": "upload", "kind": 2048, "kindString": "Method", "flags": { "isExported": true }, "signatures": [ { "id": 181, "name": "upload", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Uploads a file to an existing bucket." }, "parameters": [ { "id": 182, "name": "path", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 183, "name": "fileBody", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The body of the file to be stored in the bucket." }, "type": { "type": "union", "types": [ { "type": "reference", "name": "ArrayBuffer" }, { "type": "reference", "name": "ArrayBufferView" }, { "type": "reference", "name": "Blob" }, { "type": "reference", "name": "Buffer" }, { "type": "reference", "name": "File" }, { "type": "reference", "name": "FormData" }, { "type": "reference", "name": "ReadableStream" }, { "type": "reference", "typeArguments": [ { "type": "reference", "name": "Uint8Array" } ], "name": "ReadableStream" }, { "type": "reference", "name": "URLSearchParams" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 184, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true, "isOptional": true }, "comment": { "text": "HTTP headers.\n`cacheControl`: string, the `Cache-Control: max-age=` seconds value.\n`contentType`: string, the `Content-Type` header value. Should be specified if using a `fileBody` that is neither `Blob` nor `File` nor `FormData`, otherwise will default to `text/plain;charset=UTF-8`.\n`upsert`: boolean, whether to perform an upsert.\n" }, "type": { "type": "reference", "id": 79, "name": "FileOptions" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 185, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 186, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 124, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 187, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 188, "name": "Key", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 124, "character": 26 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 188 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 124, "character": 20 } ] } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 189, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 124, "character": 50 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 186, 189 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 124, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 110, "character": 14 } ] }, { "id": 169, "name": "uploadOrUpdate", "kind": 2048, "kindString": "Method", "flags": { "isPrivate": true, "isExported": true }, "signatures": [ { "id": 170, "name": "uploadOrUpdate", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { "shortText": "Uploads a file to an existing bucket or replaces an existing file at the specified path with a new one." }, "parameters": [ { "id": 171, "name": "method", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "HTTP method." }, "type": { "type": "union", "types": [ { "type": "stringLiteral", "value": "POST" }, { "type": "stringLiteral", "value": "PUT" } ] } }, { "id": 172, "name": "path", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload." }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 173, "name": "fileBody", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { "text": "The body of the file to be stored in the bucket." }, "type": { "type": "union", "types": [ { "type": "reference", "name": "ArrayBuffer" }, { "type": "reference", "name": "ArrayBufferView" }, { "type": "reference", "name": "Blob" }, { "type": "reference", "name": "Buffer" }, { "type": "reference", "name": "File" }, { "type": "reference", "name": "FormData" }, { "type": "reference", "name": "ReadableStream" }, { "type": "reference", "typeArguments": [ { "type": "reference", "name": "Uint8Array" } ], "name": "ReadableStream" }, { "type": "reference", "name": "URLSearchParams" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 174, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true, "isOptional": true }, "comment": { "text": "HTTP headers.\n`cacheControl`: string, the `Cache-Control: max-age=` seconds value.\n`contentType`: string, the `Content-Type` header value. Should be specified if using a `fileBody` that is neither `Blob` nor `File` nor `FormData`, otherwise will default to `text/plain;charset=UTF-8`.\n`upsert`: boolean, whether to perform an upsert.\n" }, "type": { "type": "reference", "id": 79, "name": "FileOptions" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { "id": 175, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 176, "name": "data", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 58, "character": 19 } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 177, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "children": [ { "id": 178, "name": "Key", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 58, "character": 26 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 178 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 58, "character": 20 } ] } }, { "type": "intrinsic", "name": "null" } ] } }, { "id": 179, "name": "error", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 58, "character": 50 } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "Error" }, { "type": "intrinsic", "name": "null" } ] } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 176, 179 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 58, "character": 13 } ] } } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 43, "character": 30 } ] } ], "groups": [ { "title": "Constructors", "kind": 512, "children": [ 161 ] }, { "title": "Properties", "kind": 1024, "children": [ 160, 156, 155 ] }, { "title": "Methods", "kind": 2048, "children": [ 248, 209, 219, 225, 240, 200, 234, 190, 180, 169 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 21, "character": 27 } ] }, { "id": 257, "name": "DEFAULT_FILE_OPTIONS", "kind": 2097152, "kindString": "Object literal", "flags": { "isConst": true }, "children": [ { "id": 258, "name": "cacheControl", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 16, "character": 14 } ], "type": { "type": "intrinsic", "name": "string" }, "defaultValue": "\"3600\"" }, { "id": 259, "name": "contentType", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 17, "character": 13 } ], "type": { "type": "intrinsic", "name": "string" }, "defaultValue": "\"text/plain;charset=UTF-8\"" }, { "id": 260, "name": "upsert", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 18, "character": 8 } ], "type": { "type": "intrinsic", "name": "false" }, "defaultValue": "false" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 258, 259, 260 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 15, "character": 26 } ], "type": { "type": "intrinsic", "name": "object" } }, { "id": 251, "name": "DEFAULT_SEARCH_OPTIONS", "kind": 2097152, "kindString": "Object literal", "flags": { "isConst": true }, "children": [ { "id": 252, "name": "limit", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 7, "character": 7 } ], "type": { "type": "intrinsic", "name": "number" }, "defaultValue": "100" }, { "id": 253, "name": "offset", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 8, "character": 8 } ], "type": { "type": "intrinsic", "name": "number" }, "defaultValue": "0" }, { "id": 254, "name": "sortBy", "kind": 2097152, "kindString": "Object literal", "flags": {}, "children": [ { "id": 255, "name": "column", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 10, "character": 10 } ], "type": { "type": "intrinsic", "name": "string" }, "defaultValue": "\"name\"" }, { "id": 256, "name": "order", "kind": 32, "kindString": "Variable", "flags": {}, "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 11, "character": 9 } ], "type": { "type": "intrinsic", "name": "string" }, "defaultValue": "\"asc\"" } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 255, 256 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 9, "character": 8 } ], "type": { "type": "intrinsic", "name": "object" } } ], "groups": [ { "title": "Variables", "kind": 32, "children": [ 252, 253 ] }, { "title": "Object literals", "kind": 2097152, "children": [ 254 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 6, "character": 28 } ], "type": { "type": "intrinsic", "name": "object" } } ], "groups": [ { "title": "Classes", "kind": 128, "children": [ 154 ] }, { "title": "Object literals", "kind": 2097152, "children": [ 257, 251 ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", "line": 1, "character": 0 } ] }, { "id": 1, "name": "\"lib/fetch\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/storage-js/storage-js/src/lib/fetch.ts", "children": [ { "id": 2, "name": "FetchOptions", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "children": [ { "id": 3, "name": "headers", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/fetch.ts", "line": 4, "character": 9 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "reflection", "declaration": { "id": 4, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "indexSignature": [ { "id": 5, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": { "isExported": true }, "parameters": [ { "id": 6, "name": "key", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "string" } } ] } } ] } }, { "id": 7, "name": "noResolveJson", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/fetch.ts", "line": 7, "character": 15 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "false" }, { "type": "intrinsic", "name": "true" } ] } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 3, 7 ] } ], "sources": [ { "fileName": "lib/fetch.ts", "line": 3, "character": 29 } ] }, { "id": 8, "name": "FetchParameters", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "children": [ { "id": 9, "name": "signal", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/fetch.ts", "line": 11, "character": 8 } ], "type": { "type": "reference", "name": "AbortSignal" } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 9 ] } ], "sources": [ { "fileName": "lib/fetch.ts", "line": 10, "character": 32 } ] }, { "id": 10, "name": "RequestMethodType", "kind": 4194304, "kindString": "Type alias", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/fetch.ts", "line": 14, "character": 29 } ], "type": { "type": "union", "types": [ { "type": "stringLiteral", "value": "GET" }, { "type": "stringLiteral", "value": "POST" }, { "type": "stringLiteral", "value": "PUT" }, { "type": "stringLiteral", "value": "DELETE" } ] } }, { "id": 11, "name": "_getErrorMessage", "kind": 64, "kindString": "Function", "flags": { "isConst": true }, "signatures": [ { "id": 12, "name": "_getErrorMessage", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 13, "name": "err", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "intrinsic", "name": "any" } } ], "type": { "type": "intrinsic", "name": "string" } } ], "sources": [ { "fileName": "lib/fetch.ts", "line": 16, "character": 22 } ] }, { "id": 18, "name": "_getRequestParams", "kind": 64, "kindString": "Function", "flags": { "isConst": true }, "signatures": [ { "id": 19, "name": "_getRequestParams", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 20, "name": "method", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 10, "name": "RequestMethodType" } }, { "id": 21, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, "type": { "type": "reference", "id": 2, "name": "FetchOptions" } }, { "id": 22, "name": "parameters", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, "type": { "type": "reference", "id": 8, "name": "FetchParameters" } }, { "id": 23, "name": "body", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "object" } ] } } ], "type": { "type": "reflection", "declaration": { "id": 24, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": [ { "id": 25, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { "id": 26, "name": "k", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "intrinsic", "name": "any" } } ] } } } ], "sources": [ { "fileName": "lib/fetch.ts", "line": 31, "character": 23 } ] }, { "id": 27, "name": "_handleRequest", "kind": 64, "kindString": "Function", "flags": {}, "signatures": [ { "id": 28, "name": "_handleRequest", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 29, "name": "method", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 10, "name": "RequestMethodType" } }, { "id": 30, "name": "url", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "intrinsic", "name": "string" } }, { "id": 31, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, "type": { "type": "reference", "id": 2, "name": "FetchOptions" } }, { "id": 32, "name": "parameters", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, "type": { "type": "reference", "id": 8, "name": "FetchParameters" } }, { "id": 33, "name": "body", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "object" } ] } } ], "type": { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "any" } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/fetch.ts", "line": 48, "character": 29 } ] }, { "id": 34, "name": "get", "kind": 64, "kindString": "Function", "flags": { "isExported": true }, "signatures": [ { "id": 35, "name": "get", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 36, "name": "url", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 37, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true, "isOptional": true }, "type": { "type": "reference", "id": 2, "name": "FetchOptions" } }, { "id": 38, "name": "parameters", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true, "isOptional": true }, "type": { "type": "reference", "id": 8, "name": "FetchParameters" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "any" } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/fetch.ts", "line": 67, "character": 25 } ] }, { "id": 14, "name": "handleError", "kind": 64, "kindString": "Function", "flags": { "isConst": true }, "signatures": [ { "id": 15, "name": "handleError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 16, "name": "error", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "intrinsic", "name": "any" } }, { "id": 17, "name": "reject", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "intrinsic", "name": "any" } } ], "type": { "type": "intrinsic", "name": "any" } } ], "sources": [ { "fileName": "lib/fetch.ts", "line": 19, "character": 17 } ] }, { "id": 39, "name": "post", "kind": 64, "kindString": "Function", "flags": { "isExported": true }, "signatures": [ { "id": 40, "name": "post", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 41, "name": "url", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 42, "name": "body", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "object" } }, { "id": 43, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true, "isOptional": true }, "type": { "type": "reference", "id": 2, "name": "FetchOptions" } }, { "id": 44, "name": "parameters", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true, "isOptional": true }, "type": { "type": "reference", "id": 8, "name": "FetchParameters" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "any" } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/fetch.ts", "line": 75, "character": 26 } ] }, { "id": 45, "name": "put", "kind": 64, "kindString": "Function", "flags": { "isExported": true }, "signatures": [ { "id": 46, "name": "put", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 47, "name": "url", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 48, "name": "body", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "object" } }, { "id": 49, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true, "isOptional": true }, "type": { "type": "reference", "id": 2, "name": "FetchOptions" } }, { "id": 50, "name": "parameters", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true, "isOptional": true }, "type": { "type": "reference", "id": 8, "name": "FetchParameters" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "any" } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/fetch.ts", "line": 84, "character": 25 } ] }, { "id": 51, "name": "remove", "kind": 64, "kindString": "Function", "flags": { "isExported": true }, "signatures": [ { "id": 52, "name": "remove", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "parameters": [ { "id": 53, "name": "url", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 54, "name": "body", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "object" } }, { "id": 55, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true, "isOptional": true }, "type": { "type": "reference", "id": 2, "name": "FetchOptions" } }, { "id": 56, "name": "parameters", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true, "isOptional": true }, "type": { "type": "reference", "id": 8, "name": "FetchParameters" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "any" } ], "name": "Promise" } } ], "sources": [ { "fileName": "lib/fetch.ts", "line": 93, "character": 28 } ] } ], "groups": [ { "title": "Interfaces", "kind": 256, "children": [ 2, 8 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ 10 ] }, { "title": "Functions", "kind": 64, "children": [ 11, 18, 27, 34, 14, 39, 45, 51 ] } ], "sources": [ { "fileName": "lib/fetch.ts", "line": 1, "character": 0 } ] }, { "id": 150, "name": "\"lib/helpers\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/storage-js/storage-js/src/lib/helpers.ts", "children": [ { "id": 151, "name": "isBrowser", "kind": 64, "kindString": "Function", "flags": { "isExported": true, "isConst": true }, "signatures": [ { "id": 152, "name": "isBrowser", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "type": { "type": "intrinsic", "name": "boolean" } } ], "sources": [ { "fileName": "lib/helpers.ts", "line": 1, "character": 22 } ] } ], "groups": [ { "title": "Functions", "kind": 64, "children": [ 151 ] } ], "sources": [ { "fileName": "lib/helpers.ts", "line": 1, "character": 0 } ] }, { "id": 261, "name": "\"lib/index\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/storage-js/storage-js/src/lib/index.ts", "children": [ { "id": 264, "name": "Bucket", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 58 }, { "id": 265, "name": "FileObject", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 65 }, { "id": 267, "name": "FileOptions", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 79 }, { "id": 269, "name": "Metadata", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 87 }, { "id": 268, "name": "SearchOptions", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 83 }, { "id": 266, "name": "SortBy", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 76 }, { "id": 262, "name": "StorageBucketApi", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 90 }, { "id": 263, "name": "StorageFileApi", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, "target": 154 } ], "groups": [ { "title": "References", "kind": 16777216, "children": [ 264, 265, 267, 269, 268, 266, 262, 263 ] } ], "sources": [ { "fileName": "lib/index.ts", "line": 1, "character": 0 } ] }, { "id": 57, "name": "\"lib/types\"", "kind": 1, "kindString": "Module", "flags": { "isExported": true }, "originalName": "/home/runner/work/storage-js/storage-js/src/lib/types.ts", "children": [ { "id": 58, "name": "Bucket", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "children": [ { "id": 62, "name": "created_at", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 5, "character": 12 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 59, "name": "id", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 2, "character": 4 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 60, "name": "name", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 3, "character": 6 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 61, "name": "owner", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 4, "character": 7 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 64, "name": "public", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 7, "character": 8 } ], "type": { "type": "intrinsic", "name": "boolean" } }, { "id": 63, "name": "updated_at", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 6, "character": 12 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 62, 59, 60, 61, 64, 63 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 1, "character": 23 } ] }, { "id": 65, "name": "FileObject", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "children": [ { "id": 67, "name": "bucket_id", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 12, "character": 11 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 75, "name": "buckets", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 19, "character": 9 } ], "type": { "type": "reference", "id": 58, "name": "Bucket" } }, { "id": 71, "name": "created_at", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 16, "character": 12 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 69, "name": "id", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 14, "character": 4 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 72, "name": "last_accessed_at", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 17, "character": 18 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 73, "name": "metadata", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 18, "character": 10 } ], "type": { "type": "reflection", "declaration": { "id": 74, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 18, "character": 11 } ] } } }, { "id": 66, "name": "name", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 11, "character": 6 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 68, "name": "owner", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 13, "character": 7 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 70, "name": "updated_at", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 15, "character": 12 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 67, 75, 71, 69, 72, 73, 66, 68, 70 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 10, "character": 27 } ] }, { "id": 79, "name": "FileOptions", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "children": [ { "id": 80, "name": "cacheControl", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 28, "character": 14 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 81, "name": "contentType", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 29, "character": 13 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 82, "name": "upsert", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 30, "character": 8 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "false" }, { "type": "intrinsic", "name": "true" } ] } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 80, 81, 82 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 27, "character": 28 } ] }, { "id": 87, "name": "Metadata", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "children": [ { "id": 88, "name": "name", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, "sources": [ { "fileName": "lib/types.ts", "line": 46, "character": 6 } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 88 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 45, "character": 25 } ] }, { "id": 83, "name": "SearchOptions", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "children": [ { "id": 84, "name": "limit", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "comment": { "shortText": "The number of files you want to be returned." }, "sources": [ { "fileName": "lib/types.ts", "line": 35, "character": 7 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "number" } ] } }, { "id": 85, "name": "offset", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "comment": { "shortText": "The starting position." }, "sources": [ { "fileName": "lib/types.ts", "line": 38, "character": 8 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "number" } ] } }, { "id": 86, "name": "sortBy", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "comment": { "shortText": "The column to sort by. Can be any column inside a FileObject." }, "sources": [ { "fileName": "lib/types.ts", "line": 41, "character": 8 } ], "type": { "type": "reference", "id": 76, "name": "SortBy" } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 84, 85, 86 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 33, "character": 30 } ] }, { "id": 76, "name": "SortBy", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "children": [ { "id": 77, "name": "column", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 23, "character": 8 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 78, "name": "order", "kind": 1024, "kindString": "Property", "flags": { "isExported": true, "isOptional": true }, "sources": [ { "fileName": "lib/types.ts", "line": 24, "character": 7 } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Properties", "kind": 1024, "children": [ 77, 78 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 22, "character": 23 } ] } ], "groups": [ { "title": "Interfaces", "kind": 256, "children": [ 58, 65, 79, 87, 83, 76 ] } ], "sources": [ { "fileName": "lib/types.ts", "line": 1, "character": 0 } ] } ], "groups": [ { "title": "Modules", "kind": 1, "children": [ 270, 334, 89, 153, 1, 150, 261, 57 ] } ] }