@constructive-sdk/cli 0.14.7 → 0.14.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 (155) hide show
  1. package/admin/cli/commands/org-membership-default.js +0 -44
  2. package/admin/cli/commands/org-membership-setting.d.ts +8 -0
  3. package/admin/cli/commands/org-membership-setting.js +418 -0
  4. package/admin/cli/commands.js +5 -3
  5. package/admin/cli/executor.d.ts +2 -1
  6. package/admin/orm/index.d.ts +4 -2
  7. package/admin/orm/index.js +4 -2
  8. package/admin/orm/input-types.d.ts +303 -142
  9. package/admin/orm/models/index.d.ts +2 -1
  10. package/admin/orm/models/index.js +5 -3
  11. package/admin/orm/models/orgMembershipSetting.d.ts +56 -0
  12. package/admin/orm/models/orgMembershipSetting.js +100 -0
  13. package/auth/cli/commands/crypto-address.js +22 -0
  14. package/auth/cli/commands/email.js +22 -0
  15. package/auth/cli/commands/identity-provider.d.ts +8 -0
  16. package/auth/cli/commands/identity-provider.js +164 -0
  17. package/auth/cli/commands/phone-number.js +22 -0
  18. package/auth/cli/commands/webauthn-credential.d.ts +8 -0
  19. package/auth/cli/commands/webauthn-credential.js +456 -0
  20. package/auth/cli/commands.js +7 -3
  21. package/auth/cli/executor.d.ts +7 -5
  22. package/auth/orm/index.d.ts +9 -5
  23. package/auth/orm/index.js +4 -0
  24. package/auth/orm/input-types.d.ts +525 -81
  25. package/auth/orm/input-types.js +1 -0
  26. package/auth/orm/models/identityProvider.d.ts +32 -0
  27. package/auth/orm/models/identityProvider.js +55 -0
  28. package/auth/orm/models/index.d.ts +2 -0
  29. package/auth/orm/models/index.js +5 -1
  30. package/auth/orm/models/webauthnCredential.d.ts +56 -0
  31. package/auth/orm/models/webauthnCredential.js +100 -0
  32. package/auth/orm/mutation/index.d.ts +9 -9
  33. package/auth/orm/mutation/index.js +12 -12
  34. package/esm/admin/cli/commands/org-membership-default.js +0 -44
  35. package/esm/admin/cli/commands/org-membership-setting.d.ts +8 -0
  36. package/esm/admin/cli/commands/org-membership-setting.js +416 -0
  37. package/esm/admin/cli/commands.js +5 -3
  38. package/esm/admin/cli/executor.d.ts +2 -1
  39. package/esm/admin/orm/index.d.ts +4 -2
  40. package/esm/admin/orm/index.js +4 -2
  41. package/esm/admin/orm/input-types.d.ts +303 -142
  42. package/esm/admin/orm/models/index.d.ts +2 -1
  43. package/esm/admin/orm/models/index.js +2 -1
  44. package/esm/admin/orm/models/orgMembershipSetting.d.ts +56 -0
  45. package/esm/admin/orm/models/orgMembershipSetting.js +96 -0
  46. package/esm/auth/cli/commands/crypto-address.js +22 -0
  47. package/esm/auth/cli/commands/email.js +22 -0
  48. package/esm/auth/cli/commands/identity-provider.d.ts +8 -0
  49. package/esm/auth/cli/commands/identity-provider.js +162 -0
  50. package/esm/auth/cli/commands/phone-number.js +22 -0
  51. package/esm/auth/cli/commands/webauthn-credential.d.ts +8 -0
  52. package/esm/auth/cli/commands/webauthn-credential.js +454 -0
  53. package/esm/auth/cli/commands.js +7 -3
  54. package/esm/auth/cli/executor.d.ts +7 -5
  55. package/esm/auth/orm/index.d.ts +9 -5
  56. package/esm/auth/orm/index.js +4 -0
  57. package/esm/auth/orm/input-types.d.ts +525 -81
  58. package/esm/auth/orm/input-types.js +1 -0
  59. package/esm/auth/orm/models/identityProvider.d.ts +32 -0
  60. package/esm/auth/orm/models/identityProvider.js +51 -0
  61. package/esm/auth/orm/models/index.d.ts +2 -0
  62. package/esm/auth/orm/models/index.js +2 -0
  63. package/esm/auth/orm/models/webauthnCredential.d.ts +56 -0
  64. package/esm/auth/orm/models/webauthnCredential.js +96 -0
  65. package/esm/auth/orm/mutation/index.d.ts +9 -9
  66. package/esm/auth/orm/mutation/index.js +12 -12
  67. package/esm/objects/orm/input-types.d.ts +12 -0
  68. package/esm/public/cli/commands/crypto-address.js +22 -0
  69. package/esm/public/cli/commands/email.js +22 -0
  70. package/esm/public/cli/commands/entity-type-provision.js +110 -0
  71. package/esm/public/cli/commands/identity-provider.d.ts +8 -0
  72. package/esm/public/cli/commands/identity-provider.js +162 -0
  73. package/esm/public/cli/commands/identity-providers-module.d.ts +8 -0
  74. package/esm/public/cli/commands/identity-providers-module.js +316 -0
  75. package/esm/public/cli/commands/memberships-module.js +44 -0
  76. package/esm/public/cli/commands/notifications-module.d.ts +8 -0
  77. package/esm/public/cli/commands/notifications-module.js +448 -0
  78. package/esm/public/cli/commands/org-membership-default.js +0 -44
  79. package/esm/public/cli/commands/org-membership-setting.d.ts +8 -0
  80. package/esm/public/cli/commands/org-membership-setting.js +416 -0
  81. package/esm/public/cli/commands/phone-number.js +22 -0
  82. package/esm/public/cli/commands/relation-provision.js +24 -156
  83. package/esm/public/cli/commands/secure-table-provision.js +24 -156
  84. package/esm/public/cli/commands/storage-module.js +44 -0
  85. package/esm/public/cli/commands/webauthn-auth-module.d.ts +8 -0
  86. package/esm/public/cli/commands/webauthn-auth-module.js +536 -0
  87. package/esm/public/cli/commands/webauthn-credential.d.ts +8 -0
  88. package/esm/public/cli/commands/webauthn-credential.js +454 -0
  89. package/esm/public/cli/commands.js +17 -5
  90. package/esm/public/cli/executor.d.ts +12 -6
  91. package/esm/public/orm/index.d.ts +19 -7
  92. package/esm/public/orm/index.js +14 -2
  93. package/esm/public/orm/input-types.d.ts +1827 -366
  94. package/esm/public/orm/input-types.js +7 -0
  95. package/esm/public/orm/models/identityProvider.d.ts +32 -0
  96. package/esm/public/orm/models/identityProvider.js +51 -0
  97. package/esm/public/orm/models/identityProvidersModule.d.ts +56 -0
  98. package/esm/public/orm/models/identityProvidersModule.js +96 -0
  99. package/esm/public/orm/models/index.d.ts +7 -1
  100. package/esm/public/orm/models/index.js +7 -1
  101. package/esm/public/orm/models/notificationsModule.d.ts +56 -0
  102. package/esm/public/orm/models/notificationsModule.js +96 -0
  103. package/esm/public/orm/models/orgMembershipSetting.d.ts +56 -0
  104. package/esm/public/orm/models/orgMembershipSetting.js +96 -0
  105. package/esm/public/orm/models/webauthnAuthModule.d.ts +56 -0
  106. package/esm/public/orm/models/webauthnAuthModule.js +96 -0
  107. package/esm/public/orm/models/webauthnCredential.d.ts +56 -0
  108. package/esm/public/orm/models/webauthnCredential.js +96 -0
  109. package/esm/public/orm/mutation/index.d.ts +9 -9
  110. package/esm/public/orm/mutation/index.js +12 -12
  111. package/objects/orm/input-types.d.ts +12 -0
  112. package/package.json +3 -3
  113. package/public/cli/commands/crypto-address.js +22 -0
  114. package/public/cli/commands/email.js +22 -0
  115. package/public/cli/commands/entity-type-provision.js +110 -0
  116. package/public/cli/commands/identity-provider.d.ts +8 -0
  117. package/public/cli/commands/identity-provider.js +164 -0
  118. package/public/cli/commands/identity-providers-module.d.ts +8 -0
  119. package/public/cli/commands/identity-providers-module.js +318 -0
  120. package/public/cli/commands/memberships-module.js +44 -0
  121. package/public/cli/commands/notifications-module.d.ts +8 -0
  122. package/public/cli/commands/notifications-module.js +450 -0
  123. package/public/cli/commands/org-membership-default.js +0 -44
  124. package/public/cli/commands/org-membership-setting.d.ts +8 -0
  125. package/public/cli/commands/org-membership-setting.js +418 -0
  126. package/public/cli/commands/phone-number.js +22 -0
  127. package/public/cli/commands/relation-provision.js +24 -156
  128. package/public/cli/commands/secure-table-provision.js +24 -156
  129. package/public/cli/commands/storage-module.js +44 -0
  130. package/public/cli/commands/webauthn-auth-module.d.ts +8 -0
  131. package/public/cli/commands/webauthn-auth-module.js +538 -0
  132. package/public/cli/commands/webauthn-credential.d.ts +8 -0
  133. package/public/cli/commands/webauthn-credential.js +456 -0
  134. package/public/cli/commands.js +17 -5
  135. package/public/cli/executor.d.ts +12 -6
  136. package/public/orm/index.d.ts +19 -7
  137. package/public/orm/index.js +14 -2
  138. package/public/orm/input-types.d.ts +1827 -366
  139. package/public/orm/input-types.js +7 -0
  140. package/public/orm/models/identityProvider.d.ts +32 -0
  141. package/public/orm/models/identityProvider.js +55 -0
  142. package/public/orm/models/identityProvidersModule.d.ts +56 -0
  143. package/public/orm/models/identityProvidersModule.js +100 -0
  144. package/public/orm/models/index.d.ts +7 -1
  145. package/public/orm/models/index.js +17 -5
  146. package/public/orm/models/notificationsModule.d.ts +56 -0
  147. package/public/orm/models/notificationsModule.js +100 -0
  148. package/public/orm/models/orgMembershipSetting.d.ts +56 -0
  149. package/public/orm/models/orgMembershipSetting.js +100 -0
  150. package/public/orm/models/webauthnAuthModule.d.ts +56 -0
  151. package/public/orm/models/webauthnAuthModule.js +100 -0
  152. package/public/orm/models/webauthnCredential.d.ts +56 -0
  153. package/public/orm/models/webauthnCredential.js +100 -0
  154. package/public/orm/mutation/index.d.ts +9 -9
  155. package/public/orm/mutation/index.js +12 -12
@@ -0,0 +1,96 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class OrgMembershipSettingModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('OrgMembershipSetting', 'orgMembershipSettings', args.select, {
10
+ where: args?.where,
11
+ orderBy: args?.orderBy,
12
+ first: args?.first,
13
+ last: args?.last,
14
+ after: args?.after,
15
+ before: args?.before,
16
+ offset: args?.offset,
17
+ }, 'OrgMembershipSettingFilter', 'OrgMembershipSettingOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'OrgMembershipSetting',
22
+ fieldName: 'orgMembershipSettings',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('OrgMembershipSetting', 'orgMembershipSettings', args.select, {
29
+ where: args?.where,
30
+ }, 'OrgMembershipSettingFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'OrgMembershipSetting',
35
+ fieldName: 'orgMembershipSettings',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ findOne(args) {
41
+ const { document, variables } = buildFindManyDocument('OrgMembershipSetting', 'orgMembershipSettings', args.select, {
42
+ where: {
43
+ id: {
44
+ equalTo: args.id,
45
+ },
46
+ },
47
+ first: 1,
48
+ }, 'OrgMembershipSettingFilter', 'OrgMembershipSettingOrderBy', connectionFieldsMap);
49
+ return new QueryBuilder({
50
+ client: this.client,
51
+ operation: 'query',
52
+ operationName: 'OrgMembershipSetting',
53
+ fieldName: 'orgMembershipSetting',
54
+ document,
55
+ variables,
56
+ transform: (data) => ({
57
+ orgMembershipSetting: data.orgMembershipSettings?.nodes?.[0] ?? null,
58
+ }),
59
+ });
60
+ }
61
+ create(args) {
62
+ const { document, variables } = buildCreateDocument('OrgMembershipSetting', 'createOrgMembershipSetting', 'orgMembershipSetting', args.select, args.data, 'CreateOrgMembershipSettingInput', connectionFieldsMap);
63
+ return new QueryBuilder({
64
+ client: this.client,
65
+ operation: 'mutation',
66
+ operationName: 'OrgMembershipSetting',
67
+ fieldName: 'createOrgMembershipSetting',
68
+ document,
69
+ variables,
70
+ });
71
+ }
72
+ update(args) {
73
+ const { document, variables } = buildUpdateByPkDocument('OrgMembershipSetting', 'updateOrgMembershipSetting', 'orgMembershipSetting', args.select, args.where.id, args.data, 'UpdateOrgMembershipSettingInput', 'id', 'orgMembershipSettingPatch', connectionFieldsMap);
74
+ return new QueryBuilder({
75
+ client: this.client,
76
+ operation: 'mutation',
77
+ operationName: 'OrgMembershipSetting',
78
+ fieldName: 'updateOrgMembershipSetting',
79
+ document,
80
+ variables,
81
+ });
82
+ }
83
+ delete(args) {
84
+ const { document, variables } = buildDeleteByPkDocument('OrgMembershipSetting', 'deleteOrgMembershipSetting', 'orgMembershipSetting', {
85
+ id: args.where.id,
86
+ }, 'DeleteOrgMembershipSettingInput', args.select, connectionFieldsMap);
87
+ return new QueryBuilder({
88
+ client: this.client,
89
+ operation: 'mutation',
90
+ operationName: 'OrgMembershipSetting',
91
+ fieldName: 'deleteOrgMembershipSetting',
92
+ document,
93
+ variables,
94
+ });
95
+ }
96
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * WebauthnAuthModule model for ORM client
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { OrmClient } from '../client';
7
+ import { QueryBuilder } from '../query-builder';
8
+ import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { WebauthnAuthModuleWithRelations, WebauthnAuthModuleSelect, WebauthnAuthModuleFilter, WebauthnAuthModuleOrderBy, CreateWebauthnAuthModuleInput, WebauthnAuthModulePatch } from '../input-types';
10
+ export declare class WebauthnAuthModuleModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends WebauthnAuthModuleSelect>(args: FindManyArgs<S, WebauthnAuthModuleFilter, WebauthnAuthModuleOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, WebauthnAuthModuleSelect>): QueryBuilder<{
16
+ webauthnAuthModules: ConnectionResult<InferSelectResult<WebauthnAuthModuleWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends WebauthnAuthModuleSelect>(args: FindFirstArgs<S, WebauthnAuthModuleFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, WebauthnAuthModuleSelect>): QueryBuilder<{
21
+ webauthnAuthModules: {
22
+ nodes: InferSelectResult<WebauthnAuthModuleWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends WebauthnAuthModuleSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, WebauthnAuthModuleSelect>): QueryBuilder<{
29
+ webauthnAuthModule: InferSelectResult<WebauthnAuthModuleWithRelations, S> | null;
30
+ }>;
31
+ create<S extends WebauthnAuthModuleSelect>(args: CreateArgs<S, CreateWebauthnAuthModuleInput['webauthnAuthModule']> & {
32
+ select: S;
33
+ } & StrictSelect<S, WebauthnAuthModuleSelect>): QueryBuilder<{
34
+ createWebauthnAuthModule: {
35
+ webauthnAuthModule: InferSelectResult<WebauthnAuthModuleWithRelations, S>;
36
+ };
37
+ }>;
38
+ update<S extends WebauthnAuthModuleSelect>(args: UpdateArgs<S, {
39
+ id: string;
40
+ }, WebauthnAuthModulePatch> & {
41
+ select: S;
42
+ } & StrictSelect<S, WebauthnAuthModuleSelect>): QueryBuilder<{
43
+ updateWebauthnAuthModule: {
44
+ webauthnAuthModule: InferSelectResult<WebauthnAuthModuleWithRelations, S>;
45
+ };
46
+ }>;
47
+ delete<S extends WebauthnAuthModuleSelect>(args: DeleteArgs<{
48
+ id: string;
49
+ }, S> & {
50
+ select: S;
51
+ } & StrictSelect<S, WebauthnAuthModuleSelect>): QueryBuilder<{
52
+ deleteWebauthnAuthModule: {
53
+ webauthnAuthModule: InferSelectResult<WebauthnAuthModuleWithRelations, S>;
54
+ };
55
+ }>;
56
+ }
@@ -0,0 +1,96 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class WebauthnAuthModuleModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('WebauthnAuthModule', 'webauthnAuthModules', args.select, {
10
+ where: args?.where,
11
+ orderBy: args?.orderBy,
12
+ first: args?.first,
13
+ last: args?.last,
14
+ after: args?.after,
15
+ before: args?.before,
16
+ offset: args?.offset,
17
+ }, 'WebauthnAuthModuleFilter', 'WebauthnAuthModuleOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'WebauthnAuthModule',
22
+ fieldName: 'webauthnAuthModules',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('WebauthnAuthModule', 'webauthnAuthModules', args.select, {
29
+ where: args?.where,
30
+ }, 'WebauthnAuthModuleFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'WebauthnAuthModule',
35
+ fieldName: 'webauthnAuthModules',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ findOne(args) {
41
+ const { document, variables } = buildFindManyDocument('WebauthnAuthModule', 'webauthnAuthModules', args.select, {
42
+ where: {
43
+ id: {
44
+ equalTo: args.id,
45
+ },
46
+ },
47
+ first: 1,
48
+ }, 'WebauthnAuthModuleFilter', 'WebauthnAuthModuleOrderBy', connectionFieldsMap);
49
+ return new QueryBuilder({
50
+ client: this.client,
51
+ operation: 'query',
52
+ operationName: 'WebauthnAuthModule',
53
+ fieldName: 'webauthnAuthModule',
54
+ document,
55
+ variables,
56
+ transform: (data) => ({
57
+ webauthnAuthModule: data.webauthnAuthModules?.nodes?.[0] ?? null,
58
+ }),
59
+ });
60
+ }
61
+ create(args) {
62
+ const { document, variables } = buildCreateDocument('WebauthnAuthModule', 'createWebauthnAuthModule', 'webauthnAuthModule', args.select, args.data, 'CreateWebauthnAuthModuleInput', connectionFieldsMap);
63
+ return new QueryBuilder({
64
+ client: this.client,
65
+ operation: 'mutation',
66
+ operationName: 'WebauthnAuthModule',
67
+ fieldName: 'createWebauthnAuthModule',
68
+ document,
69
+ variables,
70
+ });
71
+ }
72
+ update(args) {
73
+ const { document, variables } = buildUpdateByPkDocument('WebauthnAuthModule', 'updateWebauthnAuthModule', 'webauthnAuthModule', args.select, args.where.id, args.data, 'UpdateWebauthnAuthModuleInput', 'id', 'webauthnAuthModulePatch', connectionFieldsMap);
74
+ return new QueryBuilder({
75
+ client: this.client,
76
+ operation: 'mutation',
77
+ operationName: 'WebauthnAuthModule',
78
+ fieldName: 'updateWebauthnAuthModule',
79
+ document,
80
+ variables,
81
+ });
82
+ }
83
+ delete(args) {
84
+ const { document, variables } = buildDeleteByPkDocument('WebauthnAuthModule', 'deleteWebauthnAuthModule', 'webauthnAuthModule', {
85
+ id: args.where.id,
86
+ }, 'DeleteWebauthnAuthModuleInput', args.select, connectionFieldsMap);
87
+ return new QueryBuilder({
88
+ client: this.client,
89
+ operation: 'mutation',
90
+ operationName: 'WebauthnAuthModule',
91
+ fieldName: 'deleteWebauthnAuthModule',
92
+ document,
93
+ variables,
94
+ });
95
+ }
96
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * WebauthnCredential model for ORM client
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { OrmClient } from '../client';
7
+ import { QueryBuilder } from '../query-builder';
8
+ import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { WebauthnCredentialWithRelations, WebauthnCredentialSelect, WebauthnCredentialFilter, WebauthnCredentialOrderBy, CreateWebauthnCredentialInput, WebauthnCredentialPatch } from '../input-types';
10
+ export declare class WebauthnCredentialModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends WebauthnCredentialSelect>(args: FindManyArgs<S, WebauthnCredentialFilter, WebauthnCredentialOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
16
+ webauthnCredentials: ConnectionResult<InferSelectResult<WebauthnCredentialWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends WebauthnCredentialSelect>(args: FindFirstArgs<S, WebauthnCredentialFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
21
+ webauthnCredentials: {
22
+ nodes: InferSelectResult<WebauthnCredentialWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends WebauthnCredentialSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
29
+ webauthnCredential: InferSelectResult<WebauthnCredentialWithRelations, S> | null;
30
+ }>;
31
+ create<S extends WebauthnCredentialSelect>(args: CreateArgs<S, CreateWebauthnCredentialInput['webauthnCredential']> & {
32
+ select: S;
33
+ } & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
34
+ createWebauthnCredential: {
35
+ webauthnCredential: InferSelectResult<WebauthnCredentialWithRelations, S>;
36
+ };
37
+ }>;
38
+ update<S extends WebauthnCredentialSelect>(args: UpdateArgs<S, {
39
+ id: string;
40
+ }, WebauthnCredentialPatch> & {
41
+ select: S;
42
+ } & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
43
+ updateWebauthnCredential: {
44
+ webauthnCredential: InferSelectResult<WebauthnCredentialWithRelations, S>;
45
+ };
46
+ }>;
47
+ delete<S extends WebauthnCredentialSelect>(args: DeleteArgs<{
48
+ id: string;
49
+ }, S> & {
50
+ select: S;
51
+ } & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
52
+ deleteWebauthnCredential: {
53
+ webauthnCredential: InferSelectResult<WebauthnCredentialWithRelations, S>;
54
+ };
55
+ }>;
56
+ }
@@ -0,0 +1,96 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class WebauthnCredentialModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('WebauthnCredential', 'webauthnCredentials', args.select, {
10
+ where: args?.where,
11
+ orderBy: args?.orderBy,
12
+ first: args?.first,
13
+ last: args?.last,
14
+ after: args?.after,
15
+ before: args?.before,
16
+ offset: args?.offset,
17
+ }, 'WebauthnCredentialFilter', 'WebauthnCredentialOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'WebauthnCredential',
22
+ fieldName: 'webauthnCredentials',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('WebauthnCredential', 'webauthnCredentials', args.select, {
29
+ where: args?.where,
30
+ }, 'WebauthnCredentialFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'WebauthnCredential',
35
+ fieldName: 'webauthnCredentials',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ findOne(args) {
41
+ const { document, variables } = buildFindManyDocument('WebauthnCredential', 'webauthnCredentials', args.select, {
42
+ where: {
43
+ id: {
44
+ equalTo: args.id,
45
+ },
46
+ },
47
+ first: 1,
48
+ }, 'WebauthnCredentialFilter', 'WebauthnCredentialOrderBy', connectionFieldsMap);
49
+ return new QueryBuilder({
50
+ client: this.client,
51
+ operation: 'query',
52
+ operationName: 'WebauthnCredential',
53
+ fieldName: 'webauthnCredential',
54
+ document,
55
+ variables,
56
+ transform: (data) => ({
57
+ webauthnCredential: data.webauthnCredentials?.nodes?.[0] ?? null,
58
+ }),
59
+ });
60
+ }
61
+ create(args) {
62
+ const { document, variables } = buildCreateDocument('WebauthnCredential', 'createWebauthnCredential', 'webauthnCredential', args.select, args.data, 'CreateWebauthnCredentialInput', connectionFieldsMap);
63
+ return new QueryBuilder({
64
+ client: this.client,
65
+ operation: 'mutation',
66
+ operationName: 'WebauthnCredential',
67
+ fieldName: 'createWebauthnCredential',
68
+ document,
69
+ variables,
70
+ });
71
+ }
72
+ update(args) {
73
+ const { document, variables } = buildUpdateByPkDocument('WebauthnCredential', 'updateWebauthnCredential', 'webauthnCredential', args.select, args.where.id, args.data, 'UpdateWebauthnCredentialInput', 'id', 'webauthnCredentialPatch', connectionFieldsMap);
74
+ return new QueryBuilder({
75
+ client: this.client,
76
+ operation: 'mutation',
77
+ operationName: 'WebauthnCredential',
78
+ fieldName: 'updateWebauthnCredential',
79
+ document,
80
+ variables,
81
+ });
82
+ }
83
+ delete(args) {
84
+ const { document, variables } = buildDeleteByPkDocument('WebauthnCredential', 'deleteWebauthnCredential', 'webauthnCredential', {
85
+ id: args.where.id,
86
+ }, 'DeleteWebauthnCredentialInput', args.select, connectionFieldsMap);
87
+ return new QueryBuilder({
88
+ client: this.client,
89
+ operation: 'mutation',
90
+ operationName: 'WebauthnCredential',
91
+ fieldName: 'deleteWebauthnCredential',
92
+ document,
93
+ variables,
94
+ });
95
+ }
96
+ }
@@ -6,7 +6,7 @@
6
6
  import { OrmClient } from '../client';
7
7
  import { QueryBuilder } from '../query-builder';
8
8
  import type { InferSelectResult, StrictSelect } from '../select-types';
9
- import type { SendAccountDeletionEmailInput, SignOutInput, AcceptDatabaseTransferInput, CancelDatabaseTransferInput, RejectDatabaseTransferInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, SubmitAppInviteCodeInput, SubmitOrgInviteCodeInput, CheckPasswordInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, FreezeObjectsInput, InitEmptyRepoInput, ConstructBlueprintInput, ProvisionNewUserInput, ResetPasswordInput, RemoveNodeAtPathInput, CopyTemplateToBlueprintInput, CreateApiKeyInput, ProvisionSpatialRelationInput, BootstrapUserInput, SetFieldOrderInput, ProvisionUniqueConstraintInput, ProvisionFullTextSearchInput, ProvisionIndexInput, SetDataAtPathInput, SetPropsAndCommitInput, ProvisionDatabaseWithUserInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput, SignInCrossOriginInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ProvisionTableInput, SendVerificationEmailInput, ForgotPasswordInput, RequestUploadUrlInput, ConfirmUploadInput, ProvisionBucketInput, SendAccountDeletionEmailPayload, SignOutPayload, AcceptDatabaseTransferPayload, CancelDatabaseTransferPayload, RejectDatabaseTransferPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, SubmitAppInviteCodePayload, SubmitOrgInviteCodePayload, CheckPasswordPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, FreezeObjectsPayload, InitEmptyRepoPayload, ConstructBlueprintPayload, ProvisionNewUserPayload, ResetPasswordPayload, RemoveNodeAtPathPayload, CopyTemplateToBlueprintPayload, CreateApiKeyPayload, ProvisionSpatialRelationPayload, BootstrapUserPayload, SetFieldOrderPayload, ProvisionUniqueConstraintPayload, ProvisionFullTextSearchPayload, ProvisionIndexPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, ProvisionDatabaseWithUserPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, ProvisionRelationPayload, ApplyRlsPayload, SignInCrossOriginPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ProvisionTablePayload, SendVerificationEmailPayload, ForgotPasswordPayload, RequestUploadUrlPayload, ConfirmUploadPayload, ProvisionBucketPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, AcceptDatabaseTransferPayloadSelect, CancelDatabaseTransferPayloadSelect, RejectDatabaseTransferPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, SubmitAppInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, CheckPasswordPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, ConstructBlueprintPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, RemoveNodeAtPathPayloadSelect, CopyTemplateToBlueprintPayloadSelect, CreateApiKeyPayloadSelect, ProvisionSpatialRelationPayloadSelect, BootstrapUserPayloadSelect, SetFieldOrderPayloadSelect, ProvisionUniqueConstraintPayloadSelect, ProvisionFullTextSearchPayloadSelect, ProvisionIndexPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, ProvisionDatabaseWithUserPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, ProvisionRelationPayloadSelect, ApplyRlsPayloadSelect, SignInCrossOriginPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ProvisionTablePayloadSelect, SendVerificationEmailPayloadSelect, ForgotPasswordPayloadSelect, RequestUploadUrlPayloadSelect, ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
9
+ import type { SendAccountDeletionEmailInput, SignOutInput, AcceptDatabaseTransferInput, CancelDatabaseTransferInput, RejectDatabaseTransferInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, SubmitAppInviteCodeInput, SubmitOrgInviteCodeInput, CheckPasswordInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, FreezeObjectsInput, InitEmptyRepoInput, ConstructBlueprintInput, ProvisionNewUserInput, ResetPasswordInput, RemoveNodeAtPathInput, CopyTemplateToBlueprintInput, ProvisionSpatialRelationInput, BootstrapUserInput, SetFieldOrderInput, ProvisionUniqueConstraintInput, ProvisionFullTextSearchInput, ProvisionIndexInput, SetDataAtPathInput, SetPropsAndCommitInput, ProvisionDatabaseWithUserInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput, SignInCrossOriginInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, CreateApiKeyInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ProvisionTableInput, SendVerificationEmailInput, ForgotPasswordInput, RequestUploadUrlInput, ConfirmUploadInput, ProvisionBucketInput, SendAccountDeletionEmailPayload, SignOutPayload, AcceptDatabaseTransferPayload, CancelDatabaseTransferPayload, RejectDatabaseTransferPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, SubmitAppInviteCodePayload, SubmitOrgInviteCodePayload, CheckPasswordPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, FreezeObjectsPayload, InitEmptyRepoPayload, ConstructBlueprintPayload, ProvisionNewUserPayload, ResetPasswordPayload, RemoveNodeAtPathPayload, CopyTemplateToBlueprintPayload, ProvisionSpatialRelationPayload, BootstrapUserPayload, SetFieldOrderPayload, ProvisionUniqueConstraintPayload, ProvisionFullTextSearchPayload, ProvisionIndexPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, ProvisionDatabaseWithUserPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, ProvisionRelationPayload, ApplyRlsPayload, SignInCrossOriginPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ProvisionTablePayload, SendVerificationEmailPayload, ForgotPasswordPayload, RequestUploadUrlPayload, ConfirmUploadPayload, ProvisionBucketPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, AcceptDatabaseTransferPayloadSelect, CancelDatabaseTransferPayloadSelect, RejectDatabaseTransferPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, SubmitAppInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, CheckPasswordPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, ConstructBlueprintPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, RemoveNodeAtPathPayloadSelect, CopyTemplateToBlueprintPayloadSelect, ProvisionSpatialRelationPayloadSelect, BootstrapUserPayloadSelect, SetFieldOrderPayloadSelect, ProvisionUniqueConstraintPayloadSelect, ProvisionFullTextSearchPayloadSelect, ProvisionIndexPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, ProvisionDatabaseWithUserPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, ProvisionRelationPayloadSelect, ApplyRlsPayloadSelect, SignInCrossOriginPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ProvisionTablePayloadSelect, SendVerificationEmailPayloadSelect, ForgotPasswordPayloadSelect, RequestUploadUrlPayloadSelect, ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
10
10
  export interface SendAccountDeletionEmailVariables {
11
11
  input: SendAccountDeletionEmailInput;
12
12
  }
@@ -84,9 +84,6 @@ export interface RemoveNodeAtPathVariables {
84
84
  export interface CopyTemplateToBlueprintVariables {
85
85
  input: CopyTemplateToBlueprintInput;
86
86
  }
87
- export interface CreateApiKeyVariables {
88
- input: CreateApiKeyInput;
89
- }
90
87
  /**
91
88
  * Variables for provisionSpatialRelation
92
89
  * Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert.
@@ -177,6 +174,9 @@ export interface CreateUserDatabaseVariables {
177
174
  export interface ExtendTokenExpiresVariables {
178
175
  input: ExtendTokenExpiresInput;
179
176
  }
177
+ export interface CreateApiKeyVariables {
178
+ input: CreateApiKeyInput;
179
+ }
180
180
  export interface SignUpVariables {
181
181
  input: SignUpInput;
182
182
  }
@@ -344,11 +344,6 @@ export declare function createMutationOperations(client: OrmClient): {
344
344
  } & StrictSelect<S, CopyTemplateToBlueprintPayloadSelect>) => QueryBuilder<{
345
345
  copyTemplateToBlueprint: InferSelectResult<CopyTemplateToBlueprintPayload, S> | null;
346
346
  }>;
347
- createApiKey: <S extends CreateApiKeyPayloadSelect>(args: CreateApiKeyVariables, options: {
348
- select: S;
349
- } & StrictSelect<S, CreateApiKeyPayloadSelect>) => QueryBuilder<{
350
- createApiKey: InferSelectResult<CreateApiKeyPayload, S> | null;
351
- }>;
352
347
  provisionSpatialRelation: <S extends ProvisionSpatialRelationPayloadSelect>(args: ProvisionSpatialRelationVariables, options: {
353
348
  select: S;
354
349
  } & StrictSelect<S, ProvisionSpatialRelationPayloadSelect>) => QueryBuilder<{
@@ -434,6 +429,11 @@ export declare function createMutationOperations(client: OrmClient): {
434
429
  } & StrictSelect<S, ExtendTokenExpiresPayloadSelect>) => QueryBuilder<{
435
430
  extendTokenExpires: InferSelectResult<ExtendTokenExpiresPayload, S> | null;
436
431
  }>;
432
+ createApiKey: <S extends CreateApiKeyPayloadSelect>(args: CreateApiKeyVariables, options: {
433
+ select: S;
434
+ } & StrictSelect<S, CreateApiKeyPayloadSelect>) => QueryBuilder<{
435
+ createApiKey: InferSelectResult<CreateApiKeyPayload, S> | null;
436
+ }>;
437
437
  signUp: <S extends SignUpPayloadSelect>(args: SignUpVariables, options: {
438
438
  select: S;
439
439
  } & StrictSelect<S, SignUpPayloadSelect>) => QueryBuilder<{
@@ -278,18 +278,6 @@ export function createMutationOperations(client) {
278
278
  },
279
279
  ], connectionFieldsMap, 'CopyTemplateToBlueprintPayload'),
280
280
  }),
281
- createApiKey: (args, options) => new QueryBuilder({
282
- client,
283
- operation: 'mutation',
284
- operationName: 'CreateApiKey',
285
- fieldName: 'createApiKey',
286
- ...buildCustomDocument('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
287
- {
288
- name: 'input',
289
- type: 'CreateApiKeyInput!',
290
- },
291
- ], connectionFieldsMap, 'CreateApiKeyPayload'),
292
- }),
293
281
  provisionSpatialRelation: (args, options) => new QueryBuilder({
294
282
  client,
295
283
  operation: 'mutation',
@@ -494,6 +482,18 @@ export function createMutationOperations(client) {
494
482
  },
495
483
  ], connectionFieldsMap, 'ExtendTokenExpiresPayload'),
496
484
  }),
485
+ createApiKey: (args, options) => new QueryBuilder({
486
+ client,
487
+ operation: 'mutation',
488
+ operationName: 'CreateApiKey',
489
+ fieldName: 'createApiKey',
490
+ ...buildCustomDocument('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
491
+ {
492
+ name: 'input',
493
+ type: 'CreateApiKeyInput!',
494
+ },
495
+ ], connectionFieldsMap, 'CreateApiKeyPayload'),
496
+ }),
497
497
  signUp: (args, options) => new QueryBuilder({
498
498
  client,
499
499
  operation: 'mutation',
@@ -632,6 +632,13 @@ export interface SetAndCommitInput {
632
632
  export interface RequestUploadUrlInput {
633
633
  /** Bucket key (e.g., "public", "private") */
634
634
  bucketKey: string;
635
+ /**
636
+ * Owner entity ID for entity-scoped uploads.
637
+ * Omit for app-level (database-wide) storage.
638
+ * When provided, resolves the storage module for the entity type
639
+ * that owns this entity instance (e.g., a data room ID, team ID).
640
+ */
641
+ ownerId?: string;
635
642
  /** SHA-256 content hash computed by the client (hex-encoded, 64 chars) */
636
643
  contentHash: string;
637
644
  /** MIME type of the file (e.g., "image/png") */
@@ -648,6 +655,11 @@ export interface ConfirmUploadInput {
648
655
  export interface ProvisionBucketInput {
649
656
  /** The logical bucket key (e.g., "public", "private") */
650
657
  bucketKey: string;
658
+ /**
659
+ * Owner entity ID for entity-scoped bucket provisioning.
660
+ * Omit for app-level (database-wide) storage.
661
+ */
662
+ ownerId?: string;
651
663
  }
652
664
  /** A connection to a list of `Object` values. */
653
665
  export interface ObjectConnection {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-sdk/cli",
3
- "version": "0.14.7",
3
+ "version": "0.14.9",
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",
@@ -55,11 +55,11 @@
55
55
  "yanse": "^0.2.1"
56
56
  },
57
57
  "devDependencies": {
58
- "@constructive-io/graphql-codegen": "^4.30.6",
58
+ "@constructive-io/graphql-codegen": "^4.30.8",
59
59
  "@types/node": "^22.19.11",
60
60
  "makage": "^0.3.0",
61
61
  "tsx": "^4.19.0",
62
62
  "typescript": "^5.9.3"
63
63
  },
64
- "gitHead": "15a46bcefd6cf72ba0f40228a6a8279f07feb3f4"
64
+ "gitHead": "ad2d49ede1f962293e13d68843831897f267915d"
65
65
  }
@@ -14,6 +14,7 @@ const fieldSchema = {
14
14
  address: 'string',
15
15
  isVerified: 'boolean',
16
16
  isPrimary: 'boolean',
17
+ name: 'string',
17
18
  createdAt: 'string',
18
19
  updatedAt: 'string',
19
20
  };
@@ -64,6 +65,7 @@ async function handleList(argv, _prompter) {
64
65
  address: true,
65
66
  isVerified: true,
66
67
  isPrimary: true,
68
+ name: true,
67
69
  createdAt: true,
68
70
  updatedAt: true,
69
71
  };
@@ -88,6 +90,7 @@ async function handleFindFirst(argv, _prompter) {
88
90
  address: true,
89
91
  isVerified: true,
90
92
  isPrimary: true,
93
+ name: true,
91
94
  createdAt: true,
92
95
  updatedAt: true,
93
96
  };
@@ -124,6 +127,7 @@ async function handleGet(argv, prompter) {
124
127
  address: true,
125
128
  isVerified: true,
126
129
  isPrimary: true,
130
+ name: true,
127
131
  createdAt: true,
128
132
  updatedAt: true,
129
133
  },
@@ -169,6 +173,13 @@ async function handleCreate(argv, prompter) {
169
173
  required: false,
170
174
  skipPrompt: true,
171
175
  },
176
+ {
177
+ type: 'text',
178
+ name: 'name',
179
+ message: 'name',
180
+ required: false,
181
+ skipPrompt: true,
182
+ },
172
183
  ]);
173
184
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
174
185
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -180,6 +191,7 @@ async function handleCreate(argv, prompter) {
180
191
  address: cleanedData.address,
181
192
  isVerified: cleanedData.isVerified,
182
193
  isPrimary: cleanedData.isPrimary,
194
+ name: cleanedData.name,
183
195
  },
184
196
  select: {
185
197
  id: true,
@@ -187,6 +199,7 @@ async function handleCreate(argv, prompter) {
187
199
  address: true,
188
200
  isVerified: true,
189
201
  isPrimary: true,
202
+ name: true,
190
203
  createdAt: true,
191
204
  updatedAt: true,
192
205
  },
@@ -238,6 +251,13 @@ async function handleUpdate(argv, prompter) {
238
251
  required: false,
239
252
  skipPrompt: true,
240
253
  },
254
+ {
255
+ type: 'text',
256
+ name: 'name',
257
+ message: 'name',
258
+ required: false,
259
+ skipPrompt: true,
260
+ },
241
261
  ]);
242
262
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
243
263
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -252,6 +272,7 @@ async function handleUpdate(argv, prompter) {
252
272
  address: cleanedData.address,
253
273
  isVerified: cleanedData.isVerified,
254
274
  isPrimary: cleanedData.isPrimary,
275
+ name: cleanedData.name,
255
276
  },
256
277
  select: {
257
278
  id: true,
@@ -259,6 +280,7 @@ async function handleUpdate(argv, prompter) {
259
280
  address: true,
260
281
  isVerified: true,
261
282
  isPrimary: true,
283
+ name: true,
262
284
  createdAt: true,
263
285
  updatedAt: true,
264
286
  },