@constructive-io/react 1.20.5 → 1.20.7

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 (178) hide show
  1. package/admin/orm/input-types.d.ts +4 -4
  2. package/admin/orm/mutation/index.d.ts +5 -4
  3. package/admin/schema-types.d.ts +3 -3
  4. package/agent/orm/input-types.d.ts +4 -4
  5. package/agent/orm/mutation/index.d.ts +5 -4
  6. package/agent/schema-types.d.ts +3 -3
  7. package/api/hooks/index.d.ts +1 -1
  8. package/api/hooks/index.js +1 -1
  9. package/api/hooks/invalidation.d.ts +0 -12
  10. package/api/hooks/invalidation.js +0 -32
  11. package/api/hooks/mutation-keys.d.ts +4 -24
  12. package/api/hooks/mutation-keys.js +8 -16
  13. package/api/hooks/mutations/index.d.ts +2 -6
  14. package/api/hooks/mutations/index.js +2 -6
  15. package/api/hooks/mutations/useCreateFunctionFromSourceMutation.d.ts +20 -0
  16. package/api/hooks/mutations/{useCreateHostnameBindingMutation.js → useCreateFunctionFromSourceMutation.js} +6 -14
  17. package/api/hooks/mutations/useUpdateFunctionFromSourceMutation.d.ts +20 -0
  18. package/api/hooks/mutations/useUpdateFunctionFromSourceMutation.js +26 -0
  19. package/api/hooks/queries/index.d.ts +1 -4
  20. package/api/hooks/queries/index.js +1 -4
  21. package/api/hooks/queries/useEmailSharedAccountQuery.d.ts +45 -0
  22. package/api/hooks/queries/useEmailSharedAccountQuery.js +49 -0
  23. package/api/hooks/query-keys.d.ts +2 -28
  24. package/api/hooks/query-keys.js +3 -18
  25. package/api/orm/index.d.ts +15 -4
  26. package/api/orm/index.js +0 -4
  27. package/api/orm/input-types.d.ts +96 -439
  28. package/api/orm/models/index.d.ts +0 -2
  29. package/api/orm/models/index.js +2 -6
  30. package/api/orm/mutation/index.d.ts +30 -5
  31. package/api/orm/mutation/index.js +24 -0
  32. package/api/orm/query/index.d.ts +5 -0
  33. package/api/orm/query/index.js +7 -0
  34. package/api/schema-types.d.ts +39 -273
  35. package/api/types.d.ts +3 -28
  36. package/auth/orm/input-types.d.ts +5 -29
  37. package/auth/orm/mutation/index.d.ts +5 -4
  38. package/auth/schema-types.d.ts +4 -16
  39. package/compute/orm/input-types.d.ts +50 -6
  40. package/compute/orm/mutation/index.d.ts +5 -4
  41. package/compute/schema-types.d.ts +29 -5
  42. package/compute/types.d.ts +4 -0
  43. package/config/orm/input-types.d.ts +4 -4
  44. package/config/orm/mutation/index.d.ts +5 -4
  45. package/config/schema-types.d.ts +3 -3
  46. package/esm/admin/orm/input-types.d.ts +4 -4
  47. package/esm/admin/orm/mutation/index.d.ts +5 -4
  48. package/esm/admin/schema-types.d.ts +3 -3
  49. package/esm/agent/orm/input-types.d.ts +4 -4
  50. package/esm/agent/orm/mutation/index.d.ts +5 -4
  51. package/esm/agent/schema-types.d.ts +3 -3
  52. package/esm/api/hooks/index.d.ts +1 -1
  53. package/esm/api/hooks/index.js +1 -1
  54. package/esm/api/hooks/invalidation.d.ts +0 -12
  55. package/esm/api/hooks/invalidation.js +1 -33
  56. package/esm/api/hooks/mutation-keys.d.ts +4 -24
  57. package/esm/api/hooks/mutation-keys.js +6 -14
  58. package/esm/api/hooks/mutations/index.d.ts +2 -6
  59. package/esm/api/hooks/mutations/index.js +2 -6
  60. package/esm/api/hooks/mutations/useCreateFunctionFromSourceMutation.d.ts +20 -0
  61. package/esm/api/hooks/mutations/useCreateFunctionFromSourceMutation.js +23 -0
  62. package/esm/api/hooks/mutations/useUpdateFunctionFromSourceMutation.d.ts +20 -0
  63. package/esm/api/hooks/mutations/useUpdateFunctionFromSourceMutation.js +23 -0
  64. package/esm/api/hooks/queries/index.d.ts +1 -4
  65. package/esm/api/hooks/queries/index.js +1 -4
  66. package/esm/api/hooks/queries/useEmailSharedAccountQuery.d.ts +45 -0
  67. package/esm/api/hooks/queries/useEmailSharedAccountQuery.js +43 -0
  68. package/esm/api/hooks/query-keys.d.ts +2 -28
  69. package/esm/api/hooks/query-keys.js +1 -16
  70. package/esm/api/orm/index.d.ts +15 -4
  71. package/esm/api/orm/index.js +0 -4
  72. package/esm/api/orm/input-types.d.ts +96 -439
  73. package/esm/api/orm/models/index.d.ts +0 -2
  74. package/esm/api/orm/models/index.js +0 -2
  75. package/esm/api/orm/mutation/index.d.ts +30 -5
  76. package/esm/api/orm/mutation/index.js +24 -0
  77. package/esm/api/orm/query/index.d.ts +5 -0
  78. package/esm/api/orm/query/index.js +7 -0
  79. package/esm/api/schema-types.d.ts +39 -273
  80. package/esm/api/types.d.ts +3 -28
  81. package/esm/auth/orm/input-types.d.ts +5 -29
  82. package/esm/auth/orm/mutation/index.d.ts +5 -4
  83. package/esm/auth/schema-types.d.ts +4 -16
  84. package/esm/compute/orm/input-types.d.ts +50 -6
  85. package/esm/compute/orm/mutation/index.d.ts +5 -4
  86. package/esm/compute/schema-types.d.ts +29 -5
  87. package/esm/compute/types.d.ts +4 -0
  88. package/esm/config/orm/input-types.d.ts +4 -4
  89. package/esm/config/orm/mutation/index.d.ts +5 -4
  90. package/esm/config/schema-types.d.ts +3 -3
  91. package/esm/infra/orm/input-types.d.ts +4 -4
  92. package/esm/infra/orm/mutation/index.d.ts +5 -4
  93. package/esm/infra/schema-types.d.ts +3 -3
  94. package/esm/modules/orm/input-types.d.ts +72 -21
  95. package/esm/modules/orm/mutation/index.d.ts +6 -5
  96. package/esm/modules/schema-types.d.ts +41 -15
  97. package/esm/modules/types.d.ts +8 -1
  98. package/esm/objects/orm/input-types.d.ts +4 -4
  99. package/esm/objects/orm/mutation/index.d.ts +5 -4
  100. package/esm/objects/schema-types.d.ts +3 -3
  101. package/esm/remote/orm/input-types.d.ts +4 -4
  102. package/esm/remote/orm/mutation/index.d.ts +5 -4
  103. package/esm/remote/schema-types.d.ts +3 -3
  104. package/esm/storage/orm/input-types.d.ts +34 -6
  105. package/esm/storage/orm/mutation/index.d.ts +7 -6
  106. package/esm/storage/schema-types.d.ts +17 -5
  107. package/esm/storage/types.d.ts +4 -0
  108. package/esm/usage/orm/input-types.d.ts +4 -4
  109. package/esm/usage/orm/mutation/index.d.ts +5 -4
  110. package/esm/usage/schema-types.d.ts +3 -3
  111. package/infra/orm/input-types.d.ts +4 -4
  112. package/infra/orm/mutation/index.d.ts +5 -4
  113. package/infra/schema-types.d.ts +3 -3
  114. package/modules/orm/input-types.d.ts +72 -21
  115. package/modules/orm/mutation/index.d.ts +6 -5
  116. package/modules/schema-types.d.ts +41 -15
  117. package/modules/types.d.ts +8 -1
  118. package/objects/orm/input-types.d.ts +4 -4
  119. package/objects/orm/mutation/index.d.ts +5 -4
  120. package/objects/schema-types.d.ts +3 -3
  121. package/package.json +4 -4
  122. package/remote/orm/input-types.d.ts +4 -4
  123. package/remote/orm/mutation/index.d.ts +5 -4
  124. package/remote/schema-types.d.ts +3 -3
  125. package/storage/orm/input-types.d.ts +34 -6
  126. package/storage/orm/mutation/index.d.ts +7 -6
  127. package/storage/schema-types.d.ts +17 -5
  128. package/storage/types.d.ts +4 -0
  129. package/usage/orm/input-types.d.ts +4 -4
  130. package/usage/orm/mutation/index.d.ts +5 -4
  131. package/usage/schema-types.d.ts +3 -3
  132. package/api/hooks/mutations/useCreateHostnameBindingMutation.d.ts +0 -34
  133. package/api/hooks/mutations/useCreateRouteBindingMutation.d.ts +0 -34
  134. package/api/hooks/mutations/useCreateRouteBindingMutation.js +0 -34
  135. package/api/hooks/mutations/useDeleteHostnameBindingMutation.d.ts +0 -38
  136. package/api/hooks/mutations/useDeleteHostnameBindingMutation.js +0 -39
  137. package/api/hooks/mutations/useDeleteRouteBindingMutation.d.ts +0 -38
  138. package/api/hooks/mutations/useDeleteRouteBindingMutation.js +0 -39
  139. package/api/hooks/mutations/useUpdateHostnameBindingMutation.d.ts +0 -40
  140. package/api/hooks/mutations/useUpdateHostnameBindingMutation.js +0 -40
  141. package/api/hooks/mutations/useUpdateRouteBindingMutation.d.ts +0 -40
  142. package/api/hooks/mutations/useUpdateRouteBindingMutation.js +0 -40
  143. package/api/hooks/queries/useHostnameBindingQuery.d.ts +0 -65
  144. package/api/hooks/queries/useHostnameBindingQuery.js +0 -53
  145. package/api/hooks/queries/useHostnameBindingsQuery.d.ts +0 -69
  146. package/api/hooks/queries/useHostnameBindingsQuery.js +0 -38
  147. package/api/hooks/queries/useRouteBindingQuery.d.ts +0 -65
  148. package/api/hooks/queries/useRouteBindingQuery.js +0 -53
  149. package/api/hooks/queries/useRouteBindingsQuery.d.ts +0 -69
  150. package/api/hooks/queries/useRouteBindingsQuery.js +0 -38
  151. package/api/orm/models/hostnameBinding.d.ts +0 -54
  152. package/api/orm/models/hostnameBinding.js +0 -104
  153. package/api/orm/models/routeBinding.d.ts +0 -54
  154. package/api/orm/models/routeBinding.js +0 -104
  155. package/esm/api/hooks/mutations/useCreateHostnameBindingMutation.d.ts +0 -34
  156. package/esm/api/hooks/mutations/useCreateHostnameBindingMutation.js +0 -31
  157. package/esm/api/hooks/mutations/useCreateRouteBindingMutation.d.ts +0 -34
  158. package/esm/api/hooks/mutations/useCreateRouteBindingMutation.js +0 -31
  159. package/esm/api/hooks/mutations/useDeleteHostnameBindingMutation.d.ts +0 -38
  160. package/esm/api/hooks/mutations/useDeleteHostnameBindingMutation.js +0 -36
  161. package/esm/api/hooks/mutations/useDeleteRouteBindingMutation.d.ts +0 -38
  162. package/esm/api/hooks/mutations/useDeleteRouteBindingMutation.js +0 -36
  163. package/esm/api/hooks/mutations/useUpdateHostnameBindingMutation.d.ts +0 -40
  164. package/esm/api/hooks/mutations/useUpdateHostnameBindingMutation.js +0 -37
  165. package/esm/api/hooks/mutations/useUpdateRouteBindingMutation.d.ts +0 -40
  166. package/esm/api/hooks/mutations/useUpdateRouteBindingMutation.js +0 -37
  167. package/esm/api/hooks/queries/useHostnameBindingQuery.d.ts +0 -65
  168. package/esm/api/hooks/queries/useHostnameBindingQuery.js +0 -47
  169. package/esm/api/hooks/queries/useHostnameBindingsQuery.d.ts +0 -69
  170. package/esm/api/hooks/queries/useHostnameBindingsQuery.js +0 -32
  171. package/esm/api/hooks/queries/useRouteBindingQuery.d.ts +0 -65
  172. package/esm/api/hooks/queries/useRouteBindingQuery.js +0 -47
  173. package/esm/api/hooks/queries/useRouteBindingsQuery.d.ts +0 -69
  174. package/esm/api/hooks/queries/useRouteBindingsQuery.js +0 -32
  175. package/esm/api/orm/models/hostnameBinding.d.ts +0 -54
  176. package/esm/api/orm/models/hostnameBinding.js +0 -100
  177. package/esm/api/orm/models/routeBinding.d.ts +0 -54
  178. package/esm/api/orm/models/routeBinding.js +0 -100
@@ -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;
@@ -6,13 +6,13 @@
6
6
  import type { Bucket, File, PlatformBucket, PlatformFile, BigIntFilter, BooleanFilter, DatetimeFilter, StringFilter, StringListFilter, UUIDFilter } from './types';
7
7
  export type ConstructiveInternalTypeUpload = unknown;
8
8
  /** Methods to use when ordering `Bucket`. */
9
- 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';
9
+ 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';
10
10
  export type BucketType = 'PRIVATE' | 'PUBLIC' | 'TEMP';
11
11
  /** Methods to use when ordering `File`. */
12
12
  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';
13
13
  export type FileStatus = 'EXPIRED' | 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED';
14
14
  /** Methods to use when ordering `PlatformBucket`. */
15
- 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';
15
+ 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';
16
16
  /** Methods to use when ordering `PlatformFile`. */
17
17
  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';
18
18
  /** A filter to be used against `Bucket` object types. All fields are combined with a logical ‘and.’ */
@@ -61,6 +61,8 @@ export interface BucketFilter {
61
61
  or?: BucketFilter[];
62
62
  /** Filter by the object’s `physicalName` field. */
63
63
  physicalName?: StringFilter;
64
+ /** Filter by the object’s `provisionRequestedAt` field. */
65
+ provisionRequestedAt?: DatetimeFilter;
64
66
  /** Filter by the object’s `stagingTtl` field. */
65
67
  stagingTtl?: IntervalFilter;
66
68
  /** Filter by the object’s `tags` field. */
@@ -96,6 +98,8 @@ export interface BucketInput {
96
98
  maxFileSize?: string;
97
99
  /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */
98
100
  physicalName?: string;
101
+ /** When re-provisioning was last requested (provisionBucket); NULL until requested */
102
+ provisionRequestedAt?: string;
99
103
  /** 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. */
100
104
  stagingTtl?: IntervalInput;
101
105
  /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */
@@ -130,6 +134,8 @@ export interface BucketPatch {
130
134
  maxFileSize?: string;
131
135
  /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */
132
136
  physicalName?: string;
137
+ /** When re-provisioning was last requested (provisionBucket); NULL until requested */
138
+ provisionRequestedAt?: string;
133
139
  /** 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. */
134
140
  stagingTtl?: IntervalInput;
135
141
  /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */
@@ -487,6 +493,8 @@ export interface PlatformBucketFilter {
487
493
  platformFilesByBucketId?: PlatformBucketToManyPlatformFileFilter;
488
494
  /** `platformFilesByBucketId` exist. */
489
495
  platformFilesByBucketIdExist?: boolean;
496
+ /** Filter by the object’s `provisionRequestedAt` field. */
497
+ provisionRequestedAt?: DatetimeFilter;
490
498
  /** Filter by the object’s `stagingTtl` field. */
491
499
  stagingTtl?: IntervalFilter;
492
500
  /** Filter by the object’s `tags` field. */
@@ -520,6 +528,8 @@ export interface PlatformBucketInput {
520
528
  maxFileSize?: string;
521
529
  /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */
522
530
  physicalName?: string;
531
+ /** When re-provisioning was last requested (provisionBucket); NULL until requested */
532
+ provisionRequestedAt?: string;
523
533
  /** 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. */
524
534
  stagingTtl?: IntervalInput;
525
535
  /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */
@@ -552,6 +562,8 @@ export interface PlatformBucketPatch {
552
562
  maxFileSize?: string;
553
563
  /** Physical S3/MinIO bucket name recorded at provision time (NULL until the physical bucket exists) */
554
564
  physicalName?: string;
565
+ /** When re-provisioning was last requested (provisionBucket); NULL until requested */
566
+ provisionRequestedAt?: string;
555
567
  /** 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. */
556
568
  stagingTtl?: IntervalInput;
557
569
  /** Selector labels for capability resolution and grouping (e.g. uploads, variants, exports). A function's required bucket key is matched against these plus type. */
@@ -892,13 +904,13 @@ export interface PlatformFilesRenamePayload {
892
904
  result?: PlatformFile | null;
893
905
  }
894
906
  export interface ProvisionBucketPayload {
895
- /** The logical bucket row that was queued for reconciliation. */
907
+ /** The logical bucket row whose reconciliation was requested. */
896
908
  bucketId: string;
897
909
  bucketKey: string;
898
- /** The reconciler job enqueued to provision this bucket. */
899
- jobId: string;
900
910
  /** The physical bucket name already recorded, or null when reconciliation has not completed. */
901
911
  physicalName?: string | null;
912
+ /** When reconciliation was last requested for this bucket. */
913
+ provisionRequestedAt: string;
902
914
  }
903
915
  export interface UpdateBucketPayload {
904
916
  /** The `Bucket` that was updated by this mutation. */
@@ -17,8 +17,10 @@ export interface Bucket {
17
17
  id: string | null;
18
18
  isPublic: boolean | null;
19
19
  key: string | null;
20
+ maxBulkFiles: number | null;
20
21
  maxFileSize: string | null;
21
22
  physicalName: string | null;
23
+ provisionRequestedAt: string | null;
22
24
  stagingTtl: string | null;
23
25
  tags: string[] | null;
24
26
  type: BucketType | null;
@@ -57,8 +59,10 @@ export interface PlatformBucket {
57
59
  id: string | null;
58
60
  isPublic: boolean | null;
59
61
  key: string | null;
62
+ maxBulkFiles: number | null;
60
63
  maxFileSize: string | null;
61
64
  physicalName: string | null;
65
+ provisionRequestedAt: string | null;
62
66
  stagingTtl: string | null;
63
67
  tags: string[] | null;
64
68
  type: BucketType | null;
@@ -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;
@@ -1821,13 +1821,13 @@ export interface DeleteOrgLimitWarningPayload {
1821
1821
  orgLimitWarningEdge?: OrgLimitWarningEdge | null;
1822
1822
  }
1823
1823
  export interface ProvisionBucketPayload {
1824
- /** The logical bucket row that was queued for reconciliation. */
1824
+ /** The logical bucket row whose reconciliation was requested. */
1825
1825
  bucketId: string;
1826
1826
  bucketKey: string;
1827
- /** The reconciler job enqueued to provision this bucket. */
1828
- jobId: string;
1829
1827
  /** The physical bucket name already recorded, or null when reconciliation has not completed. */
1830
1828
  physicalName?: string | null;
1829
+ /** When reconciliation was last requested for this bucket. */
1830
+ provisionRequestedAt: string;
1831
1831
  }
1832
1832
  export interface SeedAppLimitCapsDefaultsPayload {
1833
1833
  clientMutationId?: string | null;
@@ -1,34 +0,0 @@
1
- /**
2
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
7
- import type { HostnameBindingSelect, HostnameBindingWithRelations, CreateHostnameBindingInput } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { HostnameBindingSelect, HostnameBindingWithRelations, CreateHostnameBindingInput, } from '../../orm/input-types';
10
- /**
11
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
12
- *
13
- * @example
14
- * ```tsx
15
- * const { mutate, isPending } = useCreateHostnameBindingMutation({
16
- * selection: { fields: { id: true, name: true } },
17
- * });
18
- *
19
- * mutate({ name: 'New item' });
20
- * ```
21
- */
22
- export declare function useCreateHostnameBindingMutation<S extends HostnameBindingSelect>(params: {
23
- selection: {
24
- fields: S & HostnameBindingSelect;
25
- } & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
26
- } & Omit<UseMutationOptions<{
27
- createHostnameBinding: {
28
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
29
- };
30
- }, Error, CreateHostnameBindingInput['hostnameBinding']>, 'mutationFn'>): UseMutationResult<{
31
- createHostnameBinding: {
32
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
33
- };
34
- }, Error, CreateHostnameBindingInput['hostnameBinding']>;
@@ -1,34 +0,0 @@
1
- /**
2
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
7
- import type { RouteBindingSelect, RouteBindingWithRelations, CreateRouteBindingInput } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { RouteBindingSelect, RouteBindingWithRelations, CreateRouteBindingInput, } from '../../orm/input-types';
10
- /**
11
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
12
- *
13
- * @example
14
- * ```tsx
15
- * const { mutate, isPending } = useCreateRouteBindingMutation({
16
- * selection: { fields: { id: true, name: true } },
17
- * });
18
- *
19
- * mutate({ name: 'New item' });
20
- * ```
21
- */
22
- export declare function useCreateRouteBindingMutation<S extends RouteBindingSelect>(params: {
23
- selection: {
24
- fields: S & RouteBindingSelect;
25
- } & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
26
- } & Omit<UseMutationOptions<{
27
- createRouteBinding: {
28
- routeBinding: InferSelectResult<RouteBindingWithRelations, S>;
29
- };
30
- }, Error, CreateRouteBindingInput['routeBinding']>, 'mutationFn'>): UseMutationResult<{
31
- createRouteBinding: {
32
- routeBinding: InferSelectResult<RouteBindingWithRelations, S>;
33
- };
34
- }, Error, CreateRouteBindingInput['routeBinding']>;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- /**
3
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
4
- * @generated by @constructive-io/graphql-codegen
5
- * DO NOT EDIT - changes will be overwritten
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.useCreateRouteBindingMutation = useCreateRouteBindingMutation;
9
- const react_query_1 = require("@tanstack/react-query");
10
- const client_1 = require("../client");
11
- const selection_1 = require("../selection");
12
- const query_keys_1 = require("../query-keys");
13
- const mutation_keys_1 = require("../mutation-keys");
14
- function useCreateRouteBindingMutation(params) {
15
- const args = (0, selection_1.buildSelectionArgs)(params.selection);
16
- const { selection: _selection, ...mutationOptions } = params ?? {};
17
- void _selection;
18
- const queryClient = (0, react_query_1.useQueryClient)();
19
- return (0, react_query_1.useMutation)({
20
- mutationKey: mutation_keys_1.routeBindingMutationKeys.create(),
21
- mutationFn: (data) => (0, client_1.getClient)()
22
- .routeBinding.create({
23
- data,
24
- select: args.select,
25
- })
26
- .unwrap(),
27
- onSuccess: () => {
28
- queryClient.invalidateQueries({
29
- queryKey: query_keys_1.routeBindingKeys.lists(),
30
- });
31
- },
32
- ...mutationOptions,
33
- });
34
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
7
- import type { HostnameBindingSelect, HostnameBindingWithRelations } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { HostnameBindingSelect, HostnameBindingWithRelations } from '../../orm/input-types';
10
- /**
11
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
12
- *
13
- * @example
14
- * ```tsx
15
- * const { mutate, isPending } = useDeleteHostnameBindingMutation({
16
- * selection: { fields: { id: true } },
17
- * });
18
- *
19
- * mutate({ id: 'value-to-delete' });
20
- * ```
21
- */
22
- export declare function useDeleteHostnameBindingMutation<S extends HostnameBindingSelect>(params: {
23
- selection: {
24
- fields: S & HostnameBindingSelect;
25
- } & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
26
- } & Omit<UseMutationOptions<{
27
- deleteHostnameBinding: {
28
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
29
- };
30
- }, Error, {
31
- id: string;
32
- }>, 'mutationFn'>): UseMutationResult<{
33
- deleteHostnameBinding: {
34
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
35
- };
36
- }, Error, {
37
- id: string;
38
- }>;
@@ -1,39 +0,0 @@
1
- "use strict";
2
- /**
3
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
4
- * @generated by @constructive-io/graphql-codegen
5
- * DO NOT EDIT - changes will be overwritten
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.useDeleteHostnameBindingMutation = useDeleteHostnameBindingMutation;
9
- const react_query_1 = require("@tanstack/react-query");
10
- const client_1 = require("../client");
11
- const selection_1 = require("../selection");
12
- const query_keys_1 = require("../query-keys");
13
- const mutation_keys_1 = require("../mutation-keys");
14
- function useDeleteHostnameBindingMutation(params) {
15
- const args = (0, selection_1.buildSelectionArgs)(params.selection);
16
- const { selection: _selection, ...mutationOptions } = params ?? {};
17
- void _selection;
18
- const queryClient = (0, react_query_1.useQueryClient)();
19
- return (0, react_query_1.useMutation)({
20
- mutationKey: mutation_keys_1.hostnameBindingMutationKeys.all,
21
- mutationFn: ({ id }) => (0, client_1.getClient)()
22
- .hostnameBinding.delete({
23
- where: {
24
- id,
25
- },
26
- select: args.select,
27
- })
28
- .unwrap(),
29
- onSuccess: (_, variables) => {
30
- queryClient.removeQueries({
31
- queryKey: query_keys_1.hostnameBindingKeys.detail(variables.id),
32
- });
33
- queryClient.invalidateQueries({
34
- queryKey: query_keys_1.hostnameBindingKeys.lists(),
35
- });
36
- },
37
- ...mutationOptions,
38
- });
39
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
7
- import type { RouteBindingSelect, RouteBindingWithRelations } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { RouteBindingSelect, RouteBindingWithRelations } from '../../orm/input-types';
10
- /**
11
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
12
- *
13
- * @example
14
- * ```tsx
15
- * const { mutate, isPending } = useDeleteRouteBindingMutation({
16
- * selection: { fields: { id: true } },
17
- * });
18
- *
19
- * mutate({ id: 'value-to-delete' });
20
- * ```
21
- */
22
- export declare function useDeleteRouteBindingMutation<S extends RouteBindingSelect>(params: {
23
- selection: {
24
- fields: S & RouteBindingSelect;
25
- } & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
26
- } & Omit<UseMutationOptions<{
27
- deleteRouteBinding: {
28
- routeBinding: InferSelectResult<RouteBindingWithRelations, S>;
29
- };
30
- }, Error, {
31
- id: string;
32
- }>, 'mutationFn'>): UseMutationResult<{
33
- deleteRouteBinding: {
34
- routeBinding: InferSelectResult<RouteBindingWithRelations, S>;
35
- };
36
- }, Error, {
37
- id: string;
38
- }>;