@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.
- package/admin/cli/commands/org-membership-default.js +0 -44
- package/admin/cli/commands/org-membership-setting.d.ts +8 -0
- package/admin/cli/commands/org-membership-setting.js +418 -0
- package/admin/cli/commands.js +5 -3
- package/admin/cli/executor.d.ts +2 -1
- package/admin/orm/index.d.ts +4 -2
- package/admin/orm/index.js +4 -2
- package/admin/orm/input-types.d.ts +303 -142
- package/admin/orm/models/index.d.ts +2 -1
- package/admin/orm/models/index.js +5 -3
- package/admin/orm/models/orgMembershipSetting.d.ts +56 -0
- package/admin/orm/models/orgMembershipSetting.js +100 -0
- package/auth/cli/commands/crypto-address.js +22 -0
- package/auth/cli/commands/email.js +22 -0
- package/auth/cli/commands/identity-provider.d.ts +8 -0
- package/auth/cli/commands/identity-provider.js +164 -0
- package/auth/cli/commands/phone-number.js +22 -0
- package/auth/cli/commands/webauthn-credential.d.ts +8 -0
- package/auth/cli/commands/webauthn-credential.js +456 -0
- package/auth/cli/commands.js +7 -3
- package/auth/cli/executor.d.ts +7 -5
- package/auth/orm/index.d.ts +9 -5
- package/auth/orm/index.js +4 -0
- package/auth/orm/input-types.d.ts +525 -81
- package/auth/orm/input-types.js +1 -0
- package/auth/orm/models/identityProvider.d.ts +32 -0
- package/auth/orm/models/identityProvider.js +55 -0
- package/auth/orm/models/index.d.ts +2 -0
- package/auth/orm/models/index.js +5 -1
- package/auth/orm/models/webauthnCredential.d.ts +56 -0
- package/auth/orm/models/webauthnCredential.js +100 -0
- package/auth/orm/mutation/index.d.ts +9 -9
- package/auth/orm/mutation/index.js +12 -12
- package/esm/admin/cli/commands/org-membership-default.js +0 -44
- package/esm/admin/cli/commands/org-membership-setting.d.ts +8 -0
- package/esm/admin/cli/commands/org-membership-setting.js +416 -0
- package/esm/admin/cli/commands.js +5 -3
- package/esm/admin/cli/executor.d.ts +2 -1
- package/esm/admin/orm/index.d.ts +4 -2
- package/esm/admin/orm/index.js +4 -2
- package/esm/admin/orm/input-types.d.ts +303 -142
- package/esm/admin/orm/models/index.d.ts +2 -1
- package/esm/admin/orm/models/index.js +2 -1
- package/esm/admin/orm/models/orgMembershipSetting.d.ts +56 -0
- package/esm/admin/orm/models/orgMembershipSetting.js +96 -0
- package/esm/auth/cli/commands/crypto-address.js +22 -0
- package/esm/auth/cli/commands/email.js +22 -0
- package/esm/auth/cli/commands/identity-provider.d.ts +8 -0
- package/esm/auth/cli/commands/identity-provider.js +162 -0
- package/esm/auth/cli/commands/phone-number.js +22 -0
- package/esm/auth/cli/commands/webauthn-credential.d.ts +8 -0
- package/esm/auth/cli/commands/webauthn-credential.js +454 -0
- package/esm/auth/cli/commands.js +7 -3
- package/esm/auth/cli/executor.d.ts +7 -5
- package/esm/auth/orm/index.d.ts +9 -5
- package/esm/auth/orm/index.js +4 -0
- package/esm/auth/orm/input-types.d.ts +525 -81
- package/esm/auth/orm/input-types.js +1 -0
- package/esm/auth/orm/models/identityProvider.d.ts +32 -0
- package/esm/auth/orm/models/identityProvider.js +51 -0
- package/esm/auth/orm/models/index.d.ts +2 -0
- package/esm/auth/orm/models/index.js +2 -0
- package/esm/auth/orm/models/webauthnCredential.d.ts +56 -0
- package/esm/auth/orm/models/webauthnCredential.js +96 -0
- package/esm/auth/orm/mutation/index.d.ts +9 -9
- package/esm/auth/orm/mutation/index.js +12 -12
- package/esm/objects/orm/input-types.d.ts +12 -0
- package/esm/public/cli/commands/crypto-address.js +22 -0
- package/esm/public/cli/commands/email.js +22 -0
- package/esm/public/cli/commands/entity-type-provision.js +110 -0
- package/esm/public/cli/commands/identity-provider.d.ts +8 -0
- package/esm/public/cli/commands/identity-provider.js +162 -0
- package/esm/public/cli/commands/identity-providers-module.d.ts +8 -0
- package/esm/public/cli/commands/identity-providers-module.js +316 -0
- package/esm/public/cli/commands/memberships-module.js +44 -0
- package/esm/public/cli/commands/notifications-module.d.ts +8 -0
- package/esm/public/cli/commands/notifications-module.js +448 -0
- package/esm/public/cli/commands/org-membership-default.js +0 -44
- package/esm/public/cli/commands/org-membership-setting.d.ts +8 -0
- package/esm/public/cli/commands/org-membership-setting.js +416 -0
- package/esm/public/cli/commands/phone-number.js +22 -0
- package/esm/public/cli/commands/relation-provision.js +24 -156
- package/esm/public/cli/commands/secure-table-provision.js +24 -156
- package/esm/public/cli/commands/storage-module.js +44 -0
- package/esm/public/cli/commands/webauthn-auth-module.d.ts +8 -0
- package/esm/public/cli/commands/webauthn-auth-module.js +536 -0
- package/esm/public/cli/commands/webauthn-credential.d.ts +8 -0
- package/esm/public/cli/commands/webauthn-credential.js +454 -0
- package/esm/public/cli/commands.js +17 -5
- package/esm/public/cli/executor.d.ts +12 -6
- package/esm/public/orm/index.d.ts +19 -7
- package/esm/public/orm/index.js +14 -2
- package/esm/public/orm/input-types.d.ts +1827 -366
- package/esm/public/orm/input-types.js +7 -0
- package/esm/public/orm/models/identityProvider.d.ts +32 -0
- package/esm/public/orm/models/identityProvider.js +51 -0
- package/esm/public/orm/models/identityProvidersModule.d.ts +56 -0
- package/esm/public/orm/models/identityProvidersModule.js +96 -0
- package/esm/public/orm/models/index.d.ts +7 -1
- package/esm/public/orm/models/index.js +7 -1
- package/esm/public/orm/models/notificationsModule.d.ts +56 -0
- package/esm/public/orm/models/notificationsModule.js +96 -0
- package/esm/public/orm/models/orgMembershipSetting.d.ts +56 -0
- package/esm/public/orm/models/orgMembershipSetting.js +96 -0
- package/esm/public/orm/models/webauthnAuthModule.d.ts +56 -0
- package/esm/public/orm/models/webauthnAuthModule.js +96 -0
- package/esm/public/orm/models/webauthnCredential.d.ts +56 -0
- package/esm/public/orm/models/webauthnCredential.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +9 -9
- package/esm/public/orm/mutation/index.js +12 -12
- package/objects/orm/input-types.d.ts +12 -0
- package/package.json +3 -3
- package/public/cli/commands/crypto-address.js +22 -0
- package/public/cli/commands/email.js +22 -0
- package/public/cli/commands/entity-type-provision.js +110 -0
- package/public/cli/commands/identity-provider.d.ts +8 -0
- package/public/cli/commands/identity-provider.js +164 -0
- package/public/cli/commands/identity-providers-module.d.ts +8 -0
- package/public/cli/commands/identity-providers-module.js +318 -0
- package/public/cli/commands/memberships-module.js +44 -0
- package/public/cli/commands/notifications-module.d.ts +8 -0
- package/public/cli/commands/notifications-module.js +450 -0
- package/public/cli/commands/org-membership-default.js +0 -44
- package/public/cli/commands/org-membership-setting.d.ts +8 -0
- package/public/cli/commands/org-membership-setting.js +418 -0
- package/public/cli/commands/phone-number.js +22 -0
- package/public/cli/commands/relation-provision.js +24 -156
- package/public/cli/commands/secure-table-provision.js +24 -156
- package/public/cli/commands/storage-module.js +44 -0
- package/public/cli/commands/webauthn-auth-module.d.ts +8 -0
- package/public/cli/commands/webauthn-auth-module.js +538 -0
- package/public/cli/commands/webauthn-credential.d.ts +8 -0
- package/public/cli/commands/webauthn-credential.js +456 -0
- package/public/cli/commands.js +17 -5
- package/public/cli/executor.d.ts +12 -6
- package/public/orm/index.d.ts +19 -7
- package/public/orm/index.js +14 -2
- package/public/orm/input-types.d.ts +1827 -366
- package/public/orm/input-types.js +7 -0
- package/public/orm/models/identityProvider.d.ts +32 -0
- package/public/orm/models/identityProvider.js +55 -0
- package/public/orm/models/identityProvidersModule.d.ts +56 -0
- package/public/orm/models/identityProvidersModule.js +100 -0
- package/public/orm/models/index.d.ts +7 -1
- package/public/orm/models/index.js +17 -5
- package/public/orm/models/notificationsModule.d.ts +56 -0
- package/public/orm/models/notificationsModule.js +100 -0
- package/public/orm/models/orgMembershipSetting.d.ts +56 -0
- package/public/orm/models/orgMembershipSetting.js +100 -0
- package/public/orm/models/webauthnAuthModule.d.ts +56 -0
- package/public/orm/models/webauthnAuthModule.js +100 -0
- package/public/orm/models/webauthnCredential.d.ts +56 -0
- package/public/orm/models/webauthnCredential.js +100 -0
- package/public/orm/mutation/index.d.ts +9 -9
- package/public/orm/mutation/index.js +12 -12
|
@@ -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,
|
|
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
|
},
|