@mastra/core 0.1.12 → 0.1.13

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 (43) hide show
  1. package/dist/agents/file-logger.d.ts +0 -13
  2. package/dist/agents/file-logger.d.ts.map +1 -1
  3. package/dist/agents/index.d.ts.map +1 -1
  4. package/dist/agents/openai/assistant.d.ts +16 -3
  5. package/dist/agents/openai/assistant.d.ts.map +1 -1
  6. package/dist/agents/vector-sync.d.ts +3 -0
  7. package/dist/agents/vector-sync.d.ts.map +1 -1
  8. package/dist/core.cjs.development.js +1243 -1132
  9. package/dist/core.cjs.development.js.map +1 -1
  10. package/dist/core.cjs.production.min.js +1 -1
  11. package/dist/core.cjs.production.min.js.map +1 -1
  12. package/dist/core.esm.js +1241 -1135
  13. package/dist/core.esm.js.map +1 -1
  14. package/dist/framework.d.ts +8 -3
  15. package/dist/framework.d.ts.map +1 -1
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/integration.d.ts.map +1 -1
  19. package/dist/lib/index.d.ts +1 -0
  20. package/dist/lib/index.d.ts.map +1 -1
  21. package/dist/lib/logger-utils/logger.d.ts +98 -0
  22. package/dist/lib/logger-utils/logger.d.ts.map +1 -0
  23. package/dist/next/cron.d.ts +13 -0
  24. package/dist/next/cron.d.ts.map +1 -0
  25. package/dist/next/index.d.ts.map +1 -1
  26. package/dist/schemas.d.ts +13 -0
  27. package/dist/schemas.d.ts.map +1 -1
  28. package/dist/types.d.ts +5 -2
  29. package/dist/types.d.ts.map +1 -1
  30. package/dist/utils/index.d.ts +2 -0
  31. package/dist/utils/index.d.ts.map +1 -1
  32. package/dist/utils/text.d.ts +2 -0
  33. package/dist/utils/text.d.ts.map +1 -0
  34. package/dist/workflows/apis.d.ts +9 -0
  35. package/dist/workflows/apis.d.ts.map +1 -0
  36. package/dist/workflows/handler.d.ts +8 -0
  37. package/dist/workflows/handler.d.ts.map +1 -1
  38. package/dist/workflows/runner.d.ts +3 -1
  39. package/dist/workflows/runner.d.ts.map +1 -1
  40. package/package.json +4 -4
  41. package/dist/prisma/client.ts +0 -31
  42. package/dist/prisma/gen.js +0 -139
  43. package/dist/prisma/schema.prisma +0 -129
@@ -1,139 +0,0 @@
1
- const { writeFileSync } = require('fs');
2
-
3
- const tmpl = `
4
- enum PropertyType {
5
- LONG_TEXT
6
- SINGLE_LINE_TEXT
7
- SINGLE_SELECT
8
- MULTI_SELECT
9
- CHECKBOX
10
- DATE
11
- USER
12
- BADGE_LIST
13
- CURRENCY
14
- URL
15
- PHONE
16
- CONTACT
17
- COMPANY
18
- PERSON
19
- ENRICHMENT
20
- COMPOSITE
21
- BOOLEAN
22
- NUMBER
23
- FLOAT
24
- JSON_OBJECT
25
- JSON_ARRAY
26
- }
27
-
28
- model Property {
29
- id String @id @default(cuid())
30
- name String
31
- displayName String
32
- visible Boolean @default(true)
33
- config Json?
34
- description String?
35
- type PropertyType
36
- order Int
37
- modifiable Boolean @default(true)
38
- parentId String? @map("parentId")
39
- parent Property? @relation("PropertyToProperty", fields: [parentId], references: [id])
40
- compositeProperty Property[] @relation("PropertyToProperty")
41
- entity Entity? @relation(fields: [entityId], references: [id])
42
- entityId String?
43
- @@map("properties")
44
- }
45
-
46
- enum RecordStatus {
47
- ACTIVE
48
- ARCHIVED
49
- }
50
-
51
- enum RecordEnrichmentStatus {
52
- PENDING
53
- APPLIED
54
- UNAPPLIED
55
- FAILED
56
- }
57
-
58
- model Record {
59
- id String @id @default(cuid())
60
- externalId String?
61
- data Json @default("{}")
62
- source String @default("MANUAL")
63
- entityType String
64
- entity Entity? @relation(fields: [entityId], references: [id])
65
- entityId String?
66
- status RecordStatus @default(ACTIVE)
67
- enrichmentStatus RecordEnrichmentStatus @default(UNAPPLIED)
68
- deletedAt DateTime?
69
- createdAt DateTime @default(now())
70
- updatedAt DateTime? @default(now())
71
-
72
- @@index([externalId])
73
- @@map("records")
74
- }
75
-
76
- model Credential {
77
- id String @id @default(cuid())
78
- type String
79
- value Json
80
- scope String[]
81
- connection Connection @relation(fields: [k_id], references: [id], onDelete: Cascade)
82
- k_id String @unique
83
- @@map("credentials")
84
- }
85
-
86
- model Connection {
87
- id String @id @default(cuid())
88
- name String
89
- issues String[] @default([])
90
- syncConfig Json?
91
- connectionId String
92
- createdAt DateTime @default(now())
93
- updatedAt DateTime? @updatedAt
94
-
95
- lastSyncAt DateTime?
96
- credential Credential?
97
- subscriptionId String?
98
- entities Entity[]
99
- @@unique([connectionId, name])
100
- @@index([subscriptionId])
101
- @@map("connections")
102
- }
103
-
104
- model Entity {
105
- id String @id @default(cuid())
106
- type String
107
- properties Property[]
108
- records Record[]
109
-
110
- createdAt DateTime @default(now())
111
- updatedAt DateTime? @default(now())
112
- createdBy String
113
-
114
- connection Connection @relation(fields: [k_id], references: [id])
115
- k_id String
116
-
117
- lastSyncId String?
118
- @@unique([k_id, type])
119
- @@map("entity")
120
- }
121
- `;
122
-
123
- function main() {
124
- const schema = `
125
- datasource db {
126
- provider = "postgresql"
127
- url = env("DB_URL")
128
- }
129
- generator client {
130
- provider = "prisma-client-js"
131
- output = "../../node_modules/@prisma-app/client"
132
- }
133
- ${tmpl}
134
- `;
135
-
136
- writeFileSync(__dirname + '/schema.prisma', schema);
137
- }
138
-
139
- main();
@@ -1,129 +0,0 @@
1
-
2
- datasource db {
3
- provider = "postgresql"
4
- url = env("DB_URL")
5
- }
6
- generator client {
7
- provider = "prisma-client-js"
8
- output = "../../node_modules/@prisma-app/client"
9
- }
10
-
11
- enum PropertyType {
12
- LONG_TEXT
13
- SINGLE_LINE_TEXT
14
- SINGLE_SELECT
15
- MULTI_SELECT
16
- CHECKBOX
17
- DATE
18
- USER
19
- BADGE_LIST
20
- CURRENCY
21
- URL
22
- PHONE
23
- CONTACT
24
- COMPANY
25
- PERSON
26
- ENRICHMENT
27
- COMPOSITE
28
- BOOLEAN
29
- NUMBER
30
- FLOAT
31
- JSON_OBJECT
32
- JSON_ARRAY
33
- }
34
-
35
- model Property {
36
- id String @id @default(cuid())
37
- name String
38
- displayName String
39
- visible Boolean @default(true)
40
- config Json?
41
- description String?
42
- type PropertyType
43
- order Int
44
- modifiable Boolean @default(true)
45
- parentId String? @map("parentId")
46
- parent Property? @relation("PropertyToProperty", fields: [parentId], references: [id])
47
- compositeProperty Property[] @relation("PropertyToProperty")
48
- entity Entity? @relation(fields: [entityId], references: [id])
49
- entityId String?
50
- @@map("properties")
51
- }
52
-
53
- enum RecordStatus {
54
- ACTIVE
55
- ARCHIVED
56
- }
57
-
58
- enum RecordEnrichmentStatus {
59
- PENDING
60
- APPLIED
61
- UNAPPLIED
62
- FAILED
63
- }
64
-
65
- model Record {
66
- id String @id @default(cuid())
67
- externalId String?
68
- data Json @default("{}")
69
- source String @default("MANUAL")
70
- entityType String
71
- entity Entity? @relation(fields: [entityId], references: [id])
72
- entityId String?
73
- status RecordStatus @default(ACTIVE)
74
- enrichmentStatus RecordEnrichmentStatus @default(UNAPPLIED)
75
- deletedAt DateTime?
76
- createdAt DateTime @default(now())
77
- updatedAt DateTime? @default(now())
78
-
79
- @@index([externalId])
80
- @@map("records")
81
- }
82
-
83
- model Credential {
84
- id String @id @default(cuid())
85
- type String
86
- value Json
87
- scope String[]
88
- connection Connection @relation(fields: [k_id], references: [id], onDelete: Cascade)
89
- k_id String @unique
90
- @@map("credentials")
91
- }
92
-
93
- model Connection {
94
- id String @id @default(cuid())
95
- name String
96
- issues String[] @default([])
97
- syncConfig Json?
98
- connectionId String
99
- createdAt DateTime @default(now())
100
- updatedAt DateTime? @updatedAt
101
-
102
- lastSyncAt DateTime?
103
- credential Credential?
104
- subscriptionId String?
105
- entities Entity[]
106
- @@unique([connectionId, name])
107
- @@index([subscriptionId])
108
- @@map("connections")
109
- }
110
-
111
- model Entity {
112
- id String @id @default(cuid())
113
- type String
114
- properties Property[]
115
- records Record[]
116
-
117
- createdAt DateTime @default(now())
118
- updatedAt DateTime? @default(now())
119
- createdBy String
120
-
121
- connection Connection @relation(fields: [k_id], references: [id])
122
- k_id String
123
-
124
- lastSyncId String?
125
- @@unique([k_id, type])
126
- @@map("entity")
127
- }
128
-
129
-