@constructive-sdk/cli 1.20.7 → 1.20.9

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 (109) hide show
  1. package/agent/orm/input-types.d.ts +4 -4
  2. package/api/cli/commands/email-provider-account.js +0 -22
  3. package/api/cli/commands/list-suspended-databases-record.d.ts +8 -0
  4. package/api/cli/commands/list-suspended-databases-record.js +152 -0
  5. package/api/cli/commands/platform-email-provider-account.js +0 -22
  6. package/api/cli/commands.js +3 -1
  7. package/api/cli/executor.d.ts +1 -0
  8. package/api/orm/index.d.ts +2 -0
  9. package/api/orm/index.js +2 -0
  10. package/api/orm/input-types.d.ts +60 -30
  11. package/api/orm/models/index.d.ts +1 -0
  12. package/api/orm/models/index.js +4 -2
  13. package/api/orm/models/listSuspendedDatabasesRecord.d.ts +36 -0
  14. package/api/orm/models/listSuspendedDatabasesRecord.js +80 -0
  15. package/auth/cli/commands/{provision-new-user.d.ts → request-magic-link.d.ts} +1 -1
  16. package/auth/cli/commands/{provision-new-user.js → request-magic-link.js} +3 -3
  17. package/auth/cli/commands/send-mfa-challenge-code.d.ts +8 -0
  18. package/auth/cli/commands/send-mfa-challenge-code.js +36 -0
  19. package/{esm/auth/cli/commands/provision-new-user.d.ts → auth/cli/commands/send-sms-otp.d.ts} +1 -1
  20. package/auth/cli/commands/send-sms-otp.js +36 -0
  21. package/auth/cli/commands.js +7 -3
  22. package/auth/cli/executor.d.ts +15 -5
  23. package/auth/orm/index.d.ts +15 -5
  24. package/auth/orm/input-types.d.ts +44 -14
  25. package/auth/orm/mutation/index.d.ts +25 -9
  26. package/auth/orm/mutation/index.js +36 -12
  27. package/compute/cli/commands/function-execution-logs-append.d.ts +8 -0
  28. package/compute/cli/commands/function-execution-logs-append.js +36 -0
  29. package/compute/cli/commands/function-schedule.d.ts +8 -0
  30. package/compute/cli/commands/function-schedule.js +434 -0
  31. package/compute/cli/commands/platform-function-execution-logs-append.d.ts +8 -0
  32. package/compute/cli/commands/platform-function-execution-logs-append.js +36 -0
  33. package/compute/cli/commands/platform-function-schedule.d.ts +8 -0
  34. package/compute/cli/commands/platform-function-schedule.js +414 -0
  35. package/compute/cli/commands.js +9 -1
  36. package/compute/cli/executor.d.ts +12 -0
  37. package/compute/orm/index.d.ts +14 -0
  38. package/compute/orm/index.js +4 -0
  39. package/compute/orm/input-types.d.ts +553 -4
  40. package/compute/orm/input-types.js +2 -0
  41. package/compute/orm/models/functionSchedule.d.ts +54 -0
  42. package/compute/orm/models/functionSchedule.js +104 -0
  43. package/compute/orm/models/index.d.ts +2 -0
  44. package/compute/orm/models/index.js +7 -3
  45. package/compute/orm/models/platformFunctionSchedule.d.ts +54 -0
  46. package/compute/orm/models/platformFunctionSchedule.js +104 -0
  47. package/compute/orm/mutation/index.d.ts +17 -1
  48. package/compute/orm/mutation/index.js +24 -0
  49. package/esm/agent/orm/input-types.d.ts +4 -4
  50. package/esm/api/cli/commands/email-provider-account.js +0 -22
  51. package/esm/api/cli/commands/list-suspended-databases-record.d.ts +8 -0
  52. package/esm/api/cli/commands/list-suspended-databases-record.js +150 -0
  53. package/esm/api/cli/commands/platform-email-provider-account.js +0 -22
  54. package/esm/api/cli/commands.js +3 -1
  55. package/esm/api/cli/executor.d.ts +1 -0
  56. package/esm/api/orm/index.d.ts +2 -0
  57. package/esm/api/orm/index.js +2 -0
  58. package/esm/api/orm/input-types.d.ts +60 -30
  59. package/esm/api/orm/models/index.d.ts +1 -0
  60. package/esm/api/orm/models/index.js +1 -0
  61. package/esm/api/orm/models/listSuspendedDatabasesRecord.d.ts +36 -0
  62. package/esm/api/orm/models/listSuspendedDatabasesRecord.js +76 -0
  63. package/esm/auth/cli/commands/request-magic-link.d.ts +8 -0
  64. package/esm/auth/cli/commands/{provision-new-user.js → request-magic-link.js} +3 -3
  65. package/esm/auth/cli/commands/send-mfa-challenge-code.d.ts +8 -0
  66. package/esm/auth/cli/commands/send-mfa-challenge-code.js +34 -0
  67. package/esm/auth/cli/commands/send-sms-otp.d.ts +8 -0
  68. package/esm/auth/cli/commands/send-sms-otp.js +34 -0
  69. package/esm/auth/cli/commands.js +7 -3
  70. package/esm/auth/cli/executor.d.ts +15 -5
  71. package/esm/auth/orm/index.d.ts +15 -5
  72. package/esm/auth/orm/input-types.d.ts +44 -14
  73. package/esm/auth/orm/mutation/index.d.ts +25 -9
  74. package/esm/auth/orm/mutation/index.js +36 -12
  75. package/esm/compute/cli/commands/function-execution-logs-append.d.ts +8 -0
  76. package/esm/compute/cli/commands/function-execution-logs-append.js +34 -0
  77. package/esm/compute/cli/commands/function-schedule.d.ts +8 -0
  78. package/esm/compute/cli/commands/function-schedule.js +432 -0
  79. package/esm/compute/cli/commands/platform-function-execution-logs-append.d.ts +8 -0
  80. package/esm/compute/cli/commands/platform-function-execution-logs-append.js +34 -0
  81. package/esm/compute/cli/commands/platform-function-schedule.d.ts +8 -0
  82. package/esm/compute/cli/commands/platform-function-schedule.js +412 -0
  83. package/esm/compute/cli/commands.js +9 -1
  84. package/esm/compute/cli/executor.d.ts +12 -0
  85. package/esm/compute/orm/index.d.ts +14 -0
  86. package/esm/compute/orm/index.js +4 -0
  87. package/esm/compute/orm/input-types.d.ts +553 -4
  88. package/esm/compute/orm/input-types.js +2 -0
  89. package/esm/compute/orm/models/functionSchedule.d.ts +54 -0
  90. package/esm/compute/orm/models/functionSchedule.js +100 -0
  91. package/esm/compute/orm/models/index.d.ts +2 -0
  92. package/esm/compute/orm/models/index.js +2 -0
  93. package/esm/compute/orm/models/platformFunctionSchedule.d.ts +54 -0
  94. package/esm/compute/orm/models/platformFunctionSchedule.js +100 -0
  95. package/esm/compute/orm/mutation/index.d.ts +17 -1
  96. package/esm/compute/orm/mutation/index.js +24 -0
  97. package/esm/modules/cli/commands/billing-provider-module.js +66 -0
  98. package/esm/modules/cli/commands/entity-type-provision.js +0 -88
  99. package/esm/modules/cli/commands/plans-module.js +0 -22
  100. package/esm/modules/orm/input-types.d.ts +26 -48
  101. package/esm/remote/cli/commands/machine.js +22 -0
  102. package/esm/remote/orm/input-types.d.ts +13 -1
  103. package/modules/cli/commands/billing-provider-module.js +66 -0
  104. package/modules/cli/commands/entity-type-provision.js +0 -88
  105. package/modules/cli/commands/plans-module.js +0 -22
  106. package/modules/orm/input-types.d.ts +26 -48
  107. package/package.json +5 -5
  108. package/remote/cli/commands/machine.js +22 -0
  109. package/remote/orm/input-types.d.ts +13 -1
@@ -251,6 +251,8 @@ export interface Machine {
251
251
  policy?: Record<string, unknown> | null;
252
252
  /** Principal this machine acts as (set with the row by <machines_table>_enroll) */
253
253
  principalId?: string | null;
254
+ /** Relay the runner was enrolled against (wss://...); clients attach through the same one */
255
+ relayUrl?: string | null;
254
256
  /** When enrollment was revoked; the relay refuses a revoked machine */
255
257
  revokedAt?: string | null;
256
258
  /** Hash of the enrollment credential the runner presents */
@@ -371,6 +373,7 @@ export type MachineSelect = {
371
373
  ownerId?: boolean;
372
374
  policy?: boolean;
373
375
  principalId?: boolean;
376
+ relayUrl?: boolean;
374
377
  revokedAt?: boolean;
375
378
  tokenHash?: boolean;
376
379
  updatedAt?: boolean;
@@ -472,6 +475,8 @@ export interface MachineFilter {
472
475
  policy?: JSONFilter;
473
476
  /** Filter by the object’s `principalId` field. */
474
477
  principalId?: UUIDFilter;
478
+ /** Filter by the object’s `relayUrl` field. */
479
+ relayUrl?: StringFilter;
475
480
  /** Filter by the object’s `revokedAt` field. */
476
481
  revokedAt?: DatetimeFilter;
477
482
  /** Filter by the object’s `tokenHash` field. */
@@ -583,7 +588,7 @@ export interface MachineSessionFilter {
583
588
  /** Filter by the object’s `updatedByPrincipal` field. */
584
589
  updatedByPrincipal?: UUIDFilter;
585
590
  }
586
- export type MachineOrderBy = 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'FACTS_ASC' | 'FACTS_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_SHARED_ASC' | 'IS_SHARED_DESC' | 'LABEL_ASC' | 'LABEL_DESC' | 'LAST_SEEN_AT_ASC' | 'LAST_SEEN_AT_DESC' | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'POLICY_ASC' | 'POLICY_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRINCIPAL_ID_ASC' | 'PRINCIPAL_ID_DESC' | 'REVOKED_AT_ASC' | 'REVOKED_AT_DESC' | 'TOKEN_HASH_ASC' | 'TOKEN_HASH_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'UPDATED_BY_PRINCIPAL_ASC' | 'UPDATED_BY_PRINCIPAL_DESC';
591
+ export type MachineOrderBy = 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'FACTS_ASC' | 'FACTS_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_SHARED_ASC' | 'IS_SHARED_DESC' | 'LABEL_ASC' | 'LABEL_DESC' | 'LAST_SEEN_AT_ASC' | 'LAST_SEEN_AT_DESC' | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'POLICY_ASC' | 'POLICY_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRINCIPAL_ID_ASC' | 'PRINCIPAL_ID_DESC' | 'RELAY_URL_ASC' | 'RELAY_URL_DESC' | 'REVOKED_AT_ASC' | 'REVOKED_AT_DESC' | 'TOKEN_HASH_ASC' | 'TOKEN_HASH_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'UPDATED_BY_PRINCIPAL_ASC' | 'UPDATED_BY_PRINCIPAL_DESC';
587
592
  export type MachineMessageOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CONTENT_ASC' | 'CONTENT_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'KIND_ASC' | 'KIND_DESC' | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'RECORDED_AT_ASC' | 'RECORDED_AT_DESC' | 'SEQ_ASC' | 'SEQ_DESC' | 'SESSION_ID_ASC' | 'SESSION_ID_DESC';
588
593
  export type MachineSessionOrderBy = 'AGENT_MODE_ASC' | 'AGENT_MODE_DESC' | 'AGENT_SESSION_REF_ASC' | 'AGENT_SESSION_REF_DESC' | 'ARGS_ASC' | 'ARGS_DESC' | 'COLS_ASC' | 'COLS_DESC' | 'COMMAND_ASC' | 'COMMAND_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'CWD_ASC' | 'CWD_DESC' | 'ENDED_AT_ASC' | 'ENDED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ENV_ASC' | 'ENV_DESC' | 'EXIT_CODE_ASC' | 'EXIT_CODE_DESC' | 'ID_ASC' | 'ID_DESC' | 'INTERACTIVE_ASC' | 'INTERACTIVE_DESC' | 'LAST_ACTIVITY_AT_ASC' | 'LAST_ACTIVITY_AT_DESC' | 'LAST_SEQ_ASC' | 'LAST_SEQ_DESC' | 'MACHINE_ID_ASC' | 'MACHINE_ID_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'PID_ASC' | 'PID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'RUN_ID_ASC' | 'RUN_ID_DESC' | 'STARTED_AT_ASC' | 'STARTED_AT_DESC' | 'STATE_ASC' | 'STATE_DESC' | 'TERM_ROWS_ASC' | 'TERM_ROWS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'UPDATED_BY_PRINCIPAL_ASC' | 'UPDATED_BY_PRINCIPAL_DESC';
589
594
  export interface CreateMachineInput {
@@ -599,6 +604,7 @@ export interface CreateMachineInput {
599
604
  ownerId: string;
600
605
  policy?: Record<string, unknown>;
601
606
  principalId?: string;
607
+ relayUrl?: string;
602
608
  revokedAt?: string;
603
609
  tokenHash: string;
604
610
  updatedBy?: string;
@@ -616,6 +622,7 @@ export interface MachinePatch {
616
622
  ownerId?: string | null;
617
623
  policy?: Record<string, unknown> | null;
618
624
  principalId?: string | null;
625
+ relayUrl?: string | null;
619
626
  revokedAt?: string | null;
620
627
  tokenHash?: string | null;
621
628
  updatedBy?: string | null;
@@ -733,6 +740,7 @@ export interface MachinesEnrollInput {
733
740
  entityId?: string;
734
741
  isShared?: boolean;
735
742
  label?: string;
743
+ relayUrl?: string;
736
744
  tokenHash?: string;
737
745
  }
738
746
  export interface ProvisionBucketInput {
@@ -784,6 +792,8 @@ export interface MachineInput {
784
792
  policy?: Record<string, unknown>;
785
793
  /** Principal this machine acts as (set with the row by <machines_table>_enroll) */
786
794
  principalId?: string;
795
+ /** Relay the runner was enrolled against (wss://...); clients attach through the same one */
796
+ relayUrl?: string;
787
797
  /** When enrollment was revoked; the relay refuses a revoked machine */
788
798
  revokedAt?: string;
789
799
  /** Hash of the enrollment credential the runner presents */
@@ -1275,6 +1285,8 @@ export interface MachineFilter {
1275
1285
  policy?: JSONFilter;
1276
1286
  /** Filter by the object’s `principalId` field. */
1277
1287
  principalId?: UUIDFilter;
1288
+ /** Filter by the object’s `relayUrl` field. */
1289
+ relayUrl?: StringFilter;
1278
1290
  /** Filter by the object’s `revokedAt` field. */
1279
1291
  revokedAt?: DatetimeFilter;
1280
1292
  /** Filter by the object’s `tokenHash` field. */
@@ -34,6 +34,7 @@ const fieldSchema = {
34
34
  billingSubscriptionsTableName: 'string',
35
35
  billingWebhookEventsTableId: 'uuid',
36
36
  billingWebhookEventsTableName: 'string',
37
+ bindCheckoutSessionFunction: 'string',
37
38
  clearScheduledChangeFunction: 'string',
38
39
  databaseId: 'uuid',
39
40
  finishBillingOperationFunction: 'string',
@@ -48,6 +49,7 @@ const fieldSchema = {
48
49
  getBillingSubscriptionFunction: 'string',
49
50
  getFallbackFreePlanFunction: 'string',
50
51
  getPlanPricingByExternalPriceFunction: 'string',
52
+ hasDueReconciliationsFunction: 'string',
51
53
  id: 'uuid',
52
54
  listDueReconciliationsFunction: 'string',
53
55
  listPendingUsageSyncFunction: 'string',
@@ -72,6 +74,7 @@ const fieldSchema = {
72
74
  upsertBillingProductFunction: 'string',
73
75
  upsertBillingSubscriptionFunction: 'string',
74
76
  upsertInvoiceFunction: 'string',
77
+ usageSyncShardCount: 'int',
75
78
  };
76
79
  const usage = '\nbilling-provider-module <command>\n\nCommands:\n list List billingProviderModule records\n find-first Find first matching billingProviderModule record\n get Get a billingProviderModule by ID\n create Create a new billingProviderModule\n update Update an existing billingProviderModule\n delete Delete a billingProviderModule\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
77
80
  exports.default = async (argv, prompter, _options) => {
@@ -140,6 +143,7 @@ async function handleList(argv, _prompter) {
140
143
  billingSubscriptionsTableName: true,
141
144
  billingWebhookEventsTableId: true,
142
145
  billingWebhookEventsTableName: true,
146
+ bindCheckoutSessionFunction: true,
143
147
  clearScheduledChangeFunction: true,
144
148
  databaseId: true,
145
149
  finishBillingOperationFunction: true,
@@ -154,6 +158,7 @@ async function handleList(argv, _prompter) {
154
158
  getBillingSubscriptionFunction: true,
155
159
  getFallbackFreePlanFunction: true,
156
160
  getPlanPricingByExternalPriceFunction: true,
161
+ hasDueReconciliationsFunction: true,
157
162
  id: true,
158
163
  listDueReconciliationsFunction: true,
159
164
  listPendingUsageSyncFunction: true,
@@ -178,6 +183,7 @@ async function handleList(argv, _prompter) {
178
183
  upsertBillingProductFunction: true,
179
184
  upsertBillingSubscriptionFunction: true,
180
185
  upsertInvoiceFunction: true,
186
+ usageSyncShardCount: true,
181
187
  };
182
188
  const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
183
189
  const client = (0, executor_1.getClient)();
@@ -220,6 +226,7 @@ async function handleFindFirst(argv, _prompter) {
220
226
  billingSubscriptionsTableName: true,
221
227
  billingWebhookEventsTableId: true,
222
228
  billingWebhookEventsTableName: true,
229
+ bindCheckoutSessionFunction: true,
223
230
  clearScheduledChangeFunction: true,
224
231
  databaseId: true,
225
232
  finishBillingOperationFunction: true,
@@ -234,6 +241,7 @@ async function handleFindFirst(argv, _prompter) {
234
241
  getBillingSubscriptionFunction: true,
235
242
  getFallbackFreePlanFunction: true,
236
243
  getPlanPricingByExternalPriceFunction: true,
244
+ hasDueReconciliationsFunction: true,
237
245
  id: true,
238
246
  listDueReconciliationsFunction: true,
239
247
  listPendingUsageSyncFunction: true,
@@ -258,6 +266,7 @@ async function handleFindFirst(argv, _prompter) {
258
266
  upsertBillingProductFunction: true,
259
267
  upsertBillingSubscriptionFunction: true,
260
268
  upsertInvoiceFunction: true,
269
+ usageSyncShardCount: true,
261
270
  };
262
271
  const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
263
272
  const client = (0, executor_1.getClient)();
@@ -312,6 +321,7 @@ async function handleGet(argv, prompter) {
312
321
  billingSubscriptionsTableName: true,
313
322
  billingWebhookEventsTableId: true,
314
323
  billingWebhookEventsTableName: true,
324
+ bindCheckoutSessionFunction: true,
315
325
  clearScheduledChangeFunction: true,
316
326
  databaseId: true,
317
327
  finishBillingOperationFunction: true,
@@ -326,6 +336,7 @@ async function handleGet(argv, prompter) {
326
336
  getBillingSubscriptionFunction: true,
327
337
  getFallbackFreePlanFunction: true,
328
338
  getPlanPricingByExternalPriceFunction: true,
339
+ hasDueReconciliationsFunction: true,
329
340
  id: true,
330
341
  listDueReconciliationsFunction: true,
331
342
  listPendingUsageSyncFunction: true,
@@ -350,6 +361,7 @@ async function handleGet(argv, prompter) {
350
361
  upsertBillingProductFunction: true,
351
362
  upsertBillingSubscriptionFunction: true,
352
363
  upsertInvoiceFunction: true,
364
+ usageSyncShardCount: true,
353
365
  },
354
366
  })
355
367
  .execute();
@@ -541,6 +553,13 @@ async function handleCreate(argv, prompter) {
541
553
  required: false,
542
554
  skipPrompt: true,
543
555
  },
556
+ {
557
+ type: 'text',
558
+ name: 'bindCheckoutSessionFunction',
559
+ message: 'bindCheckoutSessionFunction',
560
+ required: false,
561
+ skipPrompt: true,
562
+ },
544
563
  {
545
564
  type: 'text',
546
565
  name: 'clearScheduledChangeFunction',
@@ -638,6 +657,13 @@ async function handleCreate(argv, prompter) {
638
657
  required: false,
639
658
  skipPrompt: true,
640
659
  },
660
+ {
661
+ type: 'text',
662
+ name: 'hasDueReconciliationsFunction',
663
+ message: 'hasDueReconciliationsFunction',
664
+ required: false,
665
+ skipPrompt: true,
666
+ },
641
667
  {
642
668
  type: 'text',
643
669
  name: 'listDueReconciliationsFunction',
@@ -799,6 +825,13 @@ async function handleCreate(argv, prompter) {
799
825
  required: false,
800
826
  skipPrompt: true,
801
827
  },
828
+ {
829
+ type: 'text',
830
+ name: 'usageSyncShardCount',
831
+ message: 'usageSyncShardCount',
832
+ required: false,
833
+ skipPrompt: true,
834
+ },
802
835
  ]);
803
836
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
804
837
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -831,6 +864,7 @@ async function handleCreate(argv, prompter) {
831
864
  billingSubscriptionsTableName: cleanedData.billingSubscriptionsTableName,
832
865
  billingWebhookEventsTableId: cleanedData.billingWebhookEventsTableId,
833
866
  billingWebhookEventsTableName: cleanedData.billingWebhookEventsTableName,
867
+ bindCheckoutSessionFunction: cleanedData.bindCheckoutSessionFunction,
834
868
  clearScheduledChangeFunction: cleanedData.clearScheduledChangeFunction,
835
869
  databaseId: cleanedData.databaseId,
836
870
  finishBillingOperationFunction: cleanedData.finishBillingOperationFunction,
@@ -845,6 +879,7 @@ async function handleCreate(argv, prompter) {
845
879
  getBillingSubscriptionFunction: cleanedData.getBillingSubscriptionFunction,
846
880
  getFallbackFreePlanFunction: cleanedData.getFallbackFreePlanFunction,
847
881
  getPlanPricingByExternalPriceFunction: cleanedData.getPlanPricingByExternalPriceFunction,
882
+ hasDueReconciliationsFunction: cleanedData.hasDueReconciliationsFunction,
848
883
  listDueReconciliationsFunction: cleanedData.listDueReconciliationsFunction,
849
884
  listPendingUsageSyncFunction: cleanedData.listPendingUsageSyncFunction,
850
885
  markUsageSyncedFunction: cleanedData.markUsageSyncedFunction,
@@ -868,6 +903,7 @@ async function handleCreate(argv, prompter) {
868
903
  upsertBillingProductFunction: cleanedData.upsertBillingProductFunction,
869
904
  upsertBillingSubscriptionFunction: cleanedData.upsertBillingSubscriptionFunction,
870
905
  upsertInvoiceFunction: cleanedData.upsertInvoiceFunction,
906
+ usageSyncShardCount: cleanedData.usageSyncShardCount,
871
907
  },
872
908
  select: {
873
909
  activatePlanSubscriptionFunction: true,
@@ -895,6 +931,7 @@ async function handleCreate(argv, prompter) {
895
931
  billingSubscriptionsTableName: true,
896
932
  billingWebhookEventsTableId: true,
897
933
  billingWebhookEventsTableName: true,
934
+ bindCheckoutSessionFunction: true,
898
935
  clearScheduledChangeFunction: true,
899
936
  databaseId: true,
900
937
  finishBillingOperationFunction: true,
@@ -909,6 +946,7 @@ async function handleCreate(argv, prompter) {
909
946
  getBillingSubscriptionFunction: true,
910
947
  getFallbackFreePlanFunction: true,
911
948
  getPlanPricingByExternalPriceFunction: true,
949
+ hasDueReconciliationsFunction: true,
912
950
  id: true,
913
951
  listDueReconciliationsFunction: true,
914
952
  listPendingUsageSyncFunction: true,
@@ -933,6 +971,7 @@ async function handleCreate(argv, prompter) {
933
971
  upsertBillingProductFunction: true,
934
972
  upsertBillingSubscriptionFunction: true,
935
973
  upsertInvoiceFunction: true,
974
+ usageSyncShardCount: true,
936
975
  },
937
976
  })
938
977
  .execute();
@@ -1130,6 +1169,13 @@ async function handleUpdate(argv, prompter) {
1130
1169
  required: false,
1131
1170
  skipPrompt: true,
1132
1171
  },
1172
+ {
1173
+ type: 'text',
1174
+ name: 'bindCheckoutSessionFunction',
1175
+ message: 'bindCheckoutSessionFunction',
1176
+ required: false,
1177
+ skipPrompt: true,
1178
+ },
1133
1179
  {
1134
1180
  type: 'text',
1135
1181
  name: 'clearScheduledChangeFunction',
@@ -1227,6 +1273,13 @@ async function handleUpdate(argv, prompter) {
1227
1273
  required: false,
1228
1274
  skipPrompt: true,
1229
1275
  },
1276
+ {
1277
+ type: 'text',
1278
+ name: 'hasDueReconciliationsFunction',
1279
+ message: 'hasDueReconciliationsFunction',
1280
+ required: false,
1281
+ skipPrompt: true,
1282
+ },
1230
1283
  {
1231
1284
  type: 'text',
1232
1285
  name: 'listDueReconciliationsFunction',
@@ -1388,6 +1441,13 @@ async function handleUpdate(argv, prompter) {
1388
1441
  required: false,
1389
1442
  skipPrompt: true,
1390
1443
  },
1444
+ {
1445
+ type: 'text',
1446
+ name: 'usageSyncShardCount',
1447
+ message: 'usageSyncShardCount',
1448
+ required: false,
1449
+ skipPrompt: true,
1450
+ },
1391
1451
  ]);
1392
1452
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
1393
1453
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -1423,6 +1483,7 @@ async function handleUpdate(argv, prompter) {
1423
1483
  billingSubscriptionsTableName: cleanedData.billingSubscriptionsTableName,
1424
1484
  billingWebhookEventsTableId: cleanedData.billingWebhookEventsTableId,
1425
1485
  billingWebhookEventsTableName: cleanedData.billingWebhookEventsTableName,
1486
+ bindCheckoutSessionFunction: cleanedData.bindCheckoutSessionFunction,
1426
1487
  clearScheduledChangeFunction: cleanedData.clearScheduledChangeFunction,
1427
1488
  databaseId: cleanedData.databaseId,
1428
1489
  finishBillingOperationFunction: cleanedData.finishBillingOperationFunction,
@@ -1437,6 +1498,7 @@ async function handleUpdate(argv, prompter) {
1437
1498
  getBillingSubscriptionFunction: cleanedData.getBillingSubscriptionFunction,
1438
1499
  getFallbackFreePlanFunction: cleanedData.getFallbackFreePlanFunction,
1439
1500
  getPlanPricingByExternalPriceFunction: cleanedData.getPlanPricingByExternalPriceFunction,
1501
+ hasDueReconciliationsFunction: cleanedData.hasDueReconciliationsFunction,
1440
1502
  listDueReconciliationsFunction: cleanedData.listDueReconciliationsFunction,
1441
1503
  listPendingUsageSyncFunction: cleanedData.listPendingUsageSyncFunction,
1442
1504
  markUsageSyncedFunction: cleanedData.markUsageSyncedFunction,
@@ -1460,6 +1522,7 @@ async function handleUpdate(argv, prompter) {
1460
1522
  upsertBillingProductFunction: cleanedData.upsertBillingProductFunction,
1461
1523
  upsertBillingSubscriptionFunction: cleanedData.upsertBillingSubscriptionFunction,
1462
1524
  upsertInvoiceFunction: cleanedData.upsertInvoiceFunction,
1525
+ usageSyncShardCount: cleanedData.usageSyncShardCount,
1463
1526
  },
1464
1527
  select: {
1465
1528
  activatePlanSubscriptionFunction: true,
@@ -1487,6 +1550,7 @@ async function handleUpdate(argv, prompter) {
1487
1550
  billingSubscriptionsTableName: true,
1488
1551
  billingWebhookEventsTableId: true,
1489
1552
  billingWebhookEventsTableName: true,
1553
+ bindCheckoutSessionFunction: true,
1490
1554
  clearScheduledChangeFunction: true,
1491
1555
  databaseId: true,
1492
1556
  finishBillingOperationFunction: true,
@@ -1501,6 +1565,7 @@ async function handleUpdate(argv, prompter) {
1501
1565
  getBillingSubscriptionFunction: true,
1502
1566
  getFallbackFreePlanFunction: true,
1503
1567
  getPlanPricingByExternalPriceFunction: true,
1568
+ hasDueReconciliationsFunction: true,
1504
1569
  id: true,
1505
1570
  listDueReconciliationsFunction: true,
1506
1571
  listPendingUsageSyncFunction: true,
@@ -1525,6 +1590,7 @@ async function handleUpdate(argv, prompter) {
1525
1590
  upsertBillingProductFunction: true,
1526
1591
  upsertBillingSubscriptionFunction: true,
1527
1592
  upsertInvoiceFunction: true,
1593
+ usageSyncShardCount: true,
1528
1594
  },
1529
1595
  })
1530
1596
  .execute();
@@ -24,12 +24,10 @@ const fieldSchema = {
24
24
  name: 'string',
25
25
  namespaces: 'json',
26
26
  outAgentModuleId: 'uuid',
27
- outBucketsTableId: 'uuid',
28
27
  outDefinitionsTableId: 'uuid',
29
28
  outEntityTableId: 'uuid',
30
29
  outEntityTableName: 'string',
31
30
  outExecutionLogsTableId: 'uuid',
32
- outFilesTableId: 'uuid',
33
31
  outFunctionModuleId: 'uuid',
34
32
  outGraphModuleId: 'uuid',
35
33
  outGraphsTableId: 'uuid',
@@ -40,8 +38,6 @@ const fieldSchema = {
40
38
  outNamespaceEventsTableId: 'uuid',
41
39
  outNamespaceModuleId: 'uuid',
42
40
  outNamespacesTableId: 'uuid',
43
- outPathSharesTableId: 'uuid',
44
- outStorageModuleId: 'uuid',
45
41
  parentEntity: 'string',
46
42
  prefix: 'string',
47
43
  skipEntityPolicies: 'boolean',
@@ -106,12 +102,10 @@ async function handleList(argv, _prompter) {
106
102
  name: true,
107
103
  namespaces: true,
108
104
  outAgentModuleId: true,
109
- outBucketsTableId: true,
110
105
  outDefinitionsTableId: true,
111
106
  outEntityTableId: true,
112
107
  outEntityTableName: true,
113
108
  outExecutionLogsTableId: true,
114
- outFilesTableId: true,
115
109
  outFunctionModuleId: true,
116
110
  outGraphModuleId: true,
117
111
  outGraphsTableId: true,
@@ -122,8 +116,6 @@ async function handleList(argv, _prompter) {
122
116
  outNamespaceEventsTableId: true,
123
117
  outNamespaceModuleId: true,
124
118
  outNamespacesTableId: true,
125
- outPathSharesTableId: true,
126
- outStorageModuleId: true,
127
119
  parentEntity: true,
128
120
  prefix: true,
129
121
  skipEntityPolicies: true,
@@ -162,12 +154,10 @@ async function handleFindFirst(argv, _prompter) {
162
154
  name: true,
163
155
  namespaces: true,
164
156
  outAgentModuleId: true,
165
- outBucketsTableId: true,
166
157
  outDefinitionsTableId: true,
167
158
  outEntityTableId: true,
168
159
  outEntityTableName: true,
169
160
  outExecutionLogsTableId: true,
170
- outFilesTableId: true,
171
161
  outFunctionModuleId: true,
172
162
  outGraphModuleId: true,
173
163
  outGraphsTableId: true,
@@ -178,8 +168,6 @@ async function handleFindFirst(argv, _prompter) {
178
168
  outNamespaceEventsTableId: true,
179
169
  outNamespaceModuleId: true,
180
170
  outNamespacesTableId: true,
181
- outPathSharesTableId: true,
182
- outStorageModuleId: true,
183
171
  parentEntity: true,
184
172
  prefix: true,
185
173
  skipEntityPolicies: true,
@@ -230,12 +218,10 @@ async function handleGet(argv, prompter) {
230
218
  name: true,
231
219
  namespaces: true,
232
220
  outAgentModuleId: true,
233
- outBucketsTableId: true,
234
221
  outDefinitionsTableId: true,
235
222
  outEntityTableId: true,
236
223
  outEntityTableName: true,
237
224
  outExecutionLogsTableId: true,
238
- outFilesTableId: true,
239
225
  outFunctionModuleId: true,
240
226
  outGraphModuleId: true,
241
227
  outGraphsTableId: true,
@@ -246,8 +232,6 @@ async function handleGet(argv, prompter) {
246
232
  outNamespaceEventsTableId: true,
247
233
  outNamespaceModuleId: true,
248
234
  outNamespacesTableId: true,
249
- outPathSharesTableId: true,
250
- outStorageModuleId: true,
251
235
  parentEntity: true,
252
236
  prefix: true,
253
237
  skipEntityPolicies: true,
@@ -366,13 +350,6 @@ async function handleCreate(argv, prompter) {
366
350
  required: false,
367
351
  skipPrompt: true,
368
352
  },
369
- {
370
- type: 'text',
371
- name: 'outBucketsTableId',
372
- message: 'outBucketsTableId',
373
- required: false,
374
- skipPrompt: true,
375
- },
376
353
  {
377
354
  type: 'text',
378
355
  name: 'outDefinitionsTableId',
@@ -401,13 +378,6 @@ async function handleCreate(argv, prompter) {
401
378
  required: false,
402
379
  skipPrompt: true,
403
380
  },
404
- {
405
- type: 'text',
406
- name: 'outFilesTableId',
407
- message: 'outFilesTableId',
408
- required: false,
409
- skipPrompt: true,
410
- },
411
381
  {
412
382
  type: 'text',
413
383
  name: 'outFunctionModuleId',
@@ -478,20 +448,6 @@ async function handleCreate(argv, prompter) {
478
448
  required: false,
479
449
  skipPrompt: true,
480
450
  },
481
- {
482
- type: 'text',
483
- name: 'outPathSharesTableId',
484
- message: 'outPathSharesTableId',
485
- required: false,
486
- skipPrompt: true,
487
- },
488
- {
489
- type: 'text',
490
- name: 'outStorageModuleId',
491
- message: 'outStorageModuleId',
492
- required: false,
493
- skipPrompt: true,
494
- },
495
451
  {
496
452
  type: 'text',
497
453
  name: 'parentEntity',
@@ -554,12 +510,10 @@ async function handleCreate(argv, prompter) {
554
510
  name: cleanedData.name,
555
511
  namespaces: cleanedData.namespaces,
556
512
  outAgentModuleId: cleanedData.outAgentModuleId,
557
- outBucketsTableId: cleanedData.outBucketsTableId,
558
513
  outDefinitionsTableId: cleanedData.outDefinitionsTableId,
559
514
  outEntityTableId: cleanedData.outEntityTableId,
560
515
  outEntityTableName: cleanedData.outEntityTableName,
561
516
  outExecutionLogsTableId: cleanedData.outExecutionLogsTableId,
562
- outFilesTableId: cleanedData.outFilesTableId,
563
517
  outFunctionModuleId: cleanedData.outFunctionModuleId,
564
518
  outGraphModuleId: cleanedData.outGraphModuleId,
565
519
  outGraphsTableId: cleanedData.outGraphsTableId,
@@ -570,8 +524,6 @@ async function handleCreate(argv, prompter) {
570
524
  outNamespaceEventsTableId: cleanedData.outNamespaceEventsTableId,
571
525
  outNamespaceModuleId: cleanedData.outNamespaceModuleId,
572
526
  outNamespacesTableId: cleanedData.outNamespacesTableId,
573
- outPathSharesTableId: cleanedData.outPathSharesTableId,
574
- outStorageModuleId: cleanedData.outStorageModuleId,
575
527
  parentEntity: cleanedData.parentEntity,
576
528
  prefix: cleanedData.prefix,
577
529
  skipEntityPolicies: cleanedData.skipEntityPolicies,
@@ -595,12 +547,10 @@ async function handleCreate(argv, prompter) {
595
547
  name: true,
596
548
  namespaces: true,
597
549
  outAgentModuleId: true,
598
- outBucketsTableId: true,
599
550
  outDefinitionsTableId: true,
600
551
  outEntityTableId: true,
601
552
  outEntityTableName: true,
602
553
  outExecutionLogsTableId: true,
603
- outFilesTableId: true,
604
554
  outFunctionModuleId: true,
605
555
  outGraphModuleId: true,
606
556
  outGraphsTableId: true,
@@ -611,8 +561,6 @@ async function handleCreate(argv, prompter) {
611
561
  outNamespaceEventsTableId: true,
612
562
  outNamespaceModuleId: true,
613
563
  outNamespacesTableId: true,
614
- outPathSharesTableId: true,
615
- outStorageModuleId: true,
616
564
  parentEntity: true,
617
565
  prefix: true,
618
566
  skipEntityPolicies: true,
@@ -737,13 +685,6 @@ async function handleUpdate(argv, prompter) {
737
685
  required: false,
738
686
  skipPrompt: true,
739
687
  },
740
- {
741
- type: 'text',
742
- name: 'outBucketsTableId',
743
- message: 'outBucketsTableId',
744
- required: false,
745
- skipPrompt: true,
746
- },
747
688
  {
748
689
  type: 'text',
749
690
  name: 'outDefinitionsTableId',
@@ -772,13 +713,6 @@ async function handleUpdate(argv, prompter) {
772
713
  required: false,
773
714
  skipPrompt: true,
774
715
  },
775
- {
776
- type: 'text',
777
- name: 'outFilesTableId',
778
- message: 'outFilesTableId',
779
- required: false,
780
- skipPrompt: true,
781
- },
782
716
  {
783
717
  type: 'text',
784
718
  name: 'outFunctionModuleId',
@@ -849,20 +783,6 @@ async function handleUpdate(argv, prompter) {
849
783
  required: false,
850
784
  skipPrompt: true,
851
785
  },
852
- {
853
- type: 'text',
854
- name: 'outPathSharesTableId',
855
- message: 'outPathSharesTableId',
856
- required: false,
857
- skipPrompt: true,
858
- },
859
- {
860
- type: 'text',
861
- name: 'outStorageModuleId',
862
- message: 'outStorageModuleId',
863
- required: false,
864
- skipPrompt: true,
865
- },
866
786
  {
867
787
  type: 'text',
868
788
  name: 'parentEntity',
@@ -928,12 +848,10 @@ async function handleUpdate(argv, prompter) {
928
848
  name: cleanedData.name,
929
849
  namespaces: cleanedData.namespaces,
930
850
  outAgentModuleId: cleanedData.outAgentModuleId,
931
- outBucketsTableId: cleanedData.outBucketsTableId,
932
851
  outDefinitionsTableId: cleanedData.outDefinitionsTableId,
933
852
  outEntityTableId: cleanedData.outEntityTableId,
934
853
  outEntityTableName: cleanedData.outEntityTableName,
935
854
  outExecutionLogsTableId: cleanedData.outExecutionLogsTableId,
936
- outFilesTableId: cleanedData.outFilesTableId,
937
855
  outFunctionModuleId: cleanedData.outFunctionModuleId,
938
856
  outGraphModuleId: cleanedData.outGraphModuleId,
939
857
  outGraphsTableId: cleanedData.outGraphsTableId,
@@ -944,8 +862,6 @@ async function handleUpdate(argv, prompter) {
944
862
  outNamespaceEventsTableId: cleanedData.outNamespaceEventsTableId,
945
863
  outNamespaceModuleId: cleanedData.outNamespaceModuleId,
946
864
  outNamespacesTableId: cleanedData.outNamespacesTableId,
947
- outPathSharesTableId: cleanedData.outPathSharesTableId,
948
- outStorageModuleId: cleanedData.outStorageModuleId,
949
865
  parentEntity: cleanedData.parentEntity,
950
866
  prefix: cleanedData.prefix,
951
867
  skipEntityPolicies: cleanedData.skipEntityPolicies,
@@ -969,12 +885,10 @@ async function handleUpdate(argv, prompter) {
969
885
  name: true,
970
886
  namespaces: true,
971
887
  outAgentModuleId: true,
972
- outBucketsTableId: true,
973
888
  outDefinitionsTableId: true,
974
889
  outEntityTableId: true,
975
890
  outEntityTableName: true,
976
891
  outExecutionLogsTableId: true,
977
- outFilesTableId: true,
978
892
  outFunctionModuleId: true,
979
893
  outGraphModuleId: true,
980
894
  outGraphsTableId: true,
@@ -985,8 +899,6 @@ async function handleUpdate(argv, prompter) {
985
899
  outNamespaceEventsTableId: true,
986
900
  outNamespaceModuleId: true,
987
901
  outNamespacesTableId: true,
988
- outPathSharesTableId: true,
989
- outStorageModuleId: true,
990
902
  parentEntity: true,
991
903
  prefix: true,
992
904
  skipEntityPolicies: true,