@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
@@ -5,7 +5,7 @@ const utils_1 = require("../utils");
5
5
  exports.default = async (argv, prompter, _options) => {
6
6
  try {
7
7
  if (argv.help || argv.h) {
8
- 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');
8
+ 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");
9
9
  process.exit(0);
10
10
  }
11
11
  const answers = await prompter.prompt(argv, [
@@ -94,7 +94,7 @@ const createCommandMap = () => ({
94
94
  'submit-app-invite-code': submit_app_invite_code_1.default,
95
95
  'submit-org-invite-code': submit_org_invite_code_1.default,
96
96
  });
97
- const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n app-admin-grant appAdminGrant CRUD operations\n app-capability-default-capability appCapabilityDefaultCapability CRUD operations\n app-capability-default-grant appCapabilityDefaultGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n app-grant appGrant CRUD operations\n app-invite appInvite CRUD operations\n app-membership appMembership CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n membership-type membershipType CRUD operations\n my-pending-app-invites-record myPendingAppInvitesRecord CRUD operations\n my-pending-org-invites-record myPendingOrgInvitesRecord CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-capability-default-capability orgCapabilityDefaultCapability CRUD operations\n org-capability-default-grant orgCapabilityDefaultGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n org-grant orgGrant CRUD operations\n org-invite orgInvite CRUD operations\n org-member orgMember CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-membership orgMembership CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n get-organization-id getOrganizationId\n org-is-manager-of orgIsManagerOf\n accept-app-invite acceptAppInvite\n accept-org-invite acceptOrgInvite\n provision-app-user provisionAppUser\n provision-app-users-bulk provisionAppUsersBulk\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 provision-org-user provisionOrgUser\n provision-org-users-bulk provisionOrgUsersBulk\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n\n --help, -h Show this help message\n --version, -v Show version\n';
97
+ const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n app-admin-grant appAdminGrant CRUD operations\n app-capability-default-capability appCapabilityDefaultCapability CRUD operations\n app-capability-default-grant appCapabilityDefaultGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n app-grant appGrant CRUD operations\n app-invite appInvite CRUD operations\n app-membership appMembership CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n membership-type membershipType CRUD operations\n my-pending-app-invites-record myPendingAppInvitesRecord CRUD operations\n my-pending-org-invites-record myPendingOrgInvitesRecord CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-capability-default-capability orgCapabilityDefaultCapability CRUD operations\n org-capability-default-grant orgCapabilityDefaultGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n org-grant orgGrant CRUD operations\n org-invite orgInvite CRUD operations\n org-member orgMember CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-membership orgMembership CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n get-organization-id getOrganizationId\n org-is-manager-of orgIsManagerOf\n accept-app-invite acceptAppInvite\n accept-org-invite acceptOrgInvite\n provision-app-user provisionAppUser\n provision-app-users-bulk provisionAppUsersBulk\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 provision-org-user provisionOrgUser\n provision-org-users-bulk provisionOrgUsersBulk\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n\n --help, -h Show this help message\n --version, -v Show version\n";
98
98
  const commands = async (argv, prompter, options) => {
99
99
  if (argv.help || argv.h) {
100
100
  console.log(usage);
@@ -3199,19 +3199,19 @@ export type ProvisionAppUsersBulkPayloadSelect = {
3199
3199
  };
3200
3200
  };
3201
3201
  export interface ProvisionBucketPayload {
3202
- /** The logical bucket row that was queued for reconciliation. */
3202
+ /** The logical bucket row whose reconciliation was requested. */
3203
3203
  bucketId: string;
3204
3204
  bucketKey: string;
3205
- /** The reconciler job enqueued to provision this bucket. */
3206
- jobId: string;
3207
3205
  /** The physical bucket name already recorded, or null when reconciliation has not completed. */
3208
3206
  physicalName?: string | null;
3207
+ /** When reconciliation was last requested for this bucket. */
3208
+ provisionRequestedAt: string;
3209
3209
  }
3210
3210
  export type ProvisionBucketPayloadSelect = {
3211
3211
  bucketId?: boolean;
3212
3212
  bucketKey?: boolean;
3213
- jobId?: boolean;
3214
3213
  physicalName?: boolean;
3214
+ provisionRequestedAt?: boolean;
3215
3215
  };
3216
3216
  export interface ProvisionOrgUserPayload {
3217
3217
  clientMutationId?: string | null;
@@ -22,10 +22,11 @@ export interface ProvisionAppUsersBulkVariables {
22
22
  /**
23
23
  * Variables for provisionBucket
24
24
  * Reconcile an S3 bucket for a logical bucket in the database.
25
- Reads the bucket config via RLS, then enqueues the same
26
- storage:provision_bucket job used by the INSERT trigger. This is
27
- idempotent for an already-reconciled bucket; enqueue failures become
28
- GraphQL errors.
25
+ Records the request on the bucket row via RLS; the bucket's job
26
+ trigger then enqueues the same storage:provision_bucket job used on
27
+ INSERT, and repeated requests collapse into one pending job. This is
28
+ idempotent for an already-reconciled bucket; failures become GraphQL
29
+ errors.
29
30
  */
30
31
  export interface ProvisionBucketVariables {
31
32
  input: ProvisionBucketInput;
@@ -5,7 +5,7 @@ const utils_1 = require("../utils");
5
5
  exports.default = async (argv, prompter, _options) => {
6
6
  try {
7
7
  if (argv.help || argv.h) {
8
- 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');
8
+ 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");
9
9
  process.exit(0);
10
10
  }
11
11
  const answers = await prompter.prompt(argv, [
@@ -66,7 +66,7 @@ const createCommandMap = () => ({
66
66
  'platform-agent-thread': platform_agent_thread_1.default,
67
67
  'provision-bucket': provision_bucket_1.default,
68
68
  });
69
- const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n agent agent CRUD operations\n agent-event agentEvent CRUD operations\n agent-message agentMessage CRUD operations\n agent-persona agentPersona CRUD operations\n agent-plan agentPlan CRUD operations\n agent-prompt agentPrompt CRUD operations\n agent-resource-chunk agentResourceChunk CRUD operations\n agent-resource agentResource CRUD operations\n agent-run agentRun CRUD operations\n agent-run-workspace agentRunWorkspace CRUD operations\n agent-task agentTask CRUD operations\n agent-thread agentThread CRUD operations\n platform-agent platformAgent CRUD operations\n platform-agent-event platformAgentEvent CRUD operations\n platform-agent-message platformAgentMessage CRUD operations\n platform-agent-persona platformAgentPersona CRUD operations\n platform-agent-plan platformAgentPlan CRUD operations\n platform-agent-prompt platformAgentPrompt CRUD operations\n platform-agent-resource-chunk platformAgentResourceChunk CRUD operations\n platform-agent-resource platformAgentResource CRUD operations\n platform-agent-run platformAgentRun CRUD operations\n platform-agent-run-workspace platformAgentRunWorkspace CRUD operations\n platform-agent-task platformAgentTask CRUD operations\n platform-agent-thread platformAgentThread CRUD operations\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';
69
+ const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n agent agent CRUD operations\n agent-event agentEvent CRUD operations\n agent-message agentMessage CRUD operations\n agent-persona agentPersona CRUD operations\n agent-plan agentPlan CRUD operations\n agent-prompt agentPrompt CRUD operations\n agent-resource-chunk agentResourceChunk CRUD operations\n agent-resource agentResource CRUD operations\n agent-run agentRun CRUD operations\n agent-run-workspace agentRunWorkspace CRUD operations\n agent-task agentTask CRUD operations\n agent-thread agentThread CRUD operations\n platform-agent platformAgent CRUD operations\n platform-agent-event platformAgentEvent CRUD operations\n platform-agent-message platformAgentMessage CRUD operations\n platform-agent-persona platformAgentPersona CRUD operations\n platform-agent-plan platformAgentPlan CRUD operations\n platform-agent-prompt platformAgentPrompt CRUD operations\n platform-agent-resource-chunk platformAgentResourceChunk CRUD operations\n platform-agent-resource platformAgentResource CRUD operations\n platform-agent-run platformAgentRun CRUD operations\n platform-agent-run-workspace platformAgentRunWorkspace CRUD operations\n platform-agent-task platformAgentTask CRUD operations\n platform-agent-thread platformAgentThread CRUD operations\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";
70
70
  const commands = async (argv, prompter, options) => {
71
71
  if (argv.help || argv.h) {
72
72
  console.log(usage);
@@ -6357,19 +6357,19 @@ export interface FullTextFilter {
6357
6357
  notIn?: string[];
6358
6358
  }
6359
6359
  export interface ProvisionBucketPayload {
6360
- /** The logical bucket row that was queued for reconciliation. */
6360
+ /** The logical bucket row whose reconciliation was requested. */
6361
6361
  bucketId: string;
6362
6362
  bucketKey: string;
6363
- /** The reconciler job enqueued to provision this bucket. */
6364
- jobId: string;
6365
6363
  /** The physical bucket name already recorded, or null when reconciliation has not completed. */
6366
6364
  physicalName?: string | null;
6365
+ /** When reconciliation was last requested for this bucket. */
6366
+ provisionRequestedAt: string;
6367
6367
  }
6368
6368
  export type ProvisionBucketPayloadSelect = {
6369
6369
  bucketId?: boolean;
6370
6370
  bucketKey?: boolean;
6371
- jobId?: boolean;
6372
6371
  physicalName?: boolean;
6372
+ provisionRequestedAt?: boolean;
6373
6373
  };
6374
6374
  export interface CreateAgentPayload {
6375
6375
  /** The `Agent` that was created by this mutation. */
@@ -10,10 +10,11 @@ import type { ProvisionBucketInput, ProvisionBucketPayload, ProvisionBucketPaylo
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;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * CLI commands for RouteBinding
2
+ * CLI command for mutation createFunctionFromSource
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const executor_1 = require("../executor");
4
+ const utils_1 = require("../utils");
5
+ exports.default = async (argv, prompter, _options) => {
6
+ try {
7
+ if (argv.help || argv.h) {
8
+ console.log('create-function-from-source - Creates a `Function` from its `CREATE FUNCTION` source text.\n\nUsage: create-function-from-source [OPTIONS]\n');
9
+ process.exit(0);
10
+ }
11
+ const answers = await prompter.prompt(argv, [
12
+ {
13
+ type: 'text',
14
+ name: 'input',
15
+ message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
16
+ required: true,
17
+ },
18
+ ]);
19
+ const client = (0, executor_1.getClient)();
20
+ const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
21
+ const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
22
+ const result = await client.mutation
23
+ .createFunctionFromSource(parsedAnswers, {
24
+ select: selectFields,
25
+ })
26
+ .execute();
27
+ console.log(JSON.stringify(result, null, 2));
28
+ }
29
+ catch (error) {
30
+ console.error('Failed: createFunctionFromSource');
31
+ if (error instanceof Error) {
32
+ console.error(error.message);
33
+ }
34
+ process.exit(1);
35
+ }
36
+ };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * CLI commands for HostnameBinding
2
+ * CLI command for query emailSharedAccount
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const executor_1 = require("../executor");
4
+ exports.default = async (argv, prompter, _options) => {
5
+ try {
6
+ if (argv.help || argv.h) {
7
+ console.log('email-shared-account - emailSharedAccount\n\nUsage: email-shared-account [OPTIONS]\n');
8
+ process.exit(0);
9
+ }
10
+ const client = (0, executor_1.getClient)();
11
+ const result = await client.query.emailSharedAccount().execute();
12
+ console.log(JSON.stringify(result, null, 2));
13
+ }
14
+ catch (error) {
15
+ console.error('Failed: emailSharedAccount');
16
+ if (error instanceof Error) {
17
+ console.error(error.message);
18
+ }
19
+ process.exit(1);
20
+ }
21
+ };
@@ -18,6 +18,7 @@ const fieldSchema = {
18
18
  domain: 'string',
19
19
  id: 'uuid',
20
20
  isWildcard: 'boolean',
21
+ publicPort: 'int',
21
22
  tlsReadyAt: 'string',
22
23
  tlsStatus: 'string',
23
24
  updatedAt: 'string',
@@ -76,6 +77,7 @@ async function handleList(argv, _prompter) {
76
77
  domain: true,
77
78
  id: true,
78
79
  isWildcard: true,
80
+ publicPort: true,
79
81
  tlsReadyAt: true,
80
82
  tlsStatus: true,
81
83
  updatedAt: true,
@@ -108,6 +110,7 @@ async function handleFindFirst(argv, _prompter) {
108
110
  domain: true,
109
111
  id: true,
110
112
  isWildcard: true,
113
+ publicPort: true,
111
114
  tlsReadyAt: true,
112
115
  tlsStatus: true,
113
116
  updatedAt: true,
@@ -152,6 +155,7 @@ async function handleGet(argv, prompter) {
152
155
  domain: true,
153
156
  id: true,
154
157
  isWildcard: true,
158
+ publicPort: true,
155
159
  tlsReadyAt: true,
156
160
  tlsStatus: true,
157
161
  updatedAt: true,
@@ -221,6 +225,13 @@ async function handleCreate(argv, prompter) {
221
225
  required: false,
222
226
  skipPrompt: true,
223
227
  },
228
+ {
229
+ type: 'text',
230
+ name: 'publicPort',
231
+ message: 'publicPort',
232
+ required: false,
233
+ skipPrompt: true,
234
+ },
224
235
  {
225
236
  type: 'text',
226
237
  name: 'tlsReadyAt',
@@ -270,6 +281,7 @@ async function handleCreate(argv, prompter) {
270
281
  databaseId: cleanedData.databaseId,
271
282
  domain: cleanedData.domain,
272
283
  isWildcard: cleanedData.isWildcard,
284
+ publicPort: cleanedData.publicPort,
273
285
  tlsReadyAt: cleanedData.tlsReadyAt,
274
286
  tlsStatus: cleanedData.tlsStatus,
275
287
  updatedByPrincipal: cleanedData.updatedByPrincipal,
@@ -286,6 +298,7 @@ async function handleCreate(argv, prompter) {
286
298
  domain: true,
287
299
  id: true,
288
300
  isWildcard: true,
301
+ publicPort: true,
289
302
  tlsReadyAt: true,
290
303
  tlsStatus: true,
291
304
  updatedAt: true,
@@ -361,6 +374,13 @@ async function handleUpdate(argv, prompter) {
361
374
  required: false,
362
375
  skipPrompt: true,
363
376
  },
377
+ {
378
+ type: 'text',
379
+ name: 'publicPort',
380
+ message: 'publicPort',
381
+ required: false,
382
+ skipPrompt: true,
383
+ },
364
384
  {
365
385
  type: 'text',
366
386
  name: 'tlsReadyAt',
@@ -413,6 +433,7 @@ async function handleUpdate(argv, prompter) {
413
433
  databaseId: cleanedData.databaseId,
414
434
  domain: cleanedData.domain,
415
435
  isWildcard: cleanedData.isWildcard,
436
+ publicPort: cleanedData.publicPort,
416
437
  tlsReadyAt: cleanedData.tlsReadyAt,
417
438
  tlsStatus: cleanedData.tlsStatus,
418
439
  updatedByPrincipal: cleanedData.updatedByPrincipal,
@@ -429,6 +450,7 @@ async function handleUpdate(argv, prompter) {
429
450
  domain: true,
430
451
  id: true,
431
452
  isWildcard: true,
453
+ publicPort: true,
432
454
  tlsReadyAt: true,
433
455
  tlsStatus: true,
434
456
  updatedAt: true,
@@ -17,6 +17,7 @@ const fieldSchema = {
17
17
  domain: 'string',
18
18
  id: 'uuid',
19
19
  isWildcard: 'boolean',
20
+ publicPort: 'int',
20
21
  tlsReadyAt: 'string',
21
22
  tlsStatus: 'string',
22
23
  updatedAt: 'string',
@@ -74,6 +75,7 @@ async function handleList(argv, _prompter) {
74
75
  domain: true,
75
76
  id: true,
76
77
  isWildcard: true,
78
+ publicPort: true,
77
79
  tlsReadyAt: true,
78
80
  tlsStatus: true,
79
81
  updatedAt: true,
@@ -105,6 +107,7 @@ async function handleFindFirst(argv, _prompter) {
105
107
  domain: true,
106
108
  id: true,
107
109
  isWildcard: true,
110
+ publicPort: true,
108
111
  tlsReadyAt: true,
109
112
  tlsStatus: true,
110
113
  updatedAt: true,
@@ -148,6 +151,7 @@ async function handleGet(argv, prompter) {
148
151
  domain: true,
149
152
  id: true,
150
153
  isWildcard: true,
154
+ publicPort: true,
151
155
  tlsReadyAt: true,
152
156
  tlsStatus: true,
153
157
  updatedAt: true,
@@ -211,6 +215,13 @@ async function handleCreate(argv, prompter) {
211
215
  required: false,
212
216
  skipPrompt: true,
213
217
  },
218
+ {
219
+ type: 'text',
220
+ name: 'publicPort',
221
+ message: 'publicPort',
222
+ required: false,
223
+ skipPrompt: true,
224
+ },
214
225
  {
215
226
  type: 'text',
216
227
  name: 'tlsReadyAt',
@@ -259,6 +270,7 @@ async function handleCreate(argv, prompter) {
259
270
  createdByPrincipal: cleanedData.createdByPrincipal,
260
271
  domain: cleanedData.domain,
261
272
  isWildcard: cleanedData.isWildcard,
273
+ publicPort: cleanedData.publicPort,
262
274
  tlsReadyAt: cleanedData.tlsReadyAt,
263
275
  tlsStatus: cleanedData.tlsStatus,
264
276
  updatedByPrincipal: cleanedData.updatedByPrincipal,
@@ -274,6 +286,7 @@ async function handleCreate(argv, prompter) {
274
286
  domain: true,
275
287
  id: true,
276
288
  isWildcard: true,
289
+ publicPort: true,
277
290
  tlsReadyAt: true,
278
291
  tlsStatus: true,
279
292
  updatedAt: true,
@@ -343,6 +356,13 @@ async function handleUpdate(argv, prompter) {
343
356
  required: false,
344
357
  skipPrompt: true,
345
358
  },
359
+ {
360
+ type: 'text',
361
+ name: 'publicPort',
362
+ message: 'publicPort',
363
+ required: false,
364
+ skipPrompt: true,
365
+ },
346
366
  {
347
367
  type: 'text',
348
368
  name: 'tlsReadyAt',
@@ -394,6 +414,7 @@ async function handleUpdate(argv, prompter) {
394
414
  createdByPrincipal: cleanedData.createdByPrincipal,
395
415
  domain: cleanedData.domain,
396
416
  isWildcard: cleanedData.isWildcard,
417
+ publicPort: cleanedData.publicPort,
397
418
  tlsReadyAt: cleanedData.tlsReadyAt,
398
419
  tlsStatus: cleanedData.tlsStatus,
399
420
  updatedByPrincipal: cleanedData.updatedByPrincipal,
@@ -409,6 +430,7 @@ async function handleUpdate(argv, prompter) {
409
430
  domain: true,
410
431
  id: true,
411
432
  isWildcard: true,
433
+ publicPort: true,
412
434
  tlsReadyAt: true,
413
435
  tlsStatus: true,
414
436
  updatedAt: true,
@@ -5,7 +5,7 @@ const utils_1 = require("../utils");
5
5
  exports.default = async (argv, prompter, _options) => {
6
6
  try {
7
7
  if (argv.help || argv.h) {
8
- 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');
8
+ 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");
9
9
  process.exit(0);
10
10
  }
11
11
  const answers = await prompter.prompt(argv, [
@@ -18,6 +18,7 @@ const fieldSchema = {
18
18
  initiallyDeferred: 'boolean',
19
19
  isDeferrable: 'boolean',
20
20
  name: 'string',
21
+ nullsNotDistinct: 'boolean',
21
22
  smartTags: 'json',
22
23
  tableId: 'uuid',
23
24
  tags: 'string',
@@ -76,6 +77,7 @@ async function handleList(argv, _prompter) {
76
77
  initiallyDeferred: true,
77
78
  isDeferrable: true,
78
79
  name: true,
80
+ nullsNotDistinct: true,
79
81
  smartTags: true,
80
82
  tableId: true,
81
83
  tags: true,
@@ -108,6 +110,7 @@ async function handleFindFirst(argv, _prompter) {
108
110
  initiallyDeferred: true,
109
111
  isDeferrable: true,
110
112
  name: true,
113
+ nullsNotDistinct: true,
111
114
  smartTags: true,
112
115
  tableId: true,
113
116
  tags: true,
@@ -152,6 +155,7 @@ async function handleGet(argv, prompter) {
152
155
  initiallyDeferred: true,
153
156
  isDeferrable: true,
154
157
  name: true,
158
+ nullsNotDistinct: true,
155
159
  smartTags: true,
156
160
  tableId: true,
157
161
  tags: true,
@@ -222,6 +226,13 @@ async function handleCreate(argv, prompter) {
222
226
  required: false,
223
227
  skipPrompt: true,
224
228
  },
229
+ {
230
+ type: 'boolean',
231
+ name: 'nullsNotDistinct',
232
+ message: 'nullsNotDistinct',
233
+ required: false,
234
+ skipPrompt: true,
235
+ },
225
236
  {
226
237
  type: 'json',
227
238
  name: 'smartTags',
@@ -270,6 +281,7 @@ async function handleCreate(argv, prompter) {
270
281
  initiallyDeferred: cleanedData.initiallyDeferred,
271
282
  isDeferrable: cleanedData.isDeferrable,
272
283
  name: cleanedData.name,
284
+ nullsNotDistinct: cleanedData.nullsNotDistinct,
273
285
  smartTags: cleanedData.smartTags,
274
286
  tableId: cleanedData.tableId,
275
287
  tags: cleanedData.tags,
@@ -286,6 +298,7 @@ async function handleCreate(argv, prompter) {
286
298
  initiallyDeferred: true,
287
299
  isDeferrable: true,
288
300
  name: true,
301
+ nullsNotDistinct: true,
289
302
  smartTags: true,
290
303
  tableId: true,
291
304
  tags: true,
@@ -362,6 +375,13 @@ async function handleUpdate(argv, prompter) {
362
375
  required: false,
363
376
  skipPrompt: true,
364
377
  },
378
+ {
379
+ type: 'boolean',
380
+ name: 'nullsNotDistinct',
381
+ message: 'nullsNotDistinct',
382
+ required: false,
383
+ skipPrompt: true,
384
+ },
365
385
  {
366
386
  type: 'json',
367
387
  name: 'smartTags',
@@ -413,6 +433,7 @@ async function handleUpdate(argv, prompter) {
413
433
  initiallyDeferred: cleanedData.initiallyDeferred,
414
434
  isDeferrable: cleanedData.isDeferrable,
415
435
  name: cleanedData.name,
436
+ nullsNotDistinct: cleanedData.nullsNotDistinct,
416
437
  smartTags: cleanedData.smartTags,
417
438
  tableId: cleanedData.tableId,
418
439
  tags: cleanedData.tags,
@@ -429,6 +450,7 @@ async function handleUpdate(argv, prompter) {
429
450
  initiallyDeferred: true,
430
451
  isDeferrable: true,
431
452
  name: true,
453
+ nullsNotDistinct: true,
432
454
  smartTags: true,
433
455
  tableId: true,
434
456
  tags: true,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * CLI commands for RouteBinding
2
+ * CLI command for mutation updateFunctionFromSource
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const executor_1 = require("../executor");
4
+ const utils_1 = require("../utils");
5
+ exports.default = async (argv, prompter, _options) => {
6
+ try {
7
+ if (argv.help || argv.h) {
8
+ console.log("update-function-from-source - Replaces a `Function`'s definition from its source text; its database, schema and exposure are unchanged.\n\nUsage: update-function-from-source [OPTIONS]\n");
9
+ process.exit(0);
10
+ }
11
+ const answers = await prompter.prompt(argv, [
12
+ {
13
+ type: 'text',
14
+ name: 'input',
15
+ message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
16
+ required: true,
17
+ },
18
+ ]);
19
+ const client = (0, executor_1.getClient)();
20
+ const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
21
+ const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
22
+ const result = await client.mutation
23
+ .updateFunctionFromSource(parsedAnswers, {
24
+ select: selectFields,
25
+ })
26
+ .execute();
27
+ console.log(JSON.stringify(result, null, 2));
28
+ }
29
+ catch (error) {
30
+ console.error('Failed: updateFunctionFromSource');
31
+ if (error instanceof Error) {
32
+ console.error(error.message);
33
+ }
34
+ process.exit(1);
35
+ }
36
+ };