@surveilr/bootstrap-sql 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,808 @@
1
+ import {
2
+ codeNotebookCellLatest,
3
+ codeNotebookCellVersions,
4
+ codeNotebookMigrationSql,
5
+ codeNotebookSqlCellMigratable,
6
+ codeNotebookSqlCellMigratableNotExecuted,
7
+ codeNotebookSqlCellMigratableState,
8
+ codeNotebookSqlCellMigratableVersion,
9
+ consoleContentTabular,
10
+ consoleInformationSchemaTable,
11
+ consoleInformationSchemaTableColFkey,
12
+ consoleInformationSchemaTableColIndex,
13
+ consoleInformationSchemaView,
14
+ deviceGraphAnalytics,
15
+ deviceGraphCorrelations,
16
+ deviceGraphOverview,
17
+ emailMessagesWithTimezone,
18
+ filesystemGraph,
19
+ imapGraph,
20
+ networkDeviceTopology,
21
+ orchestrationExecutionSuccessRateByType,
22
+ orchestrationExecutionsByType,
23
+ orchestrationIssueRemediation,
24
+ orchestrationLogsBySession,
25
+ orchestrationSessionByDevice,
26
+ orchestrationSessionDuration,
27
+ orchestrationSessionScript,
28
+ orchestrationSessionSummary,
29
+ orchestrationSuccessRate,
30
+ rssdStatisticsOverview,
31
+ rssdTableStatistic,
32
+ snmpCollectionSummary,
33
+ snmpDeviceInventory,
34
+ snmpOidPerformance,
35
+ uniformResourceFile,
36
+ uniformResourceImap,
37
+ uniformResourceImapContent,
38
+ urIngestSessionFileIssue,
39
+ urIngestSessionFilesStats,
40
+ urIngestSessionFilesStatsLatest,
41
+ urIngestSessionTasksStats,
42
+ urIngestSessionTasksStatsLatest
43
+ } from "./chunk-QTY32BJY.js";
44
+ import {
45
+ assuranceSchema,
46
+ behavior,
47
+ checkJSON,
48
+ codeNotebookCell,
49
+ codeNotebookKernel,
50
+ codeNotebookState,
51
+ device,
52
+ devicePartyRelationship,
53
+ genderType,
54
+ housekeeping,
55
+ orchestrationNature,
56
+ orchestrationSession,
57
+ orchestrationSessionEntry,
58
+ orchestrationSessionExec,
59
+ orchestrationSessionIssue,
60
+ orchestrationSessionIssueRelation,
61
+ orchestrationSessionLog,
62
+ orchestrationSessionState,
63
+ organization,
64
+ organizationRole,
65
+ organizationRoleType,
66
+ osqueryPolicy,
67
+ party,
68
+ partyRelation,
69
+ partyRelationType,
70
+ partyType,
71
+ person,
72
+ personType,
73
+ sexType,
74
+ sqleanDefine,
75
+ sqlpageAideNavigation,
76
+ sqlpageFiles,
77
+ surveilrFunctionDoc,
78
+ surveilrOsqueryMsCarve,
79
+ surveilrOsqueryMsCarvedExtractedFile,
80
+ surveilrOsqueryMsDistributedQuery,
81
+ surveilrOsqueryMsDistributedResult,
82
+ surveilrOsqueryMsNode,
83
+ surveilrSnmpCollection,
84
+ surveilrSnmpDevice,
85
+ surveilrTableSize,
86
+ uniformResource,
87
+ uniformResourceEdge,
88
+ uniformResourceGraph,
89
+ uniformResourceTransform,
90
+ urIngestResourcePathMatchRule,
91
+ urIngestResourcePathRewriteRule,
92
+ urIngestSession,
93
+ urIngestSessionAttachment,
94
+ urIngestSessionFsPath,
95
+ urIngestSessionFsPathEntry,
96
+ urIngestSessionImapAccount,
97
+ urIngestSessionImapAcctFolder,
98
+ urIngestSessionImapAcctFolderMessage,
99
+ urIngestSessionOsqueryMsLog,
100
+ urIngestSessionPlmAccount,
101
+ urIngestSessionPlmAcctLabel,
102
+ urIngestSessionPlmAcctProject,
103
+ urIngestSessionPlmAcctProjectIssue,
104
+ urIngestSessionPlmAcctRelationship,
105
+ urIngestSessionPlmComment,
106
+ urIngestSessionPlmIssueReaction,
107
+ urIngestSessionPlmIssueType,
108
+ urIngestSessionPlmMilestone,
109
+ urIngestSessionPlmReaction,
110
+ urIngestSessionPlmUser,
111
+ urIngestSessionTask,
112
+ urIngestSessionUdiPgpSql
113
+ } from "./chunk-HZLAQ5XF.js";
114
+
115
+ // relations.ts
116
+ import { relations } from "drizzle-orm/relations";
117
+ var codeNotebookCellRelations = relations(codeNotebookCell, ({ one, many }) => ({
118
+ codeNotebookKernel: one(codeNotebookKernel, {
119
+ fields: [codeNotebookCell.notebookKernelId],
120
+ references: [codeNotebookKernel.codeNotebookKernelId]
121
+ }),
122
+ codeNotebookStates: many(codeNotebookState)
123
+ }));
124
+ var codeNotebookKernelRelations = relations(codeNotebookKernel, ({ many }) => ({
125
+ codeNotebookCells: many(codeNotebookCell)
126
+ }));
127
+ var codeNotebookStateRelations = relations(codeNotebookState, ({ one }) => ({
128
+ codeNotebookCell: one(codeNotebookCell, {
129
+ fields: [codeNotebookState.codeNotebookCellId],
130
+ references: [codeNotebookCell.codeNotebookCellId]
131
+ })
132
+ }));
133
+ var partyRelations = relations(party, ({ one, many }) => ({
134
+ partyType: one(partyType, {
135
+ fields: [party.partyTypeId],
136
+ references: [partyType.partyTypeId]
137
+ }),
138
+ partyRelations_relatedPartyId: many(partyRelation, {
139
+ relationName: "partyRelation_relatedPartyId_party_partyId"
140
+ }),
141
+ partyRelations_partyId: many(partyRelation, {
142
+ relationName: "partyRelation_partyId_party_partyId"
143
+ }),
144
+ people: many(person),
145
+ organizations: many(organization),
146
+ organizationRoles_organizationId: many(organizationRole, {
147
+ relationName: "organizationRole_organizationId_party_partyId"
148
+ }),
149
+ organizationRoles_personId: many(organizationRole, {
150
+ relationName: "organizationRole_personId_party_partyId"
151
+ }),
152
+ devicePartyRelationships: many(devicePartyRelationship)
153
+ }));
154
+ var partyTypeRelations = relations(partyType, ({ many }) => ({
155
+ parties: many(party)
156
+ }));
157
+ var partyRelationRelations = relations(partyRelation, ({ one }) => ({
158
+ partyRelationType: one(partyRelationType, {
159
+ fields: [partyRelation.relationTypeId],
160
+ references: [partyRelationType.partyRelationTypeId]
161
+ }),
162
+ party_relatedPartyId: one(party, {
163
+ fields: [partyRelation.relatedPartyId],
164
+ references: [party.partyId],
165
+ relationName: "partyRelation_relatedPartyId_party_partyId"
166
+ }),
167
+ party_partyId: one(party, {
168
+ fields: [partyRelation.partyId],
169
+ references: [party.partyId],
170
+ relationName: "partyRelation_partyId_party_partyId"
171
+ })
172
+ }));
173
+ var partyRelationTypeRelations = relations(partyRelationType, ({ many }) => ({
174
+ partyRelations: many(partyRelation)
175
+ }));
176
+ var personRelations = relations(person, ({ one }) => ({
177
+ sexType: one(sexType, {
178
+ fields: [person.sexId],
179
+ references: [sexType.sexTypeId]
180
+ }),
181
+ genderType: one(genderType, {
182
+ fields: [person.genderId],
183
+ references: [genderType.genderTypeId]
184
+ }),
185
+ personType: one(personType, {
186
+ fields: [person.personTypeId],
187
+ references: [personType.personTypeId]
188
+ }),
189
+ party: one(party, {
190
+ fields: [person.partyId],
191
+ references: [party.partyId]
192
+ })
193
+ }));
194
+ var sexTypeRelations = relations(sexType, ({ many }) => ({
195
+ people: many(person)
196
+ }));
197
+ var genderTypeRelations = relations(genderType, ({ many }) => ({
198
+ people: many(person)
199
+ }));
200
+ var personTypeRelations = relations(personType, ({ many }) => ({
201
+ people: many(person)
202
+ }));
203
+ var organizationRelations = relations(organization, ({ one }) => ({
204
+ party: one(party, {
205
+ fields: [organization.partyId],
206
+ references: [party.partyId]
207
+ })
208
+ }));
209
+ var organizationRoleRelations = relations(organizationRole, ({ one }) => ({
210
+ organizationRoleType: one(organizationRoleType, {
211
+ fields: [organizationRole.organizationRoleTypeId],
212
+ references: [organizationRoleType.organizationRoleTypeId]
213
+ }),
214
+ party_organizationId: one(party, {
215
+ fields: [organizationRole.organizationId],
216
+ references: [party.partyId],
217
+ relationName: "organizationRole_organizationId_party_partyId"
218
+ }),
219
+ party_personId: one(party, {
220
+ fields: [organizationRole.personId],
221
+ references: [party.partyId],
222
+ relationName: "organizationRole_personId_party_partyId"
223
+ })
224
+ }));
225
+ var organizationRoleTypeRelations = relations(organizationRoleType, ({ many }) => ({
226
+ organizationRoles: many(organizationRole)
227
+ }));
228
+ var devicePartyRelationshipRelations = relations(devicePartyRelationship, ({ one }) => ({
229
+ party: one(party, {
230
+ fields: [devicePartyRelationship.partyId],
231
+ references: [party.partyId]
232
+ }),
233
+ device: one(device, {
234
+ fields: [devicePartyRelationship.deviceId],
235
+ references: [device.deviceId]
236
+ })
237
+ }));
238
+ var deviceRelations = relations(device, ({ many }) => ({
239
+ devicePartyRelationships: many(devicePartyRelationship),
240
+ behaviors: many(behavior),
241
+ urIngestSessions: many(urIngestSession),
242
+ uniformResources: many(uniformResource),
243
+ orchestrationSessions: many(orchestrationSession),
244
+ surveilrOsqueryMsNodes: many(surveilrOsqueryMsNode)
245
+ }));
246
+ var behaviorRelations = relations(behavior, ({ one, many }) => ({
247
+ assuranceSchema: one(assuranceSchema, {
248
+ fields: [behavior.assuranceSchemaId],
249
+ references: [assuranceSchema.assuranceSchemaId]
250
+ }),
251
+ device: one(device, {
252
+ fields: [behavior.deviceId],
253
+ references: [device.deviceId]
254
+ }),
255
+ urIngestSessions: many(urIngestSession),
256
+ surveilrOsqueryMsNodes: many(surveilrOsqueryMsNode)
257
+ }));
258
+ var assuranceSchemaRelations = relations(assuranceSchema, ({ many }) => ({
259
+ behaviors: many(behavior)
260
+ }));
261
+ var urIngestSessionRelations = relations(urIngestSession, ({ one, many }) => ({
262
+ behavior: one(behavior, {
263
+ fields: [urIngestSession.behaviorId],
264
+ references: [behavior.behaviorId]
265
+ }),
266
+ device: one(device, {
267
+ fields: [urIngestSession.deviceId],
268
+ references: [device.deviceId]
269
+ }),
270
+ urIngestSessionFsPaths: many(urIngestSessionFsPath),
271
+ uniformResources: many(uniformResource),
272
+ urIngestSessionFsPathEntries: many(urIngestSessionFsPathEntry),
273
+ urIngestSessionTasks: many(urIngestSessionTask),
274
+ urIngestSessionImapAccounts: many(urIngestSessionImapAccount),
275
+ urIngestSessionImapAcctFolders: many(urIngestSessionImapAcctFolder),
276
+ urIngestSessionImapAcctFolderMessages: many(urIngestSessionImapAcctFolderMessage),
277
+ urIngestSessionPlmAccounts: many(urIngestSessionPlmAccount),
278
+ urIngestSessionPlmAcctProjects: many(urIngestSessionPlmAcctProject),
279
+ urIngestSessionPlmAcctProjectIssues: many(urIngestSessionPlmAcctProjectIssue),
280
+ urIngestSessionUdiPgpSqls: many(urIngestSessionUdiPgpSql)
281
+ }));
282
+ var urIngestSessionFsPathRelations = relations(urIngestSessionFsPath, ({ one, many }) => ({
283
+ urIngestSession: one(urIngestSession, {
284
+ fields: [urIngestSessionFsPath.ingestSessionId],
285
+ references: [urIngestSession.urIngestSessionId]
286
+ }),
287
+ uniformResources: many(uniformResource),
288
+ urIngestSessionFsPathEntries: many(urIngestSessionFsPathEntry)
289
+ }));
290
+ var uniformResourceRelations = relations(uniformResource, ({ one, many }) => ({
291
+ urIngestSessionPlmAcctProject: one(urIngestSessionPlmAcctProject, {
292
+ fields: [uniformResource.ingestIssueAcctProjectId],
293
+ references: [urIngestSessionPlmAcctProject.urIngestSessionPlmAcctProjectId]
294
+ }),
295
+ urIngestSessionImapAcctFolderMessage: one(urIngestSessionImapAcctFolderMessage, {
296
+ fields: [uniformResource.ingestSessionImapAcctFolderMessage],
297
+ references: [urIngestSessionImapAcctFolderMessage.urIngestSessionImapAcctFolderMessageId]
298
+ }),
299
+ urIngestSessionFsPath: one(urIngestSessionFsPath, {
300
+ fields: [uniformResource.ingestFsPathId],
301
+ references: [urIngestSessionFsPath.urIngestSessionFsPathId]
302
+ }),
303
+ urIngestSession: one(urIngestSession, {
304
+ fields: [uniformResource.ingestSessionId],
305
+ references: [urIngestSession.urIngestSessionId]
306
+ }),
307
+ device: one(device, {
308
+ fields: [uniformResource.deviceId],
309
+ references: [device.deviceId]
310
+ }),
311
+ uniformResourceTransforms: many(uniformResourceTransform),
312
+ urIngestSessionFsPathEntries: many(urIngestSessionFsPathEntry),
313
+ urIngestSessionTasks: many(urIngestSessionTask),
314
+ urIngestSessionPlmAcctProjectIssues: many(urIngestSessionPlmAcctProjectIssue),
315
+ urIngestSessionAttachments: many(urIngestSessionAttachment),
316
+ urIngestSessionUdiPgpSqls: many(urIngestSessionUdiPgpSql),
317
+ uniformResourceEdges: many(uniformResourceEdge)
318
+ }));
319
+ var urIngestSessionPlmAcctProjectRelations = relations(urIngestSessionPlmAcctProject, ({ one, many }) => ({
320
+ uniformResources: many(uniformResource),
321
+ urIngestSessionPlmAccount: one(urIngestSessionPlmAccount, {
322
+ fields: [urIngestSessionPlmAcctProject.ingestAccountId],
323
+ references: [urIngestSessionPlmAccount.urIngestSessionPlmAccountId]
324
+ }),
325
+ urIngestSession: one(urIngestSession, {
326
+ fields: [urIngestSessionPlmAcctProject.ingestSessionId],
327
+ references: [urIngestSession.urIngestSessionId]
328
+ }),
329
+ urIngestSessionPlmAcctProjectIssues: many(urIngestSessionPlmAcctProjectIssue),
330
+ urIngestSessionPlmAcctLabels: many(urIngestSessionPlmAcctLabel),
331
+ urIngestSessionPlmMilestones: many(urIngestSessionPlmMilestone),
332
+ urIngestSessionPlmAcctRelationships: many(urIngestSessionPlmAcctRelationship)
333
+ }));
334
+ var urIngestSessionImapAcctFolderMessageRelations = relations(urIngestSessionImapAcctFolderMessage, ({ one, many }) => ({
335
+ uniformResources: many(uniformResource),
336
+ urIngestSessionImapAcctFolder: one(urIngestSessionImapAcctFolder, {
337
+ fields: [urIngestSessionImapAcctFolderMessage.ingestImapAcctFolderId],
338
+ references: [urIngestSessionImapAcctFolder.urIngestSessionImapAcctFolderId]
339
+ }),
340
+ urIngestSession: one(urIngestSession, {
341
+ fields: [urIngestSessionImapAcctFolderMessage.ingestSessionId],
342
+ references: [urIngestSession.urIngestSessionId]
343
+ })
344
+ }));
345
+ var uniformResourceTransformRelations = relations(uniformResourceTransform, ({ one }) => ({
346
+ uniformResource: one(uniformResource, {
347
+ fields: [uniformResourceTransform.uniformResourceId],
348
+ references: [uniformResource.uniformResourceId]
349
+ })
350
+ }));
351
+ var urIngestSessionFsPathEntryRelations = relations(urIngestSessionFsPathEntry, ({ one }) => ({
352
+ uniformResource: one(uniformResource, {
353
+ fields: [urIngestSessionFsPathEntry.uniformResourceId],
354
+ references: [uniformResource.uniformResourceId]
355
+ }),
356
+ urIngestSessionFsPath: one(urIngestSessionFsPath, {
357
+ fields: [urIngestSessionFsPathEntry.ingestFsPathId],
358
+ references: [urIngestSessionFsPath.urIngestSessionFsPathId]
359
+ }),
360
+ urIngestSession: one(urIngestSession, {
361
+ fields: [urIngestSessionFsPathEntry.ingestSessionId],
362
+ references: [urIngestSession.urIngestSessionId]
363
+ })
364
+ }));
365
+ var urIngestSessionTaskRelations = relations(urIngestSessionTask, ({ one }) => ({
366
+ uniformResource: one(uniformResource, {
367
+ fields: [urIngestSessionTask.uniformResourceId],
368
+ references: [uniformResource.uniformResourceId]
369
+ }),
370
+ urIngestSession: one(urIngestSession, {
371
+ fields: [urIngestSessionTask.ingestSessionId],
372
+ references: [urIngestSession.urIngestSessionId]
373
+ })
374
+ }));
375
+ var urIngestSessionImapAccountRelations = relations(urIngestSessionImapAccount, ({ one, many }) => ({
376
+ urIngestSession: one(urIngestSession, {
377
+ fields: [urIngestSessionImapAccount.ingestSessionId],
378
+ references: [urIngestSession.urIngestSessionId]
379
+ }),
380
+ urIngestSessionImapAcctFolders: many(urIngestSessionImapAcctFolder)
381
+ }));
382
+ var urIngestSessionImapAcctFolderRelations = relations(urIngestSessionImapAcctFolder, ({ one, many }) => ({
383
+ urIngestSessionImapAccount: one(urIngestSessionImapAccount, {
384
+ fields: [urIngestSessionImapAcctFolder.ingestAccountId],
385
+ references: [urIngestSessionImapAccount.urIngestSessionImapAccountId]
386
+ }),
387
+ urIngestSession: one(urIngestSession, {
388
+ fields: [urIngestSessionImapAcctFolder.ingestSessionId],
389
+ references: [urIngestSession.urIngestSessionId]
390
+ }),
391
+ urIngestSessionImapAcctFolderMessages: many(urIngestSessionImapAcctFolderMessage)
392
+ }));
393
+ var urIngestSessionPlmAccountRelations = relations(urIngestSessionPlmAccount, ({ one, many }) => ({
394
+ urIngestSession: one(urIngestSession, {
395
+ fields: [urIngestSessionPlmAccount.ingestSessionId],
396
+ references: [urIngestSession.urIngestSessionId]
397
+ }),
398
+ urIngestSessionPlmAcctProjects: many(urIngestSessionPlmAcctProject)
399
+ }));
400
+ var urIngestSessionPlmAcctProjectIssueRelations = relations(urIngestSessionPlmAcctProjectIssue, ({ one, many }) => ({
401
+ urIngestSessionPlmIssueType: one(urIngestSessionPlmIssueType, {
402
+ fields: [urIngestSessionPlmAcctProjectIssue.issueTypeId],
403
+ references: [urIngestSessionPlmIssueType.urIngestSessionPlmIssueTypeId]
404
+ }),
405
+ urIngestSessionPlmUser: one(urIngestSessionPlmUser, {
406
+ fields: [urIngestSessionPlmAcctProjectIssue.user],
407
+ references: [urIngestSessionPlmUser.urIngestSessionPlmUserId]
408
+ }),
409
+ uniformResource: one(uniformResource, {
410
+ fields: [urIngestSessionPlmAcctProjectIssue.uniformResourceId],
411
+ references: [uniformResource.uniformResourceId]
412
+ }),
413
+ urIngestSessionPlmAcctProject: one(urIngestSessionPlmAcctProject, {
414
+ fields: [urIngestSessionPlmAcctProjectIssue.urIngestSessionPlmAcctProjectId],
415
+ references: [urIngestSessionPlmAcctProject.urIngestSessionPlmAcctProjectId]
416
+ }),
417
+ urIngestSession: one(urIngestSession, {
418
+ fields: [urIngestSessionPlmAcctProjectIssue.ingestSessionId],
419
+ references: [urIngestSession.urIngestSessionId]
420
+ }),
421
+ urIngestSessionPlmAcctLabels: many(urIngestSessionPlmAcctLabel),
422
+ urIngestSessionPlmAcctRelationships: many(urIngestSessionPlmAcctRelationship),
423
+ urIngestSessionPlmComments: many(urIngestSessionPlmComment),
424
+ urIngestSessionPlmIssueReactions: many(urIngestSessionPlmIssueReaction)
425
+ }));
426
+ var urIngestSessionPlmIssueTypeRelations = relations(urIngestSessionPlmIssueType, ({ many }) => ({
427
+ urIngestSessionPlmAcctProjectIssues: many(urIngestSessionPlmAcctProjectIssue)
428
+ }));
429
+ var urIngestSessionPlmUserRelations = relations(urIngestSessionPlmUser, ({ many }) => ({
430
+ urIngestSessionPlmAcctProjectIssues: many(urIngestSessionPlmAcctProjectIssue),
431
+ urIngestSessionPlmComments: many(urIngestSessionPlmComment)
432
+ }));
433
+ var urIngestSessionPlmAcctLabelRelations = relations(urIngestSessionPlmAcctLabel, ({ one }) => ({
434
+ urIngestSessionPlmAcctProjectIssue: one(urIngestSessionPlmAcctProjectIssue, {
435
+ fields: [urIngestSessionPlmAcctLabel.urIngestSessionPlmAcctProjectIssueId],
436
+ references: [urIngestSessionPlmAcctProjectIssue.urIngestSessionPlmAcctProjectIssueId]
437
+ }),
438
+ urIngestSessionPlmAcctProject: one(urIngestSessionPlmAcctProject, {
439
+ fields: [urIngestSessionPlmAcctLabel.urIngestSessionPlmAcctProjectId],
440
+ references: [urIngestSessionPlmAcctProject.urIngestSessionPlmAcctProjectId]
441
+ })
442
+ }));
443
+ var urIngestSessionPlmMilestoneRelations = relations(urIngestSessionPlmMilestone, ({ one }) => ({
444
+ urIngestSessionPlmAcctProject: one(urIngestSessionPlmAcctProject, {
445
+ fields: [urIngestSessionPlmMilestone.urIngestSessionPlmAcctProjectId],
446
+ references: [urIngestSessionPlmAcctProject.urIngestSessionPlmAcctProjectId]
447
+ })
448
+ }));
449
+ var urIngestSessionPlmAcctRelationshipRelations = relations(urIngestSessionPlmAcctRelationship, ({ one }) => ({
450
+ urIngestSessionPlmAcctProjectIssue: one(urIngestSessionPlmAcctProjectIssue, {
451
+ fields: [urIngestSessionPlmAcctRelationship.urIngestSessionPlmAcctProjectIssueIdPrime],
452
+ references: [urIngestSessionPlmAcctProjectIssue.urIngestSessionPlmAcctProjectIssueId]
453
+ }),
454
+ urIngestSessionPlmAcctProject: one(urIngestSessionPlmAcctProject, {
455
+ fields: [urIngestSessionPlmAcctRelationship.urIngestSessionPlmAcctProjectIdPrime],
456
+ references: [urIngestSessionPlmAcctProject.urIngestSessionPlmAcctProjectId]
457
+ })
458
+ }));
459
+ var urIngestSessionPlmCommentRelations = relations(urIngestSessionPlmComment, ({ one }) => ({
460
+ urIngestSessionPlmUser: one(urIngestSessionPlmUser, {
461
+ fields: [urIngestSessionPlmComment.user],
462
+ references: [urIngestSessionPlmUser.urIngestSessionPlmUserId]
463
+ }),
464
+ urIngestSessionPlmAcctProjectIssue: one(urIngestSessionPlmAcctProjectIssue, {
465
+ fields: [urIngestSessionPlmComment.urIngestSessionPlmAcctProjectIssueId],
466
+ references: [urIngestSessionPlmAcctProjectIssue.urIngestSessionPlmAcctProjectIssueId]
467
+ })
468
+ }));
469
+ var urIngestSessionPlmIssueReactionRelations = relations(urIngestSessionPlmIssueReaction, ({ one }) => ({
470
+ urIngestSessionPlmAcctProjectIssue: one(urIngestSessionPlmAcctProjectIssue, {
471
+ fields: [urIngestSessionPlmIssueReaction.urIngestPlmIssueId],
472
+ references: [urIngestSessionPlmAcctProjectIssue.urIngestSessionPlmAcctProjectIssueId]
473
+ }),
474
+ urIngestSessionPlmReaction: one(urIngestSessionPlmReaction, {
475
+ fields: [urIngestSessionPlmIssueReaction.urIngestPlmReactionId],
476
+ references: [urIngestSessionPlmReaction.urIngestSessionPlmReactionId]
477
+ })
478
+ }));
479
+ var urIngestSessionPlmReactionRelations = relations(urIngestSessionPlmReaction, ({ many }) => ({
480
+ urIngestSessionPlmIssueReactions: many(urIngestSessionPlmIssueReaction)
481
+ }));
482
+ var urIngestSessionAttachmentRelations = relations(urIngestSessionAttachment, ({ one }) => ({
483
+ uniformResource: one(uniformResource, {
484
+ fields: [urIngestSessionAttachment.uniformResourceId],
485
+ references: [uniformResource.uniformResourceId]
486
+ })
487
+ }));
488
+ var urIngestSessionUdiPgpSqlRelations = relations(urIngestSessionUdiPgpSql, ({ one }) => ({
489
+ urIngestSession: one(urIngestSession, {
490
+ fields: [urIngestSessionUdiPgpSql.ingestSessionId],
491
+ references: [urIngestSession.urIngestSessionId]
492
+ }),
493
+ uniformResource: one(uniformResource, {
494
+ fields: [urIngestSessionUdiPgpSql.uniformResourceId],
495
+ references: [uniformResource.uniformResourceId]
496
+ })
497
+ }));
498
+ var orchestrationSessionRelations = relations(orchestrationSession, ({ one, many }) => ({
499
+ orchestrationNature: one(orchestrationNature, {
500
+ fields: [orchestrationSession.orchestrationNatureId],
501
+ references: [orchestrationNature.orchestrationNatureId]
502
+ }),
503
+ device: one(device, {
504
+ fields: [orchestrationSession.deviceId],
505
+ references: [device.deviceId]
506
+ }),
507
+ orchestrationSessionEntries: many(orchestrationSessionEntry),
508
+ orchestrationSessionStates: many(orchestrationSessionState),
509
+ orchestrationSessionExecs: many(orchestrationSessionExec),
510
+ orchestrationSessionIssues: many(orchestrationSessionIssue)
511
+ }));
512
+ var orchestrationNatureRelations = relations(orchestrationNature, ({ many }) => ({
513
+ orchestrationSessions: many(orchestrationSession)
514
+ }));
515
+ var orchestrationSessionEntryRelations = relations(orchestrationSessionEntry, ({ one, many }) => ({
516
+ orchestrationSession: one(orchestrationSession, {
517
+ fields: [orchestrationSessionEntry.sessionId],
518
+ references: [orchestrationSession.orchestrationSessionId]
519
+ }),
520
+ orchestrationSessionStates: many(orchestrationSessionState),
521
+ orchestrationSessionExecs: many(orchestrationSessionExec),
522
+ orchestrationSessionIssues: many(orchestrationSessionIssue)
523
+ }));
524
+ var orchestrationSessionStateRelations = relations(orchestrationSessionState, ({ one }) => ({
525
+ orchestrationSessionEntry: one(orchestrationSessionEntry, {
526
+ fields: [orchestrationSessionState.sessionEntryId],
527
+ references: [orchestrationSessionEntry.orchestrationSessionEntryId]
528
+ }),
529
+ orchestrationSession: one(orchestrationSession, {
530
+ fields: [orchestrationSessionState.sessionId],
531
+ references: [orchestrationSession.orchestrationSessionId]
532
+ })
533
+ }));
534
+ var orchestrationSessionExecRelations = relations(orchestrationSessionExec, ({ one, many }) => ({
535
+ orchestrationSessionExec: one(orchestrationSessionExec, {
536
+ fields: [orchestrationSessionExec.parentExecId],
537
+ references: [orchestrationSessionExec.orchestrationSessionExecId],
538
+ relationName: "orchestrationSessionExec_parentExecId_orchestrationSessionExec_orchestrationSessionExecId"
539
+ }),
540
+ orchestrationSessionExecs: many(orchestrationSessionExec, {
541
+ relationName: "orchestrationSessionExec_parentExecId_orchestrationSessionExec_orchestrationSessionExecId"
542
+ }),
543
+ orchestrationSessionEntry: one(orchestrationSessionEntry, {
544
+ fields: [orchestrationSessionExec.sessionEntryId],
545
+ references: [orchestrationSessionEntry.orchestrationSessionEntryId]
546
+ }),
547
+ orchestrationSession: one(orchestrationSession, {
548
+ fields: [orchestrationSessionExec.sessionId],
549
+ references: [orchestrationSession.orchestrationSessionId]
550
+ })
551
+ }));
552
+ var orchestrationSessionIssueRelations = relations(orchestrationSessionIssue, ({ one, many }) => ({
553
+ orchestrationSessionEntry: one(orchestrationSessionEntry, {
554
+ fields: [orchestrationSessionIssue.sessionEntryId],
555
+ references: [orchestrationSessionEntry.orchestrationSessionEntryId]
556
+ }),
557
+ orchestrationSession: one(orchestrationSession, {
558
+ fields: [orchestrationSessionIssue.sessionId],
559
+ references: [orchestrationSession.orchestrationSessionId]
560
+ }),
561
+ orchestrationSessionIssueRelations: many(orchestrationSessionIssueRelation)
562
+ }));
563
+ var orchestrationSessionIssueRelationRelations = relations(orchestrationSessionIssueRelation, ({ one }) => ({
564
+ orchestrationSessionIssue: one(orchestrationSessionIssue, {
565
+ fields: [orchestrationSessionIssueRelation.issueIdPrime],
566
+ references: [orchestrationSessionIssue.orchestrationSessionIssueId]
567
+ })
568
+ }));
569
+ var orchestrationSessionLogRelations = relations(orchestrationSessionLog, ({ one, many }) => ({
570
+ orchestrationSessionLog: one(orchestrationSessionLog, {
571
+ fields: [orchestrationSessionLog.parentExecId],
572
+ references: [orchestrationSessionLog.orchestrationSessionLogId],
573
+ relationName: "orchestrationSessionLog_parentExecId_orchestrationSessionLog_orchestrationSessionLogId"
574
+ }),
575
+ orchestrationSessionLogs: many(orchestrationSessionLog, {
576
+ relationName: "orchestrationSessionLog_parentExecId_orchestrationSessionLog_orchestrationSessionLogId"
577
+ })
578
+ }));
579
+ var uniformResourceEdgeRelations = relations(uniformResourceEdge, ({ one }) => ({
580
+ uniformResource: one(uniformResource, {
581
+ fields: [uniformResourceEdge.uniformResourceId],
582
+ references: [uniformResource.uniformResourceId]
583
+ }),
584
+ uniformResourceGraph: one(uniformResourceGraph, {
585
+ fields: [uniformResourceEdge.graphName],
586
+ references: [uniformResourceGraph.name]
587
+ })
588
+ }));
589
+ var uniformResourceGraphRelations = relations(uniformResourceGraph, ({ many }) => ({
590
+ uniformResourceEdges: many(uniformResourceEdge)
591
+ }));
592
+ var surveilrOsqueryMsNodeRelations = relations(surveilrOsqueryMsNode, ({ one, many }) => ({
593
+ behavior: one(behavior, {
594
+ fields: [surveilrOsqueryMsNode.behaviorId],
595
+ references: [behavior.behaviorId]
596
+ }),
597
+ device: one(device, {
598
+ fields: [surveilrOsqueryMsNode.deviceId],
599
+ references: [device.deviceId]
600
+ }),
601
+ urIngestSessionOsqueryMsLogs: many(urIngestSessionOsqueryMsLog),
602
+ surveilrOsqueryMsDistributedQueries: many(surveilrOsqueryMsDistributedQuery),
603
+ surveilrOsqueryMsDistributedResults: many(surveilrOsqueryMsDistributedResult),
604
+ surveilrOsqueryMsCarves: many(surveilrOsqueryMsCarve)
605
+ }));
606
+ var urIngestSessionOsqueryMsLogRelations = relations(urIngestSessionOsqueryMsLog, ({ one }) => ({
607
+ surveilrOsqueryMsNode: one(surveilrOsqueryMsNode, {
608
+ fields: [urIngestSessionOsqueryMsLog.nodeKey],
609
+ references: [surveilrOsqueryMsNode.nodeKey]
610
+ })
611
+ }));
612
+ var surveilrOsqueryMsDistributedQueryRelations = relations(surveilrOsqueryMsDistributedQuery, ({ one, many }) => ({
613
+ surveilrOsqueryMsNode: one(surveilrOsqueryMsNode, {
614
+ fields: [surveilrOsqueryMsDistributedQuery.nodeKey],
615
+ references: [surveilrOsqueryMsNode.nodeKey]
616
+ }),
617
+ surveilrOsqueryMsDistributedResults: many(surveilrOsqueryMsDistributedResult)
618
+ }));
619
+ var surveilrOsqueryMsDistributedResultRelations = relations(surveilrOsqueryMsDistributedResult, ({ one }) => ({
620
+ surveilrOsqueryMsNode: one(surveilrOsqueryMsNode, {
621
+ fields: [surveilrOsqueryMsDistributedResult.nodeKey],
622
+ references: [surveilrOsqueryMsNode.nodeKey]
623
+ }),
624
+ surveilrOsqueryMsDistributedQuery: one(surveilrOsqueryMsDistributedQuery, {
625
+ fields: [surveilrOsqueryMsDistributedResult.queryId],
626
+ references: [surveilrOsqueryMsDistributedQuery.queryId]
627
+ })
628
+ }));
629
+ var surveilrOsqueryMsCarveRelations = relations(surveilrOsqueryMsCarve, ({ one, many }) => ({
630
+ surveilrOsqueryMsNode: one(surveilrOsqueryMsNode, {
631
+ fields: [surveilrOsqueryMsCarve.nodeKey],
632
+ references: [surveilrOsqueryMsNode.nodeKey]
633
+ }),
634
+ surveilrOsqueryMsCarvedExtractedFiles: many(surveilrOsqueryMsCarvedExtractedFile)
635
+ }));
636
+ var surveilrOsqueryMsCarvedExtractedFileRelations = relations(surveilrOsqueryMsCarvedExtractedFile, ({ one }) => ({
637
+ surveilrOsqueryMsCarve: one(surveilrOsqueryMsCarve, {
638
+ fields: [surveilrOsqueryMsCarvedExtractedFile.carveGuid],
639
+ references: [surveilrOsqueryMsCarve.carveGuid]
640
+ })
641
+ }));
642
+ export {
643
+ assuranceSchema,
644
+ assuranceSchemaRelations,
645
+ behavior,
646
+ behaviorRelations,
647
+ checkJSON,
648
+ codeNotebookCell,
649
+ codeNotebookCellLatest,
650
+ codeNotebookCellRelations,
651
+ codeNotebookCellVersions,
652
+ codeNotebookKernel,
653
+ codeNotebookKernelRelations,
654
+ codeNotebookMigrationSql,
655
+ codeNotebookSqlCellMigratable,
656
+ codeNotebookSqlCellMigratableNotExecuted,
657
+ codeNotebookSqlCellMigratableState,
658
+ codeNotebookSqlCellMigratableVersion,
659
+ codeNotebookState,
660
+ codeNotebookStateRelations,
661
+ consoleContentTabular,
662
+ consoleInformationSchemaTable,
663
+ consoleInformationSchemaTableColFkey,
664
+ consoleInformationSchemaTableColIndex,
665
+ consoleInformationSchemaView,
666
+ device,
667
+ deviceGraphAnalytics,
668
+ deviceGraphCorrelations,
669
+ deviceGraphOverview,
670
+ devicePartyRelationship,
671
+ devicePartyRelationshipRelations,
672
+ deviceRelations,
673
+ emailMessagesWithTimezone,
674
+ filesystemGraph,
675
+ genderType,
676
+ genderTypeRelations,
677
+ housekeeping,
678
+ imapGraph,
679
+ networkDeviceTopology,
680
+ orchestrationExecutionSuccessRateByType,
681
+ orchestrationExecutionsByType,
682
+ orchestrationIssueRemediation,
683
+ orchestrationLogsBySession,
684
+ orchestrationNature,
685
+ orchestrationNatureRelations,
686
+ orchestrationSession,
687
+ orchestrationSessionByDevice,
688
+ orchestrationSessionDuration,
689
+ orchestrationSessionEntry,
690
+ orchestrationSessionEntryRelations,
691
+ orchestrationSessionExec,
692
+ orchestrationSessionExecRelations,
693
+ orchestrationSessionIssue,
694
+ orchestrationSessionIssueRelation,
695
+ orchestrationSessionIssueRelationRelations,
696
+ orchestrationSessionIssueRelations,
697
+ orchestrationSessionLog,
698
+ orchestrationSessionLogRelations,
699
+ orchestrationSessionRelations,
700
+ orchestrationSessionScript,
701
+ orchestrationSessionState,
702
+ orchestrationSessionStateRelations,
703
+ orchestrationSessionSummary,
704
+ orchestrationSuccessRate,
705
+ organization,
706
+ organizationRelations,
707
+ organizationRole,
708
+ organizationRoleRelations,
709
+ organizationRoleType,
710
+ organizationRoleTypeRelations,
711
+ osqueryPolicy,
712
+ party,
713
+ partyRelation,
714
+ partyRelationRelations,
715
+ partyRelationType,
716
+ partyRelationTypeRelations,
717
+ partyRelations,
718
+ partyType,
719
+ partyTypeRelations,
720
+ person,
721
+ personRelations,
722
+ personType,
723
+ personTypeRelations,
724
+ rssdStatisticsOverview,
725
+ rssdTableStatistic,
726
+ sexType,
727
+ sexTypeRelations,
728
+ snmpCollectionSummary,
729
+ snmpDeviceInventory,
730
+ snmpOidPerformance,
731
+ sqleanDefine,
732
+ sqlpageAideNavigation,
733
+ sqlpageFiles,
734
+ surveilrFunctionDoc,
735
+ surveilrOsqueryMsCarve,
736
+ surveilrOsqueryMsCarveRelations,
737
+ surveilrOsqueryMsCarvedExtractedFile,
738
+ surveilrOsqueryMsCarvedExtractedFileRelations,
739
+ surveilrOsqueryMsDistributedQuery,
740
+ surveilrOsqueryMsDistributedQueryRelations,
741
+ surveilrOsqueryMsDistributedResult,
742
+ surveilrOsqueryMsDistributedResultRelations,
743
+ surveilrOsqueryMsNode,
744
+ surveilrOsqueryMsNodeRelations,
745
+ surveilrSnmpCollection,
746
+ surveilrSnmpDevice,
747
+ surveilrTableSize,
748
+ uniformResource,
749
+ uniformResourceEdge,
750
+ uniformResourceEdgeRelations,
751
+ uniformResourceFile,
752
+ uniformResourceGraph,
753
+ uniformResourceGraphRelations,
754
+ uniformResourceImap,
755
+ uniformResourceImapContent,
756
+ uniformResourceRelations,
757
+ uniformResourceTransform,
758
+ uniformResourceTransformRelations,
759
+ urIngestResourcePathMatchRule,
760
+ urIngestResourcePathRewriteRule,
761
+ urIngestSession,
762
+ urIngestSessionAttachment,
763
+ urIngestSessionAttachmentRelations,
764
+ urIngestSessionFileIssue,
765
+ urIngestSessionFilesStats,
766
+ urIngestSessionFilesStatsLatest,
767
+ urIngestSessionFsPath,
768
+ urIngestSessionFsPathEntry,
769
+ urIngestSessionFsPathEntryRelations,
770
+ urIngestSessionFsPathRelations,
771
+ urIngestSessionImapAccount,
772
+ urIngestSessionImapAccountRelations,
773
+ urIngestSessionImapAcctFolder,
774
+ urIngestSessionImapAcctFolderMessage,
775
+ urIngestSessionImapAcctFolderMessageRelations,
776
+ urIngestSessionImapAcctFolderRelations,
777
+ urIngestSessionOsqueryMsLog,
778
+ urIngestSessionOsqueryMsLogRelations,
779
+ urIngestSessionPlmAccount,
780
+ urIngestSessionPlmAccountRelations,
781
+ urIngestSessionPlmAcctLabel,
782
+ urIngestSessionPlmAcctLabelRelations,
783
+ urIngestSessionPlmAcctProject,
784
+ urIngestSessionPlmAcctProjectIssue,
785
+ urIngestSessionPlmAcctProjectIssueRelations,
786
+ urIngestSessionPlmAcctProjectRelations,
787
+ urIngestSessionPlmAcctRelationship,
788
+ urIngestSessionPlmAcctRelationshipRelations,
789
+ urIngestSessionPlmComment,
790
+ urIngestSessionPlmCommentRelations,
791
+ urIngestSessionPlmIssueReaction,
792
+ urIngestSessionPlmIssueReactionRelations,
793
+ urIngestSessionPlmIssueType,
794
+ urIngestSessionPlmIssueTypeRelations,
795
+ urIngestSessionPlmMilestone,
796
+ urIngestSessionPlmMilestoneRelations,
797
+ urIngestSessionPlmReaction,
798
+ urIngestSessionPlmReactionRelations,
799
+ urIngestSessionPlmUser,
800
+ urIngestSessionPlmUserRelations,
801
+ urIngestSessionRelations,
802
+ urIngestSessionTask,
803
+ urIngestSessionTaskRelations,
804
+ urIngestSessionTasksStats,
805
+ urIngestSessionTasksStatsLatest,
806
+ urIngestSessionUdiPgpSql,
807
+ urIngestSessionUdiPgpSqlRelations
808
+ };