@constructive-sdk/cli 1.20.7 → 1.20.8
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.
- package/agent/orm/input-types.d.ts +4 -4
- package/api/cli/commands/email-provider-account.js +0 -22
- package/api/cli/commands/list-suspended-databases-record.d.ts +8 -0
- package/api/cli/commands/list-suspended-databases-record.js +152 -0
- package/api/cli/commands/platform-email-provider-account.js +0 -22
- package/api/cli/commands.js +3 -1
- package/api/cli/executor.d.ts +1 -0
- package/api/orm/index.d.ts +2 -0
- package/api/orm/index.js +2 -0
- package/api/orm/input-types.d.ts +60 -30
- package/api/orm/models/index.d.ts +1 -0
- package/api/orm/models/index.js +4 -2
- package/api/orm/models/listSuspendedDatabasesRecord.d.ts +36 -0
- package/api/orm/models/listSuspendedDatabasesRecord.js +80 -0
- package/auth/cli/commands/{provision-new-user.d.ts → request-magic-link.d.ts} +1 -1
- package/auth/cli/commands/{provision-new-user.js → request-magic-link.js} +3 -3
- package/auth/cli/commands/send-mfa-challenge-code.d.ts +8 -0
- package/auth/cli/commands/send-mfa-challenge-code.js +36 -0
- package/{esm/auth/cli/commands/provision-new-user.d.ts → auth/cli/commands/send-sms-otp.d.ts} +1 -1
- package/auth/cli/commands/send-sms-otp.js +36 -0
- package/auth/cli/commands.js +7 -3
- package/auth/cli/executor.d.ts +15 -5
- package/auth/orm/index.d.ts +15 -5
- package/auth/orm/input-types.d.ts +44 -14
- package/auth/orm/mutation/index.d.ts +25 -9
- package/auth/orm/mutation/index.js +36 -12
- package/compute/cli/commands/function-execution-logs-append.d.ts +8 -0
- package/compute/cli/commands/function-execution-logs-append.js +36 -0
- package/compute/cli/commands/function-schedule.d.ts +8 -0
- package/compute/cli/commands/function-schedule.js +434 -0
- package/compute/cli/commands/platform-function-execution-logs-append.d.ts +8 -0
- package/compute/cli/commands/platform-function-execution-logs-append.js +36 -0
- package/compute/cli/commands/platform-function-schedule.d.ts +8 -0
- package/compute/cli/commands/platform-function-schedule.js +414 -0
- package/compute/cli/commands.js +9 -1
- package/compute/cli/executor.d.ts +12 -0
- package/compute/orm/index.d.ts +14 -0
- package/compute/orm/index.js +4 -0
- package/compute/orm/input-types.d.ts +553 -4
- package/compute/orm/input-types.js +2 -0
- package/compute/orm/models/functionSchedule.d.ts +54 -0
- package/compute/orm/models/functionSchedule.js +104 -0
- package/compute/orm/models/index.d.ts +2 -0
- package/compute/orm/models/index.js +7 -3
- package/compute/orm/models/platformFunctionSchedule.d.ts +54 -0
- package/compute/orm/models/platformFunctionSchedule.js +104 -0
- package/compute/orm/mutation/index.d.ts +17 -1
- package/compute/orm/mutation/index.js +24 -0
- package/esm/agent/orm/input-types.d.ts +4 -4
- package/esm/api/cli/commands/email-provider-account.js +0 -22
- package/esm/api/cli/commands/list-suspended-databases-record.d.ts +8 -0
- package/esm/api/cli/commands/list-suspended-databases-record.js +150 -0
- package/esm/api/cli/commands/platform-email-provider-account.js +0 -22
- package/esm/api/cli/commands.js +3 -1
- package/esm/api/cli/executor.d.ts +1 -0
- package/esm/api/orm/index.d.ts +2 -0
- package/esm/api/orm/index.js +2 -0
- package/esm/api/orm/input-types.d.ts +60 -30
- package/esm/api/orm/models/index.d.ts +1 -0
- package/esm/api/orm/models/index.js +1 -0
- package/esm/api/orm/models/listSuspendedDatabasesRecord.d.ts +36 -0
- package/esm/api/orm/models/listSuspendedDatabasesRecord.js +76 -0
- package/esm/auth/cli/commands/request-magic-link.d.ts +8 -0
- package/esm/auth/cli/commands/{provision-new-user.js → request-magic-link.js} +3 -3
- package/esm/auth/cli/commands/send-mfa-challenge-code.d.ts +8 -0
- package/esm/auth/cli/commands/send-mfa-challenge-code.js +34 -0
- package/esm/auth/cli/commands/send-sms-otp.d.ts +8 -0
- package/esm/auth/cli/commands/send-sms-otp.js +34 -0
- package/esm/auth/cli/commands.js +7 -3
- package/esm/auth/cli/executor.d.ts +15 -5
- package/esm/auth/orm/index.d.ts +15 -5
- package/esm/auth/orm/input-types.d.ts +44 -14
- package/esm/auth/orm/mutation/index.d.ts +25 -9
- package/esm/auth/orm/mutation/index.js +36 -12
- package/esm/compute/cli/commands/function-execution-logs-append.d.ts +8 -0
- package/esm/compute/cli/commands/function-execution-logs-append.js +34 -0
- package/esm/compute/cli/commands/function-schedule.d.ts +8 -0
- package/esm/compute/cli/commands/function-schedule.js +432 -0
- package/esm/compute/cli/commands/platform-function-execution-logs-append.d.ts +8 -0
- package/esm/compute/cli/commands/platform-function-execution-logs-append.js +34 -0
- package/esm/compute/cli/commands/platform-function-schedule.d.ts +8 -0
- package/esm/compute/cli/commands/platform-function-schedule.js +412 -0
- package/esm/compute/cli/commands.js +9 -1
- package/esm/compute/cli/executor.d.ts +12 -0
- package/esm/compute/orm/index.d.ts +14 -0
- package/esm/compute/orm/index.js +4 -0
- package/esm/compute/orm/input-types.d.ts +553 -4
- package/esm/compute/orm/input-types.js +2 -0
- package/esm/compute/orm/models/functionSchedule.d.ts +54 -0
- package/esm/compute/orm/models/functionSchedule.js +100 -0
- package/esm/compute/orm/models/index.d.ts +2 -0
- package/esm/compute/orm/models/index.js +2 -0
- package/esm/compute/orm/models/platformFunctionSchedule.d.ts +54 -0
- package/esm/compute/orm/models/platformFunctionSchedule.js +100 -0
- package/esm/compute/orm/mutation/index.d.ts +17 -1
- package/esm/compute/orm/mutation/index.js +24 -0
- package/esm/modules/cli/commands/billing-provider-module.js +66 -0
- package/esm/modules/cli/commands/entity-type-provision.js +0 -88
- package/esm/modules/cli/commands/plans-module.js +0 -22
- package/esm/modules/orm/input-types.d.ts +26 -48
- package/esm/remote/cli/commands/machine.js +22 -0
- package/esm/remote/orm/input-types.d.ts +13 -1
- package/modules/cli/commands/billing-provider-module.js +66 -0
- package/modules/cli/commands/entity-type-provision.js +0 -88
- package/modules/cli/commands/plans-module.js +0 -22
- package/modules/orm/input-types.d.ts +26 -48
- package/package.json +2 -2
- package/remote/cli/commands/machine.js +22 -0
- package/remote/orm/input-types.d.ts +13 -1
|
@@ -21,6 +21,7 @@ const fieldSchema = {
|
|
|
21
21
|
ownerId: 'uuid',
|
|
22
22
|
policy: 'json',
|
|
23
23
|
principalId: 'uuid',
|
|
24
|
+
relayUrl: 'string',
|
|
24
25
|
revokedAt: 'string',
|
|
25
26
|
tokenHash: 'string',
|
|
26
27
|
updatedAt: 'string',
|
|
@@ -81,6 +82,7 @@ async function handleList(argv, _prompter) {
|
|
|
81
82
|
ownerId: true,
|
|
82
83
|
policy: true,
|
|
83
84
|
principalId: true,
|
|
85
|
+
relayUrl: true,
|
|
84
86
|
revokedAt: true,
|
|
85
87
|
tokenHash: true,
|
|
86
88
|
updatedAt: true,
|
|
@@ -115,6 +117,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
115
117
|
ownerId: true,
|
|
116
118
|
policy: true,
|
|
117
119
|
principalId: true,
|
|
120
|
+
relayUrl: true,
|
|
118
121
|
revokedAt: true,
|
|
119
122
|
tokenHash: true,
|
|
120
123
|
updatedAt: true,
|
|
@@ -161,6 +164,7 @@ async function handleGet(argv, prompter) {
|
|
|
161
164
|
ownerId: true,
|
|
162
165
|
policy: true,
|
|
163
166
|
principalId: true,
|
|
167
|
+
relayUrl: true,
|
|
164
168
|
revokedAt: true,
|
|
165
169
|
tokenHash: true,
|
|
166
170
|
updatedAt: true,
|
|
@@ -249,6 +253,13 @@ async function handleCreate(argv, prompter) {
|
|
|
249
253
|
required: false,
|
|
250
254
|
skipPrompt: true,
|
|
251
255
|
},
|
|
256
|
+
{
|
|
257
|
+
type: 'text',
|
|
258
|
+
name: 'relayUrl',
|
|
259
|
+
message: 'relayUrl',
|
|
260
|
+
required: false,
|
|
261
|
+
skipPrompt: true,
|
|
262
|
+
},
|
|
252
263
|
{
|
|
253
264
|
type: 'text',
|
|
254
265
|
name: 'revokedAt',
|
|
@@ -293,6 +304,7 @@ async function handleCreate(argv, prompter) {
|
|
|
293
304
|
ownerId: cleanedData.ownerId,
|
|
294
305
|
policy: cleanedData.policy,
|
|
295
306
|
principalId: cleanedData.principalId,
|
|
307
|
+
relayUrl: cleanedData.relayUrl,
|
|
296
308
|
revokedAt: cleanedData.revokedAt,
|
|
297
309
|
tokenHash: cleanedData.tokenHash,
|
|
298
310
|
updatedBy: cleanedData.updatedBy,
|
|
@@ -311,6 +323,7 @@ async function handleCreate(argv, prompter) {
|
|
|
311
323
|
ownerId: true,
|
|
312
324
|
policy: true,
|
|
313
325
|
principalId: true,
|
|
326
|
+
relayUrl: true,
|
|
314
327
|
revokedAt: true,
|
|
315
328
|
tokenHash: true,
|
|
316
329
|
updatedAt: true,
|
|
@@ -405,6 +418,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
405
418
|
required: false,
|
|
406
419
|
skipPrompt: true,
|
|
407
420
|
},
|
|
421
|
+
{
|
|
422
|
+
type: 'text',
|
|
423
|
+
name: 'relayUrl',
|
|
424
|
+
message: 'relayUrl',
|
|
425
|
+
required: false,
|
|
426
|
+
skipPrompt: true,
|
|
427
|
+
},
|
|
408
428
|
{
|
|
409
429
|
type: 'text',
|
|
410
430
|
name: 'revokedAt',
|
|
@@ -452,6 +472,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
452
472
|
ownerId: cleanedData.ownerId,
|
|
453
473
|
policy: cleanedData.policy,
|
|
454
474
|
principalId: cleanedData.principalId,
|
|
475
|
+
relayUrl: cleanedData.relayUrl,
|
|
455
476
|
revokedAt: cleanedData.revokedAt,
|
|
456
477
|
tokenHash: cleanedData.tokenHash,
|
|
457
478
|
updatedBy: cleanedData.updatedBy,
|
|
@@ -470,6 +491,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
470
491
|
ownerId: true,
|
|
471
492
|
policy: true,
|
|
472
493
|
principalId: true,
|
|
494
|
+
relayUrl: true,
|
|
473
495
|
revokedAt: true,
|
|
474
496
|
tokenHash: true,
|
|
475
497
|
updatedAt: true,
|
|
@@ -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. */
|