@synap-core/api-types 1.0.18 → 1.0.19
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.d.ts +128 -128
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ declare interface Context {
|
|
|
30
30
|
/**
|
|
31
31
|
* Core API Router
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
declare const coreRouter: TRPCBuiltRouter< {
|
|
34
34
|
ctx: Context;
|
|
35
35
|
meta: object;
|
|
36
36
|
errorShape: TRPCDefaultErrorShape;
|
|
@@ -59,8 +59,8 @@ transformer: false;
|
|
|
59
59
|
}, TRPCDecorateCreateRouterOptions< {
|
|
60
60
|
log: TRPCMutationProcedure< {
|
|
61
61
|
input: {
|
|
62
|
-
version: number;
|
|
63
62
|
data: Record<string, unknown>;
|
|
63
|
+
version: number;
|
|
64
64
|
subjectId: string;
|
|
65
65
|
subjectType: "user" | "entity" | "relation" | "system";
|
|
66
66
|
eventType: string;
|
|
@@ -74,8 +74,8 @@ meta: object;
|
|
|
74
74
|
}>;
|
|
75
75
|
list: TRPCQueryProcedure< {
|
|
76
76
|
input: {
|
|
77
|
-
limit?: number | undefined;
|
|
78
77
|
type?: string | undefined;
|
|
78
|
+
limit?: number | undefined;
|
|
79
79
|
};
|
|
80
80
|
output: EventRecord[];
|
|
81
81
|
meta: object;
|
|
@@ -140,19 +140,19 @@ meta: object;
|
|
|
140
140
|
}>;
|
|
141
141
|
list: TRPCQueryProcedure< {
|
|
142
142
|
input: {
|
|
143
|
-
limit?: number | undefined;
|
|
144
143
|
type?: "task" | "contact" | "meeting" | "idea" | "note" | "project" | undefined;
|
|
144
|
+
limit?: number | undefined;
|
|
145
145
|
workspaceId?: string | undefined;
|
|
146
146
|
};
|
|
147
147
|
output: {
|
|
148
148
|
entities: {
|
|
149
|
+
type: string;
|
|
150
|
+
userId: string;
|
|
151
|
+
metadata: unknown;
|
|
149
152
|
version: number;
|
|
150
153
|
id: string;
|
|
151
154
|
createdAt: Date;
|
|
152
155
|
updatedAt: Date;
|
|
153
|
-
userId: string;
|
|
154
|
-
type: string;
|
|
155
|
-
metadata: unknown;
|
|
156
156
|
workspaceId: string;
|
|
157
157
|
projectIds: string[] | null;
|
|
158
158
|
title: string | null;
|
|
@@ -166,18 +166,18 @@ meta: object;
|
|
|
166
166
|
search: TRPCQueryProcedure< {
|
|
167
167
|
input: {
|
|
168
168
|
query: string;
|
|
169
|
-
limit?: number | undefined;
|
|
170
169
|
type?: "task" | "contact" | "meeting" | "idea" | "note" | "project" | undefined;
|
|
170
|
+
limit?: number | undefined;
|
|
171
171
|
};
|
|
172
172
|
output: {
|
|
173
173
|
entities: {
|
|
174
|
+
type: string;
|
|
175
|
+
userId: string;
|
|
176
|
+
metadata: unknown;
|
|
174
177
|
version: number;
|
|
175
178
|
id: string;
|
|
176
179
|
createdAt: Date;
|
|
177
180
|
updatedAt: Date;
|
|
178
|
-
userId: string;
|
|
179
|
-
type: string;
|
|
180
|
-
metadata: unknown;
|
|
181
181
|
workspaceId: string;
|
|
182
182
|
projectIds: string[] | null;
|
|
183
183
|
title: string | null;
|
|
@@ -194,13 +194,13 @@ id: string;
|
|
|
194
194
|
};
|
|
195
195
|
output: {
|
|
196
196
|
entity: {
|
|
197
|
+
type: string;
|
|
198
|
+
userId: string;
|
|
199
|
+
metadata: unknown;
|
|
197
200
|
version: number;
|
|
198
201
|
id: string;
|
|
199
202
|
createdAt: Date;
|
|
200
203
|
updatedAt: Date;
|
|
201
|
-
userId: string;
|
|
202
|
-
type: string;
|
|
203
|
-
metadata: unknown;
|
|
204
204
|
workspaceId: string;
|
|
205
205
|
projectIds: string[] | null;
|
|
206
206
|
title: string | null;
|
|
@@ -213,8 +213,8 @@ meta: object;
|
|
|
213
213
|
}>;
|
|
214
214
|
update: TRPCMutationProcedure< {
|
|
215
215
|
input: {
|
|
216
|
-
id: string;
|
|
217
216
|
type: string;
|
|
217
|
+
id: string;
|
|
218
218
|
workspaceId: string;
|
|
219
219
|
title?: string | null | undefined;
|
|
220
220
|
preview?: string | null | undefined;
|
|
@@ -384,9 +384,9 @@ meta: object;
|
|
|
384
384
|
}>;
|
|
385
385
|
publishEvent: TRPCMutationProcedure< {
|
|
386
386
|
input: {
|
|
387
|
-
data: Record<string, unknown>;
|
|
388
|
-
userId: string;
|
|
389
387
|
type: string;
|
|
388
|
+
userId: string;
|
|
389
|
+
data: Record<string, unknown>;
|
|
390
390
|
subjectId?: string | undefined;
|
|
391
391
|
source?: "system" | "api" | "automation" | "sync" | "migration" | undefined;
|
|
392
392
|
causationId?: string | undefined;
|
|
@@ -402,8 +402,8 @@ meta: object;
|
|
|
402
402
|
}>;
|
|
403
403
|
getRecentEvents: TRPCQueryProcedure< {
|
|
404
404
|
input: {
|
|
405
|
-
limit?: number | undefined;
|
|
406
405
|
userId?: string | undefined;
|
|
406
|
+
limit?: number | undefined;
|
|
407
407
|
eventType?: string | undefined;
|
|
408
408
|
since?: string | undefined;
|
|
409
409
|
};
|
|
@@ -468,9 +468,9 @@ meta: object;
|
|
|
468
468
|
}>;
|
|
469
469
|
searchEvents: TRPCQueryProcedure< {
|
|
470
470
|
input: {
|
|
471
|
+
userId?: string | undefined;
|
|
471
472
|
limit?: number | undefined;
|
|
472
473
|
offset?: number | undefined;
|
|
473
|
-
userId?: string | undefined;
|
|
474
474
|
subjectId?: string | undefined;
|
|
475
475
|
subjectType?: string | undefined;
|
|
476
476
|
eventType?: string | undefined;
|
|
@@ -592,7 +592,7 @@ transformer: false;
|
|
|
592
592
|
generateAccessToken: TRPCMutationProcedure< {
|
|
593
593
|
input: {
|
|
594
594
|
requestId: string;
|
|
595
|
-
scope: ("
|
|
595
|
+
scope: ("preferences" | "calendar" | "notes" | "tasks" | "projects" | "conversations" | "entities" | "relations" | "knowledge_facts")[];
|
|
596
596
|
expiresIn?: number | undefined;
|
|
597
597
|
};
|
|
598
598
|
output: {
|
|
@@ -606,15 +606,15 @@ requestData: TRPCQueryProcedure< {
|
|
|
606
606
|
input: {
|
|
607
607
|
[x: string]: unknown;
|
|
608
608
|
token: string;
|
|
609
|
-
scope: ("
|
|
609
|
+
scope: ("preferences" | "calendar" | "notes" | "tasks" | "projects" | "conversations" | "entities" | "relations" | "knowledge_facts")[];
|
|
610
610
|
filters?: {
|
|
611
|
-
limit?: number | undefined;
|
|
612
|
-
offset?: number | undefined;
|
|
613
|
-
entityTypes?: string[] | undefined;
|
|
614
611
|
dateRange?: {
|
|
615
612
|
start: string;
|
|
616
613
|
end: string;
|
|
617
614
|
} | undefined;
|
|
615
|
+
entityTypes?: string[] | undefined;
|
|
616
|
+
limit?: number | undefined;
|
|
617
|
+
offset?: number | undefined;
|
|
618
618
|
} | undefined;
|
|
619
619
|
};
|
|
620
620
|
output: {
|
|
@@ -623,7 +623,7 @@ requestId: string;
|
|
|
623
623
|
data: Record<string, unknown>;
|
|
624
624
|
metadata: {
|
|
625
625
|
retrievedAt: string;
|
|
626
|
-
scope: ("
|
|
626
|
+
scope: ("preferences" | "calendar" | "notes" | "tasks" | "projects" | "conversations" | "entities" | "relations" | "knowledge_facts")[];
|
|
627
627
|
recordCount: number;
|
|
628
628
|
};
|
|
629
629
|
};
|
|
@@ -674,8 +674,8 @@ meta: object;
|
|
|
674
674
|
}>;
|
|
675
675
|
create: TRPCMutationProcedure< {
|
|
676
676
|
input: {
|
|
677
|
-
keyName: string;
|
|
678
677
|
scope: string[];
|
|
678
|
+
keyName: string;
|
|
679
679
|
hubId?: string | undefined;
|
|
680
680
|
expiresInDays?: number | undefined;
|
|
681
681
|
};
|
|
@@ -784,10 +784,10 @@ secret?: string | undefined;
|
|
|
784
784
|
};
|
|
785
785
|
output: {
|
|
786
786
|
subscription: {
|
|
787
|
+
userId: string;
|
|
787
788
|
id: string;
|
|
788
789
|
name: string;
|
|
789
790
|
createdAt: Date;
|
|
790
|
-
userId: string;
|
|
791
791
|
url: string;
|
|
792
792
|
eventTypes: string[];
|
|
793
793
|
secret: string;
|
|
@@ -802,10 +802,10 @@ meta: object;
|
|
|
802
802
|
list: TRPCQueryProcedure< {
|
|
803
803
|
input: void;
|
|
804
804
|
output: {
|
|
805
|
+
userId: string;
|
|
805
806
|
id: string;
|
|
806
807
|
name: string;
|
|
807
808
|
createdAt: Date;
|
|
808
|
-
userId: string;
|
|
809
809
|
url: string;
|
|
810
810
|
eventTypes: string[];
|
|
811
811
|
active: boolean;
|
|
@@ -969,11 +969,11 @@ input: {
|
|
|
969
969
|
versionId: string;
|
|
970
970
|
};
|
|
971
971
|
output: {
|
|
972
|
+
message: string | null;
|
|
973
|
+
type: string;
|
|
972
974
|
version: number;
|
|
973
975
|
id: string;
|
|
974
976
|
createdAt: Date;
|
|
975
|
-
message: string | null;
|
|
976
|
-
type: string;
|
|
977
977
|
content: string;
|
|
978
978
|
documentId: string;
|
|
979
979
|
delta: unknown;
|
|
@@ -994,8 +994,8 @@ meta: object;
|
|
|
994
994
|
}>;
|
|
995
995
|
list: TRPCQueryProcedure< {
|
|
996
996
|
input: {
|
|
997
|
-
limit?: number | undefined;
|
|
998
997
|
type?: "code" | "text" | "markdown" | "pdf" | "docx" | undefined;
|
|
998
|
+
limit?: number | undefined;
|
|
999
999
|
projectId?: string | undefined;
|
|
1000
1000
|
};
|
|
1001
1001
|
output: {
|
|
@@ -1205,13 +1205,13 @@ offset?: number | undefined;
|
|
|
1205
1205
|
types?: string[] | undefined;
|
|
1206
1206
|
};
|
|
1207
1207
|
output: {
|
|
1208
|
+
type: string;
|
|
1208
1209
|
status: string | null;
|
|
1210
|
+
userId: string;
|
|
1211
|
+
data: unknown;
|
|
1209
1212
|
id: string;
|
|
1210
1213
|
createdAt: Date;
|
|
1211
1214
|
updatedAt: Date;
|
|
1212
|
-
data: unknown;
|
|
1213
|
-
userId: string;
|
|
1214
|
-
type: string;
|
|
1215
1215
|
workspaceId: string;
|
|
1216
1216
|
projectIds: string[] | null;
|
|
1217
1217
|
title: string;
|
|
@@ -1274,20 +1274,20 @@ capabilities: string[];
|
|
|
1274
1274
|
serviceId: string;
|
|
1275
1275
|
webhookUrl: string;
|
|
1276
1276
|
apiKey: string;
|
|
1277
|
-
version?: string | undefined;
|
|
1278
1277
|
description?: string | undefined;
|
|
1279
1278
|
metadata?: Record<string, unknown> | undefined;
|
|
1279
|
+
version?: string | undefined;
|
|
1280
1280
|
pricing?: "custom" | "free" | "premium" | "enterprise" | undefined;
|
|
1281
1281
|
};
|
|
1282
1282
|
output: {
|
|
1283
1283
|
status: string;
|
|
1284
|
+
description: string | null;
|
|
1285
|
+
metadata: Record<string, unknown> | null;
|
|
1284
1286
|
version: string | null;
|
|
1285
1287
|
id: string;
|
|
1286
1288
|
name: string;
|
|
1287
1289
|
createdAt: Date;
|
|
1288
1290
|
updatedAt: Date;
|
|
1289
|
-
description: string | null;
|
|
1290
|
-
metadata: Record<string, unknown> | null;
|
|
1291
1291
|
capabilities: string[];
|
|
1292
1292
|
serviceId: string;
|
|
1293
1293
|
webhookUrl: string;
|
|
@@ -1324,13 +1324,13 @@ id: string;
|
|
|
1324
1324
|
};
|
|
1325
1325
|
output: {
|
|
1326
1326
|
status: string;
|
|
1327
|
+
description: string | null;
|
|
1328
|
+
metadata: Record<string, unknown> | null;
|
|
1327
1329
|
version: string | null;
|
|
1328
1330
|
id: string;
|
|
1329
1331
|
name: string;
|
|
1330
1332
|
createdAt: Date;
|
|
1331
1333
|
updatedAt: Date;
|
|
1332
|
-
description: string | null;
|
|
1333
|
-
metadata: Record<string, unknown> | null;
|
|
1334
1334
|
capabilities: string[];
|
|
1335
1335
|
serviceId: string;
|
|
1336
1336
|
webhookUrl: string;
|
|
@@ -1344,10 +1344,10 @@ update: TRPCMutationProcedure< {
|
|
|
1344
1344
|
input: {
|
|
1345
1345
|
id: string;
|
|
1346
1346
|
status?: "active" | "inactive" | "suspended" | undefined;
|
|
1347
|
-
version?: string | undefined;
|
|
1348
|
-
name?: string | undefined;
|
|
1349
1347
|
description?: string | undefined;
|
|
1350
1348
|
metadata?: Record<string, unknown> | undefined;
|
|
1349
|
+
version?: string | undefined;
|
|
1350
|
+
name?: string | undefined;
|
|
1351
1351
|
capabilities?: string[] | undefined;
|
|
1352
1352
|
webhookUrl?: string | undefined;
|
|
1353
1353
|
enabled?: boolean | undefined;
|
|
@@ -1443,10 +1443,10 @@ list: TRPCQueryProcedure< {
|
|
|
1443
1443
|
input: void;
|
|
1444
1444
|
output: {
|
|
1445
1445
|
tags: {
|
|
1446
|
+
userId: string;
|
|
1446
1447
|
id: string;
|
|
1447
1448
|
name: string;
|
|
1448
1449
|
createdAt: Date;
|
|
1449
|
-
userId: string;
|
|
1450
1450
|
workspaceId: string;
|
|
1451
1451
|
projectIds: string[] | null;
|
|
1452
1452
|
color: string | null;
|
|
@@ -1482,9 +1482,9 @@ tag: {
|
|
|
1482
1482
|
name: string;
|
|
1483
1483
|
color: string | null;
|
|
1484
1484
|
updatedAt: Date;
|
|
1485
|
+
userId: string;
|
|
1485
1486
|
id: string;
|
|
1486
1487
|
createdAt: Date;
|
|
1487
|
-
userId: string;
|
|
1488
1488
|
workspaceId: string;
|
|
1489
1489
|
projectIds: string[] | null;
|
|
1490
1490
|
};
|
|
@@ -1549,18 +1549,18 @@ transformer: false;
|
|
|
1549
1549
|
entities: TRPCQueryProcedure< {
|
|
1550
1550
|
input: {
|
|
1551
1551
|
query: string;
|
|
1552
|
-
limit?: number | undefined;
|
|
1553
1552
|
type?: "task" | "note" | "project" | "document" | undefined;
|
|
1553
|
+
limit?: number | undefined;
|
|
1554
1554
|
};
|
|
1555
1555
|
output: {
|
|
1556
1556
|
entities: {
|
|
1557
|
+
type: string;
|
|
1558
|
+
userId: string;
|
|
1559
|
+
metadata: unknown;
|
|
1557
1560
|
version: number;
|
|
1558
1561
|
id: string;
|
|
1559
1562
|
createdAt: Date;
|
|
1560
1563
|
updatedAt: Date;
|
|
1561
|
-
userId: string;
|
|
1562
|
-
type: string;
|
|
1563
|
-
metadata: unknown;
|
|
1564
1564
|
workspaceId: string;
|
|
1565
1565
|
projectIds: string[] | null;
|
|
1566
1566
|
title: string | null;
|
|
@@ -1574,8 +1574,8 @@ meta: object;
|
|
|
1574
1574
|
semantic: TRPCQueryProcedure< {
|
|
1575
1575
|
input: {
|
|
1576
1576
|
query: string;
|
|
1577
|
-
limit?: number | undefined;
|
|
1578
1577
|
type?: "task" | "note" | "project" | "document" | undefined;
|
|
1578
|
+
limit?: number | undefined;
|
|
1579
1579
|
threshold?: number | undefined;
|
|
1580
1580
|
};
|
|
1581
1581
|
output: {
|
|
@@ -1591,13 +1591,13 @@ limit?: number | undefined;
|
|
|
1591
1591
|
};
|
|
1592
1592
|
output: {
|
|
1593
1593
|
entities: {
|
|
1594
|
+
type: string;
|
|
1595
|
+
userId: string;
|
|
1596
|
+
metadata: unknown;
|
|
1594
1597
|
version: number;
|
|
1595
1598
|
id: string;
|
|
1596
1599
|
createdAt: Date;
|
|
1597
1600
|
updatedAt: Date;
|
|
1598
|
-
userId: string;
|
|
1599
|
-
type: string;
|
|
1600
|
-
metadata: unknown;
|
|
1601
1601
|
workspaceId: string;
|
|
1602
1602
|
projectIds: string[] | null;
|
|
1603
1603
|
title: string | null;
|
|
@@ -1628,16 +1628,16 @@ transformer: false;
|
|
|
1628
1628
|
get: TRPCQueryProcedure< {
|
|
1629
1629
|
input: {
|
|
1630
1630
|
entityId: string;
|
|
1631
|
-
limit?: number | undefined;
|
|
1632
1631
|
type?: "assigned_to" | "mentions" | "links_to" | "parent_of" | "relates_to" | "tagged_with" | "created_by" | "attended_by" | "depends_on" | "blocks" | undefined;
|
|
1632
|
+
limit?: number | undefined;
|
|
1633
1633
|
direction?: "source" | "target" | "both" | undefined;
|
|
1634
1634
|
};
|
|
1635
1635
|
output: {
|
|
1636
1636
|
relations: {
|
|
1637
|
+
type: string;
|
|
1638
|
+
userId: string;
|
|
1637
1639
|
id: string;
|
|
1638
1640
|
createdAt: Date;
|
|
1639
|
-
userId: string;
|
|
1640
|
-
type: string;
|
|
1641
1641
|
workspaceId: string;
|
|
1642
1642
|
projectIds: string[] | null;
|
|
1643
1643
|
sourceEntityId: string;
|
|
@@ -1649,19 +1649,19 @@ meta: object;
|
|
|
1649
1649
|
getRelated: TRPCQueryProcedure< {
|
|
1650
1650
|
input: {
|
|
1651
1651
|
entityId: string;
|
|
1652
|
-
limit?: number | undefined;
|
|
1653
1652
|
type?: "assigned_to" | "mentions" | "links_to" | "parent_of" | "relates_to" | "tagged_with" | "created_by" | "attended_by" | "depends_on" | "blocks" | undefined;
|
|
1653
|
+
limit?: number | undefined;
|
|
1654
1654
|
direction?: "source" | "target" | "both" | undefined;
|
|
1655
1655
|
};
|
|
1656
1656
|
output: {
|
|
1657
1657
|
entities: {
|
|
1658
|
+
type: string;
|
|
1659
|
+
userId: string;
|
|
1660
|
+
metadata: unknown;
|
|
1658
1661
|
version: number;
|
|
1659
1662
|
id: string;
|
|
1660
1663
|
createdAt: Date;
|
|
1661
1664
|
updatedAt: Date;
|
|
1662
|
-
userId: string;
|
|
1663
|
-
type: string;
|
|
1664
|
-
metadata: unknown;
|
|
1665
1665
|
workspaceId: string;
|
|
1666
1666
|
projectIds: string[] | null;
|
|
1667
1667
|
title: string | null;
|
|
@@ -1724,13 +1724,13 @@ includeRelatedPreviews?: boolean | undefined;
|
|
|
1724
1724
|
};
|
|
1725
1725
|
output: {
|
|
1726
1726
|
entity: {
|
|
1727
|
+
type: string;
|
|
1728
|
+
userId: string;
|
|
1729
|
+
metadata: unknown;
|
|
1727
1730
|
version: number;
|
|
1728
1731
|
id: string;
|
|
1729
1732
|
createdAt: Date;
|
|
1730
1733
|
updatedAt: Date;
|
|
1731
|
-
userId: string;
|
|
1732
|
-
type: string;
|
|
1733
|
-
metadata: unknown;
|
|
1734
1734
|
workspaceId: string;
|
|
1735
1735
|
projectIds: string[] | null;
|
|
1736
1736
|
title: string | null;
|
|
@@ -1743,13 +1743,13 @@ relatedEntities: never[];
|
|
|
1743
1743
|
stats: null;
|
|
1744
1744
|
} | {
|
|
1745
1745
|
entity: {
|
|
1746
|
+
type: string;
|
|
1747
|
+
userId: string;
|
|
1748
|
+
metadata: unknown;
|
|
1746
1749
|
version: number;
|
|
1747
1750
|
id: string;
|
|
1748
1751
|
createdAt: Date;
|
|
1749
1752
|
updatedAt: Date;
|
|
1750
|
-
userId: string;
|
|
1751
|
-
type: string;
|
|
1752
|
-
metadata: unknown;
|
|
1753
1753
|
workspaceId: string;
|
|
1754
1754
|
projectIds: string[] | null;
|
|
1755
1755
|
title: string | null;
|
|
@@ -1758,10 +1758,10 @@ documentId: string | null;
|
|
|
1758
1758
|
deletedAt: Date | null;
|
|
1759
1759
|
};
|
|
1760
1760
|
relations: {
|
|
1761
|
+
type: string;
|
|
1762
|
+
userId: string;
|
|
1761
1763
|
id: string;
|
|
1762
1764
|
createdAt: Date;
|
|
1763
|
-
userId: string;
|
|
1764
|
-
type: string;
|
|
1765
1765
|
workspaceId: string;
|
|
1766
1766
|
projectIds: string[] | null;
|
|
1767
1767
|
sourceEntityId: string;
|
|
@@ -1785,13 +1785,13 @@ includeExternalRelations?: boolean | undefined;
|
|
|
1785
1785
|
};
|
|
1786
1786
|
output: {
|
|
1787
1787
|
entities: {
|
|
1788
|
+
type: string;
|
|
1789
|
+
userId: string;
|
|
1790
|
+
metadata: unknown;
|
|
1788
1791
|
version: number;
|
|
1789
1792
|
id: string;
|
|
1790
1793
|
createdAt: Date;
|
|
1791
1794
|
updatedAt: Date;
|
|
1792
|
-
userId: string;
|
|
1793
|
-
type: string;
|
|
1794
|
-
metadata: unknown;
|
|
1795
1795
|
workspaceId: string;
|
|
1796
1796
|
projectIds: string[] | null;
|
|
1797
1797
|
title: string | null;
|
|
@@ -1800,10 +1800,10 @@ documentId: string | null;
|
|
|
1800
1800
|
deletedAt: Date | null;
|
|
1801
1801
|
}[];
|
|
1802
1802
|
relations: {
|
|
1803
|
+
type: string;
|
|
1804
|
+
userId: string;
|
|
1803
1805
|
id: string;
|
|
1804
1806
|
createdAt: Date;
|
|
1805
|
-
userId: string;
|
|
1806
|
-
type: string;
|
|
1807
1807
|
workspaceId: string;
|
|
1808
1808
|
projectIds: string[] | null;
|
|
1809
1809
|
sourceEntityId: string;
|
|
@@ -1850,8 +1850,8 @@ transformer: false;
|
|
|
1850
1850
|
create: TRPCMutationProcedure< {
|
|
1851
1851
|
input: {
|
|
1852
1852
|
name: string;
|
|
1853
|
-
description?: string | undefined;
|
|
1854
1853
|
type?: "enterprise" | "personal" | "team" | undefined;
|
|
1854
|
+
description?: string | undefined;
|
|
1855
1855
|
settings?: Record<string, unknown> | undefined;
|
|
1856
1856
|
};
|
|
1857
1857
|
output: {
|
|
@@ -1866,12 +1866,12 @@ input: void;
|
|
|
1866
1866
|
output: {
|
|
1867
1867
|
role: string;
|
|
1868
1868
|
joinedAt: Date;
|
|
1869
|
+
type: string;
|
|
1870
|
+
description: string | null;
|
|
1869
1871
|
id: string;
|
|
1870
1872
|
name: string;
|
|
1871
1873
|
createdAt: Date;
|
|
1872
1874
|
updatedAt: Date;
|
|
1873
|
-
description: string | null;
|
|
1874
|
-
type: string;
|
|
1875
1875
|
settings: WorkspaceSettings;
|
|
1876
1876
|
ownerId: string;
|
|
1877
1877
|
subscriptionTier: string | null;
|
|
@@ -1886,12 +1886,12 @@ id: string;
|
|
|
1886
1886
|
};
|
|
1887
1887
|
output: {
|
|
1888
1888
|
role: string;
|
|
1889
|
+
type: string;
|
|
1890
|
+
description: string | null;
|
|
1889
1891
|
id: string;
|
|
1890
1892
|
name: string;
|
|
1891
1893
|
createdAt: Date;
|
|
1892
1894
|
updatedAt: Date;
|
|
1893
|
-
description: string | null;
|
|
1894
|
-
type: string;
|
|
1895
1895
|
settings: WorkspaceSettings;
|
|
1896
1896
|
ownerId: string;
|
|
1897
1897
|
subscriptionTier: string | null;
|
|
@@ -1903,8 +1903,8 @@ meta: object;
|
|
|
1903
1903
|
update: TRPCMutationProcedure< {
|
|
1904
1904
|
input: {
|
|
1905
1905
|
id: string;
|
|
1906
|
-
name?: string | undefined;
|
|
1907
1906
|
description?: string | undefined;
|
|
1907
|
+
name?: string | undefined;
|
|
1908
1908
|
settings?: Record<string, unknown> | undefined;
|
|
1909
1909
|
};
|
|
1910
1910
|
output: {
|
|
@@ -1940,8 +1940,8 @@ input: {
|
|
|
1940
1940
|
workspaceId: string;
|
|
1941
1941
|
};
|
|
1942
1942
|
output: {
|
|
1943
|
-
id: string;
|
|
1944
1943
|
userId: string;
|
|
1944
|
+
id: string;
|
|
1945
1945
|
workspaceId: string;
|
|
1946
1946
|
role: string;
|
|
1947
1947
|
joinedAt: Date;
|
|
@@ -1979,14 +1979,14 @@ workspaceId: string;
|
|
|
1979
1979
|
role: "editor" | "viewer" | "admin";
|
|
1980
1980
|
};
|
|
1981
1981
|
output: {
|
|
1982
|
+
token: string;
|
|
1983
|
+
expiresAt: Date;
|
|
1982
1984
|
id: string;
|
|
1983
1985
|
email: string;
|
|
1984
1986
|
createdAt: Date;
|
|
1985
1987
|
workspaceId: string;
|
|
1986
1988
|
role: string;
|
|
1987
|
-
expiresAt: Date;
|
|
1988
1989
|
invitedBy: string;
|
|
1989
|
-
token: string;
|
|
1990
1990
|
};
|
|
1991
1991
|
meta: object;
|
|
1992
1992
|
}>;
|
|
@@ -1995,14 +1995,14 @@ input: {
|
|
|
1995
1995
|
workspaceId: string;
|
|
1996
1996
|
};
|
|
1997
1997
|
output: {
|
|
1998
|
+
token: string;
|
|
1999
|
+
expiresAt: Date;
|
|
1998
2000
|
id: string;
|
|
1999
2001
|
email: string;
|
|
2000
2002
|
createdAt: Date;
|
|
2001
2003
|
workspaceId: string;
|
|
2002
2004
|
role: string;
|
|
2003
|
-
expiresAt: Date;
|
|
2004
2005
|
invitedBy: string;
|
|
2005
|
-
token: string;
|
|
2006
2006
|
}[];
|
|
2007
2007
|
meta: object;
|
|
2008
2008
|
}>;
|
|
@@ -2035,8 +2035,8 @@ transformer: false;
|
|
|
2035
2035
|
}, TRPCDecorateCreateRouterOptions< {
|
|
2036
2036
|
create: TRPCMutationProcedure< {
|
|
2037
2037
|
input: {
|
|
2038
|
+
type: "calendar" | "list" | "grid" | "timeline" | "whiteboard" | "table" | "graph" | "kanban" | "gallery" | "gantt" | "mindmap";
|
|
2038
2039
|
name: string;
|
|
2039
|
-
type: "list" | "calendar" | "grid" | "timeline" | "whiteboard" | "table" | "graph" | "kanban" | "gallery" | "gantt" | "mindmap";
|
|
2040
2040
|
description?: string | null | undefined;
|
|
2041
2041
|
workspaceId?: string | null | undefined;
|
|
2042
2042
|
initialContent?: any;
|
|
@@ -2046,7 +2046,7 @@ view: {
|
|
|
2046
2046
|
id: `${string}-${string}-${string}-${string}-${string}`;
|
|
2047
2047
|
workspaceId: string | null | undefined;
|
|
2048
2048
|
userId: string;
|
|
2049
|
-
type: "
|
|
2049
|
+
type: "calendar" | "list" | "grid" | "timeline" | "whiteboard" | "table" | "graph" | "kanban" | "gallery" | "gantt" | "mindmap";
|
|
2050
2050
|
category: ViewCategory;
|
|
2051
2051
|
name: string;
|
|
2052
2052
|
description: string | null | undefined;
|
|
@@ -2065,18 +2065,18 @@ meta: object;
|
|
|
2065
2065
|
}>;
|
|
2066
2066
|
list: TRPCQueryProcedure< {
|
|
2067
2067
|
input: {
|
|
2068
|
-
type?: "
|
|
2068
|
+
type?: "calendar" | "list" | "grid" | "timeline" | "whiteboard" | "all" | "table" | "graph" | "kanban" | "gallery" | "gantt" | "mindmap" | undefined;
|
|
2069
2069
|
workspaceId?: string | undefined;
|
|
2070
2070
|
};
|
|
2071
2071
|
output: {
|
|
2072
|
+
type: string;
|
|
2073
|
+
userId: string;
|
|
2074
|
+
description: string | null;
|
|
2075
|
+
metadata: unknown;
|
|
2072
2076
|
id: string;
|
|
2073
2077
|
name: string;
|
|
2074
2078
|
createdAt: Date;
|
|
2075
2079
|
updatedAt: Date;
|
|
2076
|
-
description: string | null;
|
|
2077
|
-
userId: string;
|
|
2078
|
-
type: string;
|
|
2079
|
-
metadata: unknown;
|
|
2080
2080
|
workspaceId: string | null;
|
|
2081
2081
|
projectIds: string[] | null;
|
|
2082
2082
|
documentId: string | null;
|
|
@@ -2092,14 +2092,14 @@ id: string;
|
|
|
2092
2092
|
};
|
|
2093
2093
|
output: {
|
|
2094
2094
|
view: {
|
|
2095
|
+
type: string;
|
|
2096
|
+
userId: string;
|
|
2097
|
+
description: string | null;
|
|
2098
|
+
metadata: unknown;
|
|
2095
2099
|
id: string;
|
|
2096
2100
|
name: string;
|
|
2097
2101
|
createdAt: Date;
|
|
2098
2102
|
updatedAt: Date;
|
|
2099
|
-
description: string | null;
|
|
2100
|
-
userId: string;
|
|
2101
|
-
type: string;
|
|
2102
|
-
metadata: unknown;
|
|
2103
2103
|
workspaceId: string | null;
|
|
2104
2104
|
projectIds: string[] | null;
|
|
2105
2105
|
documentId: string | null;
|
|
@@ -2117,14 +2117,14 @@ id: string;
|
|
|
2117
2117
|
};
|
|
2118
2118
|
output: {
|
|
2119
2119
|
view: {
|
|
2120
|
+
type: string;
|
|
2121
|
+
userId: string;
|
|
2122
|
+
description: string | null;
|
|
2123
|
+
metadata: unknown;
|
|
2120
2124
|
id: string;
|
|
2121
2125
|
name: string;
|
|
2122
2126
|
createdAt: Date;
|
|
2123
2127
|
updatedAt: Date;
|
|
2124
|
-
description: string | null;
|
|
2125
|
-
userId: string;
|
|
2126
|
-
type: string;
|
|
2127
|
-
metadata: unknown;
|
|
2128
2128
|
workspaceId: string | null;
|
|
2129
2129
|
projectIds: string[] | null;
|
|
2130
2130
|
documentId: string | null;
|
|
@@ -2138,14 +2138,14 @@ relations: never[];
|
|
|
2138
2138
|
config?: undefined;
|
|
2139
2139
|
} | {
|
|
2140
2140
|
view: {
|
|
2141
|
+
type: string;
|
|
2142
|
+
userId: string;
|
|
2143
|
+
description: string | null;
|
|
2144
|
+
metadata: unknown;
|
|
2141
2145
|
id: string;
|
|
2142
2146
|
name: string;
|
|
2143
2147
|
createdAt: Date;
|
|
2144
2148
|
updatedAt: Date;
|
|
2145
|
-
description: string | null;
|
|
2146
|
-
userId: string;
|
|
2147
|
-
type: string;
|
|
2148
|
-
metadata: unknown;
|
|
2149
2149
|
workspaceId: string | null;
|
|
2150
2150
|
projectIds: string[] | null;
|
|
2151
2151
|
documentId: string | null;
|
|
@@ -2159,14 +2159,14 @@ relations: never[];
|
|
|
2159
2159
|
content?: undefined;
|
|
2160
2160
|
} | {
|
|
2161
2161
|
view: {
|
|
2162
|
+
type: string;
|
|
2163
|
+
userId: string;
|
|
2164
|
+
description: string | null;
|
|
2165
|
+
metadata: unknown;
|
|
2162
2166
|
id: string;
|
|
2163
2167
|
name: string;
|
|
2164
2168
|
createdAt: Date;
|
|
2165
2169
|
updatedAt: Date;
|
|
2166
|
-
description: string | null;
|
|
2167
|
-
userId: string;
|
|
2168
|
-
type: string;
|
|
2169
|
-
metadata: unknown;
|
|
2170
2170
|
workspaceId: string | null;
|
|
2171
2171
|
projectIds: string[] | null;
|
|
2172
2172
|
documentId: string | null;
|
|
@@ -2218,8 +2218,8 @@ meta: object;
|
|
|
2218
2218
|
update: TRPCMutationProcedure< {
|
|
2219
2219
|
input: {
|
|
2220
2220
|
id: string;
|
|
2221
|
-
name?: string | undefined;
|
|
2222
2221
|
description?: string | null | undefined;
|
|
2222
|
+
name?: string | undefined;
|
|
2223
2223
|
};
|
|
2224
2224
|
output: {
|
|
2225
2225
|
status: string;
|
|
@@ -2428,15 +2428,15 @@ input: {
|
|
|
2428
2428
|
workspaceId?: string | undefined;
|
|
2429
2429
|
} | undefined;
|
|
2430
2430
|
output: {
|
|
2431
|
+
description: string | null;
|
|
2432
|
+
filters: unknown;
|
|
2431
2433
|
id: string;
|
|
2432
2434
|
name: string;
|
|
2433
2435
|
createdAt: Date;
|
|
2434
2436
|
updatedAt: Date;
|
|
2435
|
-
description: string | null;
|
|
2436
2437
|
workspaceId: string | null;
|
|
2437
2438
|
createdBy: string;
|
|
2438
2439
|
permissions: unknown;
|
|
2439
|
-
filters: unknown;
|
|
2440
2440
|
}[];
|
|
2441
2441
|
meta: object;
|
|
2442
2442
|
}>;
|
|
@@ -2445,15 +2445,15 @@ input: {
|
|
|
2445
2445
|
id: string;
|
|
2446
2446
|
};
|
|
2447
2447
|
output: {
|
|
2448
|
+
description: string | null;
|
|
2449
|
+
filters: unknown;
|
|
2448
2450
|
id: string;
|
|
2449
2451
|
name: string;
|
|
2450
2452
|
createdAt: Date;
|
|
2451
2453
|
updatedAt: Date;
|
|
2452
|
-
description: string | null;
|
|
2453
2454
|
workspaceId: string | null;
|
|
2454
2455
|
createdBy: string;
|
|
2455
2456
|
permissions: unknown;
|
|
2456
|
-
filters: unknown;
|
|
2457
2457
|
};
|
|
2458
2458
|
meta: object;
|
|
2459
2459
|
}>;
|
|
@@ -2462,8 +2462,8 @@ input: {
|
|
|
2462
2462
|
name: string;
|
|
2463
2463
|
permissions: Record<string, any>;
|
|
2464
2464
|
description?: string | undefined;
|
|
2465
|
-
workspaceId?: string | undefined;
|
|
2466
2465
|
filters?: Record<string, any> | undefined;
|
|
2466
|
+
workspaceId?: string | undefined;
|
|
2467
2467
|
};
|
|
2468
2468
|
output: {
|
|
2469
2469
|
id: `${string}-${string}-${string}-${string}-${string}`;
|
|
@@ -2475,10 +2475,10 @@ meta: object;
|
|
|
2475
2475
|
update: TRPCMutationProcedure< {
|
|
2476
2476
|
input: {
|
|
2477
2477
|
id: string;
|
|
2478
|
-
name?: string | undefined;
|
|
2479
2478
|
description?: string | undefined;
|
|
2480
|
-
permissions?: Record<string, any> | undefined;
|
|
2481
2479
|
filters?: Record<string, any> | undefined;
|
|
2480
|
+
name?: string | undefined;
|
|
2481
|
+
permissions?: Record<string, any> | undefined;
|
|
2482
2482
|
};
|
|
2483
2483
|
output: {
|
|
2484
2484
|
status: string;
|
|
@@ -2543,13 +2543,13 @@ token: string;
|
|
|
2543
2543
|
};
|
|
2544
2544
|
output: {
|
|
2545
2545
|
resource: {
|
|
2546
|
+
type: string;
|
|
2547
|
+
userId: string;
|
|
2548
|
+
metadata: unknown;
|
|
2546
2549
|
version: number;
|
|
2547
2550
|
id: string;
|
|
2548
2551
|
createdAt: Date;
|
|
2549
2552
|
updatedAt: Date;
|
|
2550
|
-
userId: string;
|
|
2551
|
-
type: string;
|
|
2552
|
-
metadata: unknown;
|
|
2553
2553
|
workspaceId: string;
|
|
2554
2554
|
projectIds: string[] | null;
|
|
2555
2555
|
title: string | null;
|
|
@@ -2557,14 +2557,14 @@ preview: string | null;
|
|
|
2557
2557
|
documentId: string | null;
|
|
2558
2558
|
deletedAt: Date | null;
|
|
2559
2559
|
} | {
|
|
2560
|
+
type: string;
|
|
2561
|
+
userId: string;
|
|
2562
|
+
description: string | null;
|
|
2563
|
+
metadata: unknown;
|
|
2560
2564
|
id: string;
|
|
2561
2565
|
name: string;
|
|
2562
2566
|
createdAt: Date;
|
|
2563
2567
|
updatedAt: Date;
|
|
2564
|
-
description: string | null;
|
|
2565
|
-
userId: string;
|
|
2566
|
-
type: string;
|
|
2567
|
-
metadata: unknown;
|
|
2568
2568
|
workspaceId: string | null;
|
|
2569
2569
|
projectIds: string[] | null;
|
|
2570
2570
|
documentId: string | null;
|
|
@@ -2585,10 +2585,10 @@ expiresAt?: Date | null | undefined;
|
|
|
2585
2585
|
visibility?: string | undefined;
|
|
2586
2586
|
};
|
|
2587
2587
|
output: {
|
|
2588
|
+
expiresAt: Date | null;
|
|
2588
2589
|
id: string;
|
|
2589
2590
|
createdAt: Date;
|
|
2590
2591
|
updatedAt: Date;
|
|
2591
|
-
expiresAt: Date | null;
|
|
2592
2592
|
createdBy: string;
|
|
2593
2593
|
permissions: unknown;
|
|
2594
2594
|
resourceType: string;
|
|
@@ -2769,8 +2769,8 @@ meta: object;
|
|
|
2769
2769
|
update: TRPCMutationProcedure< {
|
|
2770
2770
|
input: {
|
|
2771
2771
|
id: string;
|
|
2772
|
-
name?: string | undefined;
|
|
2773
2772
|
description?: string | null | undefined;
|
|
2773
|
+
name?: string | undefined;
|
|
2774
2774
|
config?: {
|
|
2775
2775
|
layout?: {
|
|
2776
2776
|
structure: {
|
|
@@ -2888,13 +2888,13 @@ input: {
|
|
|
2888
2888
|
id: string;
|
|
2889
2889
|
};
|
|
2890
2890
|
output: {
|
|
2891
|
+
userId: string | null;
|
|
2892
|
+
description: string | null;
|
|
2891
2893
|
version: number;
|
|
2892
2894
|
id: string;
|
|
2893
2895
|
name: string;
|
|
2894
2896
|
createdAt: Date;
|
|
2895
2897
|
updatedAt: Date;
|
|
2896
|
-
description: string | null;
|
|
2897
|
-
userId: string | null;
|
|
2898
2898
|
workspaceId: string | null;
|
|
2899
2899
|
projectIds: string[] | null;
|
|
2900
2900
|
entityType: string | null;
|
|
@@ -2940,11 +2940,11 @@ limit?: number | undefined;
|
|
|
2940
2940
|
};
|
|
2941
2941
|
output: {
|
|
2942
2942
|
versions: {
|
|
2943
|
+
message: string | null;
|
|
2944
|
+
type: string;
|
|
2943
2945
|
version: number;
|
|
2944
2946
|
id: string;
|
|
2945
2947
|
createdAt: Date;
|
|
2946
|
-
message: string | null;
|
|
2947
|
-
type: string;
|
|
2948
2948
|
content: string;
|
|
2949
2949
|
documentId: string;
|
|
2950
2950
|
delta: unknown;
|
|
@@ -2971,11 +2971,11 @@ versionId: string;
|
|
|
2971
2971
|
};
|
|
2972
2972
|
output: {
|
|
2973
2973
|
version: {
|
|
2974
|
+
message: string | null;
|
|
2975
|
+
type: string;
|
|
2974
2976
|
version: number;
|
|
2975
2977
|
id: string;
|
|
2976
2978
|
createdAt: Date;
|
|
2977
|
-
message: string | null;
|
|
2978
|
-
type: string;
|
|
2979
2979
|
content: string;
|
|
2980
2980
|
documentId: string;
|
|
2981
2981
|
delta: unknown;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synap-core/api-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "Type definitions for Synap API Router - tRPC types for frontend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"src"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
|
-
"build": "tsc
|
|
20
|
+
"build": "tsc",
|
|
21
21
|
"typecheck": "tsc --noEmit"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
@@ -48,4 +48,4 @@
|
|
|
48
48
|
"router"
|
|
49
49
|
],
|
|
50
50
|
"license": "MIT"
|
|
51
|
-
}
|
|
51
|
+
}
|