@constructive-sdk/cli 0.13.3 → 0.14.0
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/{claimed-invite.d.ts → app-claimed-invite.d.ts} +1 -1
- package/admin/cli/commands/{claimed-invite.js → app-claimed-invite.js} +8 -8
- package/{esm/public/cli/commands/invite.d.ts → admin/cli/commands/app-invite.d.ts} +1 -1
- package/{public/cli/commands/invite.js → admin/cli/commands/app-invite.js} +8 -8
- package/admin/cli/commands/steps-achieved.js +4 -4
- package/admin/cli/commands/steps-required.js +4 -4
- package/admin/cli/commands/{submit-invite-code.d.ts → submit-app-invite-code.d.ts} +1 -1
- package/admin/cli/commands/{submit-invite-code.js → submit-app-invite-code.js} +3 -3
- package/admin/cli/commands.js +7 -7
- package/admin/cli/executor.d.ts +5 -5
- package/admin/orm/index.d.ts +7 -7
- package/admin/orm/index.js +4 -4
- package/admin/orm/input-types.d.ts +99 -99
- package/admin/orm/models/appClaimedInvite.d.ts +56 -0
- package/{public/orm/models/claimedInvite.js → admin/orm/models/appClaimedInvite.js} +26 -26
- package/admin/orm/models/appInvite.d.ts +56 -0
- package/{public/orm/models/invite.js → admin/orm/models/appInvite.js} +26 -26
- package/admin/orm/models/index.d.ts +2 -2
- package/admin/orm/models/index.js +5 -5
- package/admin/orm/mutation/index.d.ts +6 -6
- package/admin/orm/mutation/index.js +6 -6
- package/admin/orm/query/index.d.ts +4 -4
- package/admin/orm/query/index.js +4 -4
- package/auth/cli/commands.js +5 -5
- package/auth/cli/executor.d.ts +10 -10
- package/auth/orm/index.d.ts +10 -10
- package/auth/orm/input-types.d.ts +24 -72
- package/auth/orm/mutation/index.d.ts +17 -17
- package/auth/orm/mutation/index.js +24 -24
- package/esm/admin/cli/commands/{claimed-invite.d.ts → app-claimed-invite.d.ts} +1 -1
- package/esm/admin/cli/commands/{claimed-invite.js → app-claimed-invite.js} +8 -8
- package/esm/admin/cli/commands/{invite.d.ts → app-invite.d.ts} +1 -1
- package/esm/{public/cli/commands/invite.js → admin/cli/commands/app-invite.js} +8 -8
- package/esm/admin/cli/commands/steps-achieved.js +4 -4
- package/esm/admin/cli/commands/steps-required.js +4 -4
- package/esm/admin/cli/commands/submit-app-invite-code.d.ts +8 -0
- package/esm/admin/cli/commands/{submit-invite-code.js → submit-app-invite-code.js} +3 -3
- package/esm/admin/cli/commands.js +7 -7
- package/esm/admin/cli/executor.d.ts +5 -5
- package/esm/admin/orm/index.d.ts +7 -7
- package/esm/admin/orm/index.js +4 -4
- package/esm/admin/orm/input-types.d.ts +99 -99
- package/esm/admin/orm/models/appClaimedInvite.d.ts +56 -0
- package/esm/admin/orm/models/{claimedInvite.js → appClaimedInvite.js} +24 -24
- package/esm/admin/orm/models/appInvite.d.ts +56 -0
- package/esm/admin/orm/models/{invite.js → appInvite.js} +24 -24
- package/esm/admin/orm/models/index.d.ts +2 -2
- package/esm/admin/orm/models/index.js +2 -2
- package/esm/admin/orm/mutation/index.d.ts +6 -6
- package/esm/admin/orm/mutation/index.js +6 -6
- package/esm/admin/orm/query/index.d.ts +4 -4
- package/esm/admin/orm/query/index.js +4 -4
- package/esm/auth/cli/commands.js +5 -5
- package/esm/auth/cli/executor.d.ts +10 -10
- package/esm/auth/orm/index.d.ts +10 -10
- package/esm/auth/orm/input-types.d.ts +24 -72
- package/esm/auth/orm/mutation/index.d.ts +17 -17
- package/esm/auth/orm/mutation/index.js +24 -24
- package/esm/public/cli/commands/app-claimed-invite.d.ts +8 -0
- package/esm/public/cli/commands/{claimed-invite.js → app-claimed-invite.js} +8 -8
- package/{admin/cli/commands/invite.d.ts → esm/public/cli/commands/app-invite.d.ts} +1 -1
- package/esm/{admin/cli/commands/invite.js → public/cli/commands/app-invite.js} +8 -8
- package/esm/public/cli/commands/rate-limits-module.d.ts +8 -0
- package/esm/public/cli/commands/rate-limits-module.js +382 -0
- package/esm/public/cli/commands/steps-achieved.js +4 -4
- package/esm/public/cli/commands/steps-required.js +4 -4
- package/esm/public/cli/commands/submit-app-invite-code.d.ts +8 -0
- package/esm/public/cli/commands/{submit-invite-code.js → submit-app-invite-code.js} +3 -3
- package/esm/public/cli/commands.js +13 -11
- package/esm/public/cli/executor.d.ts +16 -15
- package/esm/public/orm/index.d.ts +19 -17
- package/esm/public/orm/index.js +6 -4
- package/esm/public/orm/input-types.d.ts +402 -230
- package/esm/public/orm/input-types.js +3 -3
- package/esm/public/orm/models/appClaimedInvite.d.ts +56 -0
- package/esm/public/orm/models/{claimedInvite.js → appClaimedInvite.js} +24 -24
- package/esm/public/orm/models/appInvite.d.ts +56 -0
- package/esm/public/orm/models/{invite.js → appInvite.js} +24 -24
- package/esm/public/orm/models/index.d.ts +3 -2
- package/esm/public/orm/models/index.js +3 -2
- package/esm/public/orm/models/rateLimitsModule.d.ts +56 -0
- package/esm/public/orm/models/rateLimitsModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +22 -22
- package/esm/public/orm/mutation/index.js +30 -30
- package/esm/public/orm/query/index.d.ts +4 -4
- package/esm/public/orm/query/index.js +4 -4
- package/package.json +5 -5
- package/public/cli/commands/app-claimed-invite.d.ts +8 -0
- package/public/cli/commands/{claimed-invite.js → app-claimed-invite.js} +8 -8
- package/public/cli/commands/{invite.d.ts → app-invite.d.ts} +1 -1
- package/{admin/cli/commands/invite.js → public/cli/commands/app-invite.js} +8 -8
- package/public/cli/commands/rate-limits-module.d.ts +8 -0
- package/public/cli/commands/rate-limits-module.js +384 -0
- package/public/cli/commands/steps-achieved.js +4 -4
- package/public/cli/commands/steps-required.js +4 -4
- package/public/cli/commands/submit-app-invite-code.d.ts +8 -0
- package/public/cli/commands/{submit-invite-code.js → submit-app-invite-code.js} +3 -3
- package/public/cli/commands.js +13 -11
- package/public/cli/executor.d.ts +16 -15
- package/public/orm/index.d.ts +19 -17
- package/public/orm/index.js +6 -4
- package/public/orm/input-types.d.ts +402 -230
- package/public/orm/input-types.js +3 -3
- package/public/orm/models/appClaimedInvite.d.ts +56 -0
- package/{admin/orm/models/claimedInvite.js → public/orm/models/appClaimedInvite.js} +26 -26
- package/public/orm/models/appInvite.d.ts +56 -0
- package/{admin/orm/models/invite.js → public/orm/models/appInvite.js} +26 -26
- package/public/orm/models/index.d.ts +3 -2
- package/public/orm/models/index.js +8 -6
- package/public/orm/models/rateLimitsModule.d.ts +56 -0
- package/public/orm/models/rateLimitsModule.js +100 -0
- package/public/orm/mutation/index.d.ts +22 -22
- package/public/orm/mutation/index.js +30 -30
- package/public/orm/query/index.d.ts +4 -4
- package/public/orm/query/index.js +4 -4
- package/admin/orm/models/claimedInvite.d.ts +0 -56
- package/admin/orm/models/invite.d.ts +0 -56
- package/esm/admin/cli/commands/submit-invite-code.d.ts +0 -8
- package/esm/admin/orm/models/claimedInvite.d.ts +0 -56
- package/esm/admin/orm/models/invite.d.ts +0 -56
- package/esm/public/cli/commands/claimed-invite.d.ts +0 -8
- package/esm/public/cli/commands/submit-invite-code.d.ts +0 -8
- package/esm/public/orm/models/claimedInvite.d.ts +0 -56
- package/esm/public/orm/models/invite.d.ts +0 -56
- package/public/cli/commands/claimed-invite.d.ts +0 -8
- package/public/cli/commands/submit-invite-code.d.ts +0 -8
- package/public/orm/models/claimedInvite.d.ts +0 -56
- package/public/orm/models/invite.d.ts +0 -56
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AppInvite 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 { AppInviteWithRelations, AppInviteSelect, AppInviteFilter, AppInviteOrderBy, CreateAppInviteInput, AppInvitePatch } from '../input-types';
|
|
10
|
+
export declare class AppInviteModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends AppInviteSelect>(args: FindManyArgs<S, AppInviteFilter, AppInviteOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, AppInviteSelect>): QueryBuilder<{
|
|
16
|
+
appInvites: ConnectionResult<InferSelectResult<AppInviteWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends AppInviteSelect>(args: FindFirstArgs<S, AppInviteFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, AppInviteSelect>): QueryBuilder<{
|
|
21
|
+
appInvites: {
|
|
22
|
+
nodes: InferSelectResult<AppInviteWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends AppInviteSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, AppInviteSelect>): QueryBuilder<{
|
|
29
|
+
appInvite: InferSelectResult<AppInviteWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends AppInviteSelect>(args: CreateArgs<S, CreateAppInviteInput['appInvite']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, AppInviteSelect>): QueryBuilder<{
|
|
34
|
+
createAppInvite: {
|
|
35
|
+
appInvite: InferSelectResult<AppInviteWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends AppInviteSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, AppInvitePatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, AppInviteSelect>): QueryBuilder<{
|
|
43
|
+
updateAppInvite: {
|
|
44
|
+
appInvite: InferSelectResult<AppInviteWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends AppInviteSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, AppInviteSelect>): QueryBuilder<{
|
|
52
|
+
deleteAppInvite: {
|
|
53
|
+
appInvite: InferSelectResult<AppInviteWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AppInviteModel = void 0;
|
|
4
4
|
const query_builder_1 = require("../query-builder");
|
|
5
5
|
const input_types_1 = require("../input-types");
|
|
6
|
-
class
|
|
6
|
+
class AppInviteModel {
|
|
7
7
|
client;
|
|
8
8
|
constructor(client) {
|
|
9
9
|
this.client = client;
|
|
10
10
|
}
|
|
11
11
|
findMany(args) {
|
|
12
|
-
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('AppInvite', 'appInvites', args.select, {
|
|
13
13
|
where: args?.where,
|
|
14
14
|
orderBy: args?.orderBy,
|
|
15
15
|
first: args?.first,
|
|
@@ -17,84 +17,84 @@ class InviteModel {
|
|
|
17
17
|
after: args?.after,
|
|
18
18
|
before: args?.before,
|
|
19
19
|
offset: args?.offset,
|
|
20
|
-
}, '
|
|
20
|
+
}, 'AppInviteFilter', 'AppInviteOrderBy', input_types_1.connectionFieldsMap);
|
|
21
21
|
return new query_builder_1.QueryBuilder({
|
|
22
22
|
client: this.client,
|
|
23
23
|
operation: 'query',
|
|
24
|
-
operationName: '
|
|
25
|
-
fieldName: '
|
|
24
|
+
operationName: 'AppInvite',
|
|
25
|
+
fieldName: 'appInvites',
|
|
26
26
|
document,
|
|
27
27
|
variables,
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
findFirst(args) {
|
|
31
|
-
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('AppInvite', 'appInvites', args.select, {
|
|
32
32
|
where: args?.where,
|
|
33
|
-
}, '
|
|
33
|
+
}, 'AppInviteFilter', input_types_1.connectionFieldsMap);
|
|
34
34
|
return new query_builder_1.QueryBuilder({
|
|
35
35
|
client: this.client,
|
|
36
36
|
operation: 'query',
|
|
37
|
-
operationName: '
|
|
38
|
-
fieldName: '
|
|
37
|
+
operationName: 'AppInvite',
|
|
38
|
+
fieldName: 'appInvites',
|
|
39
39
|
document,
|
|
40
40
|
variables,
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
findOne(args) {
|
|
44
|
-
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('AppInvite', 'appInvites', args.select, {
|
|
45
45
|
where: {
|
|
46
46
|
id: {
|
|
47
47
|
equalTo: args.id,
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
50
|
first: 1,
|
|
51
|
-
}, '
|
|
51
|
+
}, 'AppInviteFilter', 'AppInviteOrderBy', input_types_1.connectionFieldsMap);
|
|
52
52
|
return new query_builder_1.QueryBuilder({
|
|
53
53
|
client: this.client,
|
|
54
54
|
operation: 'query',
|
|
55
|
-
operationName: '
|
|
56
|
-
fieldName: '
|
|
55
|
+
operationName: 'AppInvite',
|
|
56
|
+
fieldName: 'appInvite',
|
|
57
57
|
document,
|
|
58
58
|
variables,
|
|
59
59
|
transform: (data) => ({
|
|
60
|
-
|
|
60
|
+
appInvite: data.appInvites?.nodes?.[0] ?? null,
|
|
61
61
|
}),
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
create(args) {
|
|
65
|
-
const { document, variables } = (0, query_builder_1.buildCreateDocument)('
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('AppInvite', 'createAppInvite', 'appInvite', args.select, args.data, 'CreateAppInviteInput', input_types_1.connectionFieldsMap);
|
|
66
66
|
return new query_builder_1.QueryBuilder({
|
|
67
67
|
client: this.client,
|
|
68
68
|
operation: 'mutation',
|
|
69
|
-
operationName: '
|
|
70
|
-
fieldName: '
|
|
69
|
+
operationName: 'AppInvite',
|
|
70
|
+
fieldName: 'createAppInvite',
|
|
71
71
|
document,
|
|
72
72
|
variables,
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
update(args) {
|
|
76
|
-
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('AppInvite', 'updateAppInvite', 'appInvite', args.select, args.where.id, args.data, 'UpdateAppInviteInput', 'id', 'appInvitePatch', input_types_1.connectionFieldsMap);
|
|
77
77
|
return new query_builder_1.QueryBuilder({
|
|
78
78
|
client: this.client,
|
|
79
79
|
operation: 'mutation',
|
|
80
|
-
operationName: '
|
|
81
|
-
fieldName: '
|
|
80
|
+
operationName: 'AppInvite',
|
|
81
|
+
fieldName: 'updateAppInvite',
|
|
82
82
|
document,
|
|
83
83
|
variables,
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
delete(args) {
|
|
87
|
-
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('AppInvite', 'deleteAppInvite', 'appInvite', {
|
|
88
88
|
id: args.where.id,
|
|
89
|
-
}, '
|
|
89
|
+
}, 'DeleteAppInviteInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
90
|
return new query_builder_1.QueryBuilder({
|
|
91
91
|
client: this.client,
|
|
92
92
|
operation: 'mutation',
|
|
93
|
-
operationName: '
|
|
94
|
-
fieldName: '
|
|
93
|
+
operationName: 'AppInvite',
|
|
94
|
+
fieldName: 'deleteAppInvite',
|
|
95
95
|
document,
|
|
96
96
|
variables,
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
exports.
|
|
100
|
+
exports.AppInviteModel = AppInviteModel;
|
|
@@ -21,7 +21,7 @@ export { MembershipTypeModel } from './membershipType';
|
|
|
21
21
|
export { AppLimitModel } from './appLimit';
|
|
22
22
|
export { AppAchievementModel } from './appAchievement';
|
|
23
23
|
export { AppStepModel } from './appStep';
|
|
24
|
-
export {
|
|
24
|
+
export { AppClaimedInviteModel } from './appClaimedInvite';
|
|
25
25
|
export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
|
|
26
26
|
export { OrgLimitModel } from './orgLimit';
|
|
27
27
|
export { AppGrantModel } from './appGrant';
|
|
@@ -31,7 +31,7 @@ export { OrgGrantModel } from './orgGrant';
|
|
|
31
31
|
export { OrgChartEdgeModel } from './orgChartEdge';
|
|
32
32
|
export { OrgMembershipDefaultModel } from './orgMembershipDefault';
|
|
33
33
|
export { AppLevelModel } from './appLevel';
|
|
34
|
-
export {
|
|
34
|
+
export { AppInviteModel } from './appInvite';
|
|
35
35
|
export { AppMembershipModel } from './appMembership';
|
|
36
36
|
export { OrgMembershipModel } from './orgMembership';
|
|
37
37
|
export { OrgInviteModel } from './orgInvite';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrgInviteModel = exports.OrgMembershipModel = exports.AppMembershipModel = exports.
|
|
3
|
+
exports.OrgInviteModel = exports.OrgMembershipModel = exports.AppMembershipModel = exports.AppInviteModel = exports.AppLevelModel = exports.OrgMembershipDefaultModel = exports.OrgChartEdgeModel = exports.OrgGrantModel = exports.OrgClaimedInviteModel = exports.AppMembershipDefaultModel = exports.AppGrantModel = exports.OrgLimitModel = exports.OrgChartEdgeGrantModel = exports.AppClaimedInviteModel = exports.AppStepModel = exports.AppAchievementModel = exports.AppLimitModel = exports.MembershipTypeModel = exports.OrgOwnerGrantModel = exports.OrgAdminGrantModel = exports.OrgLimitDefaultModel = exports.AppLimitDefaultModel = exports.AppOwnerGrantModel = exports.AppAdminGrantModel = exports.OrgPermissionDefaultModel = exports.AppPermissionDefaultModel = exports.OrgMemberModel = exports.AppLevelRequirementModel = exports.OrgPermissionModel = exports.AppPermissionModel = exports.OrgGetSubordinatesRecordModel = exports.OrgGetManagersRecordModel = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Models barrel export
|
|
6
6
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -42,8 +42,8 @@ var appAchievement_1 = require("./appAchievement");
|
|
|
42
42
|
Object.defineProperty(exports, "AppAchievementModel", { enumerable: true, get: function () { return appAchievement_1.AppAchievementModel; } });
|
|
43
43
|
var appStep_1 = require("./appStep");
|
|
44
44
|
Object.defineProperty(exports, "AppStepModel", { enumerable: true, get: function () { return appStep_1.AppStepModel; } });
|
|
45
|
-
var
|
|
46
|
-
Object.defineProperty(exports, "
|
|
45
|
+
var appClaimedInvite_1 = require("./appClaimedInvite");
|
|
46
|
+
Object.defineProperty(exports, "AppClaimedInviteModel", { enumerable: true, get: function () { return appClaimedInvite_1.AppClaimedInviteModel; } });
|
|
47
47
|
var orgChartEdgeGrant_1 = require("./orgChartEdgeGrant");
|
|
48
48
|
Object.defineProperty(exports, "OrgChartEdgeGrantModel", { enumerable: true, get: function () { return orgChartEdgeGrant_1.OrgChartEdgeGrantModel; } });
|
|
49
49
|
var orgLimit_1 = require("./orgLimit");
|
|
@@ -62,8 +62,8 @@ var orgMembershipDefault_1 = require("./orgMembershipDefault");
|
|
|
62
62
|
Object.defineProperty(exports, "OrgMembershipDefaultModel", { enumerable: true, get: function () { return orgMembershipDefault_1.OrgMembershipDefaultModel; } });
|
|
63
63
|
var appLevel_1 = require("./appLevel");
|
|
64
64
|
Object.defineProperty(exports, "AppLevelModel", { enumerable: true, get: function () { return appLevel_1.AppLevelModel; } });
|
|
65
|
-
var
|
|
66
|
-
Object.defineProperty(exports, "
|
|
65
|
+
var appInvite_1 = require("./appInvite");
|
|
66
|
+
Object.defineProperty(exports, "AppInviteModel", { enumerable: true, get: function () { return appInvite_1.AppInviteModel; } });
|
|
67
67
|
var appMembership_1 = require("./appMembership");
|
|
68
68
|
Object.defineProperty(exports, "AppMembershipModel", { enumerable: true, get: function () { return appMembership_1.AppMembershipModel; } });
|
|
69
69
|
var orgMembership_1 = require("./orgMembership");
|
|
@@ -6,9 +6,9 @@
|
|
|
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 {
|
|
10
|
-
export interface
|
|
11
|
-
input:
|
|
9
|
+
import type { SubmitAppInviteCodeInput, SubmitOrgInviteCodeInput, RequestUploadUrlInput, ConfirmUploadInput, ProvisionBucketInput, SubmitAppInviteCodePayload, SubmitOrgInviteCodePayload, RequestUploadUrlPayload, ConfirmUploadPayload, ProvisionBucketPayload, SubmitAppInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, RequestUploadUrlPayloadSelect, ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
10
|
+
export interface SubmitAppInviteCodeVariables {
|
|
11
|
+
input: SubmitAppInviteCodeInput;
|
|
12
12
|
}
|
|
13
13
|
export interface SubmitOrgInviteCodeVariables {
|
|
14
14
|
input: SubmitOrgInviteCodeInput;
|
|
@@ -43,10 +43,10 @@ export interface ProvisionBucketVariables {
|
|
|
43
43
|
input: ProvisionBucketInput;
|
|
44
44
|
}
|
|
45
45
|
export declare function createMutationOperations(client: OrmClient): {
|
|
46
|
-
|
|
46
|
+
submitAppInviteCode: <S extends SubmitAppInviteCodePayloadSelect>(args: SubmitAppInviteCodeVariables, options: {
|
|
47
47
|
select: S;
|
|
48
|
-
} & StrictSelect<S,
|
|
49
|
-
|
|
48
|
+
} & StrictSelect<S, SubmitAppInviteCodePayloadSelect>) => QueryBuilder<{
|
|
49
|
+
submitAppInviteCode: InferSelectResult<SubmitAppInviteCodePayload, S> | null;
|
|
50
50
|
}>;
|
|
51
51
|
submitOrgInviteCode: <S extends SubmitOrgInviteCodePayloadSelect>(args: SubmitOrgInviteCodeVariables, options: {
|
|
52
52
|
select: S;
|
|
@@ -5,17 +5,17 @@ const query_builder_1 = require("../query-builder");
|
|
|
5
5
|
const input_types_1 = require("../input-types");
|
|
6
6
|
function createMutationOperations(client) {
|
|
7
7
|
return {
|
|
8
|
-
|
|
8
|
+
submitAppInviteCode: (args, options) => new query_builder_1.QueryBuilder({
|
|
9
9
|
client,
|
|
10
10
|
operation: 'mutation',
|
|
11
|
-
operationName: '
|
|
12
|
-
fieldName: '
|
|
13
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', '
|
|
11
|
+
operationName: 'SubmitAppInviteCode',
|
|
12
|
+
fieldName: 'submitAppInviteCode',
|
|
13
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'SubmitAppInviteCode', 'submitAppInviteCode', options.select, args, [
|
|
14
14
|
{
|
|
15
15
|
name: 'input',
|
|
16
|
-
type: '
|
|
16
|
+
type: 'SubmitAppInviteCodeInput!',
|
|
17
17
|
},
|
|
18
|
-
], input_types_1.connectionFieldsMap, '
|
|
18
|
+
], input_types_1.connectionFieldsMap, 'SubmitAppInviteCodePayload'),
|
|
19
19
|
}),
|
|
20
20
|
submitOrgInviteCode: (args, options) => new query_builder_1.QueryBuilder({
|
|
21
21
|
client,
|
|
@@ -25,8 +25,8 @@ export interface OrgPermissionsGetMaskVariables {
|
|
|
25
25
|
ids?: string[];
|
|
26
26
|
}
|
|
27
27
|
export interface StepsAchievedVariables {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
level?: string;
|
|
29
|
+
roleId?: string;
|
|
30
30
|
}
|
|
31
31
|
export interface AppPermissionsGetMaskByNamesVariables {
|
|
32
32
|
names?: string[];
|
|
@@ -59,8 +59,8 @@ export interface OrgPermissionsGetByMaskVariables {
|
|
|
59
59
|
after?: string;
|
|
60
60
|
}
|
|
61
61
|
export interface StepsRequiredVariables {
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
level?: string;
|
|
63
|
+
roleId?: string;
|
|
64
64
|
/** Only read the first `n` values of the set. */
|
|
65
65
|
first?: number;
|
|
66
66
|
/**
|
package/admin/orm/query/index.js
CHANGED
|
@@ -84,11 +84,11 @@ function createQueryOperations(client) {
|
|
|
84
84
|
fieldName: 'stepsAchieved',
|
|
85
85
|
...(0, query_builder_1.buildCustomDocument)('query', 'StepsAchieved', 'stepsAchieved', options?.select, args, [
|
|
86
86
|
{
|
|
87
|
-
name: '
|
|
87
|
+
name: 'level',
|
|
88
88
|
type: 'String',
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
name: '
|
|
91
|
+
name: 'roleId',
|
|
92
92
|
type: 'UUID',
|
|
93
93
|
},
|
|
94
94
|
], input_types_1.connectionFieldsMap, undefined),
|
|
@@ -172,11 +172,11 @@ function createQueryOperations(client) {
|
|
|
172
172
|
fieldName: 'stepsRequired',
|
|
173
173
|
...(0, query_builder_1.buildCustomDocument)('query', 'StepsRequired', 'stepsRequired', options?.select, args, [
|
|
174
174
|
{
|
|
175
|
-
name: '
|
|
175
|
+
name: 'level',
|
|
176
176
|
type: 'String',
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
|
-
name: '
|
|
179
|
+
name: 'roleId',
|
|
180
180
|
type: 'UUID',
|
|
181
181
|
},
|
|
182
182
|
{
|
package/auth/cli/commands.js
CHANGED
|
@@ -26,6 +26,8 @@ const current_user_1 = __importDefault(require("./commands/current-user"));
|
|
|
26
26
|
const sign_out_1 = __importDefault(require("./commands/sign-out"));
|
|
27
27
|
const send_account_deletion_email_1 = __importDefault(require("./commands/send-account-deletion-email"));
|
|
28
28
|
const check_password_1 = __importDefault(require("./commands/check-password"));
|
|
29
|
+
const verify_password_1 = __importDefault(require("./commands/verify-password"));
|
|
30
|
+
const verify_totp_1 = __importDefault(require("./commands/verify-totp"));
|
|
29
31
|
const confirm_delete_account_1 = __importDefault(require("./commands/confirm-delete-account"));
|
|
30
32
|
const set_password_1 = __importDefault(require("./commands/set-password"));
|
|
31
33
|
const verify_email_1 = __importDefault(require("./commands/verify-email"));
|
|
@@ -37,8 +39,6 @@ const one_time_token_1 = __importDefault(require("./commands/one-time-token"));
|
|
|
37
39
|
const extend_token_expires_1 = __importDefault(require("./commands/extend-token-expires"));
|
|
38
40
|
const forgot_password_1 = __importDefault(require("./commands/forgot-password"));
|
|
39
41
|
const send_verification_email_1 = __importDefault(require("./commands/send-verification-email"));
|
|
40
|
-
const verify_password_1 = __importDefault(require("./commands/verify-password"));
|
|
41
|
-
const verify_totp_1 = __importDefault(require("./commands/verify-totp"));
|
|
42
42
|
const request_upload_url_1 = __importDefault(require("./commands/request-upload-url"));
|
|
43
43
|
const confirm_upload_1 = __importDefault(require("./commands/confirm-upload"));
|
|
44
44
|
const provision_bucket_1 = __importDefault(require("./commands/provision-bucket"));
|
|
@@ -59,6 +59,8 @@ const createCommandMap = () => ({
|
|
|
59
59
|
'sign-out': sign_out_1.default,
|
|
60
60
|
'send-account-deletion-email': send_account_deletion_email_1.default,
|
|
61
61
|
'check-password': check_password_1.default,
|
|
62
|
+
'verify-password': verify_password_1.default,
|
|
63
|
+
'verify-totp': verify_totp_1.default,
|
|
62
64
|
'confirm-delete-account': confirm_delete_account_1.default,
|
|
63
65
|
'set-password': set_password_1.default,
|
|
64
66
|
'verify-email': verify_email_1.default,
|
|
@@ -70,13 +72,11 @@ const createCommandMap = () => ({
|
|
|
70
72
|
'extend-token-expires': extend_token_expires_1.default,
|
|
71
73
|
'forgot-password': forgot_password_1.default,
|
|
72
74
|
'send-verification-email': send_verification_email_1.default,
|
|
73
|
-
'verify-password': verify_password_1.default,
|
|
74
|
-
'verify-totp': verify_totp_1.default,
|
|
75
75
|
'request-upload-url': request_upload_url_1.default,
|
|
76
76
|
'confirm-upload': confirm_upload_1.default,
|
|
77
77
|
'provision-bucket': provision_bucket_1.default,
|
|
78
78
|
});
|
|
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 connected-account connectedAccount CRUD operations\n audit-log auditLog CRUD operations\n role-type roleType CRUD operations\n user user CRUD operations\n current-ip-address currentIpAddress\n current-user-agent currentUserAgent\n current-user-id currentUserId\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n reset-password resetPassword\n sign-in-one-time-token signInOneTimeToken\n sign-in signIn\n sign-up signUp\n one-time-token oneTimeToken\n extend-token-expires extendTokenExpires\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\n
|
|
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 connected-account connectedAccount CRUD operations\n audit-log auditLog CRUD operations\n role-type roleType CRUD operations\n user user CRUD operations\n current-ip-address currentIpAddress\n current-user-agent currentUserAgent\n current-user-id currentUserId\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n verify-password verifyPassword\n verify-totp verifyTotp\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n reset-password resetPassword\n sign-in-one-time-token signInOneTimeToken\n sign-in signIn\n sign-up signUp\n one-time-token oneTimeToken\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
80
|
const commands = async (argv, prompter, options) => {
|
|
81
81
|
if (argv.help || argv.h) {
|
|
82
82
|
console.log(usage);
|
package/auth/cli/executor.d.ts
CHANGED
|
@@ -45,6 +45,16 @@ export declare function getClient(contextName?: string): {
|
|
|
45
45
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").CheckPasswordPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
46
46
|
checkPassword: import("../orm").InferSelectResult<import("../orm/input-types").CheckPasswordPayload, S> | null;
|
|
47
47
|
}>;
|
|
48
|
+
verifyPassword: <S extends import("../orm/input-types").VerifyPasswordPayloadSelect>(args: import("../orm/mutation").VerifyPasswordVariables, options: {
|
|
49
|
+
select: S;
|
|
50
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").VerifyPasswordPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
51
|
+
verifyPassword: import("../orm").InferSelectResult<import("../orm/input-types").VerifyPasswordPayload, S> | null;
|
|
52
|
+
}>;
|
|
53
|
+
verifyTotp: <S extends import("../orm/input-types").VerifyTotpPayloadSelect>(args: import("../orm/mutation").VerifyTotpVariables, options: {
|
|
54
|
+
select: S;
|
|
55
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").VerifyTotpPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
56
|
+
verifyTotp: import("../orm").InferSelectResult<import("../orm/input-types").VerifyTotpPayload, S> | null;
|
|
57
|
+
}>;
|
|
48
58
|
confirmDeleteAccount: <S extends import("../orm/input-types").ConfirmDeleteAccountPayloadSelect>(args: import("../orm/mutation").ConfirmDeleteAccountVariables, options: {
|
|
49
59
|
select: S;
|
|
50
60
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").ConfirmDeleteAccountPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
@@ -100,16 +110,6 @@ export declare function getClient(contextName?: string): {
|
|
|
100
110
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").SendVerificationEmailPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
101
111
|
sendVerificationEmail: import("../orm").InferSelectResult<import("../orm/input-types").SendVerificationEmailPayload, S> | null;
|
|
102
112
|
}>;
|
|
103
|
-
verifyPassword: <S extends import("../orm/input-types").VerifyPasswordPayloadSelect>(args: import("../orm/mutation").VerifyPasswordVariables, options: {
|
|
104
|
-
select: S;
|
|
105
|
-
} & import("../orm").StrictSelect<S, import("../orm/input-types").VerifyPasswordPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
106
|
-
verifyPassword: import("../orm").InferSelectResult<import("../orm/input-types").VerifyPasswordPayload, S> | null;
|
|
107
|
-
}>;
|
|
108
|
-
verifyTotp: <S extends import("../orm/input-types").VerifyTotpPayloadSelect>(args: import("../orm/mutation").VerifyTotpVariables, options: {
|
|
109
|
-
select: S;
|
|
110
|
-
} & import("../orm").StrictSelect<S, import("../orm/input-types").VerifyTotpPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
111
|
-
verifyTotp: import("../orm").InferSelectResult<import("../orm/input-types").VerifyTotpPayload, S> | null;
|
|
112
|
-
}>;
|
|
113
113
|
requestUploadUrl: <S extends import("../orm/input-types").RequestUploadUrlPayloadSelect>(args: import("../orm/mutation").RequestUploadUrlVariables, options: {
|
|
114
114
|
select: S;
|
|
115
115
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").RequestUploadUrlPayloadSelect>) => import("../orm").QueryBuilder<{
|
package/auth/orm/index.d.ts
CHANGED
|
@@ -83,6 +83,16 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
83
83
|
} & import("./select-types").StrictSelect<S, import("./input-types").CheckPasswordPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
84
84
|
checkPassword: import("./select-types").InferSelectResult<import("./input-types").CheckPasswordPayload, S> | null;
|
|
85
85
|
}>;
|
|
86
|
+
verifyPassword: <S extends import("./input-types").VerifyPasswordPayloadSelect>(args: import("./mutation").VerifyPasswordVariables, options: {
|
|
87
|
+
select: S;
|
|
88
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").VerifyPasswordPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
89
|
+
verifyPassword: import("./select-types").InferSelectResult<import("./input-types").VerifyPasswordPayload, S> | null;
|
|
90
|
+
}>;
|
|
91
|
+
verifyTotp: <S extends import("./input-types").VerifyTotpPayloadSelect>(args: import("./mutation").VerifyTotpVariables, options: {
|
|
92
|
+
select: S;
|
|
93
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").VerifyTotpPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
94
|
+
verifyTotp: import("./select-types").InferSelectResult<import("./input-types").VerifyTotpPayload, S> | null;
|
|
95
|
+
}>;
|
|
86
96
|
confirmDeleteAccount: <S extends import("./input-types").ConfirmDeleteAccountPayloadSelect>(args: import("./mutation").ConfirmDeleteAccountVariables, options: {
|
|
87
97
|
select: S;
|
|
88
98
|
} & import("./select-types").StrictSelect<S, import("./input-types").ConfirmDeleteAccountPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -138,16 +148,6 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
138
148
|
} & import("./select-types").StrictSelect<S, import("./input-types").SendVerificationEmailPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
139
149
|
sendVerificationEmail: import("./select-types").InferSelectResult<import("./input-types").SendVerificationEmailPayload, S> | null;
|
|
140
150
|
}>;
|
|
141
|
-
verifyPassword: <S extends import("./input-types").VerifyPasswordPayloadSelect>(args: import("./mutation").VerifyPasswordVariables, options: {
|
|
142
|
-
select: S;
|
|
143
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").VerifyPasswordPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
144
|
-
verifyPassword: import("./select-types").InferSelectResult<import("./input-types").VerifyPasswordPayload, S> | null;
|
|
145
|
-
}>;
|
|
146
|
-
verifyTotp: <S extends import("./input-types").VerifyTotpPayloadSelect>(args: import("./mutation").VerifyTotpVariables, options: {
|
|
147
|
-
select: S;
|
|
148
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").VerifyTotpPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
149
|
-
verifyTotp: import("./select-types").InferSelectResult<import("./input-types").VerifyTotpPayload, S> | null;
|
|
150
|
-
}>;
|
|
151
151
|
requestUploadUrl: <S extends import("./input-types").RequestUploadUrlPayloadSelect>(args: import("./mutation").RequestUploadUrlVariables, options: {
|
|
152
152
|
select: S;
|
|
153
153
|
} & import("./select-types").StrictSelect<S, import("./input-types").RequestUploadUrlPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -868,6 +868,14 @@ export interface CheckPasswordInput {
|
|
|
868
868
|
clientMutationId?: string;
|
|
869
869
|
password?: string;
|
|
870
870
|
}
|
|
871
|
+
export interface VerifyPasswordInput {
|
|
872
|
+
clientMutationId?: string;
|
|
873
|
+
password: string;
|
|
874
|
+
}
|
|
875
|
+
export interface VerifyTotpInput {
|
|
876
|
+
clientMutationId?: string;
|
|
877
|
+
totpValue: string;
|
|
878
|
+
}
|
|
871
879
|
export interface ConfirmDeleteAccountInput {
|
|
872
880
|
clientMutationId?: string;
|
|
873
881
|
userId?: string;
|
|
@@ -929,14 +937,6 @@ export interface SendVerificationEmailInput {
|
|
|
929
937
|
clientMutationId?: string;
|
|
930
938
|
email?: ConstructiveInternalTypeEmail;
|
|
931
939
|
}
|
|
932
|
-
export interface VerifyPasswordInput {
|
|
933
|
-
clientMutationId?: string;
|
|
934
|
-
password: string;
|
|
935
|
-
}
|
|
936
|
-
export interface VerifyTotpInput {
|
|
937
|
-
clientMutationId?: string;
|
|
938
|
-
totpValue: string;
|
|
939
|
-
}
|
|
940
940
|
export interface RequestUploadUrlInput {
|
|
941
941
|
/** Bucket key (e.g., "public", "private") */
|
|
942
942
|
bucketKey: string;
|
|
@@ -1788,6 +1788,22 @@ export interface CheckPasswordPayload {
|
|
|
1788
1788
|
export type CheckPasswordPayloadSelect = {
|
|
1789
1789
|
clientMutationId?: boolean;
|
|
1790
1790
|
};
|
|
1791
|
+
export interface VerifyPasswordPayload {
|
|
1792
|
+
clientMutationId?: string | null;
|
|
1793
|
+
result?: boolean | null;
|
|
1794
|
+
}
|
|
1795
|
+
export type VerifyPasswordPayloadSelect = {
|
|
1796
|
+
clientMutationId?: boolean;
|
|
1797
|
+
result?: boolean;
|
|
1798
|
+
};
|
|
1799
|
+
export interface VerifyTotpPayload {
|
|
1800
|
+
clientMutationId?: string | null;
|
|
1801
|
+
result?: boolean | null;
|
|
1802
|
+
}
|
|
1803
|
+
export type VerifyTotpPayloadSelect = {
|
|
1804
|
+
clientMutationId?: boolean;
|
|
1805
|
+
result?: boolean;
|
|
1806
|
+
};
|
|
1791
1807
|
export interface ConfirmDeleteAccountPayload {
|
|
1792
1808
|
clientMutationId?: string | null;
|
|
1793
1809
|
result?: boolean | null;
|
|
@@ -1882,26 +1898,6 @@ export type SendVerificationEmailPayloadSelect = {
|
|
|
1882
1898
|
clientMutationId?: boolean;
|
|
1883
1899
|
result?: boolean;
|
|
1884
1900
|
};
|
|
1885
|
-
export interface VerifyPasswordPayload {
|
|
1886
|
-
clientMutationId?: string | null;
|
|
1887
|
-
result?: Session | null;
|
|
1888
|
-
}
|
|
1889
|
-
export type VerifyPasswordPayloadSelect = {
|
|
1890
|
-
clientMutationId?: boolean;
|
|
1891
|
-
result?: {
|
|
1892
|
-
select: SessionSelect;
|
|
1893
|
-
};
|
|
1894
|
-
};
|
|
1895
|
-
export interface VerifyTotpPayload {
|
|
1896
|
-
clientMutationId?: string | null;
|
|
1897
|
-
result?: Session | null;
|
|
1898
|
-
}
|
|
1899
|
-
export type VerifyTotpPayloadSelect = {
|
|
1900
|
-
clientMutationId?: boolean;
|
|
1901
|
-
result?: {
|
|
1902
|
-
select: SessionSelect;
|
|
1903
|
-
};
|
|
1904
|
-
};
|
|
1905
1901
|
export interface RequestUploadUrlPayload {
|
|
1906
1902
|
/** Presigned PUT URL (null if file was deduplicated) */
|
|
1907
1903
|
uploadUrl?: string | null;
|
|
@@ -2329,50 +2325,6 @@ export type ExtendTokenExpiresRecordSelect = {
|
|
|
2329
2325
|
sessionId?: boolean;
|
|
2330
2326
|
expiresAt?: boolean;
|
|
2331
2327
|
};
|
|
2332
|
-
/** Tracks user authentication sessions with expiration, fingerprinting, and step-up verification state */
|
|
2333
|
-
export interface Session {
|
|
2334
|
-
id: string;
|
|
2335
|
-
/** References the authenticated user; NULL for anonymous sessions */
|
|
2336
|
-
userId?: string | null;
|
|
2337
|
-
/** Whether this is an anonymous session (no authenticated user) */
|
|
2338
|
-
isAnonymous: boolean;
|
|
2339
|
-
/** When this session expires and can no longer be used for authentication */
|
|
2340
|
-
expiresAt: string;
|
|
2341
|
-
/** When this session was explicitly revoked (soft delete); NULL means active */
|
|
2342
|
-
revokedAt?: string | null;
|
|
2343
|
-
/** The origin (protocol + host) from which the session was created, used for fingerprint validation */
|
|
2344
|
-
origin?: ConstructiveInternalTypeOrigin | null;
|
|
2345
|
-
/** IP address from which the session was created, used for strict fingerprint validation */
|
|
2346
|
-
ip?: string | null;
|
|
2347
|
-
/** User-Agent string from the client, used for strict fingerprint validation */
|
|
2348
|
-
uagent?: string | null;
|
|
2349
|
-
/** Session validation mode: strict (origin+ip+uagent), lax (origin only), or none (no validation) */
|
|
2350
|
-
fingerprintMode: string;
|
|
2351
|
-
/** Timestamp of last password re-verification for step-up authentication */
|
|
2352
|
-
lastPasswordVerified?: string | null;
|
|
2353
|
-
/** Timestamp of last MFA verification for step-up authentication */
|
|
2354
|
-
lastMfaVerified?: string | null;
|
|
2355
|
-
/** Secret used to generate and validate CSRF tokens for cookie-based sessions */
|
|
2356
|
-
csrfSecret?: string | null;
|
|
2357
|
-
createdAt?: string | null;
|
|
2358
|
-
updatedAt?: string | null;
|
|
2359
|
-
}
|
|
2360
|
-
export type SessionSelect = {
|
|
2361
|
-
id?: boolean;
|
|
2362
|
-
userId?: boolean;
|
|
2363
|
-
isAnonymous?: boolean;
|
|
2364
|
-
expiresAt?: boolean;
|
|
2365
|
-
revokedAt?: boolean;
|
|
2366
|
-
origin?: boolean;
|
|
2367
|
-
ip?: boolean;
|
|
2368
|
-
uagent?: boolean;
|
|
2369
|
-
fingerprintMode?: boolean;
|
|
2370
|
-
lastPasswordVerified?: boolean;
|
|
2371
|
-
lastMfaVerified?: boolean;
|
|
2372
|
-
csrfSecret?: boolean;
|
|
2373
|
-
createdAt?: boolean;
|
|
2374
|
-
updatedAt?: boolean;
|
|
2375
|
-
};
|
|
2376
2328
|
/** A `Email` edge in the connection. */
|
|
2377
2329
|
export interface EmailEdge {
|
|
2378
2330
|
cursor?: string | null;
|