@constructive-sdk/cli 0.13.4 → 0.14.1
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/app-membership.js +22 -0
- package/admin/cli/commands/membership-type.js +44 -0
- package/{auth/cli/commands/connected-account.d.ts → admin/cli/commands/org-member-profile.d.ts} +1 -1
- package/admin/cli/commands/org-member-profile.js +392 -0
- package/admin/cli/commands/org-membership.js +44 -0
- package/admin/cli/commands.js +7 -5
- package/admin/cli/executor.d.ts +3 -2
- package/admin/orm/index.d.ts +6 -4
- package/admin/orm/index.js +6 -4
- package/admin/orm/input-types.d.ts +503 -295
- package/admin/orm/models/index.d.ts +3 -2
- package/admin/orm/models/index.js +7 -5
- package/admin/orm/models/orgMemberProfile.d.ts +56 -0
- package/{auth/orm/models/connectedAccount.js → admin/orm/models/orgMemberProfile.js} +26 -26
- package/{esm/auth/cli/commands/one-time-token.d.ts → auth/cli/commands/create-api-key.d.ts} +1 -1
- package/{public/cli/commands/one-time-token.js → auth/cli/commands/create-api-key.js} +3 -3
- package/auth/cli/commands/disconnect-account.d.ts +8 -0
- package/auth/cli/commands/{sign-in-one-time-token.js → disconnect-account.js} +3 -3
- package/auth/cli/commands/provision-new-user.d.ts +8 -0
- package/{public/cli/commands/sign-in-one-time-token.js → auth/cli/commands/provision-new-user.js} +3 -3
- package/auth/cli/commands/request-cross-origin-token.d.ts +8 -0
- package/auth/cli/commands/request-cross-origin-token.js +36 -0
- package/auth/cli/commands/require-step-up.d.ts +8 -0
- package/auth/cli/commands/require-step-up.js +30 -0
- package/auth/cli/commands/{one-time-token.d.ts → revoke-api-key.d.ts} +1 -1
- package/auth/cli/commands/{one-time-token.js → revoke-api-key.js} +3 -3
- package/auth/cli/commands/revoke-session.d.ts +8 -0
- package/auth/cli/commands/revoke-session.js +36 -0
- package/auth/cli/commands/sign-in-cross-origin.d.ts +8 -0
- package/auth/cli/commands/sign-in-cross-origin.js +36 -0
- package/auth/cli/commands/user-connected-account.d.ts +8 -0
- package/auth/cli/commands/user-connected-account.js +176 -0
- package/auth/cli/commands.js +23 -11
- package/auth/cli/executor.d.ts +44 -14
- package/auth/orm/index.d.ts +45 -15
- package/auth/orm/index.js +2 -2
- package/auth/orm/input-types.d.ts +186 -251
- package/auth/orm/input-types.js +0 -1
- package/auth/orm/models/index.d.ts +1 -1
- package/auth/orm/models/index.js +3 -3
- package/auth/orm/models/userConnectedAccount.d.ts +38 -0
- package/auth/orm/models/userConnectedAccount.js +76 -0
- package/auth/orm/mutation/index.d.ts +56 -16
- package/auth/orm/mutation/index.js +78 -18
- package/auth/orm/query/index.d.ts +12 -4
- package/auth/orm/query/index.js +19 -7
- package/esm/admin/cli/commands/app-membership.js +22 -0
- package/esm/admin/cli/commands/membership-type.js +44 -0
- package/esm/{public/cli/commands/connected-account.d.ts → admin/cli/commands/org-member-profile.d.ts} +1 -1
- package/esm/admin/cli/commands/org-member-profile.js +390 -0
- package/esm/admin/cli/commands/org-membership.js +44 -0
- package/esm/admin/cli/commands.js +7 -5
- package/esm/admin/cli/executor.d.ts +3 -2
- package/esm/admin/orm/index.d.ts +6 -4
- package/esm/admin/orm/index.js +6 -4
- package/esm/admin/orm/input-types.d.ts +503 -295
- package/esm/admin/orm/models/index.d.ts +3 -2
- package/esm/admin/orm/models/index.js +3 -2
- package/esm/admin/orm/models/orgMemberProfile.d.ts +56 -0
- package/esm/{public/orm/models/connectedAccount.js → admin/orm/models/orgMemberProfile.js} +24 -24
- package/esm/auth/cli/commands/create-api-key.d.ts +8 -0
- package/esm/{public/cli/commands/one-time-token.js → auth/cli/commands/create-api-key.js} +3 -3
- package/esm/auth/cli/commands/disconnect-account.d.ts +8 -0
- package/esm/auth/cli/commands/{sign-in-one-time-token.js → disconnect-account.js} +3 -3
- package/esm/auth/cli/commands/provision-new-user.d.ts +8 -0
- package/esm/{public/cli/commands/sign-in-one-time-token.js → auth/cli/commands/provision-new-user.js} +3 -3
- package/esm/auth/cli/commands/request-cross-origin-token.d.ts +8 -0
- package/esm/auth/cli/commands/request-cross-origin-token.js +34 -0
- package/esm/auth/cli/commands/require-step-up.d.ts +8 -0
- package/esm/auth/cli/commands/require-step-up.js +28 -0
- package/esm/auth/cli/commands/revoke-api-key.d.ts +8 -0
- package/esm/auth/cli/commands/{one-time-token.js → revoke-api-key.js} +3 -3
- package/esm/auth/cli/commands/revoke-session.d.ts +8 -0
- package/esm/auth/cli/commands/revoke-session.js +34 -0
- package/esm/auth/cli/commands/sign-in-cross-origin.d.ts +8 -0
- package/esm/auth/cli/commands/sign-in-cross-origin.js +34 -0
- package/esm/auth/cli/commands/user-connected-account.d.ts +8 -0
- package/esm/auth/cli/commands/user-connected-account.js +174 -0
- package/esm/auth/cli/commands.js +23 -11
- package/esm/auth/cli/executor.d.ts +44 -14
- package/esm/auth/orm/index.d.ts +45 -15
- package/esm/auth/orm/index.js +2 -2
- package/esm/auth/orm/input-types.d.ts +186 -251
- package/esm/auth/orm/input-types.js +0 -1
- package/esm/auth/orm/models/index.d.ts +1 -1
- package/esm/auth/orm/models/index.js +1 -1
- package/esm/auth/orm/models/userConnectedAccount.d.ts +38 -0
- package/esm/auth/orm/models/userConnectedAccount.js +72 -0
- package/esm/auth/orm/mutation/index.d.ts +56 -16
- package/esm/auth/orm/mutation/index.js +78 -18
- package/esm/auth/orm/query/index.d.ts +12 -4
- package/esm/auth/orm/query/index.js +19 -7
- package/esm/public/cli/commands/app-membership.js +22 -0
- package/esm/public/cli/commands/construct-blueprint.js +1 -1
- package/esm/public/cli/commands/create-api-key.d.ts +8 -0
- package/esm/public/cli/commands/create-api-key.js +34 -0
- package/{public/cli/commands/connected-account.d.ts → esm/public/cli/commands/devices-module.d.ts} +1 -1
- package/esm/public/cli/commands/{connected-account.js → devices-module.js} +101 -87
- package/esm/public/cli/commands/disconnect-account.d.ts +8 -0
- package/esm/public/cli/commands/disconnect-account.js +34 -0
- package/esm/public/cli/commands/{table-template-module.d.ts → entity-type-provision.d.ts} +1 -1
- package/esm/public/cli/commands/entity-type-provision.js +554 -0
- package/esm/public/cli/commands/membership-type.js +44 -0
- package/esm/public/cli/commands/memberships-module.js +22 -0
- package/esm/{auth/cli/commands/connected-account.d.ts → public/cli/commands/org-member-profile.d.ts} +1 -1
- package/esm/public/cli/commands/org-member-profile.js +390 -0
- package/esm/public/cli/commands/org-membership.js +44 -0
- package/esm/public/cli/commands/provision-new-user.d.ts +8 -0
- package/esm/public/cli/commands/provision-new-user.js +34 -0
- package/esm/public/cli/commands/provision-spatial-relation.d.ts +8 -0
- package/esm/public/cli/commands/provision-spatial-relation.js +34 -0
- package/esm/public/cli/commands/request-cross-origin-token.d.ts +8 -0
- package/esm/public/cli/commands/request-cross-origin-token.js +34 -0
- package/esm/public/cli/commands/require-step-up.d.ts +8 -0
- package/esm/public/cli/commands/require-step-up.js +28 -0
- package/{auth/cli/commands/sign-in-one-time-token.d.ts → esm/public/cli/commands/resolve-blueprint-field.d.ts} +1 -1
- package/esm/public/cli/commands/resolve-blueprint-field.js +38 -0
- package/esm/public/cli/commands/revoke-api-key.d.ts +8 -0
- package/esm/public/cli/commands/revoke-api-key.js +34 -0
- package/esm/public/cli/commands/revoke-session.d.ts +8 -0
- package/esm/public/cli/commands/revoke-session.js +34 -0
- package/esm/public/cli/commands/session-secrets-module.d.ts +8 -0
- package/esm/{auth/cli/commands/connected-account.js → public/cli/commands/session-secrets-module.js} +82 -90
- package/esm/public/cli/commands/sign-in-cross-origin.d.ts +8 -0
- package/esm/public/cli/commands/sign-in-cross-origin.js +34 -0
- package/esm/public/cli/commands/spatial-relation.d.ts +8 -0
- package/esm/public/cli/commands/spatial-relation.js +472 -0
- package/esm/public/cli/commands/user-auth-module.js +24 -24
- package/esm/public/cli/commands/user-connected-account.d.ts +8 -0
- package/esm/public/cli/commands/user-connected-account.js +174 -0
- package/esm/public/cli/commands/webauthn-credentials-module.d.ts +8 -0
- package/esm/public/cli/commands/{table-template-module.js → webauthn-credentials-module.js} +8 -48
- package/esm/public/cli/commands.js +41 -15
- package/esm/public/cli/executor.d.ts +61 -16
- package/esm/public/orm/index.d.ts +69 -19
- package/esm/public/orm/index.js +16 -6
- package/esm/public/orm/input-types.d.ts +2047 -640
- package/esm/public/orm/input-types.js +15 -6
- package/esm/public/orm/models/devicesModule.d.ts +56 -0
- package/esm/public/orm/models/devicesModule.js +96 -0
- package/esm/public/orm/models/entityTypeProvision.d.ts +56 -0
- package/esm/public/orm/models/{tableTemplateModule.js → entityTypeProvision.js} +24 -24
- package/esm/public/orm/models/index.d.ts +8 -3
- package/esm/public/orm/models/index.js +8 -3
- package/esm/public/orm/models/orgMemberProfile.d.ts +56 -0
- package/esm/{auth/orm/models/connectedAccount.js → public/orm/models/orgMemberProfile.js} +24 -24
- package/esm/public/orm/models/sessionSecretsModule.d.ts +56 -0
- package/esm/public/orm/models/sessionSecretsModule.js +96 -0
- package/esm/public/orm/models/spatialRelation.d.ts +56 -0
- package/esm/public/orm/models/spatialRelation.js +96 -0
- package/esm/public/orm/models/userConnectedAccount.d.ts +38 -0
- package/esm/public/orm/models/userConnectedAccount.js +72 -0
- package/esm/public/orm/models/webauthnCredentialsModule.d.ts +56 -0
- package/esm/public/orm/models/webauthnCredentialsModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +72 -20
- package/esm/public/orm/mutation/index.js +96 -24
- package/esm/public/orm/query/index.d.ts +24 -2
- package/esm/public/orm/query/index.js +36 -4
- package/package.json +5 -5
- package/public/cli/commands/app-membership.js +22 -0
- package/public/cli/commands/construct-blueprint.js +1 -1
- package/public/cli/commands/create-api-key.d.ts +8 -0
- package/public/cli/commands/create-api-key.js +36 -0
- package/public/cli/commands/devices-module.d.ts +8 -0
- package/{auth/cli/commands/connected-account.js → public/cli/commands/devices-module.js} +101 -87
- package/public/cli/commands/disconnect-account.d.ts +8 -0
- package/public/cli/commands/disconnect-account.js +36 -0
- package/public/cli/commands/entity-type-provision.d.ts +8 -0
- package/public/cli/commands/entity-type-provision.js +556 -0
- package/public/cli/commands/membership-type.js +44 -0
- package/public/cli/commands/memberships-module.js +22 -0
- package/public/cli/commands/org-member-profile.d.ts +8 -0
- package/public/cli/commands/org-member-profile.js +392 -0
- package/public/cli/commands/org-membership.js +44 -0
- package/public/cli/commands/provision-new-user.d.ts +8 -0
- package/public/cli/commands/provision-new-user.js +36 -0
- package/public/cli/commands/provision-spatial-relation.d.ts +8 -0
- package/public/cli/commands/provision-spatial-relation.js +36 -0
- package/public/cli/commands/request-cross-origin-token.d.ts +8 -0
- package/public/cli/commands/request-cross-origin-token.js +36 -0
- package/public/cli/commands/require-step-up.d.ts +8 -0
- package/public/cli/commands/require-step-up.js +30 -0
- package/public/cli/commands/resolve-blueprint-field.d.ts +8 -0
- package/public/cli/commands/resolve-blueprint-field.js +40 -0
- package/public/cli/commands/revoke-api-key.d.ts +8 -0
- package/public/cli/commands/revoke-api-key.js +36 -0
- package/public/cli/commands/revoke-session.d.ts +8 -0
- package/public/cli/commands/revoke-session.js +36 -0
- package/public/cli/commands/session-secrets-module.d.ts +8 -0
- package/public/cli/commands/{connected-account.js → session-secrets-module.js} +82 -90
- package/public/cli/commands/sign-in-cross-origin.d.ts +8 -0
- package/public/cli/commands/sign-in-cross-origin.js +36 -0
- package/public/cli/commands/spatial-relation.d.ts +8 -0
- package/public/cli/commands/spatial-relation.js +474 -0
- package/public/cli/commands/user-auth-module.js +24 -24
- package/public/cli/commands/user-connected-account.d.ts +8 -0
- package/public/cli/commands/user-connected-account.js +176 -0
- package/public/cli/commands/webauthn-credentials-module.d.ts +8 -0
- package/public/cli/commands/{table-template-module.js → webauthn-credentials-module.js} +8 -48
- package/public/cli/commands.js +41 -15
- package/public/cli/executor.d.ts +61 -16
- package/public/orm/index.d.ts +69 -19
- package/public/orm/index.js +16 -6
- package/public/orm/input-types.d.ts +2047 -640
- package/public/orm/input-types.js +15 -6
- package/public/orm/models/devicesModule.d.ts +56 -0
- package/public/orm/models/devicesModule.js +100 -0
- package/public/orm/models/entityTypeProvision.d.ts +56 -0
- package/public/orm/models/{tableTemplateModule.js → entityTypeProvision.js} +26 -26
- package/public/orm/models/index.d.ts +8 -3
- package/public/orm/models/index.js +19 -9
- package/public/orm/models/orgMemberProfile.d.ts +56 -0
- package/public/orm/models/{connectedAccount.js → orgMemberProfile.js} +26 -26
- package/public/orm/models/sessionSecretsModule.d.ts +56 -0
- package/public/orm/models/sessionSecretsModule.js +100 -0
- package/public/orm/models/spatialRelation.d.ts +56 -0
- package/public/orm/models/spatialRelation.js +100 -0
- package/public/orm/models/userConnectedAccount.d.ts +38 -0
- package/public/orm/models/userConnectedAccount.js +76 -0
- package/public/orm/models/webauthnCredentialsModule.d.ts +56 -0
- package/public/orm/models/webauthnCredentialsModule.js +100 -0
- package/public/orm/mutation/index.d.ts +72 -20
- package/public/orm/mutation/index.js +96 -24
- package/public/orm/query/index.d.ts +24 -2
- package/public/orm/query/index.js +36 -4
- package/auth/orm/models/connectedAccount.d.ts +0 -56
- package/esm/auth/cli/commands/sign-in-one-time-token.d.ts +0 -8
- package/esm/auth/orm/models/connectedAccount.d.ts +0 -56
- package/esm/public/cli/commands/one-time-token.d.ts +0 -8
- package/esm/public/cli/commands/sign-in-one-time-token.d.ts +0 -8
- package/esm/public/orm/models/connectedAccount.d.ts +0 -56
- package/esm/public/orm/models/tableTemplateModule.d.ts +0 -56
- package/public/cli/commands/one-time-token.d.ts +0 -8
- package/public/cli/commands/sign-in-one-time-token.d.ts +0 -8
- package/public/cli/commands/table-template-module.d.ts +0 -8
- package/public/orm/models/connectedAccount.d.ts +0 -56
- package/public/orm/models/tableTemplateModule.d.ts +0 -56
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* CLI commands for UserConnectedAccount
|
|
5
|
+
* @generated by @constructive-io/graphql-codegen
|
|
6
|
+
* DO NOT EDIT - changes will be overwritten
|
|
7
|
+
*/
|
|
8
|
+
const inquirerer_1 = require("inquirerer");
|
|
9
|
+
const executor_1 = require("../executor");
|
|
10
|
+
const utils_1 = require("../utils");
|
|
11
|
+
const fieldSchema = {
|
|
12
|
+
id: 'uuid',
|
|
13
|
+
ownerId: 'uuid',
|
|
14
|
+
service: 'string',
|
|
15
|
+
identifier: 'string',
|
|
16
|
+
details: 'json',
|
|
17
|
+
isVerified: 'boolean',
|
|
18
|
+
createdAt: 'string',
|
|
19
|
+
updatedAt: 'string',
|
|
20
|
+
};
|
|
21
|
+
const usage = '\nuser-connected-account <command>\n\nCommands:\n list List userConnectedAccount records\n find-first Find first matching userConnectedAccount record\n create Create a new userConnectedAccount\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
|
|
22
|
+
exports.default = async (argv, prompter, _options) => {
|
|
23
|
+
if (argv.help || argv.h) {
|
|
24
|
+
console.log(usage);
|
|
25
|
+
process.exit(0);
|
|
26
|
+
}
|
|
27
|
+
const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
|
|
28
|
+
if (!subcommand) {
|
|
29
|
+
const answer = await prompter.prompt(argv, [
|
|
30
|
+
{
|
|
31
|
+
type: 'autocomplete',
|
|
32
|
+
name: 'subcommand',
|
|
33
|
+
message: 'What do you want to do?',
|
|
34
|
+
options: ['list', 'find-first', 'create'],
|
|
35
|
+
},
|
|
36
|
+
]);
|
|
37
|
+
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
38
|
+
}
|
|
39
|
+
return handleTableSubcommand(subcommand, newArgv, prompter);
|
|
40
|
+
};
|
|
41
|
+
async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
42
|
+
switch (subcommand) {
|
|
43
|
+
case 'list':
|
|
44
|
+
return handleList(argv, prompter);
|
|
45
|
+
case 'find-first':
|
|
46
|
+
return handleFindFirst(argv, prompter);
|
|
47
|
+
case 'create':
|
|
48
|
+
return handleCreate(argv, prompter);
|
|
49
|
+
default:
|
|
50
|
+
console.log(usage);
|
|
51
|
+
process.exit(1);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
async function handleList(argv, _prompter) {
|
|
55
|
+
try {
|
|
56
|
+
const defaultSelect = {
|
|
57
|
+
id: true,
|
|
58
|
+
ownerId: true,
|
|
59
|
+
service: true,
|
|
60
|
+
identifier: true,
|
|
61
|
+
details: true,
|
|
62
|
+
isVerified: true,
|
|
63
|
+
createdAt: true,
|
|
64
|
+
updatedAt: true,
|
|
65
|
+
};
|
|
66
|
+
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
67
|
+
const client = (0, executor_1.getClient)();
|
|
68
|
+
const result = await client.userConnectedAccount.findMany(findManyArgs).execute();
|
|
69
|
+
console.log(JSON.stringify(result, null, 2));
|
|
70
|
+
}
|
|
71
|
+
catch (error) {
|
|
72
|
+
console.error('Failed to list records.');
|
|
73
|
+
if (error instanceof Error) {
|
|
74
|
+
console.error(error.message);
|
|
75
|
+
}
|
|
76
|
+
process.exit(1);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
async function handleFindFirst(argv, _prompter) {
|
|
80
|
+
try {
|
|
81
|
+
const defaultSelect = {
|
|
82
|
+
id: true,
|
|
83
|
+
ownerId: true,
|
|
84
|
+
service: true,
|
|
85
|
+
identifier: true,
|
|
86
|
+
details: true,
|
|
87
|
+
isVerified: true,
|
|
88
|
+
createdAt: true,
|
|
89
|
+
updatedAt: true,
|
|
90
|
+
};
|
|
91
|
+
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
92
|
+
const client = (0, executor_1.getClient)();
|
|
93
|
+
const result = await client.userConnectedAccount.findFirst(findFirstArgs).execute();
|
|
94
|
+
console.log(JSON.stringify(result, null, 2));
|
|
95
|
+
}
|
|
96
|
+
catch (error) {
|
|
97
|
+
console.error('Failed to find record.');
|
|
98
|
+
if (error instanceof Error) {
|
|
99
|
+
console.error(error.message);
|
|
100
|
+
}
|
|
101
|
+
process.exit(1);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
async function handleCreate(argv, prompter) {
|
|
105
|
+
try {
|
|
106
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
107
|
+
{
|
|
108
|
+
type: 'text',
|
|
109
|
+
name: 'ownerId',
|
|
110
|
+
message: 'ownerId',
|
|
111
|
+
required: false,
|
|
112
|
+
skipPrompt: true,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
type: 'text',
|
|
116
|
+
name: 'service',
|
|
117
|
+
message: 'service',
|
|
118
|
+
required: false,
|
|
119
|
+
skipPrompt: true,
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
type: 'text',
|
|
123
|
+
name: 'identifier',
|
|
124
|
+
message: 'identifier',
|
|
125
|
+
required: false,
|
|
126
|
+
skipPrompt: true,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
type: 'json',
|
|
130
|
+
name: 'details',
|
|
131
|
+
message: 'details',
|
|
132
|
+
required: false,
|
|
133
|
+
skipPrompt: true,
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
type: 'boolean',
|
|
137
|
+
name: 'isVerified',
|
|
138
|
+
message: 'isVerified',
|
|
139
|
+
required: false,
|
|
140
|
+
skipPrompt: true,
|
|
141
|
+
},
|
|
142
|
+
]);
|
|
143
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
144
|
+
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
145
|
+
const client = (0, executor_1.getClient)();
|
|
146
|
+
const result = await client.userConnectedAccount
|
|
147
|
+
.create({
|
|
148
|
+
data: {
|
|
149
|
+
ownerId: cleanedData.ownerId,
|
|
150
|
+
service: cleanedData.service,
|
|
151
|
+
identifier: cleanedData.identifier,
|
|
152
|
+
details: cleanedData.details,
|
|
153
|
+
isVerified: cleanedData.isVerified,
|
|
154
|
+
},
|
|
155
|
+
select: {
|
|
156
|
+
id: true,
|
|
157
|
+
ownerId: true,
|
|
158
|
+
service: true,
|
|
159
|
+
identifier: true,
|
|
160
|
+
details: true,
|
|
161
|
+
isVerified: true,
|
|
162
|
+
createdAt: true,
|
|
163
|
+
updatedAt: true,
|
|
164
|
+
},
|
|
165
|
+
})
|
|
166
|
+
.execute();
|
|
167
|
+
console.log(JSON.stringify(result, null, 2));
|
|
168
|
+
}
|
|
169
|
+
catch (error) {
|
|
170
|
+
console.error('Failed to create record.');
|
|
171
|
+
if (error instanceof Error) {
|
|
172
|
+
console.error(error.message);
|
|
173
|
+
}
|
|
174
|
+
process.exit(1);
|
|
175
|
+
}
|
|
176
|
+
}
|
package/auth/cli/commands.js
CHANGED
|
@@ -15,27 +15,33 @@ const auth_1 = __importDefault(require("./commands/auth"));
|
|
|
15
15
|
const email_1 = __importDefault(require("./commands/email"));
|
|
16
16
|
const phone_number_1 = __importDefault(require("./commands/phone-number"));
|
|
17
17
|
const crypto_address_1 = __importDefault(require("./commands/crypto-address"));
|
|
18
|
-
const connected_account_1 = __importDefault(require("./commands/connected-account"));
|
|
19
18
|
const audit_log_1 = __importDefault(require("./commands/audit-log"));
|
|
20
19
|
const role_type_1 = __importDefault(require("./commands/role-type"));
|
|
20
|
+
const user_connected_account_1 = __importDefault(require("./commands/user-connected-account"));
|
|
21
21
|
const user_1 = __importDefault(require("./commands/user"));
|
|
22
|
-
const current_ip_address_1 = __importDefault(require("./commands/current-ip-address"));
|
|
23
22
|
const current_user_agent_1 = __importDefault(require("./commands/current-user-agent"));
|
|
23
|
+
const current_ip_address_1 = __importDefault(require("./commands/current-ip-address"));
|
|
24
24
|
const current_user_id_1 = __importDefault(require("./commands/current-user-id"));
|
|
25
|
+
const require_step_up_1 = __importDefault(require("./commands/require-step-up"));
|
|
25
26
|
const current_user_1 = __importDefault(require("./commands/current-user"));
|
|
26
27
|
const sign_out_1 = __importDefault(require("./commands/sign-out"));
|
|
27
28
|
const send_account_deletion_email_1 = __importDefault(require("./commands/send-account-deletion-email"));
|
|
28
29
|
const check_password_1 = __importDefault(require("./commands/check-password"));
|
|
30
|
+
const disconnect_account_1 = __importDefault(require("./commands/disconnect-account"));
|
|
31
|
+
const revoke_api_key_1 = __importDefault(require("./commands/revoke-api-key"));
|
|
32
|
+
const revoke_session_1 = __importDefault(require("./commands/revoke-session"));
|
|
29
33
|
const verify_password_1 = __importDefault(require("./commands/verify-password"));
|
|
30
34
|
const verify_totp_1 = __importDefault(require("./commands/verify-totp"));
|
|
31
35
|
const confirm_delete_account_1 = __importDefault(require("./commands/confirm-delete-account"));
|
|
32
36
|
const set_password_1 = __importDefault(require("./commands/set-password"));
|
|
33
37
|
const verify_email_1 = __importDefault(require("./commands/verify-email"));
|
|
38
|
+
const provision_new_user_1 = __importDefault(require("./commands/provision-new-user"));
|
|
34
39
|
const reset_password_1 = __importDefault(require("./commands/reset-password"));
|
|
35
|
-
const
|
|
36
|
-
const
|
|
40
|
+
const create_api_key_1 = __importDefault(require("./commands/create-api-key"));
|
|
41
|
+
const sign_in_cross_origin_1 = __importDefault(require("./commands/sign-in-cross-origin"));
|
|
37
42
|
const sign_up_1 = __importDefault(require("./commands/sign-up"));
|
|
38
|
-
const
|
|
43
|
+
const request_cross_origin_token_1 = __importDefault(require("./commands/request-cross-origin-token"));
|
|
44
|
+
const sign_in_1 = __importDefault(require("./commands/sign-in"));
|
|
39
45
|
const extend_token_expires_1 = __importDefault(require("./commands/extend-token-expires"));
|
|
40
46
|
const forgot_password_1 = __importDefault(require("./commands/forgot-password"));
|
|
41
47
|
const send_verification_email_1 = __importDefault(require("./commands/send-verification-email"));
|
|
@@ -48,27 +54,33 @@ const createCommandMap = () => ({
|
|
|
48
54
|
email: email_1.default,
|
|
49
55
|
'phone-number': phone_number_1.default,
|
|
50
56
|
'crypto-address': crypto_address_1.default,
|
|
51
|
-
'connected-account': connected_account_1.default,
|
|
52
57
|
'audit-log': audit_log_1.default,
|
|
53
58
|
'role-type': role_type_1.default,
|
|
59
|
+
'user-connected-account': user_connected_account_1.default,
|
|
54
60
|
user: user_1.default,
|
|
55
|
-
'current-ip-address': current_ip_address_1.default,
|
|
56
61
|
'current-user-agent': current_user_agent_1.default,
|
|
62
|
+
'current-ip-address': current_ip_address_1.default,
|
|
57
63
|
'current-user-id': current_user_id_1.default,
|
|
64
|
+
'require-step-up': require_step_up_1.default,
|
|
58
65
|
'current-user': current_user_1.default,
|
|
59
66
|
'sign-out': sign_out_1.default,
|
|
60
67
|
'send-account-deletion-email': send_account_deletion_email_1.default,
|
|
61
68
|
'check-password': check_password_1.default,
|
|
69
|
+
'disconnect-account': disconnect_account_1.default,
|
|
70
|
+
'revoke-api-key': revoke_api_key_1.default,
|
|
71
|
+
'revoke-session': revoke_session_1.default,
|
|
62
72
|
'verify-password': verify_password_1.default,
|
|
63
73
|
'verify-totp': verify_totp_1.default,
|
|
64
74
|
'confirm-delete-account': confirm_delete_account_1.default,
|
|
65
75
|
'set-password': set_password_1.default,
|
|
66
76
|
'verify-email': verify_email_1.default,
|
|
77
|
+
'provision-new-user': provision_new_user_1.default,
|
|
67
78
|
'reset-password': reset_password_1.default,
|
|
68
|
-
'
|
|
69
|
-
'sign-in':
|
|
79
|
+
'create-api-key': create_api_key_1.default,
|
|
80
|
+
'sign-in-cross-origin': sign_in_cross_origin_1.default,
|
|
70
81
|
'sign-up': sign_up_1.default,
|
|
71
|
-
'
|
|
82
|
+
'request-cross-origin-token': request_cross_origin_token_1.default,
|
|
83
|
+
'sign-in': sign_in_1.default,
|
|
72
84
|
'extend-token-expires': extend_token_expires_1.default,
|
|
73
85
|
'forgot-password': forgot_password_1.default,
|
|
74
86
|
'send-verification-email': send_verification_email_1.default,
|
|
@@ -76,7 +88,7 @@ const createCommandMap = () => ({
|
|
|
76
88
|
'confirm-upload': confirm_upload_1.default,
|
|
77
89
|
'provision-bucket': provision_bucket_1.default,
|
|
78
90
|
});
|
|
79
|
-
const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n
|
|
91
|
+
const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n audit-log auditLog CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n current-user-id currentUserId\n require-step-up requireStepUp\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n provision-new-user provisionNewUser\n reset-password resetPassword\n create-api-key createApiKey\n sign-in-cross-origin signInCrossOrigin\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n extend-token-expires extendTokenExpires\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\n request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\n confirm-upload Confirm that a file has been uploaded to S3.\nVerifies the object exists in S3, checks content-type,\nand transitions the file status from 'pending' to 'ready'.\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n";
|
|
80
92
|
const commands = async (argv, prompter, options) => {
|
|
81
93
|
if (argv.help || argv.h) {
|
|
82
94
|
console.log(usage);
|
package/auth/cli/executor.d.ts
CHANGED
|
@@ -3,26 +3,31 @@ export declare function getClient(contextName?: string): {
|
|
|
3
3
|
email: import("../orm").EmailModel;
|
|
4
4
|
phoneNumber: import("../orm").PhoneNumberModel;
|
|
5
5
|
cryptoAddress: import("../orm").CryptoAddressModel;
|
|
6
|
-
connectedAccount: import("../orm").ConnectedAccountModel;
|
|
7
6
|
auditLog: import("../orm").AuditLogModel;
|
|
8
7
|
roleType: import("../orm").RoleTypeModel;
|
|
8
|
+
userConnectedAccount: import("../orm").UserConnectedAccountModel;
|
|
9
9
|
user: import("../orm").UserModel;
|
|
10
10
|
query: {
|
|
11
|
-
|
|
11
|
+
currentUserAgent: (options?: {
|
|
12
12
|
select?: Record<string, unknown>;
|
|
13
13
|
}) => import("../orm").QueryBuilder<{
|
|
14
|
-
|
|
14
|
+
currentUserAgent: string | null;
|
|
15
15
|
}>;
|
|
16
|
-
|
|
16
|
+
currentIpAddress: (options?: {
|
|
17
17
|
select?: Record<string, unknown>;
|
|
18
18
|
}) => import("../orm").QueryBuilder<{
|
|
19
|
-
|
|
19
|
+
currentIpAddress: string | null;
|
|
20
20
|
}>;
|
|
21
21
|
currentUserId: (options?: {
|
|
22
22
|
select?: Record<string, unknown>;
|
|
23
23
|
}) => import("../orm").QueryBuilder<{
|
|
24
24
|
currentUserId: string | null;
|
|
25
25
|
}>;
|
|
26
|
+
requireStepUp: (args: import("../orm/query").RequireStepUpVariables, options?: {
|
|
27
|
+
select?: Record<string, unknown>;
|
|
28
|
+
}) => import("../orm").QueryBuilder<{
|
|
29
|
+
requireStepUp: boolean | null;
|
|
30
|
+
}>;
|
|
26
31
|
currentUser: <S extends import("../orm/input-types").UserSelect>(options: {
|
|
27
32
|
select: S;
|
|
28
33
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").UserSelect>) => import("../orm").QueryBuilder<{
|
|
@@ -45,6 +50,21 @@ export declare function getClient(contextName?: string): {
|
|
|
45
50
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").CheckPasswordPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
46
51
|
checkPassword: import("../orm").InferSelectResult<import("../orm/input-types").CheckPasswordPayload, S> | null;
|
|
47
52
|
}>;
|
|
53
|
+
disconnectAccount: <S extends import("../orm/input-types").DisconnectAccountPayloadSelect>(args: import("../orm/mutation").DisconnectAccountVariables, options: {
|
|
54
|
+
select: S;
|
|
55
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").DisconnectAccountPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
56
|
+
disconnectAccount: import("../orm").InferSelectResult<import("../orm/input-types").DisconnectAccountPayload, S> | null;
|
|
57
|
+
}>;
|
|
58
|
+
revokeApiKey: <S extends import("../orm/input-types").RevokeApiKeyPayloadSelect>(args: import("../orm/mutation").RevokeApiKeyVariables, options: {
|
|
59
|
+
select: S;
|
|
60
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").RevokeApiKeyPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
61
|
+
revokeApiKey: import("../orm").InferSelectResult<import("../orm/input-types").RevokeApiKeyPayload, S> | null;
|
|
62
|
+
}>;
|
|
63
|
+
revokeSession: <S extends import("../orm/input-types").RevokeSessionPayloadSelect>(args: import("../orm/mutation").RevokeSessionVariables, options: {
|
|
64
|
+
select: S;
|
|
65
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").RevokeSessionPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
66
|
+
revokeSession: import("../orm").InferSelectResult<import("../orm/input-types").RevokeSessionPayload, S> | null;
|
|
67
|
+
}>;
|
|
48
68
|
verifyPassword: <S extends import("../orm/input-types").VerifyPasswordPayloadSelect>(args: import("../orm/mutation").VerifyPasswordVariables, options: {
|
|
49
69
|
select: S;
|
|
50
70
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").VerifyPasswordPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
@@ -70,30 +90,40 @@ export declare function getClient(contextName?: string): {
|
|
|
70
90
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").VerifyEmailPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
71
91
|
verifyEmail: import("../orm").InferSelectResult<import("../orm/input-types").VerifyEmailPayload, S> | null;
|
|
72
92
|
}>;
|
|
93
|
+
provisionNewUser: <S extends import("../orm/input-types").ProvisionNewUserPayloadSelect>(args: import("../orm/mutation").ProvisionNewUserVariables, options: {
|
|
94
|
+
select: S;
|
|
95
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").ProvisionNewUserPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
96
|
+
provisionNewUser: import("../orm").InferSelectResult<import("../orm/input-types").ProvisionNewUserPayload, S> | null;
|
|
97
|
+
}>;
|
|
73
98
|
resetPassword: <S extends import("../orm/input-types").ResetPasswordPayloadSelect>(args: import("../orm/mutation").ResetPasswordVariables, options: {
|
|
74
99
|
select: S;
|
|
75
100
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").ResetPasswordPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
76
101
|
resetPassword: import("../orm").InferSelectResult<import("../orm/input-types").ResetPasswordPayload, S> | null;
|
|
77
102
|
}>;
|
|
78
|
-
|
|
103
|
+
createApiKey: <S extends import("../orm/input-types").CreateApiKeyPayloadSelect>(args: import("../orm/mutation").CreateApiKeyVariables, options: {
|
|
79
104
|
select: S;
|
|
80
|
-
} & import("../orm").StrictSelect<S, import("../orm/input-types").
|
|
81
|
-
|
|
105
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").CreateApiKeyPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
106
|
+
createApiKey: import("../orm").InferSelectResult<import("../orm/input-types").CreateApiKeyPayload, S> | null;
|
|
82
107
|
}>;
|
|
83
|
-
|
|
108
|
+
signInCrossOrigin: <S extends import("../orm/input-types").SignInCrossOriginPayloadSelect>(args: import("../orm/mutation").SignInCrossOriginVariables, options: {
|
|
84
109
|
select: S;
|
|
85
|
-
} & import("../orm").StrictSelect<S, import("../orm/input-types").
|
|
86
|
-
|
|
110
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").SignInCrossOriginPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
111
|
+
signInCrossOrigin: import("../orm").InferSelectResult<import("../orm/input-types").SignInCrossOriginPayload, S> | null;
|
|
87
112
|
}>;
|
|
88
113
|
signUp: <S extends import("../orm/input-types").SignUpPayloadSelect>(args: import("../orm/mutation").SignUpVariables, options: {
|
|
89
114
|
select: S;
|
|
90
115
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").SignUpPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
91
116
|
signUp: import("../orm").InferSelectResult<import("../orm/input-types").SignUpPayload, S> | null;
|
|
92
117
|
}>;
|
|
93
|
-
|
|
118
|
+
requestCrossOriginToken: <S extends import("../orm/input-types").RequestCrossOriginTokenPayloadSelect>(args: import("../orm/mutation").RequestCrossOriginTokenVariables, options: {
|
|
119
|
+
select: S;
|
|
120
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").RequestCrossOriginTokenPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
121
|
+
requestCrossOriginToken: import("../orm").InferSelectResult<import("../orm/input-types").RequestCrossOriginTokenPayload, S> | null;
|
|
122
|
+
}>;
|
|
123
|
+
signIn: <S extends import("../orm/input-types").SignInPayloadSelect>(args: import("../orm/mutation").SignInVariables, options: {
|
|
94
124
|
select: S;
|
|
95
|
-
} & import("../orm").StrictSelect<S, import("../orm/input-types").
|
|
96
|
-
|
|
125
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").SignInPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
126
|
+
signIn: import("../orm").InferSelectResult<import("../orm/input-types").SignInPayload, S> | null;
|
|
97
127
|
}>;
|
|
98
128
|
extendTokenExpires: <S extends import("../orm/input-types").ExtendTokenExpiresPayloadSelect>(args: import("../orm/mutation").ExtendTokenExpiresVariables, options: {
|
|
99
129
|
select: S;
|
package/auth/orm/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import type { OrmClientConfig } from './client';
|
|
|
2
2
|
import { EmailModel } from './models/email';
|
|
3
3
|
import { PhoneNumberModel } from './models/phoneNumber';
|
|
4
4
|
import { CryptoAddressModel } from './models/cryptoAddress';
|
|
5
|
-
import { ConnectedAccountModel } from './models/connectedAccount';
|
|
6
5
|
import { AuditLogModel } from './models/auditLog';
|
|
7
6
|
import { RoleTypeModel } from './models/roleType';
|
|
7
|
+
import { UserConnectedAccountModel } from './models/userConnectedAccount';
|
|
8
8
|
import { UserModel } from './models/user';
|
|
9
9
|
export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
|
|
10
10
|
export { GraphQLRequestError } from './client';
|
|
@@ -41,26 +41,31 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
41
41
|
email: EmailModel;
|
|
42
42
|
phoneNumber: PhoneNumberModel;
|
|
43
43
|
cryptoAddress: CryptoAddressModel;
|
|
44
|
-
connectedAccount: ConnectedAccountModel;
|
|
45
44
|
auditLog: AuditLogModel;
|
|
46
45
|
roleType: RoleTypeModel;
|
|
46
|
+
userConnectedAccount: UserConnectedAccountModel;
|
|
47
47
|
user: UserModel;
|
|
48
48
|
query: {
|
|
49
|
-
|
|
49
|
+
currentUserAgent: (options?: {
|
|
50
50
|
select?: Record<string, unknown>;
|
|
51
51
|
}) => import("./query-builder").QueryBuilder<{
|
|
52
|
-
|
|
52
|
+
currentUserAgent: string | null;
|
|
53
53
|
}>;
|
|
54
|
-
|
|
54
|
+
currentIpAddress: (options?: {
|
|
55
55
|
select?: Record<string, unknown>;
|
|
56
56
|
}) => import("./query-builder").QueryBuilder<{
|
|
57
|
-
|
|
57
|
+
currentIpAddress: string | null;
|
|
58
58
|
}>;
|
|
59
59
|
currentUserId: (options?: {
|
|
60
60
|
select?: Record<string, unknown>;
|
|
61
61
|
}) => import("./query-builder").QueryBuilder<{
|
|
62
62
|
currentUserId: string | null;
|
|
63
63
|
}>;
|
|
64
|
+
requireStepUp: (args: import("./query").RequireStepUpVariables, options?: {
|
|
65
|
+
select?: Record<string, unknown>;
|
|
66
|
+
}) => import("./query-builder").QueryBuilder<{
|
|
67
|
+
requireStepUp: boolean | null;
|
|
68
|
+
}>;
|
|
64
69
|
currentUser: <S extends import("./input-types").UserSelect>(options: {
|
|
65
70
|
select: S;
|
|
66
71
|
} & import("./select-types").StrictSelect<S, import("./input-types").UserSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -83,6 +88,21 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
83
88
|
} & import("./select-types").StrictSelect<S, import("./input-types").CheckPasswordPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
84
89
|
checkPassword: import("./select-types").InferSelectResult<import("./input-types").CheckPasswordPayload, S> | null;
|
|
85
90
|
}>;
|
|
91
|
+
disconnectAccount: <S extends import("./input-types").DisconnectAccountPayloadSelect>(args: import("./mutation").DisconnectAccountVariables, options: {
|
|
92
|
+
select: S;
|
|
93
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").DisconnectAccountPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
94
|
+
disconnectAccount: import("./select-types").InferSelectResult<import("./input-types").DisconnectAccountPayload, S> | null;
|
|
95
|
+
}>;
|
|
96
|
+
revokeApiKey: <S extends import("./input-types").RevokeApiKeyPayloadSelect>(args: import("./mutation").RevokeApiKeyVariables, options: {
|
|
97
|
+
select: S;
|
|
98
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").RevokeApiKeyPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
99
|
+
revokeApiKey: import("./select-types").InferSelectResult<import("./input-types").RevokeApiKeyPayload, S> | null;
|
|
100
|
+
}>;
|
|
101
|
+
revokeSession: <S extends import("./input-types").RevokeSessionPayloadSelect>(args: import("./mutation").RevokeSessionVariables, options: {
|
|
102
|
+
select: S;
|
|
103
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").RevokeSessionPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
104
|
+
revokeSession: import("./select-types").InferSelectResult<import("./input-types").RevokeSessionPayload, S> | null;
|
|
105
|
+
}>;
|
|
86
106
|
verifyPassword: <S extends import("./input-types").VerifyPasswordPayloadSelect>(args: import("./mutation").VerifyPasswordVariables, options: {
|
|
87
107
|
select: S;
|
|
88
108
|
} & import("./select-types").StrictSelect<S, import("./input-types").VerifyPasswordPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -108,30 +128,40 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
108
128
|
} & import("./select-types").StrictSelect<S, import("./input-types").VerifyEmailPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
109
129
|
verifyEmail: import("./select-types").InferSelectResult<import("./input-types").VerifyEmailPayload, S> | null;
|
|
110
130
|
}>;
|
|
131
|
+
provisionNewUser: <S extends import("./input-types").ProvisionNewUserPayloadSelect>(args: import("./mutation").ProvisionNewUserVariables, options: {
|
|
132
|
+
select: S;
|
|
133
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionNewUserPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
134
|
+
provisionNewUser: import("./select-types").InferSelectResult<import("./input-types").ProvisionNewUserPayload, S> | null;
|
|
135
|
+
}>;
|
|
111
136
|
resetPassword: <S extends import("./input-types").ResetPasswordPayloadSelect>(args: import("./mutation").ResetPasswordVariables, options: {
|
|
112
137
|
select: S;
|
|
113
138
|
} & import("./select-types").StrictSelect<S, import("./input-types").ResetPasswordPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
114
139
|
resetPassword: import("./select-types").InferSelectResult<import("./input-types").ResetPasswordPayload, S> | null;
|
|
115
140
|
}>;
|
|
116
|
-
|
|
141
|
+
createApiKey: <S extends import("./input-types").CreateApiKeyPayloadSelect>(args: import("./mutation").CreateApiKeyVariables, options: {
|
|
117
142
|
select: S;
|
|
118
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").
|
|
119
|
-
|
|
143
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").CreateApiKeyPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
144
|
+
createApiKey: import("./select-types").InferSelectResult<import("./input-types").CreateApiKeyPayload, S> | null;
|
|
120
145
|
}>;
|
|
121
|
-
|
|
146
|
+
signInCrossOrigin: <S extends import("./input-types").SignInCrossOriginPayloadSelect>(args: import("./mutation").SignInCrossOriginVariables, options: {
|
|
122
147
|
select: S;
|
|
123
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").
|
|
124
|
-
|
|
148
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").SignInCrossOriginPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
149
|
+
signInCrossOrigin: import("./select-types").InferSelectResult<import("./input-types").SignInCrossOriginPayload, S> | null;
|
|
125
150
|
}>;
|
|
126
151
|
signUp: <S extends import("./input-types").SignUpPayloadSelect>(args: import("./mutation").SignUpVariables, options: {
|
|
127
152
|
select: S;
|
|
128
153
|
} & import("./select-types").StrictSelect<S, import("./input-types").SignUpPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
129
154
|
signUp: import("./select-types").InferSelectResult<import("./input-types").SignUpPayload, S> | null;
|
|
130
155
|
}>;
|
|
131
|
-
|
|
156
|
+
requestCrossOriginToken: <S extends import("./input-types").RequestCrossOriginTokenPayloadSelect>(args: import("./mutation").RequestCrossOriginTokenVariables, options: {
|
|
157
|
+
select: S;
|
|
158
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").RequestCrossOriginTokenPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
159
|
+
requestCrossOriginToken: import("./select-types").InferSelectResult<import("./input-types").RequestCrossOriginTokenPayload, S> | null;
|
|
160
|
+
}>;
|
|
161
|
+
signIn: <S extends import("./input-types").SignInPayloadSelect>(args: import("./mutation").SignInVariables, options: {
|
|
132
162
|
select: S;
|
|
133
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").
|
|
134
|
-
|
|
163
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").SignInPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
164
|
+
signIn: import("./select-types").InferSelectResult<import("./input-types").SignInPayload, S> | null;
|
|
135
165
|
}>;
|
|
136
166
|
extendTokenExpires: <S extends import("./input-types").ExtendTokenExpiresPayloadSelect>(args: import("./mutation").ExtendTokenExpiresVariables, options: {
|
|
137
167
|
select: S;
|
package/auth/orm/index.js
CHANGED
|
@@ -25,9 +25,9 @@ const client_1 = require("./client");
|
|
|
25
25
|
const email_1 = require("./models/email");
|
|
26
26
|
const phoneNumber_1 = require("./models/phoneNumber");
|
|
27
27
|
const cryptoAddress_1 = require("./models/cryptoAddress");
|
|
28
|
-
const connectedAccount_1 = require("./models/connectedAccount");
|
|
29
28
|
const auditLog_1 = require("./models/auditLog");
|
|
30
29
|
const roleType_1 = require("./models/roleType");
|
|
30
|
+
const userConnectedAccount_1 = require("./models/userConnectedAccount");
|
|
31
31
|
const user_1 = require("./models/user");
|
|
32
32
|
const query_1 = require("./query");
|
|
33
33
|
const mutation_1 = require("./mutation");
|
|
@@ -72,9 +72,9 @@ function createClient(config) {
|
|
|
72
72
|
email: new email_1.EmailModel(client),
|
|
73
73
|
phoneNumber: new phoneNumber_1.PhoneNumberModel(client),
|
|
74
74
|
cryptoAddress: new cryptoAddress_1.CryptoAddressModel(client),
|
|
75
|
-
connectedAccount: new connectedAccount_1.ConnectedAccountModel(client),
|
|
76
75
|
auditLog: new auditLog_1.AuditLogModel(client),
|
|
77
76
|
roleType: new roleType_1.RoleTypeModel(client),
|
|
77
|
+
userConnectedAccount: new userConnectedAccount_1.UserConnectedAccountModel(client),
|
|
78
78
|
user: new user_1.UserModel(client),
|
|
79
79
|
query: (0, query_1.createQueryOperations)(client),
|
|
80
80
|
mutation: (0, mutation_1.createMutationOperations)(client),
|