@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
@@ -4,6 +4,7 @@ export const connectionFieldsMap = {
4
4
  ownedEmails: 'Email',
5
5
  ownedPhoneNumbers: 'PhoneNumber',
6
6
  ownedCryptoAddresses: 'CryptoAddress',
7
+ ownedWebauthnCredentials: 'WebauthnCredential',
7
8
  auditLogsByActorId: 'AuditLog',
8
9
  },
9
10
  };
@@ -0,0 +1,32 @@
1
+ /**
2
+ * IdentityProvider 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, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { IdentityProviderWithRelations, IdentityProviderSelect, IdentityProviderFilter, IdentityProviderOrderBy, CreateIdentityProviderInput } from '../input-types';
10
+ export declare class IdentityProviderModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends IdentityProviderSelect>(args: FindManyArgs<S, IdentityProviderFilter, IdentityProviderOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, IdentityProviderSelect>): QueryBuilder<{
16
+ identityProviders: ConnectionResult<InferSelectResult<IdentityProviderWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends IdentityProviderSelect>(args: FindFirstArgs<S, IdentityProviderFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, IdentityProviderSelect>): QueryBuilder<{
21
+ identityProviders: {
22
+ nodes: InferSelectResult<IdentityProviderWithRelations, S>[];
23
+ };
24
+ }>;
25
+ create<S extends IdentityProviderSelect>(args: CreateArgs<S, CreateIdentityProviderInput['identityProvider']> & {
26
+ select: S;
27
+ } & StrictSelect<S, IdentityProviderSelect>): QueryBuilder<{
28
+ createIdentityProvider: {
29
+ identityProvider: InferSelectResult<IdentityProviderWithRelations, S>;
30
+ };
31
+ }>;
32
+ }
@@ -0,0 +1,51 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class IdentityProviderModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('IdentityProvider', 'identityProviders', 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
+ }, 'IdentityProviderFilter', 'IdentityProviderOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'IdentityProvider',
22
+ fieldName: 'identityProviders',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('IdentityProvider', 'identityProviders', args.select, {
29
+ where: args?.where,
30
+ }, 'IdentityProviderFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'IdentityProvider',
35
+ fieldName: 'identityProviders',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ create(args) {
41
+ const { document, variables } = buildCreateDocument('IdentityProvider', 'createIdentityProvider', 'identityProvider', args.select, args.data, 'CreateIdentityProviderInput', connectionFieldsMap);
42
+ return new QueryBuilder({
43
+ client: this.client,
44
+ operation: 'mutation',
45
+ operationName: 'IdentityProvider',
46
+ fieldName: 'createIdentityProvider',
47
+ document,
48
+ variables,
49
+ });
50
+ }
51
+ }
@@ -6,7 +6,9 @@
6
6
  export { EmailModel } from './email';
7
7
  export { PhoneNumberModel } from './phoneNumber';
8
8
  export { CryptoAddressModel } from './cryptoAddress';
9
+ export { WebauthnCredentialModel } from './webauthnCredential';
9
10
  export { AuditLogModel } from './auditLog';
11
+ export { IdentityProviderModel } from './identityProvider';
10
12
  export { RoleTypeModel } from './roleType';
11
13
  export { UserConnectedAccountModel } from './userConnectedAccount';
12
14
  export { UserModel } from './user';
@@ -6,7 +6,9 @@
6
6
  export { EmailModel } from './email';
7
7
  export { PhoneNumberModel } from './phoneNumber';
8
8
  export { CryptoAddressModel } from './cryptoAddress';
9
+ export { WebauthnCredentialModel } from './webauthnCredential';
9
10
  export { AuditLogModel } from './auditLog';
11
+ export { IdentityProviderModel } from './identityProvider';
10
12
  export { RoleTypeModel } from './roleType';
11
13
  export { UserConnectedAccountModel } from './userConnectedAccount';
12
14
  export { UserModel } from './user';
@@ -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 { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, CreateApiKeyInput, SignInCrossOriginInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ExtendTokenExpiresInput, ForgotPasswordInput, SendVerificationEmailInput, RequestUploadUrlInput, ConfirmUploadInput, ProvisionBucketInput, SignOutPayload, SendAccountDeletionEmailPayload, CheckPasswordPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, ProvisionNewUserPayload, ResetPasswordPayload, CreateApiKeyPayload, SignInCrossOriginPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ExtendTokenExpiresPayload, ForgotPasswordPayload, SendVerificationEmailPayload, RequestUploadUrlPayload, ConfirmUploadPayload, ProvisionBucketPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, CreateApiKeyPayloadSelect, SignInCrossOriginPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ExtendTokenExpiresPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, RequestUploadUrlPayloadSelect, ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
9
+ import type { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, SignInCrossOriginInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ExtendTokenExpiresInput, CreateApiKeyInput, ForgotPasswordInput, SendVerificationEmailInput, RequestUploadUrlInput, ConfirmUploadInput, ProvisionBucketInput, SignOutPayload, SendAccountDeletionEmailPayload, CheckPasswordPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, ProvisionNewUserPayload, ResetPasswordPayload, SignInCrossOriginPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, ForgotPasswordPayload, SendVerificationEmailPayload, RequestUploadUrlPayload, ConfirmUploadPayload, ProvisionBucketPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, SignInCrossOriginPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, RequestUploadUrlPayloadSelect, ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
10
10
  export interface SignOutVariables {
11
11
  input: SignOutInput;
12
12
  }
@@ -46,9 +46,6 @@ export interface ProvisionNewUserVariables {
46
46
  export interface ResetPasswordVariables {
47
47
  input: ResetPasswordInput;
48
48
  }
49
- export interface CreateApiKeyVariables {
50
- input: CreateApiKeyInput;
51
- }
52
49
  export interface SignInCrossOriginVariables {
53
50
  input: SignInCrossOriginInput;
54
51
  }
@@ -64,6 +61,9 @@ export interface SignInVariables {
64
61
  export interface ExtendTokenExpiresVariables {
65
62
  input: ExtendTokenExpiresInput;
66
63
  }
64
+ export interface CreateApiKeyVariables {
65
+ input: CreateApiKeyInput;
66
+ }
67
67
  export interface ForgotPasswordVariables {
68
68
  input: ForgotPasswordInput;
69
69
  }
@@ -165,11 +165,6 @@ export declare function createMutationOperations(client: OrmClient): {
165
165
  } & StrictSelect<S, ResetPasswordPayloadSelect>) => QueryBuilder<{
166
166
  resetPassword: InferSelectResult<ResetPasswordPayload, S> | null;
167
167
  }>;
168
- createApiKey: <S extends CreateApiKeyPayloadSelect>(args: CreateApiKeyVariables, options: {
169
- select: S;
170
- } & StrictSelect<S, CreateApiKeyPayloadSelect>) => QueryBuilder<{
171
- createApiKey: InferSelectResult<CreateApiKeyPayload, S> | null;
172
- }>;
173
168
  signInCrossOrigin: <S extends SignInCrossOriginPayloadSelect>(args: SignInCrossOriginVariables, options: {
174
169
  select: S;
175
170
  } & StrictSelect<S, SignInCrossOriginPayloadSelect>) => QueryBuilder<{
@@ -195,6 +190,11 @@ export declare function createMutationOperations(client: OrmClient): {
195
190
  } & StrictSelect<S, ExtendTokenExpiresPayloadSelect>) => QueryBuilder<{
196
191
  extendTokenExpires: InferSelectResult<ExtendTokenExpiresPayload, S> | null;
197
192
  }>;
193
+ createApiKey: <S extends CreateApiKeyPayloadSelect>(args: CreateApiKeyVariables, options: {
194
+ select: S;
195
+ } & StrictSelect<S, CreateApiKeyPayloadSelect>) => QueryBuilder<{
196
+ createApiKey: InferSelectResult<CreateApiKeyPayload, S> | null;
197
+ }>;
198
198
  forgotPassword: <S extends ForgotPasswordPayloadSelect>(args: ForgotPasswordVariables, options: {
199
199
  select: S;
200
200
  } & StrictSelect<S, ForgotPasswordPayloadSelect>) => QueryBuilder<{
@@ -158,18 +158,6 @@ export function createMutationOperations(client) {
158
158
  },
159
159
  ], connectionFieldsMap, 'ResetPasswordPayload'),
160
160
  }),
161
- createApiKey: (args, options) => new QueryBuilder({
162
- client,
163
- operation: 'mutation',
164
- operationName: 'CreateApiKey',
165
- fieldName: 'createApiKey',
166
- ...buildCustomDocument('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
167
- {
168
- name: 'input',
169
- type: 'CreateApiKeyInput!',
170
- },
171
- ], connectionFieldsMap, 'CreateApiKeyPayload'),
172
- }),
173
161
  signInCrossOrigin: (args, options) => new QueryBuilder({
174
162
  client,
175
163
  operation: 'mutation',
@@ -230,6 +218,18 @@ export function createMutationOperations(client) {
230
218
  },
231
219
  ], connectionFieldsMap, 'ExtendTokenExpiresPayload'),
232
220
  }),
221
+ createApiKey: (args, options) => new QueryBuilder({
222
+ client,
223
+ operation: 'mutation',
224
+ operationName: 'CreateApiKey',
225
+ fieldName: 'createApiKey',
226
+ ...buildCustomDocument('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
227
+ {
228
+ name: 'input',
229
+ type: 'CreateApiKeyInput!',
230
+ },
231
+ ], connectionFieldsMap, 'CreateApiKeyPayload'),
232
+ }),
233
233
  forgotPassword: (args, options) => new QueryBuilder({
234
234
  client,
235
235
  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 {
@@ -12,6 +12,7 @@ const fieldSchema = {
12
12
  address: 'string',
13
13
  isVerified: 'boolean',
14
14
  isPrimary: 'boolean',
15
+ name: 'string',
15
16
  createdAt: 'string',
16
17
  updatedAt: 'string',
17
18
  };
@@ -62,6 +63,7 @@ async function handleList(argv, _prompter) {
62
63
  address: true,
63
64
  isVerified: true,
64
65
  isPrimary: true,
66
+ name: true,
65
67
  createdAt: true,
66
68
  updatedAt: true,
67
69
  };
@@ -86,6 +88,7 @@ async function handleFindFirst(argv, _prompter) {
86
88
  address: true,
87
89
  isVerified: true,
88
90
  isPrimary: true,
91
+ name: true,
89
92
  createdAt: true,
90
93
  updatedAt: true,
91
94
  };
@@ -122,6 +125,7 @@ async function handleGet(argv, prompter) {
122
125
  address: true,
123
126
  isVerified: true,
124
127
  isPrimary: true,
128
+ name: true,
125
129
  createdAt: true,
126
130
  updatedAt: true,
127
131
  },
@@ -167,6 +171,13 @@ async function handleCreate(argv, prompter) {
167
171
  required: false,
168
172
  skipPrompt: true,
169
173
  },
174
+ {
175
+ type: 'text',
176
+ name: 'name',
177
+ message: 'name',
178
+ required: false,
179
+ skipPrompt: true,
180
+ },
170
181
  ]);
171
182
  const answers = coerceAnswers(rawAnswers, fieldSchema);
172
183
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -178,6 +189,7 @@ async function handleCreate(argv, prompter) {
178
189
  address: cleanedData.address,
179
190
  isVerified: cleanedData.isVerified,
180
191
  isPrimary: cleanedData.isPrimary,
192
+ name: cleanedData.name,
181
193
  },
182
194
  select: {
183
195
  id: true,
@@ -185,6 +197,7 @@ async function handleCreate(argv, prompter) {
185
197
  address: true,
186
198
  isVerified: true,
187
199
  isPrimary: true,
200
+ name: true,
188
201
  createdAt: true,
189
202
  updatedAt: true,
190
203
  },
@@ -236,6 +249,13 @@ async function handleUpdate(argv, prompter) {
236
249
  required: false,
237
250
  skipPrompt: true,
238
251
  },
252
+ {
253
+ type: 'text',
254
+ name: 'name',
255
+ message: 'name',
256
+ required: false,
257
+ skipPrompt: true,
258
+ },
239
259
  ]);
240
260
  const answers = coerceAnswers(rawAnswers, fieldSchema);
241
261
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -250,6 +270,7 @@ async function handleUpdate(argv, prompter) {
250
270
  address: cleanedData.address,
251
271
  isVerified: cleanedData.isVerified,
252
272
  isPrimary: cleanedData.isPrimary,
273
+ name: cleanedData.name,
253
274
  },
254
275
  select: {
255
276
  id: true,
@@ -257,6 +278,7 @@ async function handleUpdate(argv, prompter) {
257
278
  address: true,
258
279
  isVerified: true,
259
280
  isPrimary: true,
281
+ name: true,
260
282
  createdAt: true,
261
283
  updatedAt: true,
262
284
  },
@@ -12,6 +12,7 @@ const fieldSchema = {
12
12
  email: 'string',
13
13
  isVerified: 'boolean',
14
14
  isPrimary: 'boolean',
15
+ name: 'string',
15
16
  createdAt: 'string',
16
17
  updatedAt: 'string',
17
18
  };
@@ -62,6 +63,7 @@ async function handleList(argv, _prompter) {
62
63
  email: true,
63
64
  isVerified: true,
64
65
  isPrimary: true,
66
+ name: true,
65
67
  createdAt: true,
66
68
  updatedAt: true,
67
69
  };
@@ -86,6 +88,7 @@ async function handleFindFirst(argv, _prompter) {
86
88
  email: true,
87
89
  isVerified: true,
88
90
  isPrimary: true,
91
+ name: true,
89
92
  createdAt: true,
90
93
  updatedAt: true,
91
94
  };
@@ -122,6 +125,7 @@ async function handleGet(argv, prompter) {
122
125
  email: true,
123
126
  isVerified: true,
124
127
  isPrimary: true,
128
+ name: true,
125
129
  createdAt: true,
126
130
  updatedAt: true,
127
131
  },
@@ -167,6 +171,13 @@ async function handleCreate(argv, prompter) {
167
171
  required: false,
168
172
  skipPrompt: true,
169
173
  },
174
+ {
175
+ type: 'text',
176
+ name: 'name',
177
+ message: 'name',
178
+ required: false,
179
+ skipPrompt: true,
180
+ },
170
181
  ]);
171
182
  const answers = coerceAnswers(rawAnswers, fieldSchema);
172
183
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -178,6 +189,7 @@ async function handleCreate(argv, prompter) {
178
189
  email: cleanedData.email,
179
190
  isVerified: cleanedData.isVerified,
180
191
  isPrimary: cleanedData.isPrimary,
192
+ name: cleanedData.name,
181
193
  },
182
194
  select: {
183
195
  id: true,
@@ -185,6 +197,7 @@ async function handleCreate(argv, prompter) {
185
197
  email: true,
186
198
  isVerified: true,
187
199
  isPrimary: true,
200
+ name: true,
188
201
  createdAt: true,
189
202
  updatedAt: true,
190
203
  },
@@ -236,6 +249,13 @@ async function handleUpdate(argv, prompter) {
236
249
  required: false,
237
250
  skipPrompt: true,
238
251
  },
252
+ {
253
+ type: 'text',
254
+ name: 'name',
255
+ message: 'name',
256
+ required: false,
257
+ skipPrompt: true,
258
+ },
239
259
  ]);
240
260
  const answers = coerceAnswers(rawAnswers, fieldSchema);
241
261
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -250,6 +270,7 @@ async function handleUpdate(argv, prompter) {
250
270
  email: cleanedData.email,
251
271
  isVerified: cleanedData.isVerified,
252
272
  isPrimary: cleanedData.isPrimary,
273
+ name: cleanedData.name,
253
274
  },
254
275
  select: {
255
276
  id: true,
@@ -257,6 +278,7 @@ async function handleUpdate(argv, prompter) {
257
278
  email: true,
258
279
  isVerified: true,
259
280
  isPrimary: true,
281
+ name: true,
260
282
  createdAt: true,
261
283
  updatedAt: true,
262
284
  },