@constructive-sdk/cli 1.21.5 → 1.21.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -88,7 +88,7 @@ const createCommandMap = () => ({
88
88
  'submit-app-invite-code': submitAppInviteCodeCmd,
89
89
  'submit-org-invite-code': submitOrgInviteCodeCmd,
90
90
  });
91
- 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';
91
+ 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";
92
92
  export const commands = async (argv, prompter, options) => {
93
93
  if (argv.help || argv.h) {
94
94
  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;
@@ -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, [
@@ -60,7 +60,7 @@ const createCommandMap = () => ({
60
60
  'platform-agent-thread': platformAgentThreadCmd,
61
61
  'provision-bucket': provisionBucketCmd,
62
62
  });
63
- 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';
63
+ 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";
64
64
  export const commands = async (argv, prompter, options) => {
65
65
  if (argv.help || argv.h) {
66
66
  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;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI command for mutation createFunctionFromSource
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import { getClient } from '../executor';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
+ export default async (argv, prompter, _options) => {
4
+ try {
5
+ if (argv.help || argv.h) {
6
+ console.log('create-function-from-source - Creates a `Function` from its `CREATE FUNCTION` source text.\n\nUsage: create-function-from-source [OPTIONS]\n');
7
+ process.exit(0);
8
+ }
9
+ const answers = await prompter.prompt(argv, [
10
+ {
11
+ type: 'text',
12
+ name: 'input',
13
+ message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
14
+ required: true,
15
+ },
16
+ ]);
17
+ const client = getClient();
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
+ const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
+ const result = await client.mutation
21
+ .createFunctionFromSource(parsedAnswers, {
22
+ select: selectFields,
23
+ })
24
+ .execute();
25
+ console.log(JSON.stringify(result, null, 2));
26
+ }
27
+ catch (error) {
28
+ console.error('Failed: createFunctionFromSource');
29
+ if (error instanceof Error) {
30
+ console.error(error.message);
31
+ }
32
+ process.exit(1);
33
+ }
34
+ };
@@ -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,19 @@
1
+ import { getClient } from '../executor';
2
+ export default async (argv, prompter, _options) => {
3
+ try {
4
+ if (argv.help || argv.h) {
5
+ console.log('email-shared-account - emailSharedAccount\n\nUsage: email-shared-account [OPTIONS]\n');
6
+ process.exit(0);
7
+ }
8
+ const client = getClient();
9
+ const result = await client.query.emailSharedAccount().execute();
10
+ console.log(JSON.stringify(result, null, 2));
11
+ }
12
+ catch (error) {
13
+ console.error('Failed: emailSharedAccount');
14
+ if (error instanceof Error) {
15
+ console.error(error.message);
16
+ }
17
+ process.exit(1);
18
+ }
19
+ };
@@ -16,6 +16,7 @@ const fieldSchema = {
16
16
  domain: 'string',
17
17
  id: 'uuid',
18
18
  isWildcard: 'boolean',
19
+ publicPort: 'int',
19
20
  tlsReadyAt: 'string',
20
21
  tlsStatus: 'string',
21
22
  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,
@@ -106,6 +108,7 @@ async function handleFindFirst(argv, _prompter) {
106
108
  domain: true,
107
109
  id: true,
108
110
  isWildcard: true,
111
+ publicPort: true,
109
112
  tlsReadyAt: true,
110
113
  tlsStatus: true,
111
114
  updatedAt: true,
@@ -150,6 +153,7 @@ async function handleGet(argv, prompter) {
150
153
  domain: true,
151
154
  id: true,
152
155
  isWildcard: true,
156
+ publicPort: true,
153
157
  tlsReadyAt: true,
154
158
  tlsStatus: true,
155
159
  updatedAt: true,
@@ -219,6 +223,13 @@ async function handleCreate(argv, prompter) {
219
223
  required: false,
220
224
  skipPrompt: true,
221
225
  },
226
+ {
227
+ type: 'text',
228
+ name: 'publicPort',
229
+ message: 'publicPort',
230
+ required: false,
231
+ skipPrompt: true,
232
+ },
222
233
  {
223
234
  type: 'text',
224
235
  name: 'tlsReadyAt',
@@ -268,6 +279,7 @@ async function handleCreate(argv, prompter) {
268
279
  databaseId: cleanedData.databaseId,
269
280
  domain: cleanedData.domain,
270
281
  isWildcard: cleanedData.isWildcard,
282
+ publicPort: cleanedData.publicPort,
271
283
  tlsReadyAt: cleanedData.tlsReadyAt,
272
284
  tlsStatus: cleanedData.tlsStatus,
273
285
  updatedByPrincipal: cleanedData.updatedByPrincipal,
@@ -284,6 +296,7 @@ async function handleCreate(argv, prompter) {
284
296
  domain: true,
285
297
  id: true,
286
298
  isWildcard: true,
299
+ publicPort: true,
287
300
  tlsReadyAt: true,
288
301
  tlsStatus: true,
289
302
  updatedAt: true,
@@ -359,6 +372,13 @@ async function handleUpdate(argv, prompter) {
359
372
  required: false,
360
373
  skipPrompt: true,
361
374
  },
375
+ {
376
+ type: 'text',
377
+ name: 'publicPort',
378
+ message: 'publicPort',
379
+ required: false,
380
+ skipPrompt: true,
381
+ },
362
382
  {
363
383
  type: 'text',
364
384
  name: 'tlsReadyAt',
@@ -411,6 +431,7 @@ async function handleUpdate(argv, prompter) {
411
431
  databaseId: cleanedData.databaseId,
412
432
  domain: cleanedData.domain,
413
433
  isWildcard: cleanedData.isWildcard,
434
+ publicPort: cleanedData.publicPort,
414
435
  tlsReadyAt: cleanedData.tlsReadyAt,
415
436
  tlsStatus: cleanedData.tlsStatus,
416
437
  updatedByPrincipal: cleanedData.updatedByPrincipal,
@@ -427,6 +448,7 @@ async function handleUpdate(argv, prompter) {
427
448
  domain: true,
428
449
  id: true,
429
450
  isWildcard: true,
451
+ publicPort: true,
430
452
  tlsReadyAt: true,
431
453
  tlsStatus: true,
432
454
  updatedAt: true,
@@ -15,6 +15,7 @@ const fieldSchema = {
15
15
  domain: 'string',
16
16
  id: 'uuid',
17
17
  isWildcard: 'boolean',
18
+ publicPort: 'int',
18
19
  tlsReadyAt: 'string',
19
20
  tlsStatus: 'string',
20
21
  updatedAt: 'string',
@@ -72,6 +73,7 @@ async function handleList(argv, _prompter) {
72
73
  domain: true,
73
74
  id: true,
74
75
  isWildcard: true,
76
+ publicPort: true,
75
77
  tlsReadyAt: true,
76
78
  tlsStatus: true,
77
79
  updatedAt: true,
@@ -103,6 +105,7 @@ async function handleFindFirst(argv, _prompter) {
103
105
  domain: true,
104
106
  id: true,
105
107
  isWildcard: true,
108
+ publicPort: true,
106
109
  tlsReadyAt: true,
107
110
  tlsStatus: true,
108
111
  updatedAt: true,
@@ -146,6 +149,7 @@ async function handleGet(argv, prompter) {
146
149
  domain: true,
147
150
  id: true,
148
151
  isWildcard: true,
152
+ publicPort: true,
149
153
  tlsReadyAt: true,
150
154
  tlsStatus: true,
151
155
  updatedAt: true,
@@ -209,6 +213,13 @@ async function handleCreate(argv, prompter) {
209
213
  required: false,
210
214
  skipPrompt: true,
211
215
  },
216
+ {
217
+ type: 'text',
218
+ name: 'publicPort',
219
+ message: 'publicPort',
220
+ required: false,
221
+ skipPrompt: true,
222
+ },
212
223
  {
213
224
  type: 'text',
214
225
  name: 'tlsReadyAt',
@@ -257,6 +268,7 @@ async function handleCreate(argv, prompter) {
257
268
  createdByPrincipal: cleanedData.createdByPrincipal,
258
269
  domain: cleanedData.domain,
259
270
  isWildcard: cleanedData.isWildcard,
271
+ publicPort: cleanedData.publicPort,
260
272
  tlsReadyAt: cleanedData.tlsReadyAt,
261
273
  tlsStatus: cleanedData.tlsStatus,
262
274
  updatedByPrincipal: cleanedData.updatedByPrincipal,
@@ -272,6 +284,7 @@ async function handleCreate(argv, prompter) {
272
284
  domain: true,
273
285
  id: true,
274
286
  isWildcard: true,
287
+ publicPort: true,
275
288
  tlsReadyAt: true,
276
289
  tlsStatus: true,
277
290
  updatedAt: true,
@@ -341,6 +354,13 @@ async function handleUpdate(argv, prompter) {
341
354
  required: false,
342
355
  skipPrompt: true,
343
356
  },
357
+ {
358
+ type: 'text',
359
+ name: 'publicPort',
360
+ message: 'publicPort',
361
+ required: false,
362
+ skipPrompt: true,
363
+ },
344
364
  {
345
365
  type: 'text',
346
366
  name: 'tlsReadyAt',
@@ -392,6 +412,7 @@ async function handleUpdate(argv, prompter) {
392
412
  createdByPrincipal: cleanedData.createdByPrincipal,
393
413
  domain: cleanedData.domain,
394
414
  isWildcard: cleanedData.isWildcard,
415
+ publicPort: cleanedData.publicPort,
395
416
  tlsReadyAt: cleanedData.tlsReadyAt,
396
417
  tlsStatus: cleanedData.tlsStatus,
397
418
  updatedByPrincipal: cleanedData.updatedByPrincipal,
@@ -407,6 +428,7 @@ async function handleUpdate(argv, prompter) {
407
428
  domain: true,
408
429
  id: true,
409
430
  isWildcard: true,
431
+ publicPort: true,
410
432
  tlsReadyAt: true,
411
433
  tlsStatus: true,
412
434
  updatedAt: true,
@@ -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, [
@@ -16,6 +16,7 @@ const fieldSchema = {
16
16
  initiallyDeferred: 'boolean',
17
17
  isDeferrable: 'boolean',
18
18
  name: 'string',
19
+ nullsNotDistinct: 'boolean',
19
20
  smartTags: 'json',
20
21
  tableId: 'uuid',
21
22
  tags: 'string',
@@ -74,6 +75,7 @@ async function handleList(argv, _prompter) {
74
75
  initiallyDeferred: true,
75
76
  isDeferrable: true,
76
77
  name: true,
78
+ nullsNotDistinct: true,
77
79
  smartTags: true,
78
80
  tableId: true,
79
81
  tags: true,
@@ -106,6 +108,7 @@ async function handleFindFirst(argv, _prompter) {
106
108
  initiallyDeferred: true,
107
109
  isDeferrable: true,
108
110
  name: true,
111
+ nullsNotDistinct: true,
109
112
  smartTags: true,
110
113
  tableId: true,
111
114
  tags: true,
@@ -150,6 +153,7 @@ async function handleGet(argv, prompter) {
150
153
  initiallyDeferred: true,
151
154
  isDeferrable: true,
152
155
  name: true,
156
+ nullsNotDistinct: true,
153
157
  smartTags: true,
154
158
  tableId: true,
155
159
  tags: true,
@@ -220,6 +224,13 @@ async function handleCreate(argv, prompter) {
220
224
  required: false,
221
225
  skipPrompt: true,
222
226
  },
227
+ {
228
+ type: 'boolean',
229
+ name: 'nullsNotDistinct',
230
+ message: 'nullsNotDistinct',
231
+ required: false,
232
+ skipPrompt: true,
233
+ },
223
234
  {
224
235
  type: 'json',
225
236
  name: 'smartTags',
@@ -268,6 +279,7 @@ async function handleCreate(argv, prompter) {
268
279
  initiallyDeferred: cleanedData.initiallyDeferred,
269
280
  isDeferrable: cleanedData.isDeferrable,
270
281
  name: cleanedData.name,
282
+ nullsNotDistinct: cleanedData.nullsNotDistinct,
271
283
  smartTags: cleanedData.smartTags,
272
284
  tableId: cleanedData.tableId,
273
285
  tags: cleanedData.tags,
@@ -284,6 +296,7 @@ async function handleCreate(argv, prompter) {
284
296
  initiallyDeferred: true,
285
297
  isDeferrable: true,
286
298
  name: true,
299
+ nullsNotDistinct: true,
287
300
  smartTags: true,
288
301
  tableId: true,
289
302
  tags: true,
@@ -360,6 +373,13 @@ async function handleUpdate(argv, prompter) {
360
373
  required: false,
361
374
  skipPrompt: true,
362
375
  },
376
+ {
377
+ type: 'boolean',
378
+ name: 'nullsNotDistinct',
379
+ message: 'nullsNotDistinct',
380
+ required: false,
381
+ skipPrompt: true,
382
+ },
363
383
  {
364
384
  type: 'json',
365
385
  name: 'smartTags',
@@ -411,6 +431,7 @@ async function handleUpdate(argv, prompter) {
411
431
  initiallyDeferred: cleanedData.initiallyDeferred,
412
432
  isDeferrable: cleanedData.isDeferrable,
413
433
  name: cleanedData.name,
434
+ nullsNotDistinct: cleanedData.nullsNotDistinct,
414
435
  smartTags: cleanedData.smartTags,
415
436
  tableId: cleanedData.tableId,
416
437
  tags: cleanedData.tags,
@@ -427,6 +448,7 @@ async function handleUpdate(argv, prompter) {
427
448
  initiallyDeferred: true,
428
449
  isDeferrable: true,
429
450
  name: true,
451
+ nullsNotDistinct: true,
430
452
  smartTags: true,
431
453
  tableId: true,
432
454
  tags: true,
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI command for mutation updateFunctionFromSource
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import { getClient } from '../executor';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
+ export default async (argv, prompter, _options) => {
4
+ try {
5
+ if (argv.help || argv.h) {
6
+ 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");
7
+ process.exit(0);
8
+ }
9
+ const answers = await prompter.prompt(argv, [
10
+ {
11
+ type: 'text',
12
+ name: 'input',
13
+ message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
14
+ required: true,
15
+ },
16
+ ]);
17
+ const client = getClient();
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
+ const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
+ const result = await client.mutation
21
+ .updateFunctionFromSource(parsedAnswers, {
22
+ select: selectFields,
23
+ })
24
+ .execute();
25
+ console.log(JSON.stringify(result, null, 2));
26
+ }
27
+ catch (error) {
28
+ console.error('Failed: updateFunctionFromSource');
29
+ if (error instanceof Error) {
30
+ console.error(error.message);
31
+ }
32
+ process.exit(1);
33
+ }
34
+ };