@constructive-io/sdk 0.23.2 → 0.24.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.
Files changed (160) hide show
  1. package/admin/orm/index.d.ts +31 -33
  2. package/admin/orm/index.js +32 -33
  3. package/admin/orm/input-types.d.ts +2090 -2039
  4. package/admin/orm/input-types.js +4 -4
  5. package/admin/orm/models/appLimitEvent.d.ts +26 -2
  6. package/admin/orm/models/appLimitEvent.js +45 -0
  7. package/admin/orm/models/index.d.ts +15 -16
  8. package/admin/orm/models/index.js +31 -33
  9. package/admin/orm/models/orgLimitEvent.d.ts +26 -2
  10. package/admin/orm/models/orgLimitEvent.js +45 -0
  11. package/auth/orm/index.d.ts +8 -8
  12. package/auth/orm/index.js +4 -3
  13. package/auth/orm/input-types.d.ts +94 -94
  14. package/auth/orm/input-types.js +1 -1
  15. package/auth/orm/models/auditLogAuth.d.ts +54 -0
  16. package/{public/orm/models/agentMessage.js → auth/orm/models/auditLogAuth.js} +27 -27
  17. package/auth/orm/models/index.d.ts +1 -1
  18. package/auth/orm/models/index.js +3 -3
  19. package/auth/orm/mutation/index.d.ts +9 -9
  20. package/auth/orm/mutation/index.js +12 -12
  21. package/esm/admin/orm/index.d.ts +31 -33
  22. package/esm/admin/orm/index.js +31 -33
  23. package/esm/admin/orm/input-types.d.ts +2090 -2039
  24. package/esm/admin/orm/input-types.js +4 -4
  25. package/esm/admin/orm/models/appLimitEvent.d.ts +26 -2
  26. package/esm/admin/orm/models/appLimitEvent.js +46 -1
  27. package/esm/admin/orm/models/index.d.ts +15 -16
  28. package/esm/admin/orm/models/index.js +15 -16
  29. package/esm/admin/orm/models/orgLimitEvent.d.ts +26 -2
  30. package/esm/admin/orm/models/orgLimitEvent.js +46 -1
  31. package/esm/auth/orm/index.d.ts +8 -8
  32. package/esm/auth/orm/index.js +3 -3
  33. package/esm/auth/orm/input-types.d.ts +94 -94
  34. package/esm/auth/orm/input-types.js +1 -1
  35. package/esm/auth/orm/models/auditLogAuth.d.ts +54 -0
  36. package/esm/{public/orm/models/auditLog.js → auth/orm/models/auditLogAuth.js} +25 -25
  37. package/esm/auth/orm/models/index.d.ts +1 -1
  38. package/esm/auth/orm/models/index.js +1 -1
  39. package/esm/auth/orm/mutation/index.d.ts +9 -9
  40. package/esm/auth/orm/mutation/index.js +12 -12
  41. package/esm/objects/orm/index.d.ts +1 -1
  42. package/esm/objects/orm/index.js +1 -1
  43. package/esm/public/orm/index.d.ts +102 -153
  44. package/esm/public/orm/index.js +59 -55
  45. package/esm/public/orm/input-types.d.ts +6255 -3877
  46. package/esm/public/orm/input-types.js +24 -15
  47. package/esm/public/orm/models/agentModule.d.ts +54 -0
  48. package/esm/public/orm/models/{agentThread.js → agentModule.js} +25 -25
  49. package/esm/public/orm/models/appLimitEvent.d.ts +26 -2
  50. package/esm/public/orm/models/appLimitEvent.js +46 -1
  51. package/esm/public/orm/models/auditLogAuth.d.ts +54 -0
  52. package/esm/{auth/orm/models/auditLog.js → public/orm/models/auditLogAuth.js} +25 -25
  53. package/esm/public/orm/models/computeLogModule.d.ts +54 -0
  54. package/esm/public/orm/models/{commit.js → computeLogModule.js} +25 -25
  55. package/esm/public/orm/models/configSecretsOrgModule.d.ts +54 -0
  56. package/esm/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +25 -25
  57. package/esm/public/orm/models/configSecretsUserModule.d.ts +54 -0
  58. package/esm/public/orm/models/configSecretsUserModule.js +100 -0
  59. package/esm/public/orm/models/dbUsageModule.d.ts +54 -0
  60. package/esm/{admin/orm/models/usageSnapshot.js → public/orm/models/dbUsageModule.js} +25 -25
  61. package/esm/public/orm/models/functionModule.d.ts +54 -0
  62. package/esm/public/orm/models/{agentMessage.js → functionModule.js} +25 -25
  63. package/esm/public/orm/models/graphModule.d.ts +54 -0
  64. package/esm/public/orm/models/{agentTask.js → graphModule.js} +25 -25
  65. package/esm/public/orm/models/index.d.ts +29 -27
  66. package/esm/public/orm/models/index.js +29 -27
  67. package/esm/public/orm/models/inferenceLogModule.d.ts +54 -0
  68. package/esm/public/orm/models/inferenceLogModule.js +100 -0
  69. package/esm/public/orm/models/merkleStoreModule.d.ts +54 -0
  70. package/esm/public/orm/models/merkleStoreModule.js +100 -0
  71. package/esm/public/orm/models/namespaceModule.d.ts +54 -0
  72. package/esm/public/orm/models/namespaceModule.js +100 -0
  73. package/esm/public/orm/models/orgLimitEvent.d.ts +26 -2
  74. package/esm/public/orm/models/orgLimitEvent.js +46 -1
  75. package/esm/public/orm/models/storageLogModule.d.ts +54 -0
  76. package/esm/public/orm/models/{store.js → storageLogModule.js} +25 -25
  77. package/esm/public/orm/models/transferLogModule.d.ts +54 -0
  78. package/esm/public/orm/models/transferLogModule.js +100 -0
  79. package/esm/public/orm/mutation/index.d.ts +69 -133
  80. package/esm/public/orm/mutation/index.js +78 -174
  81. package/esm/public/orm/query/index.d.ts +22 -71
  82. package/esm/public/orm/query/index.js +36 -124
  83. package/objects/orm/index.d.ts +1 -1
  84. package/objects/orm/index.js +2 -1
  85. package/package.json +6 -6
  86. package/public/orm/index.d.ts +102 -153
  87. package/public/orm/index.js +60 -55
  88. package/public/orm/input-types.d.ts +6255 -3877
  89. package/public/orm/input-types.js +24 -15
  90. package/public/orm/models/agentModule.d.ts +54 -0
  91. package/public/orm/models/{agentThread.js → agentModule.js} +27 -27
  92. package/public/orm/models/appLimitEvent.d.ts +26 -2
  93. package/public/orm/models/appLimitEvent.js +45 -0
  94. package/public/orm/models/auditLogAuth.d.ts +54 -0
  95. package/public/orm/models/{usageSnapshot.js → auditLogAuth.js} +27 -27
  96. package/public/orm/models/computeLogModule.d.ts +54 -0
  97. package/public/orm/models/computeLogModule.js +104 -0
  98. package/public/orm/models/configSecretsOrgModule.d.ts +54 -0
  99. package/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +27 -27
  100. package/public/orm/models/configSecretsUserModule.d.ts +54 -0
  101. package/public/orm/models/{ref.js → configSecretsUserModule.js} +27 -27
  102. package/public/orm/models/dbUsageModule.d.ts +54 -0
  103. package/{admin/orm/models/usageSnapshot.js → public/orm/models/dbUsageModule.js} +27 -27
  104. package/public/orm/models/functionModule.d.ts +54 -0
  105. package/{auth/orm/models/auditLog.js → public/orm/models/functionModule.js} +27 -27
  106. package/public/orm/models/graphModule.d.ts +54 -0
  107. package/public/orm/models/{agentTask.js → graphModule.js} +27 -27
  108. package/public/orm/models/index.d.ts +29 -27
  109. package/public/orm/models/index.js +61 -57
  110. package/public/orm/models/inferenceLogModule.d.ts +54 -0
  111. package/public/orm/models/inferenceLogModule.js +104 -0
  112. package/public/orm/models/merkleStoreModule.d.ts +54 -0
  113. package/public/orm/models/merkleStoreModule.js +104 -0
  114. package/public/orm/models/namespaceModule.d.ts +54 -0
  115. package/public/orm/models/namespaceModule.js +104 -0
  116. package/public/orm/models/orgLimitEvent.d.ts +26 -2
  117. package/public/orm/models/orgLimitEvent.js +45 -0
  118. package/public/orm/models/storageLogModule.d.ts +54 -0
  119. package/public/orm/models/storageLogModule.js +104 -0
  120. package/public/orm/models/transferLogModule.d.ts +54 -0
  121. package/public/orm/models/transferLogModule.js +104 -0
  122. package/public/orm/mutation/index.d.ts +69 -133
  123. package/public/orm/mutation/index.js +78 -174
  124. package/public/orm/query/index.d.ts +22 -71
  125. package/public/orm/query/index.js +36 -124
  126. package/admin/orm/models/usageSnapshot.d.ts +0 -54
  127. package/auth/orm/models/auditLog.d.ts +0 -54
  128. package/esm/admin/orm/models/usageSnapshot.d.ts +0 -54
  129. package/esm/auth/orm/models/auditLog.d.ts +0 -54
  130. package/esm/public/orm/models/agentMessage.d.ts +0 -54
  131. package/esm/public/orm/models/agentTask.d.ts +0 -54
  132. package/esm/public/orm/models/agentThread.d.ts +0 -54
  133. package/esm/public/orm/models/auditLog.d.ts +0 -54
  134. package/esm/public/orm/models/commit.d.ts +0 -54
  135. package/esm/public/orm/models/encryptedSecretsModule.d.ts +0 -54
  136. package/esm/public/orm/models/getAllRecord.d.ts +0 -30
  137. package/esm/public/orm/models/getAllRecord.js +0 -55
  138. package/esm/public/orm/models/object.d.ts +0 -54
  139. package/esm/public/orm/models/object.js +0 -90
  140. package/esm/public/orm/models/ref.d.ts +0 -54
  141. package/esm/public/orm/models/ref.js +0 -100
  142. package/esm/public/orm/models/store.d.ts +0 -54
  143. package/esm/public/orm/models/usageSnapshot.d.ts +0 -54
  144. package/esm/public/orm/models/usageSnapshot.js +0 -100
  145. package/public/orm/models/agentMessage.d.ts +0 -54
  146. package/public/orm/models/agentTask.d.ts +0 -54
  147. package/public/orm/models/agentThread.d.ts +0 -54
  148. package/public/orm/models/auditLog.d.ts +0 -54
  149. package/public/orm/models/auditLog.js +0 -104
  150. package/public/orm/models/commit.d.ts +0 -54
  151. package/public/orm/models/commit.js +0 -104
  152. package/public/orm/models/encryptedSecretsModule.d.ts +0 -54
  153. package/public/orm/models/getAllRecord.d.ts +0 -30
  154. package/public/orm/models/getAllRecord.js +0 -59
  155. package/public/orm/models/object.d.ts +0 -54
  156. package/public/orm/models/object.js +0 -94
  157. package/public/orm/models/ref.d.ts +0 -54
  158. package/public/orm/models/store.d.ts +0 -54
  159. package/public/orm/models/store.js +0 -104
  160. package/public/orm/models/usageSnapshot.d.ts +0 -54
@@ -23,8 +23,8 @@ export const connectionFieldsMap = {
23
23
  embeddingChunks: 'EmbeddingChunk',
24
24
  spatialRelations: 'SpatialRelation',
25
25
  functions: 'Function',
26
- databaseTransfers: 'DatabaseTransfer',
27
26
  partitions: 'Partition',
27
+ databaseTransfers: 'DatabaseTransfer',
28
28
  apis: 'Api',
29
29
  apiModules: 'ApiModule',
30
30
  apiSchemas: 'ApiSchema',
@@ -42,7 +42,7 @@ export const connectionFieldsMap = {
42
42
  defaultIdsModules: 'DefaultIdsModule',
43
43
  denormalizedTableFields: 'DenormalizedTableField',
44
44
  emailsModules: 'EmailsModule',
45
- encryptedSecretsModules: 'EncryptedSecretsModule',
45
+ configSecretsUserModules: 'ConfigSecretsUserModule',
46
46
  invitesModules: 'InvitesModule',
47
47
  eventsModules: 'EventsModule',
48
48
  limitsModules: 'LimitsModule',
@@ -67,6 +67,17 @@ export const connectionFieldsMap = {
67
67
  identityProvidersModules: 'IdentityProvidersModule',
68
68
  notificationsModules: 'NotificationsModule',
69
69
  realtimeModules: 'RealtimeModule',
70
+ configSecretsOrgModules: 'ConfigSecretsOrgModule',
71
+ inferenceLogModules: 'InferenceLogModule',
72
+ computeLogModules: 'ComputeLogModule',
73
+ transferLogModules: 'TransferLogModule',
74
+ storageLogModules: 'StorageLogModule',
75
+ dbUsageModules: 'DbUsageModule',
76
+ agentModules: 'AgentModule',
77
+ merkleStoreModules: 'MerkleStoreModule',
78
+ graphModules: 'GraphModule',
79
+ namespaceModules: 'NamespaceModule',
80
+ functionModules: 'FunctionModule',
70
81
  databaseProvisionModules: 'DatabaseProvisionModule',
71
82
  },
72
83
  Schema: {
@@ -83,6 +94,8 @@ export const connectionFieldsMap = {
83
94
  realtimeModulesByPrivateSchemaId: 'RealtimeModule',
84
95
  realtimeModules: 'RealtimeModule',
85
96
  realtimeModulesBySubscriptionsSchemaId: 'RealtimeModule',
97
+ configSecretsOrgModules: 'ConfigSecretsOrgModule',
98
+ merkleStoreModulesByPrivateSchemaId: 'MerkleStoreModule',
86
99
  },
87
100
  Table: {
88
101
  checkConstraints: 'CheckConstraint',
@@ -110,6 +123,7 @@ export const connectionFieldsMap = {
110
123
  realtimeModulesByChangeLogTableId: 'RealtimeModule',
111
124
  realtimeModulesByListenerNodeTableId: 'RealtimeModule',
112
125
  realtimeModulesBySourceRegistryTableId: 'RealtimeModule',
126
+ configSecretsOrgModules: 'ConfigSecretsOrgModule',
113
127
  },
114
128
  Field: {
115
129
  spatialRelations: 'SpatialRelation',
@@ -120,6 +134,9 @@ export const connectionFieldsMap = {
120
134
  viewGrants: 'ViewGrant',
121
135
  viewRules: 'ViewRule',
122
136
  },
137
+ MerkleStoreModule: {
138
+ graphModules: 'GraphModule',
139
+ },
123
140
  Api: {
124
141
  apiModules: 'ApiModule',
125
142
  apiSchemas: 'ApiSchema',
@@ -139,14 +156,6 @@ export const connectionFieldsMap = {
139
156
  blueprintTemplatesByForkedFromId: 'BlueprintTemplate',
140
157
  blueprintsByTemplateId: 'Blueprint',
141
158
  },
142
- AgentThread: {
143
- agentMessagesByThreadId: 'AgentMessage',
144
- agentTasksByThreadId: 'AgentTask',
145
- },
146
- AppLimitCreditCode: {
147
- appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem',
148
- appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption',
149
- },
150
159
  AppLimitDefault: {
151
160
  appLimitCreditsByDefaultLimitId: 'AppLimitCredit',
152
161
  appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem',
@@ -154,6 +163,10 @@ export const connectionFieldsMap = {
154
163
  OrgLimitDefault: {
155
164
  orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit',
156
165
  },
166
+ AppLimitCreditCode: {
167
+ appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem',
168
+ appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption',
169
+ },
157
170
  User: {
158
171
  ownedDatabases: 'Database',
159
172
  appAdminGrantsByActorId: 'AppAdminGrant',
@@ -206,10 +219,6 @@ export const connectionFieldsMap = {
206
219
  orgClaimedInvitesByEntityId: 'OrgClaimedInvite',
207
220
  orgClaimedInvitesByReceiverId: 'OrgClaimedInvite',
208
221
  orgClaimedInvitesBySenderId: 'OrgClaimedInvite',
209
- auditLogsByActorId: 'AuditLog',
210
- agentThreadsByEntityId: 'AgentThread',
211
- ownedAgentThreads: 'AgentThread',
212
- ownedAgentMessages: 'AgentMessage',
213
- ownedAgentTasks: 'AgentTask',
222
+ auditLogAuthsByActorId: 'AuditLogAuth',
214
223
  },
215
224
  };
@@ -0,0 +1,54 @@
1
+ /**
2
+ * AgentModule 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 { AgentModuleWithRelations, AgentModuleSelect, AgentModuleFilter, AgentModuleOrderBy, CreateAgentModuleInput, AgentModulePatch } from '../input-types';
10
+ export declare class AgentModuleModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends AgentModuleSelect>(args: FindManyArgs<S, AgentModuleFilter, AgentModuleOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, AgentModuleSelect>): QueryBuilder<{
16
+ agentModules: ConnectionResult<InferSelectResult<AgentModuleWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends AgentModuleSelect>(args: FindFirstArgs<S, AgentModuleFilter, AgentModuleOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, AgentModuleSelect>): QueryBuilder<{
21
+ agentModule: InferSelectResult<AgentModuleWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends AgentModuleSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, AgentModuleSelect>): QueryBuilder<{
27
+ agentModule: InferSelectResult<AgentModuleWithRelations, S> | null;
28
+ }>;
29
+ create<S extends AgentModuleSelect>(args: CreateArgs<S, CreateAgentModuleInput['agentModule']> & {
30
+ select: S;
31
+ } & StrictSelect<S, AgentModuleSelect>): QueryBuilder<{
32
+ createAgentModule: {
33
+ agentModule: InferSelectResult<AgentModuleWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends AgentModuleSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, AgentModulePatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, AgentModuleSelect>): QueryBuilder<{
41
+ updateAgentModule: {
42
+ agentModule: InferSelectResult<AgentModuleWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends AgentModuleSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, AgentModuleSelect>): QueryBuilder<{
50
+ deleteAgentModule: {
51
+ agentModule: InferSelectResult<AgentModuleWithRelations, S>;
52
+ };
53
+ }>;
54
+ }
@@ -1,12 +1,12 @@
1
1
  import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
2
  import { connectionFieldsMap } from '../input-types';
3
- export class AgentThreadModel {
3
+ export class AgentModuleModel {
4
4
  client;
5
5
  constructor(client) {
6
6
  this.client = client;
7
7
  }
8
8
  findMany(args) {
9
- const { document, variables } = buildFindManyDocument('AgentThread', 'agentThreads', args.select, {
9
+ const { document, variables } = buildFindManyDocument('AgentModule', 'agentModules', args.select, {
10
10
  where: args?.where,
11
11
  orderBy: args?.orderBy,
12
12
  first: args?.first,
@@ -14,85 +14,85 @@ export class AgentThreadModel {
14
14
  after: args?.after,
15
15
  before: args?.before,
16
16
  offset: args?.offset,
17
- }, 'AgentThreadFilter', 'AgentThreadOrderBy', connectionFieldsMap);
17
+ }, 'AgentModuleFilter', 'AgentModuleOrderBy', connectionFieldsMap);
18
18
  return new QueryBuilder({
19
19
  client: this.client,
20
20
  operation: 'query',
21
- operationName: 'AgentThread',
22
- fieldName: 'agentThreads',
21
+ operationName: 'AgentModule',
22
+ fieldName: 'agentModules',
23
23
  document,
24
24
  variables,
25
25
  });
26
26
  }
27
27
  findFirst(args) {
28
- const { document, variables } = buildFindFirstDocument('AgentThread', 'agentThreads', args.select, {
28
+ const { document, variables } = buildFindFirstDocument('AgentModule', 'agentModules', args.select, {
29
29
  where: args?.where,
30
30
  orderBy: args?.orderBy,
31
- }, 'AgentThreadFilter', 'AgentThreadOrderBy', connectionFieldsMap);
31
+ }, 'AgentModuleFilter', 'AgentModuleOrderBy', connectionFieldsMap);
32
32
  return new QueryBuilder({
33
33
  client: this.client,
34
34
  operation: 'query',
35
- operationName: 'AgentThread',
36
- fieldName: 'agentThread',
35
+ operationName: 'AgentModule',
36
+ fieldName: 'agentModule',
37
37
  document,
38
38
  variables,
39
39
  transform: (data) => ({
40
- agentThread: data.agentThreads?.nodes?.[0] ?? null,
40
+ agentModule: data.agentModules?.nodes?.[0] ?? null,
41
41
  }),
42
42
  });
43
43
  }
44
44
  findOne(args) {
45
- const { document, variables } = buildFindManyDocument('AgentThread', 'agentThreads', args.select, {
45
+ const { document, variables } = buildFindManyDocument('AgentModule', 'agentModules', args.select, {
46
46
  where: {
47
47
  id: {
48
48
  equalTo: args.id,
49
49
  },
50
50
  },
51
51
  first: 1,
52
- }, 'AgentThreadFilter', 'AgentThreadOrderBy', connectionFieldsMap);
52
+ }, 'AgentModuleFilter', 'AgentModuleOrderBy', connectionFieldsMap);
53
53
  return new QueryBuilder({
54
54
  client: this.client,
55
55
  operation: 'query',
56
- operationName: 'AgentThread',
57
- fieldName: 'agentThread',
56
+ operationName: 'AgentModule',
57
+ fieldName: 'agentModule',
58
58
  document,
59
59
  variables,
60
60
  transform: (data) => ({
61
- agentThread: data.agentThreads?.nodes?.[0] ?? null,
61
+ agentModule: data.agentModules?.nodes?.[0] ?? null,
62
62
  }),
63
63
  });
64
64
  }
65
65
  create(args) {
66
- const { document, variables } = buildCreateDocument('AgentThread', 'createAgentThread', 'agentThread', args.select, args.data, 'CreateAgentThreadInput', connectionFieldsMap);
66
+ const { document, variables } = buildCreateDocument('AgentModule', 'createAgentModule', 'agentModule', args.select, args.data, 'CreateAgentModuleInput', connectionFieldsMap);
67
67
  return new QueryBuilder({
68
68
  client: this.client,
69
69
  operation: 'mutation',
70
- operationName: 'AgentThread',
71
- fieldName: 'createAgentThread',
70
+ operationName: 'AgentModule',
71
+ fieldName: 'createAgentModule',
72
72
  document,
73
73
  variables,
74
74
  });
75
75
  }
76
76
  update(args) {
77
- const { document, variables } = buildUpdateByPkDocument('AgentThread', 'updateAgentThread', 'agentThread', args.select, args.where.id, args.data, 'UpdateAgentThreadInput', 'id', 'agentThreadPatch', connectionFieldsMap);
77
+ const { document, variables } = buildUpdateByPkDocument('AgentModule', 'updateAgentModule', 'agentModule', args.select, args.where.id, args.data, 'UpdateAgentModuleInput', 'id', 'agentModulePatch', connectionFieldsMap);
78
78
  return new QueryBuilder({
79
79
  client: this.client,
80
80
  operation: 'mutation',
81
- operationName: 'AgentThread',
82
- fieldName: 'updateAgentThread',
81
+ operationName: 'AgentModule',
82
+ fieldName: 'updateAgentModule',
83
83
  document,
84
84
  variables,
85
85
  });
86
86
  }
87
87
  delete(args) {
88
- const { document, variables } = buildDeleteByPkDocument('AgentThread', 'deleteAgentThread', 'agentThread', {
88
+ const { document, variables } = buildDeleteByPkDocument('AgentModule', 'deleteAgentModule', 'agentModule', {
89
89
  id: args.where.id,
90
- }, 'DeleteAgentThreadInput', args.select, connectionFieldsMap);
90
+ }, 'DeleteAgentModuleInput', args.select, connectionFieldsMap);
91
91
  return new QueryBuilder({
92
92
  client: this.client,
93
93
  operation: 'mutation',
94
- operationName: 'AgentThread',
95
- fieldName: 'deleteAgentThread',
94
+ operationName: 'AgentModule',
95
+ fieldName: 'deleteAgentModule',
96
96
  document,
97
97
  variables,
98
98
  });
@@ -5,8 +5,8 @@
5
5
  */
6
6
  import { OrmClient } from '../client';
7
7
  import { QueryBuilder } from '../query-builder';
8
- import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, InferSelectResult, StrictSelect } from '../select-types';
9
- import type { AppLimitEventWithRelations, AppLimitEventSelect, AppLimitEventFilter, AppLimitEventOrderBy, CreateAppLimitEventInput } from '../input-types';
8
+ import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { AppLimitEventWithRelations, AppLimitEventSelect, AppLimitEventFilter, AppLimitEventOrderBy, CreateAppLimitEventInput, AppLimitEventPatch } from '../input-types';
10
10
  export declare class AppLimitEventModel {
11
11
  private client;
12
12
  constructor(client: OrmClient);
@@ -20,6 +20,12 @@ export declare class AppLimitEventModel {
20
20
  } & StrictSelect<S, AppLimitEventSelect>): QueryBuilder<{
21
21
  appLimitEvent: InferSelectResult<AppLimitEventWithRelations, S> | null;
22
22
  }>;
23
+ findOne<S extends AppLimitEventSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, AppLimitEventSelect>): QueryBuilder<{
27
+ appLimitEvent: InferSelectResult<AppLimitEventWithRelations, S> | null;
28
+ }>;
23
29
  create<S extends AppLimitEventSelect>(args: CreateArgs<S, CreateAppLimitEventInput['appLimitEvent']> & {
24
30
  select: S;
25
31
  } & StrictSelect<S, AppLimitEventSelect>): QueryBuilder<{
@@ -27,4 +33,22 @@ export declare class AppLimitEventModel {
27
33
  appLimitEvent: InferSelectResult<AppLimitEventWithRelations, S>;
28
34
  };
29
35
  }>;
36
+ update<S extends AppLimitEventSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, AppLimitEventPatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, AppLimitEventSelect>): QueryBuilder<{
41
+ updateAppLimitEvent: {
42
+ appLimitEvent: InferSelectResult<AppLimitEventWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends AppLimitEventSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, AppLimitEventSelect>): QueryBuilder<{
50
+ deleteAppLimitEvent: {
51
+ appLimitEvent: InferSelectResult<AppLimitEventWithRelations, S>;
52
+ };
53
+ }>;
30
54
  }
@@ -1,4 +1,4 @@
1
- import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
2
  import { connectionFieldsMap } from '../input-types';
3
3
  export class AppLimitEventModel {
4
4
  client;
@@ -41,6 +41,27 @@ export class AppLimitEventModel {
41
41
  }),
42
42
  });
43
43
  }
44
+ findOne(args) {
45
+ const { document, variables } = buildFindManyDocument('AppLimitEvent', 'appLimitEvents', args.select, {
46
+ where: {
47
+ id: {
48
+ equalTo: args.id,
49
+ },
50
+ },
51
+ first: 1,
52
+ }, 'AppLimitEventFilter', 'AppLimitEventOrderBy', connectionFieldsMap);
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'query',
56
+ operationName: 'AppLimitEvent',
57
+ fieldName: 'appLimitEvent',
58
+ document,
59
+ variables,
60
+ transform: (data) => ({
61
+ appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null,
62
+ }),
63
+ });
64
+ }
44
65
  create(args) {
45
66
  const { document, variables } = buildCreateDocument('AppLimitEvent', 'createAppLimitEvent', 'appLimitEvent', args.select, args.data, 'CreateAppLimitEventInput', connectionFieldsMap);
46
67
  return new QueryBuilder({
@@ -52,4 +73,28 @@ export class AppLimitEventModel {
52
73
  variables,
53
74
  });
54
75
  }
76
+ update(args) {
77
+ const { document, variables } = buildUpdateByPkDocument('AppLimitEvent', 'updateAppLimitEvent', 'appLimitEvent', args.select, args.where.id, args.data, 'UpdateAppLimitEventInput', 'id', 'appLimitEventPatch', connectionFieldsMap);
78
+ return new QueryBuilder({
79
+ client: this.client,
80
+ operation: 'mutation',
81
+ operationName: 'AppLimitEvent',
82
+ fieldName: 'updateAppLimitEvent',
83
+ document,
84
+ variables,
85
+ });
86
+ }
87
+ delete(args) {
88
+ const { document, variables } = buildDeleteByPkDocument('AppLimitEvent', 'deleteAppLimitEvent', 'appLimitEvent', {
89
+ id: args.where.id,
90
+ }, 'DeleteAppLimitEventInput', args.select, connectionFieldsMap);
91
+ return new QueryBuilder({
92
+ client: this.client,
93
+ operation: 'mutation',
94
+ operationName: 'AppLimitEvent',
95
+ fieldName: 'deleteAppLimitEvent',
96
+ document,
97
+ variables,
98
+ });
99
+ }
55
100
  }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * AuditLogAuth 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 { AuditLogAuthWithRelations, AuditLogAuthSelect, AuditLogAuthFilter, AuditLogAuthOrderBy, CreateAuditLogAuthInput, AuditLogAuthPatch } from '../input-types';
10
+ export declare class AuditLogAuthModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends AuditLogAuthSelect>(args: FindManyArgs<S, AuditLogAuthFilter, AuditLogAuthOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, AuditLogAuthSelect>): QueryBuilder<{
16
+ auditLogAuths: ConnectionResult<InferSelectResult<AuditLogAuthWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends AuditLogAuthSelect>(args: FindFirstArgs<S, AuditLogAuthFilter, AuditLogAuthOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, AuditLogAuthSelect>): QueryBuilder<{
21
+ auditLogAuth: InferSelectResult<AuditLogAuthWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends AuditLogAuthSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, AuditLogAuthSelect>): QueryBuilder<{
27
+ auditLogAuth: InferSelectResult<AuditLogAuthWithRelations, S> | null;
28
+ }>;
29
+ create<S extends AuditLogAuthSelect>(args: CreateArgs<S, CreateAuditLogAuthInput['auditLogAuth']> & {
30
+ select: S;
31
+ } & StrictSelect<S, AuditLogAuthSelect>): QueryBuilder<{
32
+ createAuditLogAuth: {
33
+ auditLogAuth: InferSelectResult<AuditLogAuthWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends AuditLogAuthSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, AuditLogAuthPatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, AuditLogAuthSelect>): QueryBuilder<{
41
+ updateAuditLogAuth: {
42
+ auditLogAuth: InferSelectResult<AuditLogAuthWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends AuditLogAuthSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, AuditLogAuthSelect>): QueryBuilder<{
50
+ deleteAuditLogAuth: {
51
+ auditLogAuth: InferSelectResult<AuditLogAuthWithRelations, S>;
52
+ };
53
+ }>;
54
+ }
@@ -1,12 +1,12 @@
1
1
  import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
2
  import { connectionFieldsMap } from '../input-types';
3
- export class AuditLogModel {
3
+ export class AuditLogAuthModel {
4
4
  client;
5
5
  constructor(client) {
6
6
  this.client = client;
7
7
  }
8
8
  findMany(args) {
9
- const { document, variables } = buildFindManyDocument('AuditLog', 'auditLogs', args.select, {
9
+ const { document, variables } = buildFindManyDocument('AuditLogAuth', 'auditLogAuths', args.select, {
10
10
  where: args?.where,
11
11
  orderBy: args?.orderBy,
12
12
  first: args?.first,
@@ -14,85 +14,85 @@ export class AuditLogModel {
14
14
  after: args?.after,
15
15
  before: args?.before,
16
16
  offset: args?.offset,
17
- }, 'AuditLogFilter', 'AuditLogOrderBy', connectionFieldsMap);
17
+ }, 'AuditLogAuthFilter', 'AuditLogAuthOrderBy', connectionFieldsMap);
18
18
  return new QueryBuilder({
19
19
  client: this.client,
20
20
  operation: 'query',
21
- operationName: 'AuditLog',
22
- fieldName: 'auditLogs',
21
+ operationName: 'AuditLogAuth',
22
+ fieldName: 'auditLogAuths',
23
23
  document,
24
24
  variables,
25
25
  });
26
26
  }
27
27
  findFirst(args) {
28
- const { document, variables } = buildFindFirstDocument('AuditLog', 'auditLogs', args.select, {
28
+ const { document, variables } = buildFindFirstDocument('AuditLogAuth', 'auditLogAuths', args.select, {
29
29
  where: args?.where,
30
30
  orderBy: args?.orderBy,
31
- }, 'AuditLogFilter', 'AuditLogOrderBy', connectionFieldsMap);
31
+ }, 'AuditLogAuthFilter', 'AuditLogAuthOrderBy', connectionFieldsMap);
32
32
  return new QueryBuilder({
33
33
  client: this.client,
34
34
  operation: 'query',
35
- operationName: 'AuditLog',
36
- fieldName: 'auditLog',
35
+ operationName: 'AuditLogAuth',
36
+ fieldName: 'auditLogAuth',
37
37
  document,
38
38
  variables,
39
39
  transform: (data) => ({
40
- auditLog: data.auditLogs?.nodes?.[0] ?? null,
40
+ auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null,
41
41
  }),
42
42
  });
43
43
  }
44
44
  findOne(args) {
45
- const { document, variables } = buildFindManyDocument('AuditLog', 'auditLogs', args.select, {
45
+ const { document, variables } = buildFindManyDocument('AuditLogAuth', 'auditLogAuths', args.select, {
46
46
  where: {
47
47
  id: {
48
48
  equalTo: args.id,
49
49
  },
50
50
  },
51
51
  first: 1,
52
- }, 'AuditLogFilter', 'AuditLogOrderBy', connectionFieldsMap);
52
+ }, 'AuditLogAuthFilter', 'AuditLogAuthOrderBy', connectionFieldsMap);
53
53
  return new QueryBuilder({
54
54
  client: this.client,
55
55
  operation: 'query',
56
- operationName: 'AuditLog',
57
- fieldName: 'auditLog',
56
+ operationName: 'AuditLogAuth',
57
+ fieldName: 'auditLogAuth',
58
58
  document,
59
59
  variables,
60
60
  transform: (data) => ({
61
- auditLog: data.auditLogs?.nodes?.[0] ?? null,
61
+ auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null,
62
62
  }),
63
63
  });
64
64
  }
65
65
  create(args) {
66
- const { document, variables } = buildCreateDocument('AuditLog', 'createAuditLog', 'auditLog', args.select, args.data, 'CreateAuditLogInput', connectionFieldsMap);
66
+ const { document, variables } = buildCreateDocument('AuditLogAuth', 'createAuditLogAuth', 'auditLogAuth', args.select, args.data, 'CreateAuditLogAuthInput', connectionFieldsMap);
67
67
  return new QueryBuilder({
68
68
  client: this.client,
69
69
  operation: 'mutation',
70
- operationName: 'AuditLog',
71
- fieldName: 'createAuditLog',
70
+ operationName: 'AuditLogAuth',
71
+ fieldName: 'createAuditLogAuth',
72
72
  document,
73
73
  variables,
74
74
  });
75
75
  }
76
76
  update(args) {
77
- const { document, variables } = buildUpdateByPkDocument('AuditLog', 'updateAuditLog', 'auditLog', args.select, args.where.id, args.data, 'UpdateAuditLogInput', 'id', 'auditLogPatch', connectionFieldsMap);
77
+ const { document, variables } = buildUpdateByPkDocument('AuditLogAuth', 'updateAuditLogAuth', 'auditLogAuth', args.select, args.where.id, args.data, 'UpdateAuditLogAuthInput', 'id', 'auditLogAuthPatch', connectionFieldsMap);
78
78
  return new QueryBuilder({
79
79
  client: this.client,
80
80
  operation: 'mutation',
81
- operationName: 'AuditLog',
82
- fieldName: 'updateAuditLog',
81
+ operationName: 'AuditLogAuth',
82
+ fieldName: 'updateAuditLogAuth',
83
83
  document,
84
84
  variables,
85
85
  });
86
86
  }
87
87
  delete(args) {
88
- const { document, variables } = buildDeleteByPkDocument('AuditLog', 'deleteAuditLog', 'auditLog', {
88
+ const { document, variables } = buildDeleteByPkDocument('AuditLogAuth', 'deleteAuditLogAuth', 'auditLogAuth', {
89
89
  id: args.where.id,
90
- }, 'DeleteAuditLogInput', args.select, connectionFieldsMap);
90
+ }, 'DeleteAuditLogAuthInput', args.select, connectionFieldsMap);
91
91
  return new QueryBuilder({
92
92
  client: this.client,
93
93
  operation: 'mutation',
94
- operationName: 'AuditLog',
95
- fieldName: 'deleteAuditLog',
94
+ operationName: 'AuditLogAuth',
95
+ fieldName: 'deleteAuditLogAuth',
96
96
  document,
97
97
  variables,
98
98
  });
@@ -0,0 +1,54 @@
1
+ /**
2
+ * ComputeLogModule 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 { ComputeLogModuleWithRelations, ComputeLogModuleSelect, ComputeLogModuleFilter, ComputeLogModuleOrderBy, CreateComputeLogModuleInput, ComputeLogModulePatch } from '../input-types';
10
+ export declare class ComputeLogModuleModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends ComputeLogModuleSelect>(args: FindManyArgs<S, ComputeLogModuleFilter, ComputeLogModuleOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, ComputeLogModuleSelect>): QueryBuilder<{
16
+ computeLogModules: ConnectionResult<InferSelectResult<ComputeLogModuleWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends ComputeLogModuleSelect>(args: FindFirstArgs<S, ComputeLogModuleFilter, ComputeLogModuleOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, ComputeLogModuleSelect>): QueryBuilder<{
21
+ computeLogModule: InferSelectResult<ComputeLogModuleWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends ComputeLogModuleSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, ComputeLogModuleSelect>): QueryBuilder<{
27
+ computeLogModule: InferSelectResult<ComputeLogModuleWithRelations, S> | null;
28
+ }>;
29
+ create<S extends ComputeLogModuleSelect>(args: CreateArgs<S, CreateComputeLogModuleInput['computeLogModule']> & {
30
+ select: S;
31
+ } & StrictSelect<S, ComputeLogModuleSelect>): QueryBuilder<{
32
+ createComputeLogModule: {
33
+ computeLogModule: InferSelectResult<ComputeLogModuleWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends ComputeLogModuleSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, ComputeLogModulePatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, ComputeLogModuleSelect>): QueryBuilder<{
41
+ updateComputeLogModule: {
42
+ computeLogModule: InferSelectResult<ComputeLogModuleWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends ComputeLogModuleSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, ComputeLogModuleSelect>): QueryBuilder<{
50
+ deleteComputeLogModule: {
51
+ computeLogModule: InferSelectResult<ComputeLogModuleWithRelations, S>;
52
+ };
53
+ }>;
54
+ }