@constructive-io/sdk 0.14.7 → 0.14.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/admin/orm/index.d.ts +4 -2
  2. package/admin/orm/index.js +4 -2
  3. package/admin/orm/input-types.d.ts +303 -142
  4. package/admin/orm/models/index.d.ts +2 -1
  5. package/admin/orm/models/index.js +5 -3
  6. package/admin/orm/models/orgMembershipSetting.d.ts +56 -0
  7. package/admin/orm/models/orgMembershipSetting.js +100 -0
  8. package/auth/orm/index.d.ts +9 -5
  9. package/auth/orm/index.js +4 -0
  10. package/auth/orm/input-types.d.ts +525 -81
  11. package/auth/orm/input-types.js +1 -0
  12. package/auth/orm/models/identityProvider.d.ts +32 -0
  13. package/auth/orm/models/identityProvider.js +55 -0
  14. package/auth/orm/models/index.d.ts +2 -0
  15. package/auth/orm/models/index.js +5 -1
  16. package/auth/orm/models/webauthnCredential.d.ts +56 -0
  17. package/auth/orm/models/webauthnCredential.js +100 -0
  18. package/auth/orm/mutation/index.d.ts +9 -9
  19. package/auth/orm/mutation/index.js +12 -12
  20. package/esm/admin/orm/index.d.ts +4 -2
  21. package/esm/admin/orm/index.js +4 -2
  22. package/esm/admin/orm/input-types.d.ts +303 -142
  23. package/esm/admin/orm/models/index.d.ts +2 -1
  24. package/esm/admin/orm/models/index.js +2 -1
  25. package/esm/admin/orm/models/orgMembershipSetting.d.ts +56 -0
  26. package/esm/admin/orm/models/orgMembershipSetting.js +96 -0
  27. package/esm/auth/orm/index.d.ts +9 -5
  28. package/esm/auth/orm/index.js +4 -0
  29. package/esm/auth/orm/input-types.d.ts +525 -81
  30. package/esm/auth/orm/input-types.js +1 -0
  31. package/esm/auth/orm/models/identityProvider.d.ts +32 -0
  32. package/esm/auth/orm/models/identityProvider.js +51 -0
  33. package/esm/auth/orm/models/index.d.ts +2 -0
  34. package/esm/auth/orm/models/index.js +2 -0
  35. package/esm/auth/orm/models/webauthnCredential.d.ts +56 -0
  36. package/esm/auth/orm/models/webauthnCredential.js +96 -0
  37. package/esm/auth/orm/mutation/index.d.ts +9 -9
  38. package/esm/auth/orm/mutation/index.js +12 -12
  39. package/esm/objects/orm/input-types.d.ts +12 -0
  40. package/esm/public/orm/index.d.ts +19 -7
  41. package/esm/public/orm/index.js +14 -2
  42. package/esm/public/orm/input-types.d.ts +1827 -366
  43. package/esm/public/orm/input-types.js +7 -0
  44. package/esm/public/orm/models/identityProvider.d.ts +32 -0
  45. package/esm/public/orm/models/identityProvider.js +51 -0
  46. package/esm/public/orm/models/identityProvidersModule.d.ts +56 -0
  47. package/esm/public/orm/models/identityProvidersModule.js +96 -0
  48. package/esm/public/orm/models/index.d.ts +7 -1
  49. package/esm/public/orm/models/index.js +7 -1
  50. package/esm/public/orm/models/notificationsModule.d.ts +56 -0
  51. package/esm/public/orm/models/notificationsModule.js +96 -0
  52. package/esm/public/orm/models/orgMembershipSetting.d.ts +56 -0
  53. package/esm/public/orm/models/orgMembershipSetting.js +96 -0
  54. package/esm/public/orm/models/webauthnAuthModule.d.ts +56 -0
  55. package/esm/public/orm/models/webauthnAuthModule.js +96 -0
  56. package/esm/public/orm/models/webauthnCredential.d.ts +56 -0
  57. package/esm/public/orm/models/webauthnCredential.js +96 -0
  58. package/esm/public/orm/mutation/index.d.ts +9 -9
  59. package/esm/public/orm/mutation/index.js +12 -12
  60. package/objects/orm/input-types.d.ts +12 -0
  61. package/package.json +3 -3
  62. package/public/orm/index.d.ts +19 -7
  63. package/public/orm/index.js +14 -2
  64. package/public/orm/input-types.d.ts +1827 -366
  65. package/public/orm/input-types.js +7 -0
  66. package/public/orm/models/identityProvider.d.ts +32 -0
  67. package/public/orm/models/identityProvider.js +55 -0
  68. package/public/orm/models/identityProvidersModule.d.ts +56 -0
  69. package/public/orm/models/identityProvidersModule.js +100 -0
  70. package/public/orm/models/index.d.ts +7 -1
  71. package/public/orm/models/index.js +17 -5
  72. package/public/orm/models/notificationsModule.d.ts +56 -0
  73. package/public/orm/models/notificationsModule.js +100 -0
  74. package/public/orm/models/orgMembershipSetting.d.ts +56 -0
  75. package/public/orm/models/orgMembershipSetting.js +100 -0
  76. package/public/orm/models/webauthnAuthModule.d.ts +56 -0
  77. package/public/orm/models/webauthnAuthModule.js +100 -0
  78. package/public/orm/models/webauthnCredential.d.ts +56 -0
  79. package/public/orm/models/webauthnCredential.js +100 -0
  80. package/public/orm/mutation/index.d.ts +9 -9
  81. package/public/orm/mutation/index.js +12 -12
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrgMembershipSettingModel = void 0;
4
+ const query_builder_1 = require("../query-builder");
5
+ const input_types_1 = require("../input-types");
6
+ class OrgMembershipSettingModel {
7
+ client;
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ findMany(args) {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgMembershipSetting', 'orgMembershipSettings', args.select, {
13
+ where: args?.where,
14
+ orderBy: args?.orderBy,
15
+ first: args?.first,
16
+ last: args?.last,
17
+ after: args?.after,
18
+ before: args?.before,
19
+ offset: args?.offset,
20
+ }, 'OrgMembershipSettingFilter', 'OrgMembershipSettingOrderBy', input_types_1.connectionFieldsMap);
21
+ return new query_builder_1.QueryBuilder({
22
+ client: this.client,
23
+ operation: 'query',
24
+ operationName: 'OrgMembershipSetting',
25
+ fieldName: 'orgMembershipSettings',
26
+ document,
27
+ variables,
28
+ });
29
+ }
30
+ findFirst(args) {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('OrgMembershipSetting', 'orgMembershipSettings', args.select, {
32
+ where: args?.where,
33
+ }, 'OrgMembershipSettingFilter', input_types_1.connectionFieldsMap);
34
+ return new query_builder_1.QueryBuilder({
35
+ client: this.client,
36
+ operation: 'query',
37
+ operationName: 'OrgMembershipSetting',
38
+ fieldName: 'orgMembershipSettings',
39
+ document,
40
+ variables,
41
+ });
42
+ }
43
+ findOne(args) {
44
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgMembershipSetting', 'orgMembershipSettings', args.select, {
45
+ where: {
46
+ id: {
47
+ equalTo: args.id,
48
+ },
49
+ },
50
+ first: 1,
51
+ }, 'OrgMembershipSettingFilter', 'OrgMembershipSettingOrderBy', input_types_1.connectionFieldsMap);
52
+ return new query_builder_1.QueryBuilder({
53
+ client: this.client,
54
+ operation: 'query',
55
+ operationName: 'OrgMembershipSetting',
56
+ fieldName: 'orgMembershipSetting',
57
+ document,
58
+ variables,
59
+ transform: (data) => ({
60
+ orgMembershipSetting: data.orgMembershipSettings?.nodes?.[0] ?? null,
61
+ }),
62
+ });
63
+ }
64
+ create(args) {
65
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('OrgMembershipSetting', 'createOrgMembershipSetting', 'orgMembershipSetting', args.select, args.data, 'CreateOrgMembershipSettingInput', input_types_1.connectionFieldsMap);
66
+ return new query_builder_1.QueryBuilder({
67
+ client: this.client,
68
+ operation: 'mutation',
69
+ operationName: 'OrgMembershipSetting',
70
+ fieldName: 'createOrgMembershipSetting',
71
+ document,
72
+ variables,
73
+ });
74
+ }
75
+ update(args) {
76
+ const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('OrgMembershipSetting', 'updateOrgMembershipSetting', 'orgMembershipSetting', args.select, args.where.id, args.data, 'UpdateOrgMembershipSettingInput', 'id', 'orgMembershipSettingPatch', input_types_1.connectionFieldsMap);
77
+ return new query_builder_1.QueryBuilder({
78
+ client: this.client,
79
+ operation: 'mutation',
80
+ operationName: 'OrgMembershipSetting',
81
+ fieldName: 'updateOrgMembershipSetting',
82
+ document,
83
+ variables,
84
+ });
85
+ }
86
+ delete(args) {
87
+ const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('OrgMembershipSetting', 'deleteOrgMembershipSetting', 'orgMembershipSetting', {
88
+ id: args.where.id,
89
+ }, 'DeleteOrgMembershipSettingInput', args.select, input_types_1.connectionFieldsMap);
90
+ return new query_builder_1.QueryBuilder({
91
+ client: this.client,
92
+ operation: 'mutation',
93
+ operationName: 'OrgMembershipSetting',
94
+ fieldName: 'deleteOrgMembershipSetting',
95
+ document,
96
+ variables,
97
+ });
98
+ }
99
+ }
100
+ exports.OrgMembershipSettingModel = OrgMembershipSettingModel;
@@ -0,0 +1,56 @@
1
+ /**
2
+ * WebauthnAuthModule model for ORM client
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { OrmClient } from '../client';
7
+ import { QueryBuilder } from '../query-builder';
8
+ import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { WebauthnAuthModuleWithRelations, WebauthnAuthModuleSelect, WebauthnAuthModuleFilter, WebauthnAuthModuleOrderBy, CreateWebauthnAuthModuleInput, WebauthnAuthModulePatch } from '../input-types';
10
+ export declare class WebauthnAuthModuleModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends WebauthnAuthModuleSelect>(args: FindManyArgs<S, WebauthnAuthModuleFilter, WebauthnAuthModuleOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, WebauthnAuthModuleSelect>): QueryBuilder<{
16
+ webauthnAuthModules: ConnectionResult<InferSelectResult<WebauthnAuthModuleWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends WebauthnAuthModuleSelect>(args: FindFirstArgs<S, WebauthnAuthModuleFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, WebauthnAuthModuleSelect>): QueryBuilder<{
21
+ webauthnAuthModules: {
22
+ nodes: InferSelectResult<WebauthnAuthModuleWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends WebauthnAuthModuleSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, WebauthnAuthModuleSelect>): QueryBuilder<{
29
+ webauthnAuthModule: InferSelectResult<WebauthnAuthModuleWithRelations, S> | null;
30
+ }>;
31
+ create<S extends WebauthnAuthModuleSelect>(args: CreateArgs<S, CreateWebauthnAuthModuleInput['webauthnAuthModule']> & {
32
+ select: S;
33
+ } & StrictSelect<S, WebauthnAuthModuleSelect>): QueryBuilder<{
34
+ createWebauthnAuthModule: {
35
+ webauthnAuthModule: InferSelectResult<WebauthnAuthModuleWithRelations, S>;
36
+ };
37
+ }>;
38
+ update<S extends WebauthnAuthModuleSelect>(args: UpdateArgs<S, {
39
+ id: string;
40
+ }, WebauthnAuthModulePatch> & {
41
+ select: S;
42
+ } & StrictSelect<S, WebauthnAuthModuleSelect>): QueryBuilder<{
43
+ updateWebauthnAuthModule: {
44
+ webauthnAuthModule: InferSelectResult<WebauthnAuthModuleWithRelations, S>;
45
+ };
46
+ }>;
47
+ delete<S extends WebauthnAuthModuleSelect>(args: DeleteArgs<{
48
+ id: string;
49
+ }, S> & {
50
+ select: S;
51
+ } & StrictSelect<S, WebauthnAuthModuleSelect>): QueryBuilder<{
52
+ deleteWebauthnAuthModule: {
53
+ webauthnAuthModule: InferSelectResult<WebauthnAuthModuleWithRelations, S>;
54
+ };
55
+ }>;
56
+ }
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebauthnAuthModuleModel = void 0;
4
+ const query_builder_1 = require("../query-builder");
5
+ const input_types_1 = require("../input-types");
6
+ class WebauthnAuthModuleModel {
7
+ client;
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ findMany(args) {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('WebauthnAuthModule', 'webauthnAuthModules', args.select, {
13
+ where: args?.where,
14
+ orderBy: args?.orderBy,
15
+ first: args?.first,
16
+ last: args?.last,
17
+ after: args?.after,
18
+ before: args?.before,
19
+ offset: args?.offset,
20
+ }, 'WebauthnAuthModuleFilter', 'WebauthnAuthModuleOrderBy', input_types_1.connectionFieldsMap);
21
+ return new query_builder_1.QueryBuilder({
22
+ client: this.client,
23
+ operation: 'query',
24
+ operationName: 'WebauthnAuthModule',
25
+ fieldName: 'webauthnAuthModules',
26
+ document,
27
+ variables,
28
+ });
29
+ }
30
+ findFirst(args) {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('WebauthnAuthModule', 'webauthnAuthModules', args.select, {
32
+ where: args?.where,
33
+ }, 'WebauthnAuthModuleFilter', input_types_1.connectionFieldsMap);
34
+ return new query_builder_1.QueryBuilder({
35
+ client: this.client,
36
+ operation: 'query',
37
+ operationName: 'WebauthnAuthModule',
38
+ fieldName: 'webauthnAuthModules',
39
+ document,
40
+ variables,
41
+ });
42
+ }
43
+ findOne(args) {
44
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('WebauthnAuthModule', 'webauthnAuthModules', args.select, {
45
+ where: {
46
+ id: {
47
+ equalTo: args.id,
48
+ },
49
+ },
50
+ first: 1,
51
+ }, 'WebauthnAuthModuleFilter', 'WebauthnAuthModuleOrderBy', input_types_1.connectionFieldsMap);
52
+ return new query_builder_1.QueryBuilder({
53
+ client: this.client,
54
+ operation: 'query',
55
+ operationName: 'WebauthnAuthModule',
56
+ fieldName: 'webauthnAuthModule',
57
+ document,
58
+ variables,
59
+ transform: (data) => ({
60
+ webauthnAuthModule: data.webauthnAuthModules?.nodes?.[0] ?? null,
61
+ }),
62
+ });
63
+ }
64
+ create(args) {
65
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('WebauthnAuthModule', 'createWebauthnAuthModule', 'webauthnAuthModule', args.select, args.data, 'CreateWebauthnAuthModuleInput', input_types_1.connectionFieldsMap);
66
+ return new query_builder_1.QueryBuilder({
67
+ client: this.client,
68
+ operation: 'mutation',
69
+ operationName: 'WebauthnAuthModule',
70
+ fieldName: 'createWebauthnAuthModule',
71
+ document,
72
+ variables,
73
+ });
74
+ }
75
+ update(args) {
76
+ const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('WebauthnAuthModule', 'updateWebauthnAuthModule', 'webauthnAuthModule', args.select, args.where.id, args.data, 'UpdateWebauthnAuthModuleInput', 'id', 'webauthnAuthModulePatch', input_types_1.connectionFieldsMap);
77
+ return new query_builder_1.QueryBuilder({
78
+ client: this.client,
79
+ operation: 'mutation',
80
+ operationName: 'WebauthnAuthModule',
81
+ fieldName: 'updateWebauthnAuthModule',
82
+ document,
83
+ variables,
84
+ });
85
+ }
86
+ delete(args) {
87
+ const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('WebauthnAuthModule', 'deleteWebauthnAuthModule', 'webauthnAuthModule', {
88
+ id: args.where.id,
89
+ }, 'DeleteWebauthnAuthModuleInput', args.select, input_types_1.connectionFieldsMap);
90
+ return new query_builder_1.QueryBuilder({
91
+ client: this.client,
92
+ operation: 'mutation',
93
+ operationName: 'WebauthnAuthModule',
94
+ fieldName: 'deleteWebauthnAuthModule',
95
+ document,
96
+ variables,
97
+ });
98
+ }
99
+ }
100
+ exports.WebauthnAuthModuleModel = WebauthnAuthModuleModel;
@@ -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,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebauthnCredentialModel = void 0;
4
+ const query_builder_1 = require("../query-builder");
5
+ const input_types_1 = require("../input-types");
6
+ class WebauthnCredentialModel {
7
+ client;
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ findMany(args) {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('WebauthnCredential', 'webauthnCredentials', args.select, {
13
+ where: args?.where,
14
+ orderBy: args?.orderBy,
15
+ first: args?.first,
16
+ last: args?.last,
17
+ after: args?.after,
18
+ before: args?.before,
19
+ offset: args?.offset,
20
+ }, 'WebauthnCredentialFilter', 'WebauthnCredentialOrderBy', input_types_1.connectionFieldsMap);
21
+ return new query_builder_1.QueryBuilder({
22
+ client: this.client,
23
+ operation: 'query',
24
+ operationName: 'WebauthnCredential',
25
+ fieldName: 'webauthnCredentials',
26
+ document,
27
+ variables,
28
+ });
29
+ }
30
+ findFirst(args) {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('WebauthnCredential', 'webauthnCredentials', args.select, {
32
+ where: args?.where,
33
+ }, 'WebauthnCredentialFilter', input_types_1.connectionFieldsMap);
34
+ return new query_builder_1.QueryBuilder({
35
+ client: this.client,
36
+ operation: 'query',
37
+ operationName: 'WebauthnCredential',
38
+ fieldName: 'webauthnCredentials',
39
+ document,
40
+ variables,
41
+ });
42
+ }
43
+ findOne(args) {
44
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('WebauthnCredential', 'webauthnCredentials', args.select, {
45
+ where: {
46
+ id: {
47
+ equalTo: args.id,
48
+ },
49
+ },
50
+ first: 1,
51
+ }, 'WebauthnCredentialFilter', 'WebauthnCredentialOrderBy', input_types_1.connectionFieldsMap);
52
+ return new query_builder_1.QueryBuilder({
53
+ client: this.client,
54
+ operation: 'query',
55
+ operationName: 'WebauthnCredential',
56
+ fieldName: 'webauthnCredential',
57
+ document,
58
+ variables,
59
+ transform: (data) => ({
60
+ webauthnCredential: data.webauthnCredentials?.nodes?.[0] ?? null,
61
+ }),
62
+ });
63
+ }
64
+ create(args) {
65
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('WebauthnCredential', 'createWebauthnCredential', 'webauthnCredential', args.select, args.data, 'CreateWebauthnCredentialInput', input_types_1.connectionFieldsMap);
66
+ return new query_builder_1.QueryBuilder({
67
+ client: this.client,
68
+ operation: 'mutation',
69
+ operationName: 'WebauthnCredential',
70
+ fieldName: 'createWebauthnCredential',
71
+ document,
72
+ variables,
73
+ });
74
+ }
75
+ update(args) {
76
+ const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('WebauthnCredential', 'updateWebauthnCredential', 'webauthnCredential', args.select, args.where.id, args.data, 'UpdateWebauthnCredentialInput', 'id', 'webauthnCredentialPatch', input_types_1.connectionFieldsMap);
77
+ return new query_builder_1.QueryBuilder({
78
+ client: this.client,
79
+ operation: 'mutation',
80
+ operationName: 'WebauthnCredential',
81
+ fieldName: 'updateWebauthnCredential',
82
+ document,
83
+ variables,
84
+ });
85
+ }
86
+ delete(args) {
87
+ const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('WebauthnCredential', 'deleteWebauthnCredential', 'webauthnCredential', {
88
+ id: args.where.id,
89
+ }, 'DeleteWebauthnCredentialInput', args.select, input_types_1.connectionFieldsMap);
90
+ return new query_builder_1.QueryBuilder({
91
+ client: this.client,
92
+ operation: 'mutation',
93
+ operationName: 'WebauthnCredential',
94
+ fieldName: 'deleteWebauthnCredential',
95
+ document,
96
+ variables,
97
+ });
98
+ }
99
+ }
100
+ exports.WebauthnCredentialModel = WebauthnCredentialModel;
@@ -6,7 +6,7 @@
6
6
  import { OrmClient } from '../client';
7
7
  import { QueryBuilder } from '../query-builder';
8
8
  import type { InferSelectResult, StrictSelect } from '../select-types';
9
- import type { SendAccountDeletionEmailInput, SignOutInput, AcceptDatabaseTransferInput, CancelDatabaseTransferInput, RejectDatabaseTransferInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, SubmitAppInviteCodeInput, SubmitOrgInviteCodeInput, CheckPasswordInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, FreezeObjectsInput, InitEmptyRepoInput, ConstructBlueprintInput, ProvisionNewUserInput, ResetPasswordInput, RemoveNodeAtPathInput, CopyTemplateToBlueprintInput, CreateApiKeyInput, ProvisionSpatialRelationInput, BootstrapUserInput, SetFieldOrderInput, ProvisionUniqueConstraintInput, ProvisionFullTextSearchInput, ProvisionIndexInput, SetDataAtPathInput, SetPropsAndCommitInput, ProvisionDatabaseWithUserInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput, SignInCrossOriginInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ProvisionTableInput, SendVerificationEmailInput, ForgotPasswordInput, RequestUploadUrlInput, ConfirmUploadInput, ProvisionBucketInput, SendAccountDeletionEmailPayload, SignOutPayload, AcceptDatabaseTransferPayload, CancelDatabaseTransferPayload, RejectDatabaseTransferPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, SubmitAppInviteCodePayload, SubmitOrgInviteCodePayload, CheckPasswordPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, FreezeObjectsPayload, InitEmptyRepoPayload, ConstructBlueprintPayload, ProvisionNewUserPayload, ResetPasswordPayload, RemoveNodeAtPathPayload, CopyTemplateToBlueprintPayload, CreateApiKeyPayload, ProvisionSpatialRelationPayload, BootstrapUserPayload, SetFieldOrderPayload, ProvisionUniqueConstraintPayload, ProvisionFullTextSearchPayload, ProvisionIndexPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, ProvisionDatabaseWithUserPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, ProvisionRelationPayload, ApplyRlsPayload, SignInCrossOriginPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ProvisionTablePayload, SendVerificationEmailPayload, ForgotPasswordPayload, RequestUploadUrlPayload, ConfirmUploadPayload, ProvisionBucketPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, AcceptDatabaseTransferPayloadSelect, CancelDatabaseTransferPayloadSelect, RejectDatabaseTransferPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, SubmitAppInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, CheckPasswordPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, ConstructBlueprintPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, RemoveNodeAtPathPayloadSelect, CopyTemplateToBlueprintPayloadSelect, CreateApiKeyPayloadSelect, ProvisionSpatialRelationPayloadSelect, BootstrapUserPayloadSelect, SetFieldOrderPayloadSelect, ProvisionUniqueConstraintPayloadSelect, ProvisionFullTextSearchPayloadSelect, ProvisionIndexPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, ProvisionDatabaseWithUserPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, ProvisionRelationPayloadSelect, ApplyRlsPayloadSelect, SignInCrossOriginPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ProvisionTablePayloadSelect, SendVerificationEmailPayloadSelect, ForgotPasswordPayloadSelect, RequestUploadUrlPayloadSelect, ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
9
+ import type { SendAccountDeletionEmailInput, SignOutInput, AcceptDatabaseTransferInput, CancelDatabaseTransferInput, RejectDatabaseTransferInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, SubmitAppInviteCodeInput, SubmitOrgInviteCodeInput, CheckPasswordInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, FreezeObjectsInput, InitEmptyRepoInput, ConstructBlueprintInput, ProvisionNewUserInput, ResetPasswordInput, RemoveNodeAtPathInput, CopyTemplateToBlueprintInput, ProvisionSpatialRelationInput, BootstrapUserInput, SetFieldOrderInput, ProvisionUniqueConstraintInput, ProvisionFullTextSearchInput, ProvisionIndexInput, SetDataAtPathInput, SetPropsAndCommitInput, ProvisionDatabaseWithUserInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput, SignInCrossOriginInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, CreateApiKeyInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ProvisionTableInput, SendVerificationEmailInput, ForgotPasswordInput, RequestUploadUrlInput, ConfirmUploadInput, ProvisionBucketInput, SendAccountDeletionEmailPayload, SignOutPayload, AcceptDatabaseTransferPayload, CancelDatabaseTransferPayload, RejectDatabaseTransferPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, SubmitAppInviteCodePayload, SubmitOrgInviteCodePayload, CheckPasswordPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, FreezeObjectsPayload, InitEmptyRepoPayload, ConstructBlueprintPayload, ProvisionNewUserPayload, ResetPasswordPayload, RemoveNodeAtPathPayload, CopyTemplateToBlueprintPayload, ProvisionSpatialRelationPayload, BootstrapUserPayload, SetFieldOrderPayload, ProvisionUniqueConstraintPayload, ProvisionFullTextSearchPayload, ProvisionIndexPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, ProvisionDatabaseWithUserPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, ProvisionRelationPayload, ApplyRlsPayload, SignInCrossOriginPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ProvisionTablePayload, SendVerificationEmailPayload, ForgotPasswordPayload, RequestUploadUrlPayload, ConfirmUploadPayload, ProvisionBucketPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, AcceptDatabaseTransferPayloadSelect, CancelDatabaseTransferPayloadSelect, RejectDatabaseTransferPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, SubmitAppInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, CheckPasswordPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, ConstructBlueprintPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, RemoveNodeAtPathPayloadSelect, CopyTemplateToBlueprintPayloadSelect, ProvisionSpatialRelationPayloadSelect, BootstrapUserPayloadSelect, SetFieldOrderPayloadSelect, ProvisionUniqueConstraintPayloadSelect, ProvisionFullTextSearchPayloadSelect, ProvisionIndexPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, ProvisionDatabaseWithUserPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, ProvisionRelationPayloadSelect, ApplyRlsPayloadSelect, SignInCrossOriginPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ProvisionTablePayloadSelect, SendVerificationEmailPayloadSelect, ForgotPasswordPayloadSelect, RequestUploadUrlPayloadSelect, ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
10
10
  export interface SendAccountDeletionEmailVariables {
11
11
  input: SendAccountDeletionEmailInput;
12
12
  }
@@ -84,9 +84,6 @@ export interface RemoveNodeAtPathVariables {
84
84
  export interface CopyTemplateToBlueprintVariables {
85
85
  input: CopyTemplateToBlueprintInput;
86
86
  }
87
- export interface CreateApiKeyVariables {
88
- input: CreateApiKeyInput;
89
- }
90
87
  /**
91
88
  * Variables for provisionSpatialRelation
92
89
  * Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert.
@@ -177,6 +174,9 @@ export interface CreateUserDatabaseVariables {
177
174
  export interface ExtendTokenExpiresVariables {
178
175
  input: ExtendTokenExpiresInput;
179
176
  }
177
+ export interface CreateApiKeyVariables {
178
+ input: CreateApiKeyInput;
179
+ }
180
180
  export interface SignUpVariables {
181
181
  input: SignUpInput;
182
182
  }
@@ -344,11 +344,6 @@ export declare function createMutationOperations(client: OrmClient): {
344
344
  } & StrictSelect<S, CopyTemplateToBlueprintPayloadSelect>) => QueryBuilder<{
345
345
  copyTemplateToBlueprint: InferSelectResult<CopyTemplateToBlueprintPayload, S> | null;
346
346
  }>;
347
- createApiKey: <S extends CreateApiKeyPayloadSelect>(args: CreateApiKeyVariables, options: {
348
- select: S;
349
- } & StrictSelect<S, CreateApiKeyPayloadSelect>) => QueryBuilder<{
350
- createApiKey: InferSelectResult<CreateApiKeyPayload, S> | null;
351
- }>;
352
347
  provisionSpatialRelation: <S extends ProvisionSpatialRelationPayloadSelect>(args: ProvisionSpatialRelationVariables, options: {
353
348
  select: S;
354
349
  } & StrictSelect<S, ProvisionSpatialRelationPayloadSelect>) => QueryBuilder<{
@@ -434,6 +429,11 @@ export declare function createMutationOperations(client: OrmClient): {
434
429
  } & StrictSelect<S, ExtendTokenExpiresPayloadSelect>) => QueryBuilder<{
435
430
  extendTokenExpires: InferSelectResult<ExtendTokenExpiresPayload, S> | null;
436
431
  }>;
432
+ createApiKey: <S extends CreateApiKeyPayloadSelect>(args: CreateApiKeyVariables, options: {
433
+ select: S;
434
+ } & StrictSelect<S, CreateApiKeyPayloadSelect>) => QueryBuilder<{
435
+ createApiKey: InferSelectResult<CreateApiKeyPayload, S> | null;
436
+ }>;
437
437
  signUp: <S extends SignUpPayloadSelect>(args: SignUpVariables, options: {
438
438
  select: S;
439
439
  } & StrictSelect<S, SignUpPayloadSelect>) => QueryBuilder<{
@@ -281,18 +281,6 @@ function createMutationOperations(client) {
281
281
  },
282
282
  ], input_types_1.connectionFieldsMap, 'CopyTemplateToBlueprintPayload'),
283
283
  }),
284
- createApiKey: (args, options) => new query_builder_1.QueryBuilder({
285
- client,
286
- operation: 'mutation',
287
- operationName: 'CreateApiKey',
288
- fieldName: 'createApiKey',
289
- ...(0, query_builder_1.buildCustomDocument)('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
290
- {
291
- name: 'input',
292
- type: 'CreateApiKeyInput!',
293
- },
294
- ], input_types_1.connectionFieldsMap, 'CreateApiKeyPayload'),
295
- }),
296
284
  provisionSpatialRelation: (args, options) => new query_builder_1.QueryBuilder({
297
285
  client,
298
286
  operation: 'mutation',
@@ -497,6 +485,18 @@ function createMutationOperations(client) {
497
485
  },
498
486
  ], input_types_1.connectionFieldsMap, 'ExtendTokenExpiresPayload'),
499
487
  }),
488
+ createApiKey: (args, options) => new query_builder_1.QueryBuilder({
489
+ client,
490
+ operation: 'mutation',
491
+ operationName: 'CreateApiKey',
492
+ fieldName: 'createApiKey',
493
+ ...(0, query_builder_1.buildCustomDocument)('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
494
+ {
495
+ name: 'input',
496
+ type: 'CreateApiKeyInput!',
497
+ },
498
+ ], input_types_1.connectionFieldsMap, 'CreateApiKeyPayload'),
499
+ }),
500
500
  signUp: (args, options) => new query_builder_1.QueryBuilder({
501
501
  client,
502
502
  operation: 'mutation',