@constructive-sdk/cli 0.21.4 → 0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-sdk/cli",
3
- "version": "0.21.4",
3
+ "version": "0.21.6",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Constructive CLI SDK - Auto-generated GraphQL CLI with ORM client, context management, and interactive prompts",
6
6
  "main": "index.js",
@@ -46,7 +46,7 @@
46
46
  ],
47
47
  "dependencies": {
48
48
  "@0no-co/graphql.web": "^1.1.2",
49
- "@constructive-io/graphql-query": "^3.23.2",
49
+ "@constructive-io/graphql-query": "^3.23.4",
50
50
  "@constructive-io/graphql-types": "^3.9.1",
51
51
  "appstash": "^0.7.0",
52
52
  "gql-ast": "^3.9.1",
@@ -56,11 +56,11 @@
56
56
  "yanse": "^0.2.1"
57
57
  },
58
58
  "devDependencies": {
59
- "@constructive-io/graphql-codegen": "^4.40.4",
59
+ "@constructive-io/graphql-codegen": "^4.40.6",
60
60
  "@types/node": "^22.19.11",
61
61
  "makage": "^0.3.0",
62
62
  "tsx": "^4.19.0",
63
63
  "typescript": "^5.9.3"
64
64
  },
65
- "gitHead": "a8badcda8c3aa551194622b866fc61d4ab3e4eda"
65
+ "gitHead": "28b0b236e65b2a2228acad4fd840543c04b24825"
66
66
  }
@@ -20,6 +20,7 @@ const fieldSchema = {
20
20
  multiple: 'boolean',
21
21
  data: 'json',
22
22
  profileId: 'uuid',
23
+ isReadOnly: 'boolean',
23
24
  expiresAt: 'string',
24
25
  createdAt: 'string',
25
26
  updatedAt: 'string',
@@ -78,6 +79,7 @@ async function handleList(argv, _prompter) {
78
79
  multiple: true,
79
80
  data: true,
80
81
  profileId: true,
82
+ isReadOnly: true,
81
83
  expiresAt: true,
82
84
  createdAt: true,
83
85
  updatedAt: true,
@@ -110,6 +112,7 @@ async function handleFindFirst(argv, _prompter) {
110
112
  multiple: true,
111
113
  data: true,
112
114
  profileId: true,
115
+ isReadOnly: true,
113
116
  expiresAt: true,
114
117
  createdAt: true,
115
118
  updatedAt: true,
@@ -154,6 +157,7 @@ async function handleGet(argv, prompter) {
154
157
  multiple: true,
155
158
  data: true,
156
159
  profileId: true,
160
+ isReadOnly: true,
157
161
  expiresAt: true,
158
162
  createdAt: true,
159
163
  updatedAt: true,
@@ -244,6 +248,13 @@ async function handleCreate(argv, prompter) {
244
248
  required: false,
245
249
  skipPrompt: true,
246
250
  },
251
+ {
252
+ type: 'boolean',
253
+ name: 'isReadOnly',
254
+ message: 'isReadOnly',
255
+ required: false,
256
+ skipPrompt: true,
257
+ },
247
258
  {
248
259
  type: 'text',
249
260
  name: 'expiresAt',
@@ -274,6 +285,7 @@ async function handleCreate(argv, prompter) {
274
285
  multiple: cleanedData.multiple,
275
286
  data: cleanedData.data,
276
287
  profileId: cleanedData.profileId,
288
+ isReadOnly: cleanedData.isReadOnly,
277
289
  expiresAt: cleanedData.expiresAt,
278
290
  entityId: cleanedData.entityId,
279
291
  },
@@ -289,6 +301,7 @@ async function handleCreate(argv, prompter) {
289
301
  multiple: true,
290
302
  data: true,
291
303
  profileId: true,
304
+ isReadOnly: true,
292
305
  expiresAt: true,
293
306
  createdAt: true,
294
307
  updatedAt: true,
@@ -385,6 +398,13 @@ async function handleUpdate(argv, prompter) {
385
398
  required: false,
386
399
  skipPrompt: true,
387
400
  },
401
+ {
402
+ type: 'boolean',
403
+ name: 'isReadOnly',
404
+ message: 'isReadOnly',
405
+ required: false,
406
+ skipPrompt: true,
407
+ },
388
408
  {
389
409
  type: 'text',
390
410
  name: 'expiresAt',
@@ -418,6 +438,7 @@ async function handleUpdate(argv, prompter) {
418
438
  multiple: cleanedData.multiple,
419
439
  data: cleanedData.data,
420
440
  profileId: cleanedData.profileId,
441
+ isReadOnly: cleanedData.isReadOnly,
421
442
  expiresAt: cleanedData.expiresAt,
422
443
  entityId: cleanedData.entityId,
423
444
  },
@@ -433,6 +454,7 @@ async function handleUpdate(argv, prompter) {
433
454
  multiple: true,
434
455
  data: true,
435
456
  profileId: true,
457
+ isReadOnly: true,
436
458
  expiresAt: true,
437
459
  createdAt: true,
438
460
  updatedAt: true,
@@ -2218,6 +2218,8 @@ export interface OrgInvite {
2218
2218
  data?: Record<string, unknown> | null;
2219
2219
  /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */
2220
2220
  profileId?: string | null;
2221
+ /** Whether the resulting membership should be read-only when this invite is claimed */
2222
+ isReadOnly?: boolean | null;
2221
2223
  /** Timestamp after which this invitation can no longer be redeemed */
2222
2224
  expiresAt?: string | null;
2223
2225
  createdAt?: string | null;
@@ -7024,6 +7026,7 @@ export type OrgInviteSelect = {
7024
7026
  multiple?: boolean;
7025
7027
  data?: boolean;
7026
7028
  profileId?: boolean;
7029
+ isReadOnly?: boolean;
7027
7030
  expiresAt?: boolean;
7028
7031
  createdAt?: boolean;
7029
7032
  updatedAt?: boolean;
@@ -12512,6 +12515,8 @@ export interface OrgInviteFilter {
12512
12515
  multiple?: BooleanFilter;
12513
12516
  /** Filter by the object’s `profileId` field. */
12514
12517
  profileId?: UUIDFilter;
12518
+ /** Filter by the object’s `isReadOnly` field. */
12519
+ isReadOnly?: BooleanFilter;
12515
12520
  /** Filter by the object’s `expiresAt` field. */
12516
12521
  expiresAt?: DatetimeFilter;
12517
12522
  /** Filter by the object’s `createdAt` field. */
@@ -14235,7 +14240,7 @@ export type CryptoAddressOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_
14235
14240
  export type WebauthnCredentialOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'CREDENTIAL_ID_ASC' | 'CREDENTIAL_ID_DESC' | 'PUBLIC_KEY_ASC' | 'PUBLIC_KEY_DESC' | 'SIGN_COUNT_ASC' | 'SIGN_COUNT_DESC' | 'WEBAUTHN_USER_ID_ASC' | 'WEBAUTHN_USER_ID_DESC' | 'TRANSPORTS_ASC' | 'TRANSPORTS_DESC' | 'CREDENTIAL_DEVICE_TYPE_ASC' | 'CREDENTIAL_DEVICE_TYPE_DESC' | 'BACKUP_ELIGIBLE_ASC' | 'BACKUP_ELIGIBLE_DESC' | 'BACKUP_STATE_ASC' | 'BACKUP_STATE_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'LAST_USED_AT_ASC' | 'LAST_USED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
14236
14241
  export type AppInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' | 'INVITE_LIMIT_ASC' | 'INVITE_LIMIT_DESC' | 'INVITE_COUNT_ASC' | 'INVITE_COUNT_DESC' | 'MULTIPLE_ASC' | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
14237
14242
  export type AppClaimedInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' | 'RECEIVER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
14238
- export type OrgInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' | 'RECEIVER_ID_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' | 'INVITE_LIMIT_ASC' | 'INVITE_LIMIT_DESC' | 'INVITE_COUNT_ASC' | 'INVITE_COUNT_DESC' | 'MULTIPLE_ASC' | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
14243
+ export type OrgInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' | 'RECEIVER_ID_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' | 'INVITE_LIMIT_ASC' | 'INVITE_LIMIT_DESC' | 'INVITE_COUNT_ASC' | 'INVITE_COUNT_DESC' | 'MULTIPLE_ASC' | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC' | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
14239
14244
  export type OrgClaimedInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' | 'RECEIVER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
14240
14245
  export type AuditLogOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'EVENT_ASC' | 'EVENT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ORIGIN_ASC' | 'ORIGIN_DESC' | 'USER_AGENT_ASC' | 'USER_AGENT_DESC' | 'IP_ADDRESS_ASC' | 'IP_ADDRESS_DESC' | 'SUCCESS_ASC' | 'SUCCESS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC';
14241
14246
  export type AgentThreadOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'MODE_ASC' | 'MODE_DESC' | 'MODEL_ASC' | 'MODEL_DESC' | 'SYSTEM_PROMPT_ASC' | 'SYSTEM_PROMPT_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC';
@@ -17834,6 +17839,7 @@ export interface CreateOrgInviteInput {
17834
17839
  multiple?: boolean;
17835
17840
  data?: Record<string, unknown>;
17836
17841
  profileId?: string;
17842
+ isReadOnly?: boolean;
17837
17843
  expiresAt?: string;
17838
17844
  entityId: string;
17839
17845
  };
@@ -17849,6 +17855,7 @@ export interface OrgInvitePatch {
17849
17855
  multiple?: boolean | null;
17850
17856
  data?: Record<string, unknown> | null;
17851
17857
  profileId?: string | null;
17858
+ isReadOnly?: boolean | null;
17852
17859
  expiresAt?: string | null;
17853
17860
  entityId?: string | null;
17854
17861
  }
@@ -25925,6 +25932,8 @@ export interface OrgInviteFilter {
25925
25932
  multiple?: BooleanFilter;
25926
25933
  /** Filter by the object’s `profileId` field. */
25927
25934
  profileId?: UUIDFilter;
25935
+ /** Filter by the object’s `isReadOnly` field. */
25936
+ isReadOnly?: BooleanFilter;
25928
25937
  /** Filter by the object’s `expiresAt` field. */
25929
25938
  expiresAt?: DatetimeFilter;
25930
25939
  /** Filter by the object’s `createdAt` field. */