@constructive-sdk/cli 1.21.4 → 1.21.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 (165) hide show
  1. package/admin/cli/commands/provision-bucket.js +1 -1
  2. package/admin/cli/commands.js +1 -1
  3. package/admin/orm/input-types.d.ts +4 -4
  4. package/admin/orm/mutation/index.d.ts +5 -4
  5. package/agent/cli/commands/provision-bucket.js +1 -1
  6. package/agent/cli/commands.js +1 -1
  7. package/agent/orm/input-types.d.ts +4 -4
  8. package/agent/orm/mutation/index.d.ts +5 -4
  9. package/api/cli/commands/{route-binding.d.ts → create-function-from-source.d.ts} +1 -1
  10. package/api/cli/commands/create-function-from-source.js +36 -0
  11. package/api/cli/commands/{hostname-binding.d.ts → email-shared-account.d.ts} +1 -1
  12. package/api/cli/commands/email-shared-account.js +21 -0
  13. package/api/cli/commands/managed-domain.js +22 -0
  14. package/api/cli/commands/platform-managed-domain.js +22 -0
  15. package/api/cli/commands/provision-bucket.js +1 -1
  16. package/api/cli/commands/unique-constraint.js +22 -0
  17. package/{esm/api/cli/commands/route-binding.d.ts → api/cli/commands/update-function-from-source.d.ts} +1 -1
  18. package/api/cli/commands/update-function-from-source.js +36 -0
  19. package/api/cli/commands.js +7 -5
  20. package/api/cli/executor.d.ts +15 -2
  21. package/api/orm/index.d.ts +15 -4
  22. package/api/orm/index.js +0 -4
  23. package/api/orm/input-types.d.ts +96 -439
  24. package/api/orm/models/index.d.ts +0 -2
  25. package/api/orm/models/index.js +2 -6
  26. package/api/orm/mutation/index.d.ts +30 -5
  27. package/api/orm/mutation/index.js +24 -0
  28. package/api/orm/query/index.d.ts +5 -0
  29. package/api/orm/query/index.js +7 -0
  30. package/auth/cli/commands/provision-bucket.js +1 -1
  31. package/auth/cli/commands.js +1 -1
  32. package/auth/orm/input-types.d.ts +5 -29
  33. package/auth/orm/mutation/index.d.ts +5 -4
  34. package/compute/cli/commands/function-invocation.js +44 -0
  35. package/compute/cli/commands/platform-function-invocation.js +44 -0
  36. package/compute/cli/commands/provision-bucket.js +1 -1
  37. package/compute/cli/commands.js +1 -1
  38. package/compute/orm/input-types.d.ts +50 -6
  39. package/compute/orm/mutation/index.d.ts +5 -4
  40. package/config/cli/commands/provision-bucket.js +1 -1
  41. package/config/cli/commands.js +1 -1
  42. package/config/orm/input-types.d.ts +4 -4
  43. package/config/orm/mutation/index.d.ts +5 -4
  44. package/esm/admin/cli/commands/provision-bucket.js +1 -1
  45. package/esm/admin/cli/commands.js +1 -1
  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/agent/cli/commands/provision-bucket.js +1 -1
  49. package/esm/agent/cli/commands.js +1 -1
  50. package/esm/agent/orm/input-types.d.ts +4 -4
  51. package/esm/agent/orm/mutation/index.d.ts +5 -4
  52. package/esm/api/cli/commands/create-function-from-source.d.ts +8 -0
  53. package/esm/api/cli/commands/create-function-from-source.js +34 -0
  54. package/esm/api/cli/commands/{hostname-binding.d.ts → email-shared-account.d.ts} +1 -1
  55. package/esm/api/cli/commands/email-shared-account.js +19 -0
  56. package/esm/api/cli/commands/managed-domain.js +22 -0
  57. package/esm/api/cli/commands/platform-managed-domain.js +22 -0
  58. package/esm/api/cli/commands/provision-bucket.js +1 -1
  59. package/esm/api/cli/commands/unique-constraint.js +22 -0
  60. package/esm/api/cli/commands/update-function-from-source.d.ts +8 -0
  61. package/esm/api/cli/commands/update-function-from-source.js +34 -0
  62. package/esm/api/cli/commands.js +7 -5
  63. package/esm/api/cli/executor.d.ts +15 -2
  64. package/esm/api/orm/index.d.ts +15 -4
  65. package/esm/api/orm/index.js +0 -4
  66. package/esm/api/orm/input-types.d.ts +96 -439
  67. package/esm/api/orm/models/index.d.ts +0 -2
  68. package/esm/api/orm/models/index.js +0 -2
  69. package/esm/api/orm/mutation/index.d.ts +30 -5
  70. package/esm/api/orm/mutation/index.js +24 -0
  71. package/esm/api/orm/query/index.d.ts +5 -0
  72. package/esm/api/orm/query/index.js +7 -0
  73. package/esm/auth/cli/commands/provision-bucket.js +1 -1
  74. package/esm/auth/cli/commands.js +1 -1
  75. package/esm/auth/orm/input-types.d.ts +5 -29
  76. package/esm/auth/orm/mutation/index.d.ts +5 -4
  77. package/esm/compute/cli/commands/function-invocation.js +44 -0
  78. package/esm/compute/cli/commands/platform-function-invocation.js +44 -0
  79. package/esm/compute/cli/commands/provision-bucket.js +1 -1
  80. package/esm/compute/cli/commands.js +1 -1
  81. package/esm/compute/orm/input-types.d.ts +50 -6
  82. package/esm/compute/orm/mutation/index.d.ts +5 -4
  83. package/esm/config/cli/commands/provision-bucket.js +1 -1
  84. package/esm/config/cli/commands.js +1 -1
  85. package/esm/config/orm/input-types.d.ts +4 -4
  86. package/esm/config/orm/mutation/index.d.ts +5 -4
  87. package/esm/infra/cli/commands/provision-bucket.js +1 -1
  88. package/esm/infra/cli/commands.js +1 -1
  89. package/esm/infra/orm/input-types.d.ts +4 -4
  90. package/esm/infra/orm/mutation/index.d.ts +5 -4
  91. package/esm/modules/cli/commands/billing-provider-module.js +110 -0
  92. package/esm/modules/cli/commands/blueprint-construction.js +0 -22
  93. package/esm/modules/cli/commands/catalog-module.js +44 -0
  94. package/esm/modules/cli/commands/construct-blueprint.js +1 -1
  95. package/esm/modules/cli/commands/provision-bucket.js +1 -1
  96. package/esm/modules/cli/commands/storage-module.js +22 -0
  97. package/esm/modules/cli/commands.js +1 -1
  98. package/esm/modules/orm/input-types.d.ts +72 -21
  99. package/esm/modules/orm/mutation/index.d.ts +6 -5
  100. package/esm/objects/cli/commands/provision-bucket.js +1 -1
  101. package/esm/objects/cli/commands.js +1 -1
  102. package/esm/objects/orm/input-types.d.ts +4 -4
  103. package/esm/objects/orm/mutation/index.d.ts +5 -4
  104. package/esm/remote/cli/commands/provision-bucket.js +1 -1
  105. package/esm/remote/cli/commands.js +1 -1
  106. package/esm/remote/orm/input-types.d.ts +4 -4
  107. package/esm/remote/orm/mutation/index.d.ts +5 -4
  108. package/esm/storage/cli/commands/bucket.js +23 -0
  109. package/esm/storage/cli/commands/platform-bucket.js +23 -0
  110. package/esm/storage/cli/commands/provision-bucket.js +1 -1
  111. package/esm/storage/cli/commands/upload-files.js +1 -1
  112. package/esm/storage/cli/commands/upload-platform-files.js +1 -1
  113. package/esm/storage/cli/commands.js +1 -1
  114. package/esm/storage/orm/input-types.d.ts +34 -6
  115. package/esm/storage/orm/mutation/index.d.ts +7 -6
  116. package/esm/usage/cli/commands/provision-bucket.js +1 -1
  117. package/esm/usage/cli/commands.js +1 -1
  118. package/esm/usage/orm/input-types.d.ts +4 -4
  119. package/esm/usage/orm/mutation/index.d.ts +5 -4
  120. package/infra/cli/commands/provision-bucket.js +1 -1
  121. package/infra/cli/commands.js +1 -1
  122. package/infra/orm/input-types.d.ts +4 -4
  123. package/infra/orm/mutation/index.d.ts +5 -4
  124. package/modules/cli/commands/billing-provider-module.js +110 -0
  125. package/modules/cli/commands/blueprint-construction.js +0 -22
  126. package/modules/cli/commands/catalog-module.js +44 -0
  127. package/modules/cli/commands/construct-blueprint.js +1 -1
  128. package/modules/cli/commands/provision-bucket.js +1 -1
  129. package/modules/cli/commands/storage-module.js +22 -0
  130. package/modules/cli/commands.js +1 -1
  131. package/modules/orm/input-types.d.ts +72 -21
  132. package/modules/orm/mutation/index.d.ts +6 -5
  133. package/objects/cli/commands/provision-bucket.js +1 -1
  134. package/objects/cli/commands.js +1 -1
  135. package/objects/orm/input-types.d.ts +4 -4
  136. package/objects/orm/mutation/index.d.ts +5 -4
  137. package/package.json +4 -4
  138. package/remote/cli/commands/provision-bucket.js +1 -1
  139. package/remote/cli/commands.js +1 -1
  140. package/remote/orm/input-types.d.ts +4 -4
  141. package/remote/orm/mutation/index.d.ts +5 -4
  142. package/storage/cli/commands/bucket.js +23 -0
  143. package/storage/cli/commands/platform-bucket.js +23 -0
  144. package/storage/cli/commands/provision-bucket.js +1 -1
  145. package/storage/cli/commands/upload-files.js +1 -1
  146. package/storage/cli/commands/upload-platform-files.js +1 -1
  147. package/storage/cli/commands.js +1 -1
  148. package/storage/orm/input-types.d.ts +34 -6
  149. package/storage/orm/mutation/index.d.ts +7 -6
  150. package/usage/cli/commands/provision-bucket.js +1 -1
  151. package/usage/cli/commands.js +1 -1
  152. package/usage/orm/input-types.d.ts +4 -4
  153. package/usage/orm/mutation/index.d.ts +5 -4
  154. package/api/cli/commands/hostname-binding.js +0 -388
  155. package/api/cli/commands/route-binding.js +0 -476
  156. package/api/orm/models/hostnameBinding.d.ts +0 -54
  157. package/api/orm/models/hostnameBinding.js +0 -104
  158. package/api/orm/models/routeBinding.d.ts +0 -54
  159. package/api/orm/models/routeBinding.js +0 -104
  160. package/esm/api/cli/commands/hostname-binding.js +0 -386
  161. package/esm/api/cli/commands/route-binding.js +0 -474
  162. package/esm/api/orm/models/hostnameBinding.d.ts +0 -54
  163. package/esm/api/orm/models/hostnameBinding.js +0 -100
  164. package/esm/api/orm/models/routeBinding.d.ts +0 -54
  165. package/esm/api/orm/models/routeBinding.js +0 -100
@@ -384,7 +384,7 @@ const createCommandMap = () => ({
384
384
  'start-execution': startExecutionCmd,
385
385
  'validate-function-graph': validateFunctionGraphCmd,
386
386
  });
387
- const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n build build CRUD operations\n build-step buildStep CRUD operations\n builder-binding builderBinding CRUD operations\n content-preset contentPreset CRUD operations\n database-function-graph databaseFunctionGraph CRUD operations\n database-function-graph-execution-cancel-request databaseFunctionGraphExecutionCancelRequest CRUD operations\n database-function-graph-execution databaseFunctionGraphExecution CRUD operations\n database-function-graph-execution-node-state databaseFunctionGraphExecutionNodeState CRUD operations\n database-function-graph-execution-output databaseFunctionGraphExecutionOutput CRUD operations\n database-graph-commit databaseGraphCommit CRUD operations\n database-graph-get-all-tree-nodes-record databaseGraphGetAllTreeNodesRecord CRUD operations\n database-graph-object databaseGraphObject CRUD operations\n database-graph-ref databaseGraphRef CRUD operations\n database-graph-store databaseGraphStore CRUD operations\n db-preset dbPreset CRUD operations\n function-api-binding functionApiBinding CRUD operations\n function-capability-binding functionCapabilityBinding CRUD operations\n function-definition functionDefinition CRUD operations\n function-deployment functionDeployment CRUD operations\n function-deployment-event functionDeploymentEvent CRUD operations\n function-execution-log functionExecutionLog CRUD operations\n function-graph-commit functionGraphCommit CRUD operations\n function-graph functionGraph CRUD operations\n function-graph-execution-cancel-request functionGraphExecutionCancelRequest CRUD operations\n function-graph-execution functionGraphExecution CRUD operations\n function-graph-execution-node-state functionGraphExecutionNodeState CRUD operations\n function-graph-execution-output functionGraphExecutionOutput CRUD operations\n function-graph-object functionGraphObject CRUD operations\n function-graph-ref functionGraphRef CRUD operations\n function-graph-store functionGraphStore CRUD operations\n function-invocation-attempt functionInvocationAttempt CRUD operations\n function-invocation functionInvocation CRUD operations\n function-schedule functionSchedule CRUD operations\n get-all-tree-nodes-record getAllTreeNodesRecord CRUD operations\n image image CRUD operations\n image-grant imageGrant CRUD operations\n infra-commit infraCommit CRUD operations\n infra-get-all-tree-nodes-record infraGetAllTreeNodesRecord CRUD operations\n infra-object infraObject CRUD operations\n infra-ref infraRef CRUD operations\n infra-store infraStore CRUD operations\n integration-provider integrationProvider CRUD operations\n namespace namespace CRUD operations\n namespace-event namespaceEvent CRUD operations\n platform-build platformBuild CRUD operations\n platform-build-step platformBuildStep CRUD operations\n platform-builder-binding platformBuilderBinding CRUD operations\n platform-function-api-binding platformFunctionApiBinding CRUD operations\n platform-function-capability-binding platformFunctionCapabilityBinding CRUD operations\n platform-function-definition platformFunctionDefinition CRUD operations\n platform-function-deployment platformFunctionDeployment CRUD operations\n platform-function-deployment-event platformFunctionDeploymentEvent CRUD operations\n platform-function-execution-log platformFunctionExecutionLog CRUD operations\n platform-function-invocation-attempt platformFunctionInvocationAttempt CRUD operations\n platform-function-invocation platformFunctionInvocation CRUD operations\n platform-function-schedule platformFunctionSchedule CRUD operations\n platform-image platformImage CRUD operations\n platform-image-grant platformImageGrant CRUD operations\n platform-infra-commit platformInfraCommit CRUD operations\n platform-infra-get-all-tree-nodes-record platformInfraGetAllTreeNodesRecord CRUD operations\n platform-infra-object platformInfraObject CRUD operations\n platform-infra-ref platformInfraRef CRUD operations\n platform-infra-store platformInfraStore CRUD operations\n platform-k-8-s-resource-kind platformK8sResourceKind CRUD operations\n platform-k-8-s-spec-rule platformK8sSpecRule CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-proposal-comment platformProposalComment CRUD operations\n platform-proposal platformProposal CRUD operations\n platform-proposal-file-view platformProposalFileView CRUD operations\n platform-proposal-reaction platformProposalReaction CRUD operations\n platform-proposal-review platformProposalReview CRUD operations\n platform-proposals-chunk platformProposalsChunk CRUD operations\n platform-registry-binding platformRegistryBinding CRUD operations\n platform-registry platformRegistry CRUD operations\n platform-registry-grant platformRegistryGrant CRUD operations\n platform-repository platformRepository CRUD operations\n platform-repository-event platformRepositoryEvent CRUD operations\n platform-repository-required-check platformRepositoryRequiredCheck CRUD operations\n platform-repository-workflow platformRepositoryWorkflow CRUD operations\n platform-resource platformResource CRUD operations\n platform-resource-declared-capacity platformResourceDeclaredCapacity CRUD operations\n platform-resource-definition platformResourceDefinition CRUD operations\n platform-resource-event platformResourceEvent CRUD operations\n platform-resource-installation platformResourceInstallation CRUD operations\n platform-resource-observed-storage platformResourceObservedStorage CRUD operations\n platform-resource-status-check platformResourceStatusCheck CRUD operations\n platform-resource-usage-log platformResourceUsageLog CRUD operations\n platform-resource-usage-summary platformResourceUsageSummary CRUD operations\n platform-resource-utilization platformResourceUtilization CRUD operations\n platform-resources-health platformResourcesHealth CRUD operations\n platform-resources-requirements-state platformResourcesRequirementsState CRUD operations\n platform-resources-resolved-requirement platformResourcesResolvedRequirement CRUD operations\n platform-webhook-endpoint platformWebhookEndpoint CRUD operations\n platform-webhook-event platformWebhookEvent CRUD operations\n proposal-comment proposalComment CRUD operations\n proposal proposal CRUD operations\n proposal-file-view proposalFileView CRUD operations\n proposal-reaction proposalReaction CRUD operations\n proposal-review proposalReview CRUD operations\n proposals-chunk proposalsChunk CRUD operations\n registry-binding registryBinding CRUD operations\n registry registry CRUD operations\n registry-grant registryGrant CRUD operations\n repository repository CRUD operations\n repository-event repositoryEvent CRUD operations\n repository-required-check repositoryRequiredCheck CRUD operations\n repository-workflow repositoryWorkflow CRUD operations\n resource resource CRUD operations\n resource-declared-capacity resourceDeclaredCapacity CRUD operations\n resource-definition resourceDefinition CRUD operations\n resource-event resourceEvent CRUD operations\n resource-installation resourceInstallation CRUD operations\n resource-observed-storage resourceObservedStorage CRUD operations\n resource-status-check resourceStatusCheck CRUD operations\n resource-usage-log resourceUsageLog CRUD operations\n resource-usage-summary resourceUsageSummary CRUD operations\n resource-utilization resourceUtilization CRUD operations\n resources-health resourcesHealth CRUD operations\n resources-requirements-state resourcesRequirementsState CRUD operations\n resources-resolved-requirement resourcesResolvedRequirement CRUD operations\n webhook-endpoint webhookEndpoint CRUD operations\n webhook-event webhookEvent CRUD operations\n database-read-function-graph databaseReadFunctionGraph\n read-function-graph readFunctionGraph\n add-edge addEdge\n add-edge-and-save addEdgeAndSave\n add-node addNode\n add-node-and-save addNodeAndSave\n approve-node approveNode\n copy-graph copyGraph\n database-add-edge databaseAddEdge\n database-add-edge-and-save databaseAddEdgeAndSave\n database-add-node databaseAddNode\n database-add-node-and-save databaseAddNodeAndSave\n database-approve-node databaseApproveNode\n database-copy-graph databaseCopyGraph\n database-create-function-graph databaseCreateFunctionGraph\n database-graph-init-empty-repo databaseGraphInitEmptyRepo\n database-graph-insert-node-at-path databaseGraphInsertNodeAtPath\n database-graph-insert-nodes-at-paths databaseGraphInsertNodesAtPaths\n database-graph-set-and-commit databaseGraphSetAndCommit\n database-graph-set-data-at-path databaseGraphSetDataAtPath\n database-graph-set-many-and-commit databaseGraphSetManyAndCommit\n database-import-definitions databaseImportDefinitions\n database-import-graph-json databaseImportGraphJson\n database-save-graph databaseSaveGraph\n database-start-execution databaseStartExecution\n database-validate-function-graph databaseValidateFunctionGraph\n function-execution-logs-append functionExecutionLogsAppend\n function-invocations-create-page functionInvocationsCreatePage\n function-invocations-create-sync functionInvocationsCreateSync\n import-definitions importDefinitions\n import-graph-json importGraphJson\n infra-init-empty-repo infraInitEmptyRepo\n infra-insert-node-at-path infraInsertNodeAtPath\n infra-insert-nodes-at-paths infraInsertNodesAtPaths\n infra-set-and-commit infraSetAndCommit\n infra-set-data-at-path infraSetDataAtPath\n infra-set-many-and-commit infraSetManyAndCommit\n init-empty-repo initEmptyRepo\n insert-node-at-path insertNodeAtPath\n insert-nodes-at-paths insertNodesAtPaths\n platform-function-execution-logs-append platformFunctionExecutionLogsAppend\n platform-function-invocations-create-page platformFunctionInvocationsCreatePage\n platform-function-invocations-create-sync platformFunctionInvocationsCreateSync\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-insert-nodes-at-paths platformInfraInsertNodesAtPaths\n platform-infra-set-and-commit platformInfraSetAndCommit\n platform-infra-set-data-at-path platformInfraSetDataAtPath\n platform-infra-set-many-and-commit platformInfraSetManyAndCommit\n platform-resource-installations-install platformResourceInstallationsInstall\n platform-resource-installations-rollback platformResourceInstallationsRollback\n platform-resource-installations-uninstall platformResourceInstallationsUninstall\n platform-resource-installations-upgrade platformResourceInstallationsUpgrade\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n resource-installations-install resourceInstallationsInstall\n resource-installations-rollback resourceInstallationsRollback\n resource-installations-uninstall resourceInstallationsUninstall\n resource-installations-upgrade resourceInstallationsUpgrade\n save-graph saveGraph\n set-and-commit setAndCommit\n set-data-at-path setDataAtPath\n set-many-and-commit setManyAndCommit\n start-execution startExecution\n validate-function-graph validateFunctionGraph\n\n --help, -h Show this help message\n --version, -v Show version\n';
387
+ const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n build build CRUD operations\n build-step buildStep CRUD operations\n builder-binding builderBinding CRUD operations\n content-preset contentPreset CRUD operations\n database-function-graph databaseFunctionGraph CRUD operations\n database-function-graph-execution-cancel-request databaseFunctionGraphExecutionCancelRequest CRUD operations\n database-function-graph-execution databaseFunctionGraphExecution CRUD operations\n database-function-graph-execution-node-state databaseFunctionGraphExecutionNodeState CRUD operations\n database-function-graph-execution-output databaseFunctionGraphExecutionOutput CRUD operations\n database-graph-commit databaseGraphCommit CRUD operations\n database-graph-get-all-tree-nodes-record databaseGraphGetAllTreeNodesRecord CRUD operations\n database-graph-object databaseGraphObject CRUD operations\n database-graph-ref databaseGraphRef CRUD operations\n database-graph-store databaseGraphStore CRUD operations\n db-preset dbPreset CRUD operations\n function-api-binding functionApiBinding CRUD operations\n function-capability-binding functionCapabilityBinding CRUD operations\n function-definition functionDefinition CRUD operations\n function-deployment functionDeployment CRUD operations\n function-deployment-event functionDeploymentEvent CRUD operations\n function-execution-log functionExecutionLog CRUD operations\n function-graph-commit functionGraphCommit CRUD operations\n function-graph functionGraph CRUD operations\n function-graph-execution-cancel-request functionGraphExecutionCancelRequest CRUD operations\n function-graph-execution functionGraphExecution CRUD operations\n function-graph-execution-node-state functionGraphExecutionNodeState CRUD operations\n function-graph-execution-output functionGraphExecutionOutput CRUD operations\n function-graph-object functionGraphObject CRUD operations\n function-graph-ref functionGraphRef CRUD operations\n function-graph-store functionGraphStore CRUD operations\n function-invocation-attempt functionInvocationAttempt CRUD operations\n function-invocation functionInvocation CRUD operations\n function-schedule functionSchedule CRUD operations\n get-all-tree-nodes-record getAllTreeNodesRecord CRUD operations\n image image CRUD operations\n image-grant imageGrant CRUD operations\n infra-commit infraCommit CRUD operations\n infra-get-all-tree-nodes-record infraGetAllTreeNodesRecord CRUD operations\n infra-object infraObject CRUD operations\n infra-ref infraRef CRUD operations\n infra-store infraStore CRUD operations\n integration-provider integrationProvider CRUD operations\n namespace namespace CRUD operations\n namespace-event namespaceEvent CRUD operations\n platform-build platformBuild CRUD operations\n platform-build-step platformBuildStep CRUD operations\n platform-builder-binding platformBuilderBinding CRUD operations\n platform-function-api-binding platformFunctionApiBinding CRUD operations\n platform-function-capability-binding platformFunctionCapabilityBinding CRUD operations\n platform-function-definition platformFunctionDefinition CRUD operations\n platform-function-deployment platformFunctionDeployment CRUD operations\n platform-function-deployment-event platformFunctionDeploymentEvent CRUD operations\n platform-function-execution-log platformFunctionExecutionLog CRUD operations\n platform-function-invocation-attempt platformFunctionInvocationAttempt CRUD operations\n platform-function-invocation platformFunctionInvocation CRUD operations\n platform-function-schedule platformFunctionSchedule CRUD operations\n platform-image platformImage CRUD operations\n platform-image-grant platformImageGrant CRUD operations\n platform-infra-commit platformInfraCommit CRUD operations\n platform-infra-get-all-tree-nodes-record platformInfraGetAllTreeNodesRecord CRUD operations\n platform-infra-object platformInfraObject CRUD operations\n platform-infra-ref platformInfraRef CRUD operations\n platform-infra-store platformInfraStore CRUD operations\n platform-k-8-s-resource-kind platformK8sResourceKind CRUD operations\n platform-k-8-s-spec-rule platformK8sSpecRule CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-proposal-comment platformProposalComment CRUD operations\n platform-proposal platformProposal CRUD operations\n platform-proposal-file-view platformProposalFileView CRUD operations\n platform-proposal-reaction platformProposalReaction CRUD operations\n platform-proposal-review platformProposalReview CRUD operations\n platform-proposals-chunk platformProposalsChunk CRUD operations\n platform-registry-binding platformRegistryBinding CRUD operations\n platform-registry platformRegistry CRUD operations\n platform-registry-grant platformRegistryGrant CRUD operations\n platform-repository platformRepository CRUD operations\n platform-repository-event platformRepositoryEvent CRUD operations\n platform-repository-required-check platformRepositoryRequiredCheck CRUD operations\n platform-repository-workflow platformRepositoryWorkflow CRUD operations\n platform-resource platformResource CRUD operations\n platform-resource-declared-capacity platformResourceDeclaredCapacity CRUD operations\n platform-resource-definition platformResourceDefinition CRUD operations\n platform-resource-event platformResourceEvent CRUD operations\n platform-resource-installation platformResourceInstallation CRUD operations\n platform-resource-observed-storage platformResourceObservedStorage CRUD operations\n platform-resource-status-check platformResourceStatusCheck CRUD operations\n platform-resource-usage-log platformResourceUsageLog CRUD operations\n platform-resource-usage-summary platformResourceUsageSummary CRUD operations\n platform-resource-utilization platformResourceUtilization CRUD operations\n platform-resources-health platformResourcesHealth CRUD operations\n platform-resources-requirements-state platformResourcesRequirementsState CRUD operations\n platform-resources-resolved-requirement platformResourcesResolvedRequirement CRUD operations\n platform-webhook-endpoint platformWebhookEndpoint CRUD operations\n platform-webhook-event platformWebhookEvent CRUD operations\n proposal-comment proposalComment CRUD operations\n proposal proposal CRUD operations\n proposal-file-view proposalFileView CRUD operations\n proposal-reaction proposalReaction CRUD operations\n proposal-review proposalReview CRUD operations\n proposals-chunk proposalsChunk CRUD operations\n registry-binding registryBinding CRUD operations\n registry registry CRUD operations\n registry-grant registryGrant CRUD operations\n repository repository CRUD operations\n repository-event repositoryEvent CRUD operations\n repository-required-check repositoryRequiredCheck CRUD operations\n repository-workflow repositoryWorkflow CRUD operations\n resource resource CRUD operations\n resource-declared-capacity resourceDeclaredCapacity CRUD operations\n resource-definition resourceDefinition CRUD operations\n resource-event resourceEvent CRUD operations\n resource-installation resourceInstallation CRUD operations\n resource-observed-storage resourceObservedStorage CRUD operations\n resource-status-check resourceStatusCheck CRUD operations\n resource-usage-log resourceUsageLog CRUD operations\n resource-usage-summary resourceUsageSummary CRUD operations\n resource-utilization resourceUtilization CRUD operations\n resources-health resourcesHealth CRUD operations\n resources-requirements-state resourcesRequirementsState CRUD operations\n resources-resolved-requirement resourcesResolvedRequirement CRUD operations\n webhook-endpoint webhookEndpoint CRUD operations\n webhook-event webhookEvent CRUD operations\n database-read-function-graph databaseReadFunctionGraph\n read-function-graph readFunctionGraph\n add-edge addEdge\n add-edge-and-save addEdgeAndSave\n add-node addNode\n add-node-and-save addNodeAndSave\n approve-node approveNode\n copy-graph copyGraph\n database-add-edge databaseAddEdge\n database-add-edge-and-save databaseAddEdgeAndSave\n database-add-node databaseAddNode\n database-add-node-and-save databaseAddNodeAndSave\n database-approve-node databaseApproveNode\n database-copy-graph databaseCopyGraph\n database-create-function-graph databaseCreateFunctionGraph\n database-graph-init-empty-repo databaseGraphInitEmptyRepo\n database-graph-insert-node-at-path databaseGraphInsertNodeAtPath\n database-graph-insert-nodes-at-paths databaseGraphInsertNodesAtPaths\n database-graph-set-and-commit databaseGraphSetAndCommit\n database-graph-set-data-at-path databaseGraphSetDataAtPath\n database-graph-set-many-and-commit databaseGraphSetManyAndCommit\n database-import-definitions databaseImportDefinitions\n database-import-graph-json databaseImportGraphJson\n database-save-graph databaseSaveGraph\n database-start-execution databaseStartExecution\n database-validate-function-graph databaseValidateFunctionGraph\n function-execution-logs-append functionExecutionLogsAppend\n function-invocations-create-page functionInvocationsCreatePage\n function-invocations-create-sync functionInvocationsCreateSync\n import-definitions importDefinitions\n import-graph-json importGraphJson\n infra-init-empty-repo infraInitEmptyRepo\n infra-insert-node-at-path infraInsertNodeAtPath\n infra-insert-nodes-at-paths infraInsertNodesAtPaths\n infra-set-and-commit infraSetAndCommit\n infra-set-data-at-path infraSetDataAtPath\n infra-set-many-and-commit infraSetManyAndCommit\n init-empty-repo initEmptyRepo\n insert-node-at-path insertNodeAtPath\n insert-nodes-at-paths insertNodesAtPaths\n platform-function-execution-logs-append platformFunctionExecutionLogsAppend\n platform-function-invocations-create-page platformFunctionInvocationsCreatePage\n platform-function-invocations-create-sync platformFunctionInvocationsCreateSync\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-insert-nodes-at-paths platformInfraInsertNodesAtPaths\n platform-infra-set-and-commit platformInfraSetAndCommit\n platform-infra-set-data-at-path platformInfraSetDataAtPath\n platform-infra-set-many-and-commit platformInfraSetManyAndCommit\n platform-resource-installations-install platformResourceInstallationsInstall\n platform-resource-installations-rollback platformResourceInstallationsRollback\n platform-resource-installations-uninstall platformResourceInstallationsUninstall\n platform-resource-installations-upgrade platformResourceInstallationsUpgrade\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n resource-installations-install resourceInstallationsInstall\n resource-installations-rollback resourceInstallationsRollback\n resource-installations-uninstall resourceInstallationsUninstall\n resource-installations-upgrade resourceInstallationsUpgrade\n save-graph saveGraph\n set-and-commit setAndCommit\n set-data-at-path setDataAtPath\n set-many-and-commit setManyAndCommit\n start-execution startExecution\n validate-function-graph validateFunctionGraph\n\n --help, -h Show this help message\n --version, -v Show version\n";
388
388
  export const commands = async (argv, prompter, options) => {
389
389
  if (argv.help || argv.h) {
390
390
  console.log(usage);
@@ -1121,6 +1121,8 @@ export interface FunctionInvocation {
1121
1121
  id: string;
1122
1122
  /** FK to app_jobs.jobs — the underlying transport */
1123
1123
  jobId?: string | null;
1124
+ /** Job dedupe key: a pending or retrying invocation with this key absorbs repeat requests */
1125
+ jobKey?: string | null;
1124
1126
  /** Organization identity propagated with the invocation */
1125
1127
  organizationId?: string | null;
1126
1128
  /** Parent invocation when this is a child node of a flow graph execution */
@@ -1131,6 +1133,8 @@ export interface FunctionInvocation {
1131
1133
  principalId?: string | null;
1132
1134
  /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */
1133
1135
  provenance?: Record<string, unknown> | null;
1136
+ /** Job queue: jobs sharing a queue run one at a time, in order */
1137
+ queueName?: string | null;
1134
1138
  /** Function return value (success) or structured error (failure) */
1135
1139
  result?: Record<string, unknown> | null;
1136
1140
  /** When execution started */
@@ -1735,6 +1739,8 @@ export interface PlatformFunctionInvocation {
1735
1739
  id: string;
1736
1740
  /** FK to app_jobs.jobs — the underlying transport */
1737
1741
  jobId?: string | null;
1742
+ /** Job dedupe key: a pending or retrying invocation with this key absorbs repeat requests */
1743
+ jobKey?: string | null;
1738
1744
  /** Organization identity propagated with the invocation */
1739
1745
  organizationId?: string | null;
1740
1746
  /** Parent invocation when this is a child node of a flow graph execution */
@@ -1745,6 +1751,8 @@ export interface PlatformFunctionInvocation {
1745
1751
  principalId?: string | null;
1746
1752
  /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */
1747
1753
  provenance?: Record<string, unknown> | null;
1754
+ /** Job queue: jobs sharing a queue run one at a time, in order */
1755
+ queueName?: string | null;
1748
1756
  /** Function return value (success) or structured error (failure) */
1749
1757
  result?: Record<string, unknown> | null;
1750
1758
  /** When execution started */
@@ -4686,11 +4694,13 @@ export type FunctionInvocationSelect = {
4686
4694
  graphExecutionId?: boolean;
4687
4695
  id?: boolean;
4688
4696
  jobId?: boolean;
4697
+ jobKey?: boolean;
4689
4698
  organizationId?: boolean;
4690
4699
  parentInvocationId?: boolean;
4691
4700
  payload?: boolean;
4692
4701
  principalId?: boolean;
4693
4702
  provenance?: boolean;
4703
+ queueName?: boolean;
4694
4704
  result?: boolean;
4695
4705
  startedAt?: boolean;
4696
4706
  status?: boolean;
@@ -5145,11 +5155,13 @@ export type PlatformFunctionInvocationSelect = {
5145
5155
  graphExecutionId?: boolean;
5146
5156
  id?: boolean;
5147
5157
  jobId?: boolean;
5158
+ jobKey?: boolean;
5148
5159
  organizationId?: boolean;
5149
5160
  parentInvocationId?: boolean;
5150
5161
  payload?: boolean;
5151
5162
  principalId?: boolean;
5152
5163
  provenance?: boolean;
5164
+ queueName?: boolean;
5153
5165
  result?: boolean;
5154
5166
  startedAt?: boolean;
5155
5167
  status?: boolean;
@@ -7973,6 +7985,8 @@ export interface FunctionInvocationFilter {
7973
7985
  id?: UUIDFilter;
7974
7986
  /** Filter by the object’s `jobId` field. */
7975
7987
  jobId?: BigIntFilter;
7988
+ /** Filter by the object’s `jobKey` field. */
7989
+ jobKey?: StringFilter;
7976
7990
  /** Negates the expression. */
7977
7991
  not?: FunctionInvocationFilter;
7978
7992
  /** Checks for any expressions in this list. */
@@ -7987,6 +8001,8 @@ export interface FunctionInvocationFilter {
7987
8001
  principalId?: UUIDFilter;
7988
8002
  /** Filter by the object’s `provenance` field. */
7989
8003
  provenance?: JSONFilter;
8004
+ /** Filter by the object’s `queueName` field. */
8005
+ queueName?: StringFilter;
7990
8006
  /** Filter by the object’s `result` field. */
7991
8007
  result?: JSONFilter;
7992
8008
  /** Filter by the object’s `startedAt` field. */
@@ -8825,6 +8841,8 @@ export interface PlatformFunctionInvocationFilter {
8825
8841
  id?: UUIDFilter;
8826
8842
  /** Filter by the object’s `jobId` field. */
8827
8843
  jobId?: BigIntFilter;
8844
+ /** Filter by the object’s `jobKey` field. */
8845
+ jobKey?: StringFilter;
8828
8846
  /** Negates the expression. */
8829
8847
  not?: PlatformFunctionInvocationFilter;
8830
8848
  /** Checks for any expressions in this list. */
@@ -8839,6 +8857,8 @@ export interface PlatformFunctionInvocationFilter {
8839
8857
  principalId?: UUIDFilter;
8840
8858
  /** Filter by the object’s `provenance` field. */
8841
8859
  provenance?: JSONFilter;
8860
+ /** Filter by the object’s `queueName` field. */
8861
+ queueName?: StringFilter;
8842
8862
  /** Filter by the object’s `result` field. */
8843
8863
  result?: JSONFilter;
8844
8864
  /** Filter by the object’s `startedAt` field. */
@@ -11880,7 +11900,7 @@ export type FunctionGraphObjectOrderBy = 'CREATED_AT_ASC' | 'CREATED_AT_DESC' |
11880
11900
  export type FunctionGraphRefOrderBy = 'COMMIT_ID_ASC' | 'COMMIT_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SCOPE_ID_ASC' | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC';
11881
11901
  export type FunctionGraphStoreOrderBy = 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SCOPE_ID_ASC' | 'SCOPE_ID_DESC';
11882
11902
  export type FunctionInvocationAttemptOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ATTEMPT_ASC' | 'ATTEMPT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'ERROR_DETAIL_ASC' | 'ERROR_DETAIL_DESC' | 'ID_ASC' | 'ID_DESC' | 'INVOCATION_CREATED_AT_ASC' | 'INVOCATION_CREATED_AT_DESC' | 'INVOCATION_ID_ASC' | 'INVOCATION_ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'STARTED_AT_ASC' | 'STARTED_AT_DESC' | 'SUCCESS_ASC' | 'SUCCESS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC';
11883
- export type FunctionInvocationOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'API_BINDING_ID_ASC' | 'API_BINDING_ID_DESC' | 'CHANNEL_ASC' | 'CHANNEL_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFINITION_SCOPE_ASC' | 'DEFINITION_SCOPE_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'FUNCTION_DEFINITION_ID_ASC' | 'FUNCTION_DEFINITION_ID_DESC' | 'GRAPH_EXECUTION_ID_ASC' | 'GRAPH_EXECUTION_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'JOB_ID_ASC' | 'JOB_ID_DESC' | 'NATURAL' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'PARENT_INVOCATION_ID_ASC' | 'PARENT_INVOCATION_ID_DESC' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRINCIPAL_ID_ASC' | 'PRINCIPAL_ID_DESC' | 'PROVENANCE_ASC' | 'PROVENANCE_DESC' | 'RESULT_ASC' | 'RESULT_DESC' | 'STARTED_AT_ASC' | 'STARTED_AT_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC';
11903
+ export type FunctionInvocationOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'API_BINDING_ID_ASC' | 'API_BINDING_ID_DESC' | 'CHANNEL_ASC' | 'CHANNEL_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFINITION_SCOPE_ASC' | 'DEFINITION_SCOPE_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'FUNCTION_DEFINITION_ID_ASC' | 'FUNCTION_DEFINITION_ID_DESC' | 'GRAPH_EXECUTION_ID_ASC' | 'GRAPH_EXECUTION_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'JOB_ID_ASC' | 'JOB_ID_DESC' | 'JOB_KEY_ASC' | 'JOB_KEY_DESC' | 'NATURAL' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'PARENT_INVOCATION_ID_ASC' | 'PARENT_INVOCATION_ID_DESC' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRINCIPAL_ID_ASC' | 'PRINCIPAL_ID_DESC' | 'PROVENANCE_ASC' | 'PROVENANCE_DESC' | 'QUEUE_NAME_ASC' | 'QUEUE_NAME_DESC' | 'RESULT_ASC' | 'RESULT_DESC' | 'STARTED_AT_ASC' | 'STARTED_AT_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC';
11884
11904
  export type FunctionScheduleOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'FUNCTION_DEFINITION_ID_ASC' | 'FUNCTION_DEFINITION_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SCHEDULE_INFO_ASC' | 'SCHEDULE_INFO_DESC' | 'SUSPENDED_AT_ASC' | 'SUSPENDED_AT_DESC' | 'SUSPENDED_REASON_ASC' | 'SUSPENDED_REASON_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
11885
11905
  export type GetAllTreeNodesRecordsOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'DATA_ASC' | 'DATA_DESC' | 'PATH_ASC' | 'PATH_DESC';
11886
11906
  export type ImageOrderBy = 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'DIGEST_ASC' | 'DIGEST_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' | 'IS_PUBLISHED_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'PLATFORM_ONLY_ASC' | 'PLATFORM_ONLY_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'REGISTRY_HOST_ASC' | 'REGISTRY_HOST_DESC' | 'REPOSITORY_ASC' | 'REPOSITORY_DESC' | 'RUNTIME_ASC' | 'RUNTIME_DESC' | 'TAG_ASC' | 'TAG_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_PRINCIPAL_ASC' | 'UPDATED_BY_PRINCIPAL_DESC';
@@ -11903,7 +11923,7 @@ export type PlatformFunctionDeploymentOrderBy = 'ANNOTATIONS_ASC' | 'ANNOTATIONS
11903
11923
  export type PlatformFunctionDeploymentEventOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DEPLOYMENT_ID_ASC' | 'DEPLOYMENT_ID_DESC' | 'EVENT_TYPE_ASC' | 'EVENT_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC';
11904
11924
  export type PlatformFunctionExecutionLogOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'INVOCATION_ID_ASC' | 'INVOCATION_ID_DESC' | 'LOG_LEVEL_ASC' | 'LOG_LEVEL_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC';
11905
11925
  export type PlatformFunctionInvocationAttemptOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ATTEMPT_ASC' | 'ATTEMPT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'ERROR_DETAIL_ASC' | 'ERROR_DETAIL_DESC' | 'ID_ASC' | 'ID_DESC' | 'INVOCATION_CREATED_AT_ASC' | 'INVOCATION_CREATED_AT_DESC' | 'INVOCATION_ID_ASC' | 'INVOCATION_ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'STARTED_AT_ASC' | 'STARTED_AT_DESC' | 'SUCCESS_ASC' | 'SUCCESS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC';
11906
- export type PlatformFunctionInvocationOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'API_BINDING_ID_ASC' | 'API_BINDING_ID_DESC' | 'CHANNEL_ASC' | 'CHANNEL_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFINITION_SCOPE_ASC' | 'DEFINITION_SCOPE_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'FUNCTION_DEFINITION_ID_ASC' | 'FUNCTION_DEFINITION_ID_DESC' | 'GRAPH_EXECUTION_ID_ASC' | 'GRAPH_EXECUTION_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'JOB_ID_ASC' | 'JOB_ID_DESC' | 'NATURAL' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'PARENT_INVOCATION_ID_ASC' | 'PARENT_INVOCATION_ID_DESC' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRINCIPAL_ID_ASC' | 'PRINCIPAL_ID_DESC' | 'PROVENANCE_ASC' | 'PROVENANCE_DESC' | 'RESULT_ASC' | 'RESULT_DESC' | 'STARTED_AT_ASC' | 'STARTED_AT_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC';
11926
+ export type PlatformFunctionInvocationOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'API_BINDING_ID_ASC' | 'API_BINDING_ID_DESC' | 'CHANNEL_ASC' | 'CHANNEL_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFINITION_SCOPE_ASC' | 'DEFINITION_SCOPE_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'FUNCTION_DEFINITION_ID_ASC' | 'FUNCTION_DEFINITION_ID_DESC' | 'GRAPH_EXECUTION_ID_ASC' | 'GRAPH_EXECUTION_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'JOB_ID_ASC' | 'JOB_ID_DESC' | 'JOB_KEY_ASC' | 'JOB_KEY_DESC' | 'NATURAL' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'PARENT_INVOCATION_ID_ASC' | 'PARENT_INVOCATION_ID_DESC' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRINCIPAL_ID_ASC' | 'PRINCIPAL_ID_DESC' | 'PROVENANCE_ASC' | 'PROVENANCE_DESC' | 'QUEUE_NAME_ASC' | 'QUEUE_NAME_DESC' | 'RESULT_ASC' | 'RESULT_DESC' | 'STARTED_AT_ASC' | 'STARTED_AT_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC';
11907
11927
  export type PlatformFunctionScheduleOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'FUNCTION_DEFINITION_ID_ASC' | 'FUNCTION_DEFINITION_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SCHEDULE_INFO_ASC' | 'SCHEDULE_INFO_DESC' | 'SUSPENDED_AT_ASC' | 'SUSPENDED_AT_DESC' | 'SUSPENDED_REASON_ASC' | 'SUSPENDED_REASON_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
11908
11928
  export type PlatformImageOrderBy = 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'DIGEST_ASC' | 'DIGEST_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' | 'IS_PUBLISHED_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'PLATFORM_ONLY_ASC' | 'PLATFORM_ONLY_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'REGISTRY_HOST_ASC' | 'REGISTRY_HOST_DESC' | 'REPOSITORY_ASC' | 'REPOSITORY_DESC' | 'RUNTIME_ASC' | 'RUNTIME_DESC' | 'TAG_ASC' | 'TAG_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_PRINCIPAL_ASC' | 'UPDATED_BY_PRINCIPAL_DESC';
11909
11929
  export type PlatformImageGrantOrderBy = 'ACTIONS_ASC' | 'ACTIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'GRANTED_BY_ASC' | 'GRANTED_BY_DESC' | 'GRANTEE_KEY_ASC' | 'GRANTEE_KEY_DESC' | 'GRANTEE_SCOPE_ASC' | 'GRANTEE_SCOPE_DESC' | 'ID_ASC' | 'ID_DESC' | 'IMAGE_ID_ASC' | 'IMAGE_ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_PRINCIPAL_ASC' | 'UPDATED_BY_PRINCIPAL_DESC';
@@ -13140,11 +13160,13 @@ export interface CreateFunctionInvocationInput {
13140
13160
  functionDefinitionId?: string;
13141
13161
  graphExecutionId?: string;
13142
13162
  jobId?: string;
13163
+ jobKey?: string;
13143
13164
  organizationId?: string;
13144
13165
  parentInvocationId?: string;
13145
13166
  payload?: Record<string, unknown>;
13146
13167
  principalId?: string;
13147
13168
  provenance?: Record<string, unknown>;
13169
+ queueName?: string;
13148
13170
  result?: Record<string, unknown>;
13149
13171
  startedAt?: string;
13150
13172
  status?: string;
@@ -13166,11 +13188,13 @@ export interface FunctionInvocationPatch {
13166
13188
  functionDefinitionId?: string | null;
13167
13189
  graphExecutionId?: string | null;
13168
13190
  jobId?: string | null;
13191
+ jobKey?: string | null;
13169
13192
  organizationId?: string | null;
13170
13193
  parentInvocationId?: string | null;
13171
13194
  payload?: Record<string, unknown> | null;
13172
13195
  principalId?: string | null;
13173
13196
  provenance?: Record<string, unknown> | null;
13197
+ queueName?: string | null;
13174
13198
  result?: Record<string, unknown> | null;
13175
13199
  startedAt?: string | null;
13176
13200
  status?: string | null;
@@ -13998,11 +14022,13 @@ export interface CreatePlatformFunctionInvocationInput {
13998
14022
  functionDefinitionId?: string;
13999
14023
  graphExecutionId?: string;
14000
14024
  jobId?: string;
14025
+ jobKey?: string;
14001
14026
  organizationId?: string;
14002
14027
  parentInvocationId?: string;
14003
14028
  payload?: Record<string, unknown>;
14004
14029
  principalId?: string;
14005
14030
  provenance?: Record<string, unknown>;
14031
+ queueName?: string;
14006
14032
  result?: Record<string, unknown>;
14007
14033
  startedAt?: string;
14008
14034
  status?: string;
@@ -14024,11 +14050,13 @@ export interface PlatformFunctionInvocationPatch {
14024
14050
  functionDefinitionId?: string | null;
14025
14051
  graphExecutionId?: string | null;
14026
14052
  jobId?: string | null;
14053
+ jobKey?: string | null;
14027
14054
  organizationId?: string | null;
14028
14055
  parentInvocationId?: string | null;
14029
14056
  payload?: Record<string, unknown> | null;
14030
14057
  principalId?: string | null;
14031
14058
  provenance?: Record<string, unknown> | null;
14059
+ queueName?: string | null;
14032
14060
  result?: Record<string, unknown> | null;
14033
14061
  startedAt?: string | null;
14034
14062
  status?: string | null;
@@ -19001,6 +19029,8 @@ export interface FunctionInvocationInput {
19001
19029
  id?: string;
19002
19030
  /** FK to app_jobs.jobs — the underlying transport */
19003
19031
  jobId?: string;
19032
+ /** Job dedupe key: a pending or retrying invocation with this key absorbs repeat requests */
19033
+ jobKey?: string;
19004
19034
  /** Organization identity propagated with the invocation */
19005
19035
  organizationId?: string;
19006
19036
  /** Parent invocation when this is a child node of a flow graph execution */
@@ -19011,6 +19041,8 @@ export interface FunctionInvocationInput {
19011
19041
  principalId?: string;
19012
19042
  /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */
19013
19043
  provenance?: Record<string, unknown>;
19044
+ /** Job queue: jobs sharing a queue run one at a time, in order */
19045
+ queueName?: string;
19014
19046
  /** Function return value (success) or structured error (failure) */
19015
19047
  result?: Record<string, unknown>;
19016
19048
  /** When execution started */
@@ -19597,6 +19629,8 @@ export interface PlatformFunctionInvocationInput {
19597
19629
  id?: string;
19598
19630
  /** FK to app_jobs.jobs — the underlying transport */
19599
19631
  jobId?: string;
19632
+ /** Job dedupe key: a pending or retrying invocation with this key absorbs repeat requests */
19633
+ jobKey?: string;
19600
19634
  /** Organization identity propagated with the invocation */
19601
19635
  organizationId?: string;
19602
19636
  /** Parent invocation when this is a child node of a flow graph execution */
@@ -19607,6 +19641,8 @@ export interface PlatformFunctionInvocationInput {
19607
19641
  principalId?: string;
19608
19642
  /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */
19609
19643
  provenance?: Record<string, unknown>;
19644
+ /** Job queue: jobs sharing a queue run one at a time, in order */
19645
+ queueName?: string;
19610
19646
  /** Function return value (success) or structured error (failure) */
19611
19647
  result?: Record<string, unknown>;
19612
19648
  /** When execution started */
@@ -21331,6 +21367,8 @@ export interface FunctionInvocationFilter {
21331
21367
  id?: UUIDFilter;
21332
21368
  /** Filter by the object’s `jobId` field. */
21333
21369
  jobId?: BigIntFilter;
21370
+ /** Filter by the object’s `jobKey` field. */
21371
+ jobKey?: StringFilter;
21334
21372
  /** Negates the expression. */
21335
21373
  not?: FunctionInvocationFilter;
21336
21374
  /** Checks for any expressions in this list. */
@@ -21345,6 +21383,8 @@ export interface FunctionInvocationFilter {
21345
21383
  principalId?: UUIDFilter;
21346
21384
  /** Filter by the object’s `provenance` field. */
21347
21385
  provenance?: JSONFilter;
21386
+ /** Filter by the object’s `queueName` field. */
21387
+ queueName?: StringFilter;
21348
21388
  /** Filter by the object’s `result` field. */
21349
21389
  result?: JSONFilter;
21350
21390
  /** Filter by the object’s `startedAt` field. */
@@ -22174,6 +22214,8 @@ export interface PlatformFunctionInvocationFilter {
22174
22214
  id?: UUIDFilter;
22175
22215
  /** Filter by the object’s `jobId` field. */
22176
22216
  jobId?: BigIntFilter;
22217
+ /** Filter by the object’s `jobKey` field. */
22218
+ jobKey?: StringFilter;
22177
22219
  /** Negates the expression. */
22178
22220
  not?: PlatformFunctionInvocationFilter;
22179
22221
  /** Checks for any expressions in this list. */
@@ -22188,6 +22230,8 @@ export interface PlatformFunctionInvocationFilter {
22188
22230
  principalId?: UUIDFilter;
22189
22231
  /** Filter by the object’s `provenance` field. */
22190
22232
  provenance?: JSONFilter;
22233
+ /** Filter by the object’s `queueName` field. */
22234
+ queueName?: StringFilter;
22191
22235
  /** Filter by the object’s `result` field. */
22192
22236
  result?: JSONFilter;
22193
22237
  /** Filter by the object’s `startedAt` field. */
@@ -25288,19 +25332,19 @@ export type PlatformResourceInstallationsUpgradePayloadSelect = {
25288
25332
  clientMutationId?: boolean;
25289
25333
  };
25290
25334
  export interface ProvisionBucketPayload {
25291
- /** The logical bucket row that was queued for reconciliation. */
25335
+ /** The logical bucket row whose reconciliation was requested. */
25292
25336
  bucketId: string;
25293
25337
  bucketKey: string;
25294
- /** The reconciler job enqueued to provision this bucket. */
25295
- jobId: string;
25296
25338
  /** The physical bucket name already recorded, or null when reconciliation has not completed. */
25297
25339
  physicalName?: string | null;
25340
+ /** When reconciliation was last requested for this bucket. */
25341
+ provisionRequestedAt: string;
25298
25342
  }
25299
25343
  export type ProvisionBucketPayloadSelect = {
25300
25344
  bucketId?: boolean;
25301
25345
  bucketKey?: boolean;
25302
- jobId?: boolean;
25303
25346
  physicalName?: boolean;
25347
+ provisionRequestedAt?: boolean;
25304
25348
  };
25305
25349
  export interface ResourceInstallationsInstallPayload {
25306
25350
  clientMutationId?: string | null;
@@ -163,10 +163,11 @@ export interface PlatformResourceInstallationsUpgradeVariables {
163
163
  /**
164
164
  * Variables for provisionBucket
165
165
  * Reconcile an S3 bucket for a logical bucket in the database.
166
- Reads the bucket config via RLS, then enqueues the same
167
- storage:provision_bucket job used by the INSERT trigger. This is
168
- idempotent for an already-reconciled bucket; enqueue failures become
169
- GraphQL errors.
166
+ Records the request on the bucket row via RLS; the bucket's job
167
+ trigger then enqueues the same storage:provision_bucket job used on
168
+ INSERT, and repeated requests collapse into one pending job. This is
169
+ idempotent for an already-reconciled bucket; failures become GraphQL
170
+ errors.
170
171
  */
171
172
  export interface ProvisionBucketVariables {
172
173
  input: ProvisionBucketInput;
@@ -3,7 +3,7 @@ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
6
- console.log('provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n\nUsage: provision-bucket [OPTIONS]\n');
6
+ console.log("provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n\nUsage: provision-bucket [OPTIONS]\n");
7
7
  process.exit(0);
8
8
  }
9
9
  const answers = await prompter.prompt(argv, [
@@ -70,7 +70,7 @@ const createCommandMap = () => ({
70
70
  'platform-secrets-set': platformSecretsSetCmd,
71
71
  'provision-bucket': provisionBucketCmd,
72
72
  });
73
- const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n app-internal-secret appInternalSecret CRUD operations\n config config CRUD operations\n internal-config internalConfig CRUD operations\n internal-secret internalSecret CRUD operations\n platform-config platformConfig CRUD operations\n platform-internal-config platformInternalConfig CRUD operations\n platform-internal-secret platformInternalSecret CRUD operations\n platform-secret platformSecret CRUD operations\n secret secret CRUD operations\n internal-secrets-del _internalSecretsDel\n internal-secrets-remove-array _internalSecretsRemoveArray\n internal-secrets-rotate _internalSecretsRotate\n internal-secrets-set _internalSecretsSet\n secrets-del _secretsDel\n secrets-remove-array _secretsRemoveArray\n secrets-rotate _secretsRotate\n secrets-set _secretsSet\n app-internal-secrets-del appInternalSecretsDel\n app-internal-secrets-remove-array appInternalSecretsRemoveArray\n app-internal-secrets-rotate appInternalSecretsRotate\n app-internal-secrets-set appInternalSecretsSet\n platform-internal-secrets-del platformInternalSecretsDel\n platform-internal-secrets-remove-array platformInternalSecretsRemoveArray\n platform-internal-secrets-rotate platformInternalSecretsRotate\n platform-internal-secrets-set platformInternalSecretsSet\n platform-secrets-del platformSecretsDel\n platform-secrets-remove-array platformSecretsRemoveArray\n platform-secrets-rotate platformSecretsRotate\n platform-secrets-set platformSecretsSet\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n\n --help, -h Show this help message\n --version, -v Show version\n';
73
+ const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n app-internal-secret appInternalSecret CRUD operations\n config config CRUD operations\n internal-config internalConfig CRUD operations\n internal-secret internalSecret CRUD operations\n platform-config platformConfig CRUD operations\n platform-internal-config platformInternalConfig CRUD operations\n platform-internal-secret platformInternalSecret CRUD operations\n platform-secret platformSecret CRUD operations\n secret secret CRUD operations\n internal-secrets-del _internalSecretsDel\n internal-secrets-remove-array _internalSecretsRemoveArray\n internal-secrets-rotate _internalSecretsRotate\n internal-secrets-set _internalSecretsSet\n secrets-del _secretsDel\n secrets-remove-array _secretsRemoveArray\n secrets-rotate _secretsRotate\n secrets-set _secretsSet\n app-internal-secrets-del appInternalSecretsDel\n app-internal-secrets-remove-array appInternalSecretsRemoveArray\n app-internal-secrets-rotate appInternalSecretsRotate\n app-internal-secrets-set appInternalSecretsSet\n platform-internal-secrets-del platformInternalSecretsDel\n platform-internal-secrets-remove-array platformInternalSecretsRemoveArray\n platform-internal-secrets-rotate platformInternalSecretsRotate\n platform-internal-secrets-set platformInternalSecretsSet\n platform-secrets-del platformSecretsDel\n platform-secrets-remove-array platformSecretsRemoveArray\n platform-secrets-rotate platformSecretsRotate\n platform-secrets-set platformSecretsSet\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n\n --help, -h Show this help message\n --version, -v Show version\n";
74
74
  export const commands = async (argv, prompter, options) => {
75
75
  if (argv.help || argv.h) {
76
76
  console.log(usage);
@@ -1559,19 +1559,19 @@ export type PlatformSecretsSetPayloadSelect = {
1559
1559
  result?: boolean;
1560
1560
  };
1561
1561
  export interface ProvisionBucketPayload {
1562
- /** The logical bucket row that was queued for reconciliation. */
1562
+ /** The logical bucket row whose reconciliation was requested. */
1563
1563
  bucketId: string;
1564
1564
  bucketKey: string;
1565
- /** The reconciler job enqueued to provision this bucket. */
1566
- jobId: string;
1567
1565
  /** The physical bucket name already recorded, or null when reconciliation has not completed. */
1568
1566
  physicalName?: string | null;
1567
+ /** When reconciliation was last requested for this bucket. */
1568
+ provisionRequestedAt: string;
1569
1569
  }
1570
1570
  export type ProvisionBucketPayloadSelect = {
1571
1571
  bucketId?: boolean;
1572
1572
  bucketKey?: boolean;
1573
- jobId?: boolean;
1574
1573
  physicalName?: boolean;
1574
+ provisionRequestedAt?: boolean;
1575
1575
  };
1576
1576
  export interface CreateConfigPayload {
1577
1577
  clientMutationId?: string | null;
@@ -70,10 +70,11 @@ export interface PlatformSecretsSetVariables {
70
70
  /**
71
71
  * Variables for provisionBucket
72
72
  * Reconcile an S3 bucket for a logical bucket in the database.
73
- Reads the bucket config via RLS, then enqueues the same
74
- storage:provision_bucket job used by the INSERT trigger. This is
75
- idempotent for an already-reconciled bucket; enqueue failures become
76
- GraphQL errors.
73
+ Records the request on the bucket row via RLS; the bucket's job
74
+ trigger then enqueues the same storage:provision_bucket job used on
75
+ INSERT, and repeated requests collapse into one pending job. This is
76
+ idempotent for an already-reconciled bucket; failures become GraphQL
77
+ errors.
77
78
  */
78
79
  export interface ProvisionBucketVariables {
79
80
  input: ProvisionBucketInput;
@@ -3,7 +3,7 @@ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
6
- console.log('provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n\nUsage: provision-bucket [OPTIONS]\n');
6
+ console.log("provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n\nUsage: provision-bucket [OPTIONS]\n");
7
7
  process.exit(0);
8
8
  }
9
9
  const answers = await prompter.prompt(argv, [
@@ -46,7 +46,7 @@ const createCommandMap = () => ({
46
46
  'platform-infra-set-many-and-commit': platformInfraSetManyAndCommitCmd,
47
47
  'provision-bucket': provisionBucketCmd,
48
48
  });
49
- const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n content-preset contentPreset CRUD operations\n db-preset dbPreset CRUD operations\n namespace namespace CRUD operations\n namespace-event namespaceEvent CRUD operations\n platform-infra-commit platformInfraCommit CRUD operations\n platform-infra-get-all-tree-nodes-record platformInfraGetAllTreeNodesRecord CRUD operations\n platform-infra-object platformInfraObject CRUD operations\n platform-infra-ref platformInfraRef CRUD operations\n platform-infra-store platformInfraStore CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-insert-nodes-at-paths platformInfraInsertNodesAtPaths\n platform-infra-set-and-commit platformInfraSetAndCommit\n platform-infra-set-data-at-path platformInfraSetDataAtPath\n platform-infra-set-many-and-commit platformInfraSetManyAndCommit\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n\n --help, -h Show this help message\n --version, -v Show version\n';
49
+ const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n content-preset contentPreset CRUD operations\n db-preset dbPreset CRUD operations\n namespace namespace CRUD operations\n namespace-event namespaceEvent CRUD operations\n platform-infra-commit platformInfraCommit CRUD operations\n platform-infra-get-all-tree-nodes-record platformInfraGetAllTreeNodesRecord CRUD operations\n platform-infra-object platformInfraObject CRUD operations\n platform-infra-ref platformInfraRef CRUD operations\n platform-infra-store platformInfraStore CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-insert-nodes-at-paths platformInfraInsertNodesAtPaths\n platform-infra-set-and-commit platformInfraSetAndCommit\n platform-infra-set-data-at-path platformInfraSetDataAtPath\n platform-infra-set-many-and-commit platformInfraSetManyAndCommit\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n\n --help, -h Show this help message\n --version, -v Show version\n";
50
50
  export const commands = async (argv, prompter, options) => {
51
51
  if (argv.help || argv.h) {
52
52
  console.log(usage);
@@ -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;