graphile-presigned-url-plugin 0.5.0 → 0.6.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/types.d.ts CHANGED
@@ -7,7 +7,7 @@ export interface BucketConfig {
7
7
  key: string;
8
8
  type: 'public' | 'private' | 'temp';
9
9
  is_public: boolean;
10
- owner_id: string;
10
+ owner_id: string | null;
11
11
  allowed_mime_types: string[] | null;
12
12
  max_file_size: number | null;
13
13
  }
@@ -31,6 +31,12 @@ export interface StorageModuleConfig {
31
31
  filesTableName: string;
32
32
  /** Upload requests table name */
33
33
  uploadRequestsTableName: string;
34
+ /** Membership type (NULL for app-level, non-NULL for entity-scoped) */
35
+ membershipType: number | null;
36
+ /** Entity table ID for entity-scoped storage (NULL for app-level) */
37
+ entityTableId: string | null;
38
+ /** Qualified entity table name for ownerId lookups (NULL for app-level) */
39
+ entityQualifiedName: string | null;
34
40
  /** S3-compatible API endpoint URL (per-database override) */
35
41
  endpoint: string | null;
36
42
  /** Public URL prefix for generating download URLs (per-database override) */
@@ -56,6 +62,13 @@ export interface StorageModuleConfig {
56
62
  export interface RequestUploadUrlInput {
57
63
  /** Bucket key (e.g., "public", "private") */
58
64
  bucketKey: string;
65
+ /**
66
+ * Owner entity ID for entity-scoped uploads.
67
+ * Omit for app-level (database-wide) storage.
68
+ * When provided, resolves the storage module for the entity type
69
+ * that owns this entity instance (e.g., a data room ID, team ID).
70
+ */
71
+ ownerId?: string;
59
72
  /** SHA-256 content hash computed by the client */
60
73
  contentHash: string;
61
74
  /** MIME type of the file */