@pgpmjs/migrate-client 0.5.1 → 0.5.2

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.
@@ -408,6 +408,13 @@ export interface RunMigrationInput {
408
408
  export interface RequestUploadUrlInput {
409
409
  /** Bucket key (e.g., "public", "private") */
410
410
  bucketKey: string;
411
+ /**
412
+ * Owner entity ID for entity-scoped uploads.
413
+ * Omit for app-level (database-wide) storage.
414
+ * When provided, resolves the storage module for the entity type
415
+ * that owns this entity instance (e.g., a data room ID, team ID).
416
+ */
417
+ ownerId?: string;
411
418
  /** SHA-256 content hash computed by the client (hex-encoded, 64 chars) */
412
419
  contentHash: string;
413
420
  /** MIME type of the file (e.g., "image/png") */
@@ -424,6 +431,11 @@ export interface ConfirmUploadInput {
424
431
  export interface ProvisionBucketInput {
425
432
  /** The logical bucket key (e.g., "public", "private") */
426
433
  bucketKey: string;
434
+ /**
435
+ * Owner entity ID for entity-scoped bucket provisioning.
436
+ * Omit for app-level (database-wide) storage.
437
+ */
438
+ ownerId?: string;
427
439
  }
428
440
  /** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */
429
441
  export interface ConstructiveInternalTypeUploadFilter {
@@ -408,6 +408,13 @@ export interface RunMigrationInput {
408
408
  export interface RequestUploadUrlInput {
409
409
  /** Bucket key (e.g., "public", "private") */
410
410
  bucketKey: string;
411
+ /**
412
+ * Owner entity ID for entity-scoped uploads.
413
+ * Omit for app-level (database-wide) storage.
414
+ * When provided, resolves the storage module for the entity type
415
+ * that owns this entity instance (e.g., a data room ID, team ID).
416
+ */
417
+ ownerId?: string;
411
418
  /** SHA-256 content hash computed by the client (hex-encoded, 64 chars) */
412
419
  contentHash: string;
413
420
  /** MIME type of the file (e.g., "image/png") */
@@ -424,6 +431,11 @@ export interface ConfirmUploadInput {
424
431
  export interface ProvisionBucketInput {
425
432
  /** The logical bucket key (e.g., "public", "private") */
426
433
  bucketKey: string;
434
+ /**
435
+ * Owner entity ID for entity-scoped bucket provisioning.
436
+ * Omit for app-level (database-wide) storage.
437
+ */
438
+ ownerId?: string;
427
439
  }
428
440
  /** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */
429
441
  export interface ConstructiveInternalTypeUploadFilter {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/migrate-client",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Typed GraphQL ORM client for the Constructive Migrate API (db_migrate schema)",
6
6
  "main": "index.js",
@@ -49,5 +49,5 @@
49
49
  "makage": "^0.3.0",
50
50
  "typescript": "^5.9.3"
51
51
  },
52
- "gitHead": "28734dd71a973b2fe296e8240c8f86c568b4292f"
52
+ "gitHead": "4988b64539a61786647412a456c56cb486722e18"
53
53
  }