@constructive-io/sdk 1.20.4 → 1.20.6

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.
Files changed (71) hide show
  1. package/admin/orm/input-types.d.ts +4 -4
  2. package/admin/orm/mutation/index.d.ts +5 -4
  3. package/agent/orm/input-types.d.ts +4 -4
  4. package/agent/orm/mutation/index.d.ts +5 -4
  5. package/api/orm/index.d.ts +15 -4
  6. package/api/orm/index.js +0 -4
  7. package/api/orm/input-types.d.ts +96 -439
  8. package/api/orm/models/index.d.ts +0 -2
  9. package/api/orm/models/index.js +2 -6
  10. package/api/orm/mutation/index.d.ts +30 -5
  11. package/api/orm/mutation/index.js +24 -0
  12. package/api/orm/query/index.d.ts +5 -0
  13. package/api/orm/query/index.js +7 -0
  14. package/auth/orm/input-types.d.ts +5 -29
  15. package/auth/orm/mutation/index.d.ts +5 -4
  16. package/compute/orm/input-types.d.ts +50 -6
  17. package/compute/orm/mutation/index.d.ts +5 -4
  18. package/config/orm/input-types.d.ts +4 -4
  19. package/config/orm/mutation/index.d.ts +5 -4
  20. package/esm/admin/orm/input-types.d.ts +4 -4
  21. package/esm/admin/orm/mutation/index.d.ts +5 -4
  22. package/esm/agent/orm/input-types.d.ts +4 -4
  23. package/esm/agent/orm/mutation/index.d.ts +5 -4
  24. package/esm/api/orm/index.d.ts +15 -4
  25. package/esm/api/orm/index.js +0 -4
  26. package/esm/api/orm/input-types.d.ts +96 -439
  27. package/esm/api/orm/models/index.d.ts +0 -2
  28. package/esm/api/orm/models/index.js +0 -2
  29. package/esm/api/orm/mutation/index.d.ts +30 -5
  30. package/esm/api/orm/mutation/index.js +24 -0
  31. package/esm/api/orm/query/index.d.ts +5 -0
  32. package/esm/api/orm/query/index.js +7 -0
  33. package/esm/auth/orm/input-types.d.ts +5 -29
  34. package/esm/auth/orm/mutation/index.d.ts +5 -4
  35. package/esm/compute/orm/input-types.d.ts +50 -6
  36. package/esm/compute/orm/mutation/index.d.ts +5 -4
  37. package/esm/config/orm/input-types.d.ts +4 -4
  38. package/esm/config/orm/mutation/index.d.ts +5 -4
  39. package/esm/infra/orm/input-types.d.ts +4 -4
  40. package/esm/infra/orm/mutation/index.d.ts +5 -4
  41. package/esm/modules/orm/input-types.d.ts +72 -21
  42. package/esm/modules/orm/mutation/index.d.ts +6 -5
  43. package/esm/objects/orm/input-types.d.ts +4 -4
  44. package/esm/objects/orm/mutation/index.d.ts +5 -4
  45. package/esm/remote/orm/input-types.d.ts +4 -4
  46. package/esm/remote/orm/mutation/index.d.ts +5 -4
  47. package/esm/storage/orm/input-types.d.ts +34 -6
  48. package/esm/storage/orm/mutation/index.d.ts +7 -6
  49. package/esm/usage/orm/input-types.d.ts +4 -4
  50. package/esm/usage/orm/mutation/index.d.ts +5 -4
  51. package/infra/orm/input-types.d.ts +4 -4
  52. package/infra/orm/mutation/index.d.ts +5 -4
  53. package/modules/orm/input-types.d.ts +72 -21
  54. package/modules/orm/mutation/index.d.ts +6 -5
  55. package/objects/orm/input-types.d.ts +4 -4
  56. package/objects/orm/mutation/index.d.ts +5 -4
  57. package/package.json +4 -4
  58. package/remote/orm/input-types.d.ts +4 -4
  59. package/remote/orm/mutation/index.d.ts +5 -4
  60. package/storage/orm/input-types.d.ts +34 -6
  61. package/storage/orm/mutation/index.d.ts +7 -6
  62. package/usage/orm/input-types.d.ts +4 -4
  63. package/usage/orm/mutation/index.d.ts +5 -4
  64. package/api/orm/models/hostnameBinding.d.ts +0 -54
  65. package/api/orm/models/hostnameBinding.js +0 -104
  66. package/api/orm/models/routeBinding.d.ts +0 -54
  67. package/api/orm/models/routeBinding.js +0 -104
  68. package/esm/api/orm/models/hostnameBinding.d.ts +0 -54
  69. package/esm/api/orm/models/hostnameBinding.js +0 -100
  70. package/esm/api/orm/models/routeBinding.d.ts +0 -54
  71. package/esm/api/orm/models/routeBinding.js +0 -100
@@ -13,10 +13,11 @@ export interface MachinesEnrollVariables {
13
13
  /**
14
14
  * Variables for provisionBucket
15
15
  * Reconcile an S3 bucket for a logical bucket in the database.
16
- Reads the bucket config via RLS, then enqueues the same
17
- storage:provision_bucket job used by the INSERT trigger. This is
18
- idempotent for an already-reconciled bucket; enqueue failures become
19
- GraphQL errors.
16
+ Records the request on the bucket row via RLS; the bucket's job
17
+ trigger then enqueues the same storage:provision_bucket job used on
18
+ INSERT, and repeated requests collapse into one pending job. This is
19
+ idempotent for an already-reconciled bucket; failures become GraphQL
20
+ errors.
20
21
  */
21
22
  export interface ProvisionBucketVariables {
22
23
  input: ProvisionBucketInput;
@@ -254,10 +254,14 @@ export interface Bucket {
254
254
  isPublic?: boolean | null;
255
255
  /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */
256
256
  key?: string | null;
257
+ /** The most files one bulk-upload call accepts for this bucket. Batches larger than this are refused with BULK_UPLOAD_FILES_EXCEEDED. */
258
+ maxBulkFiles?: number | null;
257
259
  /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */
258
260
  maxFileSize?: string | null;
259
261
  /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */
260
262
  physicalName?: string | null;
263
+ /** When re-provisioning was last requested (provisionBucket); NULL until requested */
264
+ provisionRequestedAt?: string | null;
261
265
  /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */
262
266
  stagingTtl?: string | null;
263
267
  /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */
@@ -325,10 +329,14 @@ export interface PlatformBucket {
325
329
  isPublic?: boolean | null;
326
330
  /** Unique bucket identifier used in S3 key paths (e.g. avatars, documents, temp) */
327
331
  key?: string | null;
332
+ /** The most files one bulk-upload call accepts for this bucket. Batches larger than this are refused with BULK_UPLOAD_FILES_EXCEEDED. */
333
+ maxBulkFiles?: number | null;
328
334
  /** Maximum file size in bytes allowed in this bucket (NULL = no limit, enforcement deferred) */
329
335
  maxFileSize?: string | null;
330
336
  /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */
331
337
  physicalName?: string | null;
338
+ /** When re-provisioning was last requested (provisionBucket); NULL until requested */
339
+ provisionRequestedAt?: string | null;
332
340
  /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */
333
341
  stagingTtl?: string | null;
334
342
  /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */
@@ -417,8 +425,10 @@ export type BucketSelect = {
417
425
  id?: boolean;
418
426
  isPublic?: boolean;
419
427
  key?: boolean;
428
+ maxBulkFiles?: boolean;
420
429
  maxFileSize?: boolean;
421
430
  physicalName?: boolean;
431
+ provisionRequestedAt?: boolean;
422
432
  stagingTtl?: boolean;
423
433
  tags?: boolean;
424
434
  type?: boolean;
@@ -475,8 +485,10 @@ export type PlatformBucketSelect = {
475
485
  id?: boolean;
476
486
  isPublic?: boolean;
477
487
  key?: boolean;
488
+ maxBulkFiles?: boolean;
478
489
  maxFileSize?: boolean;
479
490
  physicalName?: boolean;
491
+ provisionRequestedAt?: boolean;
480
492
  stagingTtl?: boolean;
481
493
  tags?: boolean;
482
494
  type?: boolean;
@@ -566,6 +578,8 @@ export interface BucketFilter {
566
578
  or?: BucketFilter[];
567
579
  /** Filter by the object’s `physicalName` field. */
568
580
  physicalName?: StringFilter;
581
+ /** Filter by the object’s `provisionRequestedAt` field. */
582
+ provisionRequestedAt?: DatetimeFilter;
569
583
  /** Filter by the object’s `stagingTtl` field. */
570
584
  stagingTtl?: IntervalFilter;
571
585
  /** Filter by the object’s `tags` field. */
@@ -664,6 +678,8 @@ export interface PlatformBucketFilter {
664
678
  platformFilesByBucketId?: PlatformBucketToManyPlatformFileFilter;
665
679
  /** `platformFilesByBucketId` exist. */
666
680
  platformFilesByBucketIdExist?: boolean;
681
+ /** Filter by the object’s `provisionRequestedAt` field. */
682
+ provisionRequestedAt?: DatetimeFilter;
667
683
  /** Filter by the object’s `stagingTtl` field. */
668
684
  stagingTtl?: IntervalFilter;
669
685
  /** Filter by the object’s `tags` field. */
@@ -717,9 +733,9 @@ export interface PlatformFileFilter {
717
733
  /** Filter by the object’s `upload` field. */
718
734
  upload?: ConstructiveInternalTypeUploadFilter;
719
735
  }
720
- export type BucketOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ALLOWED_MIME_TYPES_ASC' | 'ALLOWED_MIME_TYPES_DESC' | 'ALLOWED_ORIGINS_ASC' | 'ALLOWED_ORIGINS_DESC' | 'ALLOW_CUSTOM_KEYS_ASC' | 'ALLOW_CUSTOM_KEYS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'DESTINATION_BUCKET_ID_ASC' | 'DESTINATION_BUCKET_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLIC_ASC' | 'IS_PUBLIC_DESC' | 'KEY_ASC' | 'KEY_DESC' | 'MAX_FILE_SIZE_ASC' | 'MAX_FILE_SIZE_DESC' | 'NATURAL' | 'PHYSICAL_NAME_ASC' | 'PHYSICAL_NAME_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'STAGING_TTL_ASC' | 'STAGING_TTL_DESC' | 'TAGS_ASC' | 'TAGS_DESC' | 'TYPE_ASC' | 'TYPE_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
736
+ export type BucketOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ALLOWED_MIME_TYPES_ASC' | 'ALLOWED_MIME_TYPES_DESC' | 'ALLOWED_ORIGINS_ASC' | 'ALLOWED_ORIGINS_DESC' | 'ALLOW_CUSTOM_KEYS_ASC' | 'ALLOW_CUSTOM_KEYS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'DESTINATION_BUCKET_ID_ASC' | 'DESTINATION_BUCKET_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLIC_ASC' | 'IS_PUBLIC_DESC' | 'KEY_ASC' | 'KEY_DESC' | 'MAX_FILE_SIZE_ASC' | 'MAX_FILE_SIZE_DESC' | 'NATURAL' | 'PHYSICAL_NAME_ASC' | 'PHYSICAL_NAME_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROVISION_REQUESTED_AT_ASC' | 'PROVISION_REQUESTED_AT_DESC' | 'STAGING_TTL_ASC' | 'STAGING_TTL_DESC' | 'TAGS_ASC' | 'TAGS_DESC' | 'TYPE_ASC' | 'TYPE_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
721
737
  export type FileOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'BUCKET_ID_ASC' | 'BUCKET_ID_DESC' | 'CONTENT_HASH_ASC' | 'CONTENT_HASH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'EXPIRY_ENQUEUED_AT_ASC' | 'EXPIRY_ENQUEUED_AT_DESC' | 'FILENAME_ASC' | 'FILENAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLIC_ASC' | 'IS_PUBLIC_DESC' | 'KEY_ASC' | 'KEY_DESC' | 'MIME_TYPE_ASC' | 'MIME_TYPE_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'TAGS_ASC' | 'TAGS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPLOAD_ASC' | 'UPLOAD_DESC';
722
- export type PlatformBucketOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ALLOWED_MIME_TYPES_ASC' | 'ALLOWED_MIME_TYPES_DESC' | 'ALLOWED_ORIGINS_ASC' | 'ALLOWED_ORIGINS_DESC' | 'ALLOW_CUSTOM_KEYS_ASC' | 'ALLOW_CUSTOM_KEYS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'DESTINATION_BUCKET_ID_ASC' | 'DESTINATION_BUCKET_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLIC_ASC' | 'IS_PUBLIC_DESC' | 'KEY_ASC' | 'KEY_DESC' | 'MAX_FILE_SIZE_ASC' | 'MAX_FILE_SIZE_DESC' | 'NATURAL' | 'PHYSICAL_NAME_ASC' | 'PHYSICAL_NAME_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'STAGING_TTL_ASC' | 'STAGING_TTL_DESC' | 'TAGS_ASC' | 'TAGS_DESC' | 'TYPE_ASC' | 'TYPE_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
738
+ export type PlatformBucketOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ALLOWED_MIME_TYPES_ASC' | 'ALLOWED_MIME_TYPES_DESC' | 'ALLOWED_ORIGINS_ASC' | 'ALLOWED_ORIGINS_DESC' | 'ALLOW_CUSTOM_KEYS_ASC' | 'ALLOW_CUSTOM_KEYS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'DESTINATION_BUCKET_ID_ASC' | 'DESTINATION_BUCKET_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLIC_ASC' | 'IS_PUBLIC_DESC' | 'KEY_ASC' | 'KEY_DESC' | 'MAX_FILE_SIZE_ASC' | 'MAX_FILE_SIZE_DESC' | 'NATURAL' | 'PHYSICAL_NAME_ASC' | 'PHYSICAL_NAME_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROVISION_REQUESTED_AT_ASC' | 'PROVISION_REQUESTED_AT_DESC' | 'STAGING_TTL_ASC' | 'STAGING_TTL_DESC' | 'TAGS_ASC' | 'TAGS_DESC' | 'TYPE_ASC' | 'TYPE_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
723
739
  export type PlatformFileOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'BUCKET_ID_ASC' | 'BUCKET_ID_DESC' | 'CONTENT_HASH_ASC' | 'CONTENT_HASH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'EXPIRY_ENQUEUED_AT_ASC' | 'EXPIRY_ENQUEUED_AT_DESC' | 'FILENAME_ASC' | 'FILENAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLIC_ASC' | 'IS_PUBLIC_DESC' | 'KEY_ASC' | 'KEY_DESC' | 'MIME_TYPE_ASC' | 'MIME_TYPE_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'TAGS_ASC' | 'TAGS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPLOAD_ASC' | 'UPLOAD_DESC';
724
740
  export interface CreateBucketInput {
725
741
  clientMutationId?: string;
@@ -735,6 +751,7 @@ export interface CreateBucketInput {
735
751
  key: string;
736
752
  maxFileSize?: string;
737
753
  physicalName?: string;
754
+ provisionRequestedAt?: string;
738
755
  stagingTtl?: IntervalInput;
739
756
  tags?: string[];
740
757
  type?: BucketType;
@@ -752,6 +769,7 @@ export interface BucketPatch {
752
769
  key?: string | null;
753
770
  maxFileSize?: string | null;
754
771
  physicalName?: string | null;
772
+ provisionRequestedAt?: string | null;
755
773
  stagingTtl?: IntervalInput | null;
756
774
  tags?: string[] | null;
757
775
  type?: BucketType | null;
@@ -823,6 +841,7 @@ export interface CreatePlatformBucketInput {
823
841
  key: string;
824
842
  maxFileSize?: string;
825
843
  physicalName?: string;
844
+ provisionRequestedAt?: string;
826
845
  stagingTtl?: IntervalInput;
827
846
  tags?: string[];
828
847
  type?: BucketType;
@@ -839,6 +858,7 @@ export interface PlatformBucketPatch {
839
858
  key?: string | null;
840
859
  maxFileSize?: string | null;
841
860
  physicalName?: string | null;
861
+ provisionRequestedAt?: string | null;
842
862
  stagingTtl?: IntervalInput | null;
843
863
  tags?: string[] | null;
844
864
  type?: BucketType | null;
@@ -1136,6 +1156,8 @@ export interface BucketInput {
1136
1156
  maxFileSize?: string;
1137
1157
  /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */
1138
1158
  physicalName?: string;
1159
+ /** When re-provisioning was last requested (provisionBucket); NULL until requested */
1160
+ provisionRequestedAt?: string;
1139
1161
  /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */
1140
1162
  stagingTtl?: IntervalInput;
1141
1163
  /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */
@@ -1219,6 +1241,8 @@ export interface PlatformBucketInput {
1219
1241
  maxFileSize?: string;
1220
1242
  /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */
1221
1243
  physicalName?: string;
1244
+ /** When re-provisioning was last requested (provisionBucket); NULL until requested */
1245
+ provisionRequestedAt?: string;
1222
1246
  /** For a temp bucket, how long an unpromoted staged file survives before it is eligible for expiry. NULL on non-temp buckets; required on temp buckets. */
1223
1247
  stagingTtl?: IntervalInput;
1224
1248
  /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */
@@ -1329,6 +1353,8 @@ export interface BucketFilter {
1329
1353
  or?: BucketFilter[];
1330
1354
  /** Filter by the object’s `physicalName` field. */
1331
1355
  physicalName?: StringFilter;
1356
+ /** Filter by the object’s `provisionRequestedAt` field. */
1357
+ provisionRequestedAt?: DatetimeFilter;
1332
1358
  /** Filter by the object’s `stagingTtl` field. */
1333
1359
  stagingTtl?: IntervalFilter;
1334
1360
  /** Filter by the object’s `tags` field. */
@@ -1429,6 +1455,8 @@ export interface PlatformBucketFilter {
1429
1455
  platformFilesByBucketId?: PlatformBucketToManyPlatformFileFilter;
1430
1456
  /** `platformFilesByBucketId` exist. */
1431
1457
  platformFilesByBucketIdExist?: boolean;
1458
+ /** Filter by the object’s `provisionRequestedAt` field. */
1459
+ provisionRequestedAt?: DatetimeFilter;
1432
1460
  /** Filter by the object’s `stagingTtl` field. */
1433
1461
  stagingTtl?: IntervalFilter;
1434
1462
  /** Filter by the object’s `tags` field. */
@@ -1728,19 +1756,19 @@ export type PlatformFilesRenamePayloadSelect = {
1728
1756
  };
1729
1757
  };
1730
1758
  export interface ProvisionBucketPayload {
1731
- /** The logical bucket row that was queued for reconciliation. */
1759
+ /** The logical bucket row whose reconciliation was requested. */
1732
1760
  bucketId: string;
1733
1761
  bucketKey: string;
1734
- /** The reconciler job enqueued to provision this bucket. */
1735
- jobId: string;
1736
1762
  /** The physical bucket name already recorded, or null when reconciliation has not completed. */
1737
1763
  physicalName?: string | null;
1764
+ /** When reconciliation was last requested for this bucket. */
1765
+ provisionRequestedAt: string;
1738
1766
  }
1739
1767
  export type ProvisionBucketPayloadSelect = {
1740
1768
  bucketId?: boolean;
1741
1769
  bucketKey?: boolean;
1742
- jobId?: boolean;
1743
1770
  physicalName?: boolean;
1771
+ provisionRequestedAt?: boolean;
1744
1772
  };
1745
1773
  export interface UploadFilePayload {
1746
1774
  /** Whether this file was deduplicated (content already exists) */
@@ -16,10 +16,11 @@ export interface PlatformFilesRenameVariables {
16
16
  /**
17
17
  * Variables for provisionBucket
18
18
  * Reconcile an S3 bucket for a logical bucket in the database.
19
- Reads the bucket config via RLS, then enqueues the same
20
- storage:provision_bucket job used by the INSERT trigger. This is
21
- idempotent for an already-reconciled bucket; enqueue failures become
22
- GraphQL errors.
19
+ Records the request on the bucket row via RLS; the bucket's job
20
+ trigger then enqueues the same storage:provision_bucket job used on
21
+ INSERT, and repeated requests collapse into one pending job. This is
22
+ idempotent for an already-reconciled bucket; failures become GraphQL
23
+ errors.
23
24
  */
24
25
  export interface ProvisionBucketVariables {
25
26
  input: ProvisionBucketInput;
@@ -33,7 +34,7 @@ export interface UploadFileVariables {
33
34
  }
34
35
  /**
35
36
  * Variables for uploadFiles
36
- * Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each.
37
+ * Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call.
37
38
  */
38
39
  export interface UploadFilesVariables {
39
40
  input: UploadFileBulkInput;
@@ -47,7 +48,7 @@ export interface UploadPlatformFileVariables {
47
48
  }
48
49
  /**
49
50
  * Variables for uploadPlatformFiles
50
- * Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each.
51
+ * Upload multiple files: resolves the bucket by key, creates file rows, and returns presigned PUT URLs for each. Accepts at most the bucket's `maxBulkFiles` files per call.
51
52
  */
52
53
  export interface UploadPlatformFilesVariables {
53
54
  input: UploadPlatformFileBulkInput;
@@ -2527,19 +2527,19 @@ export interface DatetimeFilter {
2527
2527
  notIn?: string[];
2528
2528
  }
2529
2529
  export interface ProvisionBucketPayload {
2530
- /** The logical bucket row that was queued for reconciliation. */
2530
+ /** The logical bucket row whose reconciliation was requested. */
2531
2531
  bucketId: string;
2532
2532
  bucketKey: string;
2533
- /** The reconciler job enqueued to provision this bucket. */
2534
- jobId: string;
2535
2533
  /** The physical bucket name already recorded, or null when reconciliation has not completed. */
2536
2534
  physicalName?: string | null;
2535
+ /** When reconciliation was last requested for this bucket. */
2536
+ provisionRequestedAt: string;
2537
2537
  }
2538
2538
  export type ProvisionBucketPayloadSelect = {
2539
2539
  bucketId?: boolean;
2540
2540
  bucketKey?: boolean;
2541
- jobId?: boolean;
2542
2541
  physicalName?: boolean;
2542
+ provisionRequestedAt?: boolean;
2543
2543
  };
2544
2544
  export interface SeedAppLimitCapsDefaultsPayload {
2545
2545
  clientMutationId?: string | null;
@@ -10,10 +10,11 @@ import type { ProvisionBucketInput, SeedAppLimitCapsDefaultsInput, SeedAppLimitD
10
10
  /**
11
11
  * Variables for provisionBucket
12
12
  * Reconcile an S3 bucket for a logical bucket in the database.
13
- Reads the bucket config via RLS, then enqueues the same
14
- storage:provision_bucket job used by the INSERT trigger. This is
15
- idempotent for an already-reconciled bucket; enqueue failures become
16
- GraphQL errors.
13
+ Records the request on the bucket row via RLS; the bucket's job
14
+ trigger then enqueues the same storage:provision_bucket job used on
15
+ INSERT, and repeated requests collapse into one pending job. This is
16
+ idempotent for an already-reconciled bucket; failures become GraphQL
17
+ errors.
17
18
  */
18
19
  export interface ProvisionBucketVariables {
19
20
  input: ProvisionBucketInput;
@@ -1502,19 +1502,19 @@ export type PlatformInfraSetManyAndCommitPayloadSelect = {
1502
1502
  };
1503
1503
  };
1504
1504
  export interface ProvisionBucketPayload {
1505
- /** The logical bucket row that was queued for reconciliation. */
1505
+ /** The logical bucket row whose reconciliation was requested. */
1506
1506
  bucketId: string;
1507
1507
  bucketKey: string;
1508
- /** The reconciler job enqueued to provision this bucket. */
1509
- jobId: string;
1510
1508
  /** The physical bucket name already recorded, or null when reconciliation has not completed. */
1511
1509
  physicalName?: string | null;
1510
+ /** When reconciliation was last requested for this bucket. */
1511
+ provisionRequestedAt: string;
1512
1512
  }
1513
1513
  export type ProvisionBucketPayloadSelect = {
1514
1514
  bucketId?: boolean;
1515
1515
  bucketKey?: boolean;
1516
- jobId?: boolean;
1517
1516
  physicalName?: boolean;
1517
+ provisionRequestedAt?: boolean;
1518
1518
  };
1519
1519
  export interface CreateContentPresetPayload {
1520
1520
  clientMutationId?: string | null;
@@ -28,10 +28,11 @@ export interface PlatformInfraSetManyAndCommitVariables {
28
28
  /**
29
29
  * Variables for provisionBucket
30
30
  * Reconcile an S3 bucket for a logical bucket in the database.
31
- Reads the bucket config via RLS, then enqueues the same
32
- storage:provision_bucket job used by the INSERT trigger. This is
33
- idempotent for an already-reconciled bucket; enqueue failures become
34
- GraphQL errors.
31
+ Records the request on the bucket row via RLS; the bucket's job
32
+ trigger then enqueues the same storage:provision_bucket job used on
33
+ INSERT, and repeated requests collapse into one pending job. This is
34
+ idempotent for an already-reconciled bucket; failures become GraphQL
35
+ errors.
35
36
  */
36
37
  export interface ProvisionBucketVariables {
37
38
  input: ProvisionBucketInput;