@secrecy/trpc-api-types 1.15.0 → 1.16.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.
- package/dist/index.d.ts +2821 -97
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as _neondatabase_api_client from '@neondatabase/api-client';
|
|
1
2
|
import type * as _prisma_client_runtime_library from '@prisma/client/runtime/library';
|
|
2
3
|
import type * as _prisma_client from '@prisma/client';
|
|
3
4
|
import type * as _trpc_server from '@trpc/server';
|
|
@@ -141,7 +142,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
141
142
|
};
|
|
142
143
|
transformer: typeof superjson.default;
|
|
143
144
|
}>, {
|
|
144
|
-
|
|
145
|
+
limits: _trpc_server.BuildProcedure<"query", {
|
|
145
146
|
_config: _trpc_server.RootConfig<{
|
|
146
147
|
ctx: {};
|
|
147
148
|
meta: object;
|
|
@@ -219,7 +220,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
219
220
|
};
|
|
220
221
|
};
|
|
221
222
|
}, unknown>;
|
|
222
|
-
|
|
223
|
+
metrics: _trpc_server.BuildProcedure<"query", {
|
|
223
224
|
_config: _trpc_server.RootConfig<{
|
|
224
225
|
ctx: {};
|
|
225
226
|
meta: object;
|
|
@@ -252,6 +253,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
252
253
|
userId: string;
|
|
253
254
|
userRole: _prisma_client.$Enums.UserRole;
|
|
254
255
|
userPlan: _prisma_client.$Enums.PlanKind;
|
|
256
|
+
isCare?: boolean | undefined;
|
|
255
257
|
};
|
|
256
258
|
req: {
|
|
257
259
|
headers: Headers;
|
|
@@ -285,7 +287,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
285
287
|
uploadBandwidth: bigint;
|
|
286
288
|
};
|
|
287
289
|
}, unknown>;
|
|
288
|
-
|
|
290
|
+
quotas: _trpc_server.BuildProcedure<"query", {
|
|
289
291
|
_config: _trpc_server.RootConfig<{
|
|
290
292
|
ctx: {};
|
|
291
293
|
meta: object;
|
|
@@ -318,6 +320,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
318
320
|
userId: string;
|
|
319
321
|
userRole: _prisma_client.$Enums.UserRole;
|
|
320
322
|
userPlan: _prisma_client.$Enums.PlanKind;
|
|
323
|
+
isCare?: boolean | undefined;
|
|
321
324
|
};
|
|
322
325
|
req: {
|
|
323
326
|
headers: Headers;
|
|
@@ -1492,6 +1495,297 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
1492
1495
|
})[];
|
|
1493
1496
|
}, unknown>;
|
|
1494
1497
|
}>;
|
|
1498
|
+
care: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
|
|
1499
|
+
ctx: {};
|
|
1500
|
+
meta: object;
|
|
1501
|
+
errorShape: {
|
|
1502
|
+
message: string;
|
|
1503
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
1504
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
1505
|
+
} | {
|
|
1506
|
+
data: {
|
|
1507
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
1508
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
1509
|
+
httpStatus: number;
|
|
1510
|
+
path?: string | undefined;
|
|
1511
|
+
stack?: string | undefined;
|
|
1512
|
+
};
|
|
1513
|
+
message: string;
|
|
1514
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
1515
|
+
};
|
|
1516
|
+
transformer: typeof superjson.default;
|
|
1517
|
+
}>, {
|
|
1518
|
+
professional: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
|
|
1519
|
+
ctx: {};
|
|
1520
|
+
meta: object;
|
|
1521
|
+
errorShape: {
|
|
1522
|
+
message: string;
|
|
1523
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
1524
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
1525
|
+
} | {
|
|
1526
|
+
data: {
|
|
1527
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
1528
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
1529
|
+
httpStatus: number;
|
|
1530
|
+
path?: string | undefined;
|
|
1531
|
+
stack?: string | undefined;
|
|
1532
|
+
};
|
|
1533
|
+
message: string;
|
|
1534
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
1535
|
+
};
|
|
1536
|
+
transformer: typeof superjson.default;
|
|
1537
|
+
}>, {
|
|
1538
|
+
register: _trpc_server.BuildProcedure<"mutation", {
|
|
1539
|
+
_config: _trpc_server.RootConfig<{
|
|
1540
|
+
ctx: {};
|
|
1541
|
+
meta: object;
|
|
1542
|
+
errorShape: {
|
|
1543
|
+
message: string;
|
|
1544
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
1545
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
1546
|
+
} | {
|
|
1547
|
+
data: {
|
|
1548
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
1549
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
1550
|
+
httpStatus: number;
|
|
1551
|
+
path?: string | undefined;
|
|
1552
|
+
stack?: string | undefined;
|
|
1553
|
+
};
|
|
1554
|
+
message: string;
|
|
1555
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
1556
|
+
};
|
|
1557
|
+
transformer: typeof superjson.default;
|
|
1558
|
+
}>;
|
|
1559
|
+
_meta: object;
|
|
1560
|
+
_ctx_out: {
|
|
1561
|
+
session: {
|
|
1562
|
+
appId: string;
|
|
1563
|
+
appPlanId: string | null;
|
|
1564
|
+
appFakeUserId: string | undefined;
|
|
1565
|
+
sessionId: string;
|
|
1566
|
+
accountId: string;
|
|
1567
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
1568
|
+
userId: string;
|
|
1569
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
1570
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
1571
|
+
isCare?: boolean | undefined;
|
|
1572
|
+
};
|
|
1573
|
+
req: {
|
|
1574
|
+
headers: Headers;
|
|
1575
|
+
};
|
|
1576
|
+
res: {
|
|
1577
|
+
headers: Headers;
|
|
1578
|
+
};
|
|
1579
|
+
locale: Locales;
|
|
1580
|
+
ls: TranslationFunctions;
|
|
1581
|
+
};
|
|
1582
|
+
_input_in: {
|
|
1583
|
+
status: "active" | "inactive" | "retired" | "suspended";
|
|
1584
|
+
job: string;
|
|
1585
|
+
specialties: string[];
|
|
1586
|
+
activePrescriber: boolean;
|
|
1587
|
+
internationalPrescriberNumber: string | null;
|
|
1588
|
+
institution: string | null;
|
|
1589
|
+
rppsNumber: string;
|
|
1590
|
+
adeliNumber: string;
|
|
1591
|
+
ssNumber: string;
|
|
1592
|
+
};
|
|
1593
|
+
_input_out: {
|
|
1594
|
+
status: "active" | "inactive" | "retired" | "suspended";
|
|
1595
|
+
job: string;
|
|
1596
|
+
specialties: string[];
|
|
1597
|
+
activePrescriber: boolean;
|
|
1598
|
+
internationalPrescriberNumber: string | null;
|
|
1599
|
+
institution: string | null;
|
|
1600
|
+
rppsNumber: string;
|
|
1601
|
+
adeliNumber: string;
|
|
1602
|
+
ssNumber: string;
|
|
1603
|
+
};
|
|
1604
|
+
_output_in: {
|
|
1605
|
+
status: "active" | "inactive" | "retired" | "suspended";
|
|
1606
|
+
userId: string;
|
|
1607
|
+
id: string;
|
|
1608
|
+
validated: boolean;
|
|
1609
|
+
job: string;
|
|
1610
|
+
specialties: string[];
|
|
1611
|
+
activePrescriber: boolean;
|
|
1612
|
+
internationalPrescriberNumber: string | null;
|
|
1613
|
+
institution: string | null;
|
|
1614
|
+
rppsNumber: string;
|
|
1615
|
+
adeliNumber: string;
|
|
1616
|
+
ssNumber: string;
|
|
1617
|
+
};
|
|
1618
|
+
_output_out: {
|
|
1619
|
+
status: "active" | "inactive" | "retired" | "suspended";
|
|
1620
|
+
userId: string;
|
|
1621
|
+
id: string;
|
|
1622
|
+
validated: boolean;
|
|
1623
|
+
job: string;
|
|
1624
|
+
specialties: string[];
|
|
1625
|
+
activePrescriber: boolean;
|
|
1626
|
+
internationalPrescriberNumber: string | null;
|
|
1627
|
+
institution: string | null;
|
|
1628
|
+
rppsNumber: string;
|
|
1629
|
+
adeliNumber: string;
|
|
1630
|
+
ssNumber: string;
|
|
1631
|
+
};
|
|
1632
|
+
}, unknown>;
|
|
1633
|
+
get: _trpc_server.BuildProcedure<"query", {
|
|
1634
|
+
_config: _trpc_server.RootConfig<{
|
|
1635
|
+
ctx: {};
|
|
1636
|
+
meta: object;
|
|
1637
|
+
errorShape: {
|
|
1638
|
+
message: string;
|
|
1639
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
1640
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
1641
|
+
} | {
|
|
1642
|
+
data: {
|
|
1643
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
1644
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
1645
|
+
httpStatus: number;
|
|
1646
|
+
path?: string | undefined;
|
|
1647
|
+
stack?: string | undefined;
|
|
1648
|
+
};
|
|
1649
|
+
message: string;
|
|
1650
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
1651
|
+
};
|
|
1652
|
+
transformer: typeof superjson.default;
|
|
1653
|
+
}>;
|
|
1654
|
+
_meta: object;
|
|
1655
|
+
_ctx_out: {
|
|
1656
|
+
session: {
|
|
1657
|
+
appId: string;
|
|
1658
|
+
appPlanId: string | null;
|
|
1659
|
+
appFakeUserId: string | undefined;
|
|
1660
|
+
sessionId: string;
|
|
1661
|
+
accountId: string;
|
|
1662
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
1663
|
+
userId: string;
|
|
1664
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
1665
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
1666
|
+
isCare?: boolean | undefined;
|
|
1667
|
+
};
|
|
1668
|
+
req: {
|
|
1669
|
+
headers: Headers;
|
|
1670
|
+
};
|
|
1671
|
+
res: {
|
|
1672
|
+
headers: Headers;
|
|
1673
|
+
};
|
|
1674
|
+
locale: Locales;
|
|
1675
|
+
ls: TranslationFunctions;
|
|
1676
|
+
};
|
|
1677
|
+
_input_in: {
|
|
1678
|
+
id: string;
|
|
1679
|
+
};
|
|
1680
|
+
_input_out: {
|
|
1681
|
+
id: string;
|
|
1682
|
+
};
|
|
1683
|
+
_output_in: {
|
|
1684
|
+
status: "active" | "inactive" | "retired" | "suspended";
|
|
1685
|
+
userId: string;
|
|
1686
|
+
id: string;
|
|
1687
|
+
validated: boolean;
|
|
1688
|
+
job: string;
|
|
1689
|
+
specialties: string[];
|
|
1690
|
+
activePrescriber: boolean;
|
|
1691
|
+
internationalPrescriberNumber: string | null;
|
|
1692
|
+
institution: string | null;
|
|
1693
|
+
rppsNumber: string;
|
|
1694
|
+
adeliNumber: string;
|
|
1695
|
+
ssNumber: string;
|
|
1696
|
+
};
|
|
1697
|
+
_output_out: {
|
|
1698
|
+
status: "active" | "inactive" | "retired" | "suspended";
|
|
1699
|
+
userId: string;
|
|
1700
|
+
id: string;
|
|
1701
|
+
validated: boolean;
|
|
1702
|
+
job: string;
|
|
1703
|
+
specialties: string[];
|
|
1704
|
+
activePrescriber: boolean;
|
|
1705
|
+
internationalPrescriberNumber: string | null;
|
|
1706
|
+
institution: string | null;
|
|
1707
|
+
rppsNumber: string;
|
|
1708
|
+
adeliNumber: string;
|
|
1709
|
+
ssNumber: string;
|
|
1710
|
+
};
|
|
1711
|
+
}, unknown>;
|
|
1712
|
+
list: _trpc_server.BuildProcedure<"query", {
|
|
1713
|
+
_config: _trpc_server.RootConfig<{
|
|
1714
|
+
ctx: {};
|
|
1715
|
+
meta: object;
|
|
1716
|
+
errorShape: {
|
|
1717
|
+
message: string;
|
|
1718
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
1719
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
1720
|
+
} | {
|
|
1721
|
+
data: {
|
|
1722
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
1723
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
1724
|
+
httpStatus: number;
|
|
1725
|
+
path?: string | undefined;
|
|
1726
|
+
stack?: string | undefined;
|
|
1727
|
+
};
|
|
1728
|
+
message: string;
|
|
1729
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
1730
|
+
};
|
|
1731
|
+
transformer: typeof superjson.default;
|
|
1732
|
+
}>;
|
|
1733
|
+
_meta: object;
|
|
1734
|
+
_ctx_out: {
|
|
1735
|
+
session: {
|
|
1736
|
+
appId: string;
|
|
1737
|
+
appPlanId: string | null;
|
|
1738
|
+
appFakeUserId: string | undefined;
|
|
1739
|
+
sessionId: string;
|
|
1740
|
+
accountId: string;
|
|
1741
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
1742
|
+
userId: string;
|
|
1743
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
1744
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
1745
|
+
isCare?: boolean | undefined;
|
|
1746
|
+
};
|
|
1747
|
+
req: {
|
|
1748
|
+
headers: Headers;
|
|
1749
|
+
};
|
|
1750
|
+
res: {
|
|
1751
|
+
headers: Headers;
|
|
1752
|
+
};
|
|
1753
|
+
locale: Locales;
|
|
1754
|
+
ls: TranslationFunctions;
|
|
1755
|
+
};
|
|
1756
|
+
_input_in: {};
|
|
1757
|
+
_input_out: {};
|
|
1758
|
+
_output_in: {
|
|
1759
|
+
status: "active" | "inactive" | "retired" | "suspended";
|
|
1760
|
+
userId: string;
|
|
1761
|
+
id: string;
|
|
1762
|
+
validated: boolean;
|
|
1763
|
+
job: string;
|
|
1764
|
+
specialties: string[];
|
|
1765
|
+
activePrescriber: boolean;
|
|
1766
|
+
internationalPrescriberNumber: string | null;
|
|
1767
|
+
institution: string | null;
|
|
1768
|
+
rppsNumber: string;
|
|
1769
|
+
adeliNumber: string;
|
|
1770
|
+
ssNumber: string;
|
|
1771
|
+
}[];
|
|
1772
|
+
_output_out: {
|
|
1773
|
+
status: "active" | "inactive" | "retired" | "suspended";
|
|
1774
|
+
userId: string;
|
|
1775
|
+
id: string;
|
|
1776
|
+
validated: boolean;
|
|
1777
|
+
job: string;
|
|
1778
|
+
specialties: string[];
|
|
1779
|
+
activePrescriber: boolean;
|
|
1780
|
+
internationalPrescriberNumber: string | null;
|
|
1781
|
+
institution: string | null;
|
|
1782
|
+
rppsNumber: string;
|
|
1783
|
+
adeliNumber: string;
|
|
1784
|
+
ssNumber: string;
|
|
1785
|
+
}[];
|
|
1786
|
+
}, unknown>;
|
|
1787
|
+
}>;
|
|
1788
|
+
}>;
|
|
1495
1789
|
cloud: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
|
|
1496
1790
|
ctx: {};
|
|
1497
1791
|
meta: object;
|
|
@@ -4799,7 +5093,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
4799
5093
|
};
|
|
4800
5094
|
}, unknown>;
|
|
4801
5095
|
}>;
|
|
4802
|
-
|
|
5096
|
+
database: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
|
|
4803
5097
|
ctx: {};
|
|
4804
5098
|
meta: object;
|
|
4805
5099
|
errorShape: {
|
|
@@ -4819,88 +5113,2485 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
4819
5113
|
};
|
|
4820
5114
|
transformer: typeof superjson.default;
|
|
4821
5115
|
}>, {
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
stack?: string | undefined;
|
|
4837
|
-
};
|
|
4838
|
-
message: string;
|
|
4839
|
-
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5116
|
+
role: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
|
|
5117
|
+
ctx: {};
|
|
5118
|
+
meta: object;
|
|
5119
|
+
errorShape: {
|
|
5120
|
+
message: string;
|
|
5121
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5122
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5123
|
+
} | {
|
|
5124
|
+
data: {
|
|
5125
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5126
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
5127
|
+
httpStatus: number;
|
|
5128
|
+
path?: string | undefined;
|
|
5129
|
+
stack?: string | undefined;
|
|
4840
5130
|
};
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
_meta: object;
|
|
4844
|
-
_ctx_out: {};
|
|
4845
|
-
_input_in: {
|
|
4846
|
-
lang: "fr" | "en";
|
|
4847
|
-
};
|
|
4848
|
-
_input_out: {
|
|
4849
|
-
lang: "fr" | "en";
|
|
4850
|
-
};
|
|
4851
|
-
_output_in: {
|
|
4852
|
-
order: number;
|
|
4853
|
-
question: string;
|
|
4854
|
-
answer: string;
|
|
4855
|
-
}[];
|
|
4856
|
-
_output_out: {
|
|
4857
|
-
order: number;
|
|
4858
|
-
question: string;
|
|
4859
|
-
answer: string;
|
|
4860
|
-
}[];
|
|
4861
|
-
}, unknown>;
|
|
4862
|
-
}>;
|
|
4863
|
-
mail: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
|
|
4864
|
-
ctx: {};
|
|
4865
|
-
meta: object;
|
|
4866
|
-
errorShape: {
|
|
4867
|
-
message: string;
|
|
4868
|
-
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
4869
|
-
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
4870
|
-
} | {
|
|
4871
|
-
data: {
|
|
4872
|
-
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
4873
|
-
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
4874
|
-
httpStatus: number;
|
|
4875
|
-
path?: string | undefined;
|
|
4876
|
-
stack?: string | undefined;
|
|
5131
|
+
message: string;
|
|
5132
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
4877
5133
|
};
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
};
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
5134
|
+
transformer: typeof superjson.default;
|
|
5135
|
+
}>, {
|
|
5136
|
+
create: _trpc_server.BuildProcedure<"mutation", {
|
|
5137
|
+
_config: _trpc_server.RootConfig<{
|
|
5138
|
+
ctx: {};
|
|
5139
|
+
meta: object;
|
|
5140
|
+
errorShape: {
|
|
5141
|
+
message: string;
|
|
5142
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5143
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5144
|
+
} | {
|
|
5145
|
+
data: {
|
|
5146
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5147
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
5148
|
+
httpStatus: number;
|
|
5149
|
+
path?: string | undefined;
|
|
5150
|
+
stack?: string | undefined;
|
|
5151
|
+
};
|
|
5152
|
+
message: string;
|
|
5153
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5154
|
+
};
|
|
5155
|
+
transformer: typeof superjson.default;
|
|
5156
|
+
}>;
|
|
5157
|
+
_meta: object;
|
|
5158
|
+
_ctx_out: {
|
|
5159
|
+
session: {
|
|
5160
|
+
appId: string;
|
|
5161
|
+
appPlanId: string | null;
|
|
5162
|
+
appFakeUserId: string | undefined;
|
|
5163
|
+
sessionId: string;
|
|
5164
|
+
accountId: string;
|
|
5165
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5166
|
+
userId: string;
|
|
5167
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5168
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5169
|
+
isCare?: boolean | undefined;
|
|
5170
|
+
};
|
|
5171
|
+
req: {
|
|
5172
|
+
headers: Headers;
|
|
5173
|
+
};
|
|
5174
|
+
res: {
|
|
5175
|
+
headers: Headers;
|
|
5176
|
+
};
|
|
5177
|
+
locale: Locales;
|
|
5178
|
+
ls: TranslationFunctions;
|
|
5179
|
+
};
|
|
5180
|
+
_input_in: {
|
|
5181
|
+
appId?: string | undefined;
|
|
5182
|
+
} & {
|
|
5183
|
+
branchId: string;
|
|
5184
|
+
roleName: string;
|
|
5185
|
+
};
|
|
5186
|
+
_input_out: {
|
|
5187
|
+
appId?: string | undefined;
|
|
5188
|
+
} & {
|
|
5189
|
+
branchId: string;
|
|
5190
|
+
roleName: string;
|
|
5191
|
+
};
|
|
5192
|
+
_output_in: {
|
|
5193
|
+
name: string;
|
|
5194
|
+
branchId: string;
|
|
5195
|
+
password?: string | undefined;
|
|
5196
|
+
protected?: boolean | undefined;
|
|
5197
|
+
};
|
|
5198
|
+
_output_out: {
|
|
5199
|
+
name: string;
|
|
5200
|
+
branchId: string;
|
|
5201
|
+
password?: string | undefined;
|
|
5202
|
+
protected?: boolean | undefined;
|
|
5203
|
+
};
|
|
5204
|
+
}, unknown>;
|
|
5205
|
+
delete: _trpc_server.BuildProcedure<"mutation", {
|
|
5206
|
+
_config: _trpc_server.RootConfig<{
|
|
5207
|
+
ctx: {};
|
|
5208
|
+
meta: object;
|
|
5209
|
+
errorShape: {
|
|
5210
|
+
message: string;
|
|
5211
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5212
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5213
|
+
} | {
|
|
5214
|
+
data: {
|
|
5215
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5216
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
5217
|
+
httpStatus: number;
|
|
5218
|
+
path?: string | undefined;
|
|
5219
|
+
stack?: string | undefined;
|
|
5220
|
+
};
|
|
5221
|
+
message: string;
|
|
5222
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5223
|
+
};
|
|
5224
|
+
transformer: typeof superjson.default;
|
|
5225
|
+
}>;
|
|
5226
|
+
_meta: object;
|
|
5227
|
+
_ctx_out: {
|
|
5228
|
+
session: {
|
|
5229
|
+
appId: string;
|
|
5230
|
+
appPlanId: string | null;
|
|
5231
|
+
appFakeUserId: string | undefined;
|
|
5232
|
+
sessionId: string;
|
|
5233
|
+
accountId: string;
|
|
5234
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5235
|
+
userId: string;
|
|
5236
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5237
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5238
|
+
isCare?: boolean | undefined;
|
|
5239
|
+
};
|
|
5240
|
+
req: {
|
|
5241
|
+
headers: Headers;
|
|
5242
|
+
};
|
|
5243
|
+
res: {
|
|
5244
|
+
headers: Headers;
|
|
5245
|
+
};
|
|
5246
|
+
locale: Locales;
|
|
5247
|
+
ls: TranslationFunctions;
|
|
5248
|
+
};
|
|
5249
|
+
_input_in: {
|
|
5250
|
+
appId?: string | undefined;
|
|
5251
|
+
} & {
|
|
5252
|
+
branchId: string;
|
|
5253
|
+
roleName: string;
|
|
5254
|
+
};
|
|
5255
|
+
_input_out: {
|
|
5256
|
+
appId?: string | undefined;
|
|
5257
|
+
} & {
|
|
5258
|
+
branchId: string;
|
|
5259
|
+
roleName: string;
|
|
5260
|
+
};
|
|
5261
|
+
_output_in: {
|
|
5262
|
+
isDeleted: boolean;
|
|
5263
|
+
};
|
|
5264
|
+
_output_out: {
|
|
5265
|
+
isDeleted: boolean;
|
|
5266
|
+
};
|
|
5267
|
+
}, unknown>;
|
|
5268
|
+
get: _trpc_server.BuildProcedure<"query", {
|
|
5269
|
+
_config: _trpc_server.RootConfig<{
|
|
5270
|
+
ctx: {};
|
|
5271
|
+
meta: object;
|
|
5272
|
+
errorShape: {
|
|
5273
|
+
message: string;
|
|
5274
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5275
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5276
|
+
} | {
|
|
5277
|
+
data: {
|
|
5278
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5279
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
5280
|
+
httpStatus: number;
|
|
5281
|
+
path?: string | undefined;
|
|
5282
|
+
stack?: string | undefined;
|
|
5283
|
+
};
|
|
5284
|
+
message: string;
|
|
5285
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5286
|
+
};
|
|
5287
|
+
transformer: typeof superjson.default;
|
|
5288
|
+
}>;
|
|
5289
|
+
_meta: object;
|
|
5290
|
+
_ctx_out: {
|
|
5291
|
+
session: {
|
|
5292
|
+
appId: string;
|
|
5293
|
+
appPlanId: string | null;
|
|
5294
|
+
appFakeUserId: string | undefined;
|
|
5295
|
+
sessionId: string;
|
|
5296
|
+
accountId: string;
|
|
5297
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5298
|
+
userId: string;
|
|
5299
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5300
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5301
|
+
isCare?: boolean | undefined;
|
|
5302
|
+
};
|
|
5303
|
+
req: {
|
|
5304
|
+
headers: Headers;
|
|
5305
|
+
};
|
|
5306
|
+
res: {
|
|
5307
|
+
headers: Headers;
|
|
5308
|
+
};
|
|
5309
|
+
locale: Locales;
|
|
5310
|
+
ls: TranslationFunctions;
|
|
5311
|
+
};
|
|
5312
|
+
_input_in: {
|
|
5313
|
+
appId?: string | undefined;
|
|
5314
|
+
} & {
|
|
5315
|
+
branchId: string;
|
|
5316
|
+
roleName: string;
|
|
5317
|
+
};
|
|
5318
|
+
_input_out: {
|
|
5319
|
+
appId?: string | undefined;
|
|
5320
|
+
} & {
|
|
5321
|
+
branchId: string;
|
|
5322
|
+
roleName: string;
|
|
5323
|
+
};
|
|
5324
|
+
_output_in: {
|
|
5325
|
+
name: string;
|
|
5326
|
+
branchId: string;
|
|
5327
|
+
password?: string | undefined;
|
|
5328
|
+
protected?: boolean | undefined;
|
|
5329
|
+
};
|
|
5330
|
+
_output_out: {
|
|
5331
|
+
name: string;
|
|
5332
|
+
branchId: string;
|
|
5333
|
+
password?: string | undefined;
|
|
5334
|
+
protected?: boolean | undefined;
|
|
5335
|
+
};
|
|
5336
|
+
}, unknown>;
|
|
5337
|
+
getAll: _trpc_server.BuildProcedure<"query", {
|
|
5338
|
+
_config: _trpc_server.RootConfig<{
|
|
5339
|
+
ctx: {};
|
|
5340
|
+
meta: object;
|
|
5341
|
+
errorShape: {
|
|
5342
|
+
message: string;
|
|
5343
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5344
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5345
|
+
} | {
|
|
5346
|
+
data: {
|
|
5347
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5348
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
5349
|
+
httpStatus: number;
|
|
5350
|
+
path?: string | undefined;
|
|
5351
|
+
stack?: string | undefined;
|
|
5352
|
+
};
|
|
5353
|
+
message: string;
|
|
5354
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5355
|
+
};
|
|
5356
|
+
transformer: typeof superjson.default;
|
|
5357
|
+
}>;
|
|
5358
|
+
_meta: object;
|
|
5359
|
+
_ctx_out: {
|
|
5360
|
+
session: {
|
|
5361
|
+
appId: string;
|
|
5362
|
+
appPlanId: string | null;
|
|
5363
|
+
appFakeUserId: string | undefined;
|
|
5364
|
+
sessionId: string;
|
|
5365
|
+
accountId: string;
|
|
5366
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5367
|
+
userId: string;
|
|
5368
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5369
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5370
|
+
isCare?: boolean | undefined;
|
|
5371
|
+
};
|
|
5372
|
+
req: {
|
|
5373
|
+
headers: Headers;
|
|
5374
|
+
};
|
|
5375
|
+
res: {
|
|
5376
|
+
headers: Headers;
|
|
5377
|
+
};
|
|
5378
|
+
locale: Locales;
|
|
5379
|
+
ls: TranslationFunctions;
|
|
5380
|
+
};
|
|
5381
|
+
_input_in: {
|
|
5382
|
+
appId?: string | undefined;
|
|
5383
|
+
} & {
|
|
5384
|
+
branchId: string;
|
|
5385
|
+
};
|
|
5386
|
+
_input_out: {
|
|
5387
|
+
appId?: string | undefined;
|
|
5388
|
+
} & {
|
|
5389
|
+
branchId: string;
|
|
5390
|
+
};
|
|
5391
|
+
_output_in: {
|
|
5392
|
+
name: string;
|
|
5393
|
+
branchId: string;
|
|
5394
|
+
password?: string | undefined;
|
|
5395
|
+
protected?: boolean | undefined;
|
|
5396
|
+
}[];
|
|
5397
|
+
_output_out: {
|
|
5398
|
+
name: string;
|
|
5399
|
+
branchId: string;
|
|
5400
|
+
password?: string | undefined;
|
|
5401
|
+
protected?: boolean | undefined;
|
|
5402
|
+
}[];
|
|
5403
|
+
}, unknown>;
|
|
5404
|
+
resetPassword: _trpc_server.BuildProcedure<"mutation", {
|
|
5405
|
+
_config: _trpc_server.RootConfig<{
|
|
5406
|
+
ctx: {};
|
|
5407
|
+
meta: object;
|
|
5408
|
+
errorShape: {
|
|
5409
|
+
message: string;
|
|
5410
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5411
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5412
|
+
} | {
|
|
5413
|
+
data: {
|
|
5414
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5415
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
5416
|
+
httpStatus: number;
|
|
5417
|
+
path?: string | undefined;
|
|
5418
|
+
stack?: string | undefined;
|
|
5419
|
+
};
|
|
5420
|
+
message: string;
|
|
5421
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5422
|
+
};
|
|
5423
|
+
transformer: typeof superjson.default;
|
|
5424
|
+
}>;
|
|
5425
|
+
_meta: object;
|
|
5426
|
+
_ctx_out: {
|
|
5427
|
+
session: {
|
|
5428
|
+
appId: string;
|
|
5429
|
+
appPlanId: string | null;
|
|
5430
|
+
appFakeUserId: string | undefined;
|
|
5431
|
+
sessionId: string;
|
|
5432
|
+
accountId: string;
|
|
5433
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5434
|
+
userId: string;
|
|
5435
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5436
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5437
|
+
isCare?: boolean | undefined;
|
|
5438
|
+
};
|
|
5439
|
+
req: {
|
|
5440
|
+
headers: Headers;
|
|
5441
|
+
};
|
|
5442
|
+
res: {
|
|
5443
|
+
headers: Headers;
|
|
5444
|
+
};
|
|
5445
|
+
locale: Locales;
|
|
5446
|
+
ls: TranslationFunctions;
|
|
5447
|
+
};
|
|
5448
|
+
_input_in: {
|
|
5449
|
+
appId?: string | undefined;
|
|
5450
|
+
} & {
|
|
5451
|
+
branchId: string;
|
|
5452
|
+
roleName: string;
|
|
5453
|
+
};
|
|
5454
|
+
_input_out: {
|
|
5455
|
+
appId?: string | undefined;
|
|
5456
|
+
} & {
|
|
5457
|
+
branchId: string;
|
|
5458
|
+
roleName: string;
|
|
5459
|
+
};
|
|
5460
|
+
_output_in: {
|
|
5461
|
+
password: string;
|
|
5462
|
+
};
|
|
5463
|
+
_output_out: {
|
|
5464
|
+
password: string;
|
|
5465
|
+
};
|
|
5466
|
+
}, unknown>;
|
|
5467
|
+
}>;
|
|
5468
|
+
project: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
|
|
5469
|
+
ctx: {};
|
|
5470
|
+
meta: object;
|
|
5471
|
+
errorShape: {
|
|
5472
|
+
message: string;
|
|
5473
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5474
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5475
|
+
} | {
|
|
5476
|
+
data: {
|
|
5477
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5478
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
5479
|
+
httpStatus: number;
|
|
5480
|
+
path?: string | undefined;
|
|
5481
|
+
stack?: string | undefined;
|
|
5482
|
+
};
|
|
5483
|
+
message: string;
|
|
5484
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5485
|
+
};
|
|
5486
|
+
transformer: typeof superjson.default;
|
|
5487
|
+
}>, {
|
|
5488
|
+
create: _trpc_server.BuildProcedure<"mutation", {
|
|
5489
|
+
_config: _trpc_server.RootConfig<{
|
|
5490
|
+
ctx: {};
|
|
5491
|
+
meta: object;
|
|
5492
|
+
errorShape: {
|
|
5493
|
+
message: string;
|
|
5494
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5495
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5496
|
+
} | {
|
|
5497
|
+
data: {
|
|
5498
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5499
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
5500
|
+
httpStatus: number;
|
|
5501
|
+
path?: string | undefined;
|
|
5502
|
+
stack?: string | undefined;
|
|
5503
|
+
};
|
|
5504
|
+
message: string;
|
|
5505
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5506
|
+
};
|
|
5507
|
+
transformer: typeof superjson.default;
|
|
5508
|
+
}>;
|
|
5509
|
+
_meta: object;
|
|
5510
|
+
_ctx_out: {
|
|
5511
|
+
session: {
|
|
5512
|
+
appId: string;
|
|
5513
|
+
appPlanId: string | null;
|
|
5514
|
+
appFakeUserId: string | undefined;
|
|
5515
|
+
sessionId: string;
|
|
5516
|
+
accountId: string;
|
|
5517
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5518
|
+
userId: string;
|
|
5519
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5520
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5521
|
+
isCare?: boolean | undefined;
|
|
5522
|
+
};
|
|
5523
|
+
req: {
|
|
5524
|
+
headers: Headers;
|
|
5525
|
+
};
|
|
5526
|
+
res: {
|
|
5527
|
+
headers: Headers;
|
|
5528
|
+
};
|
|
5529
|
+
locale: Locales;
|
|
5530
|
+
ls: TranslationFunctions;
|
|
5531
|
+
};
|
|
5532
|
+
_input_in: {
|
|
5533
|
+
appId?: string | undefined;
|
|
5534
|
+
} & {
|
|
5535
|
+
regionId?: "aws-us-east-1" | "aws-us-east-2" | "aws-us-west-2" | "aws-eu-central-1" | "aws-ap-southeast-1" | "aws-ap-southeast-2" | undefined;
|
|
5536
|
+
pgVersion?: 16 | 14 | 15 | undefined;
|
|
5537
|
+
};
|
|
5538
|
+
_input_out: {
|
|
5539
|
+
appId?: string | undefined;
|
|
5540
|
+
} & {
|
|
5541
|
+
regionId: "aws-us-east-1" | "aws-us-east-2" | "aws-us-west-2" | "aws-eu-central-1" | "aws-ap-southeast-1" | "aws-ap-southeast-2";
|
|
5542
|
+
pgVersion: 16 | 14 | 15;
|
|
5543
|
+
};
|
|
5544
|
+
_output_in: {
|
|
5545
|
+
isCreated: boolean;
|
|
5546
|
+
};
|
|
5547
|
+
_output_out: {
|
|
5548
|
+
isCreated: boolean;
|
|
5549
|
+
};
|
|
5550
|
+
}, unknown>;
|
|
5551
|
+
hasProject: _trpc_server.BuildProcedure<"query", {
|
|
5552
|
+
_config: _trpc_server.RootConfig<{
|
|
5553
|
+
ctx: {};
|
|
5554
|
+
meta: object;
|
|
5555
|
+
errorShape: {
|
|
5556
|
+
message: string;
|
|
5557
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5558
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5559
|
+
} | {
|
|
5560
|
+
data: {
|
|
5561
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5562
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
5563
|
+
httpStatus: number;
|
|
5564
|
+
path?: string | undefined;
|
|
5565
|
+
stack?: string | undefined;
|
|
5566
|
+
};
|
|
5567
|
+
message: string;
|
|
5568
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5569
|
+
};
|
|
5570
|
+
transformer: typeof superjson.default;
|
|
5571
|
+
}>;
|
|
5572
|
+
_meta: object;
|
|
5573
|
+
_ctx_out: {
|
|
5574
|
+
session: {
|
|
5575
|
+
appId: string;
|
|
5576
|
+
appPlanId: string | null;
|
|
5577
|
+
appFakeUserId: string | undefined;
|
|
5578
|
+
sessionId: string;
|
|
5579
|
+
accountId: string;
|
|
5580
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5581
|
+
userId: string;
|
|
5582
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5583
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5584
|
+
isCare?: boolean | undefined;
|
|
5585
|
+
};
|
|
5586
|
+
req: {
|
|
5587
|
+
headers: Headers;
|
|
5588
|
+
};
|
|
5589
|
+
res: {
|
|
5590
|
+
headers: Headers;
|
|
5591
|
+
};
|
|
5592
|
+
locale: Locales;
|
|
5593
|
+
ls: TranslationFunctions;
|
|
5594
|
+
};
|
|
5595
|
+
_input_in: {
|
|
5596
|
+
appId?: string | undefined;
|
|
5597
|
+
} & {};
|
|
5598
|
+
_input_out: {
|
|
5599
|
+
appId?: string | undefined;
|
|
5600
|
+
} & {};
|
|
5601
|
+
_output_in: {
|
|
5602
|
+
hasProject: boolean;
|
|
5603
|
+
};
|
|
5604
|
+
_output_out: {
|
|
5605
|
+
hasProject: boolean;
|
|
5606
|
+
};
|
|
5607
|
+
}, unknown>;
|
|
5608
|
+
operation: _trpc_server.BuildProcedure<"query", {
|
|
5609
|
+
_config: _trpc_server.RootConfig<{
|
|
5610
|
+
ctx: {};
|
|
5611
|
+
meta: object;
|
|
5612
|
+
errorShape: {
|
|
5613
|
+
message: string;
|
|
5614
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5615
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5616
|
+
} | {
|
|
5617
|
+
data: {
|
|
5618
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5619
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
5620
|
+
httpStatus: number;
|
|
5621
|
+
path?: string | undefined;
|
|
5622
|
+
stack?: string | undefined;
|
|
5623
|
+
};
|
|
5624
|
+
message: string;
|
|
5625
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5626
|
+
};
|
|
5627
|
+
transformer: typeof superjson.default;
|
|
5628
|
+
}>;
|
|
5629
|
+
_meta: object;
|
|
5630
|
+
_ctx_out: {
|
|
5631
|
+
session: {
|
|
5632
|
+
appId: string;
|
|
5633
|
+
appPlanId: string | null;
|
|
5634
|
+
appFakeUserId: string | undefined;
|
|
5635
|
+
sessionId: string;
|
|
5636
|
+
accountId: string;
|
|
5637
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5638
|
+
userId: string;
|
|
5639
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5640
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5641
|
+
isCare?: boolean | undefined;
|
|
5642
|
+
};
|
|
5643
|
+
req: {
|
|
5644
|
+
headers: Headers;
|
|
5645
|
+
};
|
|
5646
|
+
res: {
|
|
5647
|
+
headers: Headers;
|
|
5648
|
+
};
|
|
5649
|
+
locale: Locales;
|
|
5650
|
+
ls: TranslationFunctions;
|
|
5651
|
+
};
|
|
5652
|
+
_input_in: {
|
|
5653
|
+
appId?: string | undefined;
|
|
5654
|
+
} & {
|
|
5655
|
+
operationId: string;
|
|
5656
|
+
};
|
|
5657
|
+
_input_out: {
|
|
5658
|
+
appId?: string | undefined;
|
|
5659
|
+
} & {
|
|
5660
|
+
operationId: string;
|
|
5661
|
+
};
|
|
5662
|
+
_output_in: {
|
|
5663
|
+
status: _neondatabase_api_client.OperationStatus;
|
|
5664
|
+
id: string;
|
|
5665
|
+
createdAt: string;
|
|
5666
|
+
updatedAt: string;
|
|
5667
|
+
action: _neondatabase_api_client.OperationAction;
|
|
5668
|
+
failuresCount: number;
|
|
5669
|
+
totalDurationMs: number;
|
|
5670
|
+
branchId?: string | undefined;
|
|
5671
|
+
endpointId?: string | undefined;
|
|
5672
|
+
error?: string | undefined;
|
|
5673
|
+
retryAt?: string | undefined;
|
|
5674
|
+
};
|
|
5675
|
+
_output_out: {
|
|
5676
|
+
status: _neondatabase_api_client.OperationStatus;
|
|
5677
|
+
id: string;
|
|
5678
|
+
createdAt: string;
|
|
5679
|
+
updatedAt: string;
|
|
5680
|
+
action: _neondatabase_api_client.OperationAction;
|
|
5681
|
+
failuresCount: number;
|
|
5682
|
+
totalDurationMs: number;
|
|
5683
|
+
branchId?: string | undefined;
|
|
5684
|
+
endpointId?: string | undefined;
|
|
5685
|
+
error?: string | undefined;
|
|
5686
|
+
retryAt?: string | undefined;
|
|
5687
|
+
};
|
|
5688
|
+
}, unknown>;
|
|
5689
|
+
operations: _trpc_server.BuildProcedure<"query", {
|
|
5690
|
+
_config: _trpc_server.RootConfig<{
|
|
5691
|
+
ctx: {};
|
|
5692
|
+
meta: object;
|
|
5693
|
+
errorShape: {
|
|
5694
|
+
message: string;
|
|
5695
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5696
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5697
|
+
} | {
|
|
5698
|
+
data: {
|
|
5699
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5700
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
5701
|
+
httpStatus: number;
|
|
5702
|
+
path?: string | undefined;
|
|
5703
|
+
stack?: string | undefined;
|
|
5704
|
+
};
|
|
5705
|
+
message: string;
|
|
5706
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5707
|
+
};
|
|
5708
|
+
transformer: typeof superjson.default;
|
|
5709
|
+
}>;
|
|
5710
|
+
_meta: object;
|
|
5711
|
+
_ctx_out: {
|
|
5712
|
+
session: {
|
|
5713
|
+
appId: string;
|
|
5714
|
+
appPlanId: string | null;
|
|
5715
|
+
appFakeUserId: string | undefined;
|
|
5716
|
+
sessionId: string;
|
|
5717
|
+
accountId: string;
|
|
5718
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5719
|
+
userId: string;
|
|
5720
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5721
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5722
|
+
isCare?: boolean | undefined;
|
|
5723
|
+
};
|
|
5724
|
+
req: {
|
|
5725
|
+
headers: Headers;
|
|
5726
|
+
};
|
|
5727
|
+
res: {
|
|
5728
|
+
headers: Headers;
|
|
5729
|
+
};
|
|
5730
|
+
locale: Locales;
|
|
5731
|
+
ls: TranslationFunctions;
|
|
5732
|
+
};
|
|
5733
|
+
_input_in: {
|
|
5734
|
+
appId?: string | undefined;
|
|
5735
|
+
} & {
|
|
5736
|
+
limit?: number | undefined;
|
|
5737
|
+
cursor?: string | undefined;
|
|
5738
|
+
};
|
|
5739
|
+
_input_out: {
|
|
5740
|
+
appId?: string | undefined;
|
|
5741
|
+
} & {
|
|
5742
|
+
limit?: number | undefined;
|
|
5743
|
+
cursor?: string | undefined;
|
|
5744
|
+
};
|
|
5745
|
+
_output_in: {
|
|
5746
|
+
operations: {
|
|
5747
|
+
status: _neondatabase_api_client.OperationStatus;
|
|
5748
|
+
id: string;
|
|
5749
|
+
createdAt: string;
|
|
5750
|
+
updatedAt: string;
|
|
5751
|
+
action: _neondatabase_api_client.OperationAction;
|
|
5752
|
+
failuresCount: number;
|
|
5753
|
+
totalDurationMs: number;
|
|
5754
|
+
branchId?: string | undefined;
|
|
5755
|
+
endpointId?: string | undefined;
|
|
5756
|
+
error?: string | undefined;
|
|
5757
|
+
retryAt?: string | undefined;
|
|
5758
|
+
}[];
|
|
5759
|
+
pagination?: {
|
|
5760
|
+
cursor: string;
|
|
5761
|
+
} | undefined;
|
|
5762
|
+
};
|
|
5763
|
+
_output_out: {
|
|
5764
|
+
operations: {
|
|
5765
|
+
status: _neondatabase_api_client.OperationStatus;
|
|
5766
|
+
id: string;
|
|
5767
|
+
createdAt: string;
|
|
5768
|
+
updatedAt: string;
|
|
5769
|
+
action: _neondatabase_api_client.OperationAction;
|
|
5770
|
+
failuresCount: number;
|
|
5771
|
+
totalDurationMs: number;
|
|
5772
|
+
branchId?: string | undefined;
|
|
5773
|
+
endpointId?: string | undefined;
|
|
5774
|
+
error?: string | undefined;
|
|
5775
|
+
retryAt?: string | undefined;
|
|
5776
|
+
}[];
|
|
5777
|
+
pagination?: {
|
|
5778
|
+
cursor: string;
|
|
5779
|
+
} | undefined;
|
|
5780
|
+
};
|
|
5781
|
+
}, unknown>;
|
|
5782
|
+
metrics: _trpc_server.BuildProcedure<"query", {
|
|
5783
|
+
_config: _trpc_server.RootConfig<{
|
|
5784
|
+
ctx: {};
|
|
5785
|
+
meta: object;
|
|
5786
|
+
errorShape: {
|
|
5787
|
+
message: string;
|
|
5788
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5789
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5790
|
+
} | {
|
|
5791
|
+
data: {
|
|
5792
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5793
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
5794
|
+
httpStatus: number;
|
|
5795
|
+
path?: string | undefined;
|
|
5796
|
+
stack?: string | undefined;
|
|
5797
|
+
};
|
|
5798
|
+
message: string;
|
|
5799
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5800
|
+
};
|
|
5801
|
+
transformer: typeof superjson.default;
|
|
5802
|
+
}>;
|
|
5803
|
+
_meta: object;
|
|
5804
|
+
_ctx_out: {
|
|
5805
|
+
session: {
|
|
5806
|
+
appId: string;
|
|
5807
|
+
appPlanId: string | null;
|
|
5808
|
+
appFakeUserId: string | undefined;
|
|
5809
|
+
sessionId: string;
|
|
5810
|
+
accountId: string;
|
|
5811
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5812
|
+
userId: string;
|
|
5813
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5814
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5815
|
+
isCare?: boolean | undefined;
|
|
5816
|
+
};
|
|
5817
|
+
req: {
|
|
5818
|
+
headers: Headers;
|
|
5819
|
+
};
|
|
5820
|
+
res: {
|
|
5821
|
+
headers: Headers;
|
|
5822
|
+
};
|
|
5823
|
+
locale: Locales;
|
|
5824
|
+
ls: TranslationFunctions;
|
|
5825
|
+
};
|
|
5826
|
+
_input_in: {
|
|
5827
|
+
appId?: string | undefined;
|
|
5828
|
+
} & {};
|
|
5829
|
+
_input_out: {
|
|
5830
|
+
appId?: string | undefined;
|
|
5831
|
+
} & {};
|
|
5832
|
+
_output_in: {
|
|
5833
|
+
activeTimeSeconds: number;
|
|
5834
|
+
computeTimeseconds: number;
|
|
5835
|
+
writtenDataBytes: number;
|
|
5836
|
+
dataTransferBytes: number;
|
|
5837
|
+
dataStorageBytesHour: number;
|
|
5838
|
+
branchLogicalSizeLimit: number;
|
|
5839
|
+
branchLogicalSizeLimitBytes: number;
|
|
5840
|
+
};
|
|
5841
|
+
_output_out: {
|
|
5842
|
+
activeTimeSeconds: number;
|
|
5843
|
+
computeTimeseconds: number;
|
|
5844
|
+
writtenDataBytes: number;
|
|
5845
|
+
dataTransferBytes: number;
|
|
5846
|
+
dataStorageBytesHour: number;
|
|
5847
|
+
branchLogicalSizeLimit: number;
|
|
5848
|
+
branchLogicalSizeLimitBytes: number;
|
|
5849
|
+
};
|
|
5850
|
+
}, unknown>;
|
|
5851
|
+
quotas: _trpc_server.BuildProcedure<"query", {
|
|
5852
|
+
_config: _trpc_server.RootConfig<{
|
|
5853
|
+
ctx: {};
|
|
5854
|
+
meta: object;
|
|
5855
|
+
errorShape: {
|
|
5856
|
+
message: string;
|
|
5857
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5858
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5859
|
+
} | {
|
|
5860
|
+
data: {
|
|
5861
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5862
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
5863
|
+
httpStatus: number;
|
|
5864
|
+
path?: string | undefined;
|
|
5865
|
+
stack?: string | undefined;
|
|
5866
|
+
};
|
|
5867
|
+
message: string;
|
|
5868
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5869
|
+
};
|
|
5870
|
+
transformer: typeof superjson.default;
|
|
5871
|
+
}>;
|
|
5872
|
+
_meta: object;
|
|
5873
|
+
_ctx_out: {
|
|
5874
|
+
session: {
|
|
5875
|
+
appId: string;
|
|
5876
|
+
appPlanId: string | null;
|
|
5877
|
+
appFakeUserId: string | undefined;
|
|
5878
|
+
sessionId: string;
|
|
5879
|
+
accountId: string;
|
|
5880
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5881
|
+
userId: string;
|
|
5882
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5883
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5884
|
+
isCare?: boolean | undefined;
|
|
5885
|
+
};
|
|
5886
|
+
req: {
|
|
5887
|
+
headers: Headers;
|
|
5888
|
+
};
|
|
5889
|
+
res: {
|
|
5890
|
+
headers: Headers;
|
|
5891
|
+
};
|
|
5892
|
+
locale: Locales;
|
|
5893
|
+
ls: TranslationFunctions;
|
|
5894
|
+
};
|
|
5895
|
+
_input_in: {
|
|
5896
|
+
appId?: string | undefined;
|
|
5897
|
+
} & {};
|
|
5898
|
+
_input_out: {
|
|
5899
|
+
appId?: string | undefined;
|
|
5900
|
+
} & {};
|
|
5901
|
+
_output_in: {
|
|
5902
|
+
activeTimeSeconds?: number | undefined;
|
|
5903
|
+
computeTimeseconds?: number | undefined;
|
|
5904
|
+
dataTransferBytes?: number | undefined;
|
|
5905
|
+
logicalSizeBytes?: number | undefined;
|
|
5906
|
+
writtenDataBytes?: number | undefined;
|
|
5907
|
+
};
|
|
5908
|
+
_output_out: {
|
|
5909
|
+
activeTimeSeconds?: number | undefined;
|
|
5910
|
+
computeTimeseconds?: number | undefined;
|
|
5911
|
+
dataTransferBytes?: number | undefined;
|
|
5912
|
+
logicalSizeBytes?: number | undefined;
|
|
5913
|
+
writtenDataBytes?: number | undefined;
|
|
5914
|
+
};
|
|
5915
|
+
}, unknown>;
|
|
5916
|
+
}>;
|
|
5917
|
+
branch: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
|
|
5918
|
+
ctx: {};
|
|
5919
|
+
meta: object;
|
|
5920
|
+
errorShape: {
|
|
5921
|
+
message: string;
|
|
5922
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5923
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5924
|
+
} | {
|
|
5925
|
+
data: {
|
|
5926
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5927
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
5928
|
+
httpStatus: number;
|
|
5929
|
+
path?: string | undefined;
|
|
5930
|
+
stack?: string | undefined;
|
|
5931
|
+
};
|
|
5932
|
+
message: string;
|
|
5933
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5934
|
+
};
|
|
5935
|
+
transformer: typeof superjson.default;
|
|
5936
|
+
}>, {
|
|
5937
|
+
create: _trpc_server.BuildProcedure<"mutation", {
|
|
5938
|
+
_config: _trpc_server.RootConfig<{
|
|
5939
|
+
ctx: {};
|
|
5940
|
+
meta: object;
|
|
5941
|
+
errorShape: {
|
|
5942
|
+
message: string;
|
|
5943
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5944
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
5945
|
+
} | {
|
|
5946
|
+
data: {
|
|
5947
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
5948
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
5949
|
+
httpStatus: number;
|
|
5950
|
+
path?: string | undefined;
|
|
5951
|
+
stack?: string | undefined;
|
|
5952
|
+
};
|
|
5953
|
+
message: string;
|
|
5954
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
5955
|
+
};
|
|
5956
|
+
transformer: typeof superjson.default;
|
|
5957
|
+
}>;
|
|
5958
|
+
_meta: object;
|
|
5959
|
+
_ctx_out: {
|
|
5960
|
+
session: {
|
|
5961
|
+
appId: string;
|
|
5962
|
+
appPlanId: string | null;
|
|
5963
|
+
appFakeUserId: string | undefined;
|
|
5964
|
+
sessionId: string;
|
|
5965
|
+
accountId: string;
|
|
5966
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
5967
|
+
userId: string;
|
|
5968
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
5969
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
5970
|
+
isCare?: boolean | undefined;
|
|
5971
|
+
};
|
|
5972
|
+
req: {
|
|
5973
|
+
headers: Headers;
|
|
5974
|
+
};
|
|
5975
|
+
res: {
|
|
5976
|
+
headers: Headers;
|
|
5977
|
+
};
|
|
5978
|
+
locale: Locales;
|
|
5979
|
+
ls: TranslationFunctions;
|
|
5980
|
+
};
|
|
5981
|
+
_input_in: {
|
|
5982
|
+
appId?: string | undefined;
|
|
5983
|
+
} & {
|
|
5984
|
+
name: string;
|
|
5985
|
+
parentId?: string | undefined;
|
|
5986
|
+
};
|
|
5987
|
+
_input_out: {
|
|
5988
|
+
appId?: string | undefined;
|
|
5989
|
+
} & {
|
|
5990
|
+
name: string;
|
|
5991
|
+
parentId?: string | undefined;
|
|
5992
|
+
};
|
|
5993
|
+
_output_in: {
|
|
5994
|
+
id: string;
|
|
5995
|
+
name: string;
|
|
5996
|
+
currentState: "init" | "ready";
|
|
5997
|
+
isPrimary: boolean;
|
|
5998
|
+
parentId?: string | undefined;
|
|
5999
|
+
};
|
|
6000
|
+
_output_out: {
|
|
6001
|
+
id: string;
|
|
6002
|
+
name: string;
|
|
6003
|
+
currentState: "init" | "ready";
|
|
6004
|
+
isPrimary: boolean;
|
|
6005
|
+
parentId?: string | undefined;
|
|
6006
|
+
};
|
|
6007
|
+
}, unknown>;
|
|
6008
|
+
delete: _trpc_server.BuildProcedure<"mutation", {
|
|
6009
|
+
_config: _trpc_server.RootConfig<{
|
|
6010
|
+
ctx: {};
|
|
6011
|
+
meta: object;
|
|
6012
|
+
errorShape: {
|
|
6013
|
+
message: string;
|
|
6014
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6015
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6016
|
+
} | {
|
|
6017
|
+
data: {
|
|
6018
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6019
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6020
|
+
httpStatus: number;
|
|
6021
|
+
path?: string | undefined;
|
|
6022
|
+
stack?: string | undefined;
|
|
6023
|
+
};
|
|
6024
|
+
message: string;
|
|
6025
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6026
|
+
};
|
|
6027
|
+
transformer: typeof superjson.default;
|
|
6028
|
+
}>;
|
|
6029
|
+
_meta: object;
|
|
6030
|
+
_ctx_out: {
|
|
6031
|
+
session: {
|
|
6032
|
+
appId: string;
|
|
6033
|
+
appPlanId: string | null;
|
|
6034
|
+
appFakeUserId: string | undefined;
|
|
6035
|
+
sessionId: string;
|
|
6036
|
+
accountId: string;
|
|
6037
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
6038
|
+
userId: string;
|
|
6039
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
6040
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
6041
|
+
isCare?: boolean | undefined;
|
|
6042
|
+
};
|
|
6043
|
+
req: {
|
|
6044
|
+
headers: Headers;
|
|
6045
|
+
};
|
|
6046
|
+
res: {
|
|
6047
|
+
headers: Headers;
|
|
6048
|
+
};
|
|
6049
|
+
locale: Locales;
|
|
6050
|
+
ls: TranslationFunctions;
|
|
6051
|
+
};
|
|
6052
|
+
_input_in: {
|
|
6053
|
+
appId?: string | undefined;
|
|
6054
|
+
} & {
|
|
6055
|
+
branchId: string;
|
|
6056
|
+
};
|
|
6057
|
+
_input_out: {
|
|
6058
|
+
appId?: string | undefined;
|
|
6059
|
+
} & {
|
|
6060
|
+
branchId: string;
|
|
6061
|
+
};
|
|
6062
|
+
_output_in: {
|
|
6063
|
+
isDeleted: boolean;
|
|
6064
|
+
};
|
|
6065
|
+
_output_out: {
|
|
6066
|
+
isDeleted: boolean;
|
|
6067
|
+
};
|
|
6068
|
+
}, unknown>;
|
|
6069
|
+
get: _trpc_server.BuildProcedure<"query", {
|
|
6070
|
+
_config: _trpc_server.RootConfig<{
|
|
6071
|
+
ctx: {};
|
|
6072
|
+
meta: object;
|
|
6073
|
+
errorShape: {
|
|
6074
|
+
message: string;
|
|
6075
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6076
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6077
|
+
} | {
|
|
6078
|
+
data: {
|
|
6079
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6080
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6081
|
+
httpStatus: number;
|
|
6082
|
+
path?: string | undefined;
|
|
6083
|
+
stack?: string | undefined;
|
|
6084
|
+
};
|
|
6085
|
+
message: string;
|
|
6086
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6087
|
+
};
|
|
6088
|
+
transformer: typeof superjson.default;
|
|
6089
|
+
}>;
|
|
6090
|
+
_meta: object;
|
|
6091
|
+
_ctx_out: {
|
|
6092
|
+
session: {
|
|
6093
|
+
appId: string;
|
|
6094
|
+
appPlanId: string | null;
|
|
6095
|
+
appFakeUserId: string | undefined;
|
|
6096
|
+
sessionId: string;
|
|
6097
|
+
accountId: string;
|
|
6098
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
6099
|
+
userId: string;
|
|
6100
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
6101
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
6102
|
+
isCare?: boolean | undefined;
|
|
6103
|
+
};
|
|
6104
|
+
req: {
|
|
6105
|
+
headers: Headers;
|
|
6106
|
+
};
|
|
6107
|
+
res: {
|
|
6108
|
+
headers: Headers;
|
|
6109
|
+
};
|
|
6110
|
+
locale: Locales;
|
|
6111
|
+
ls: TranslationFunctions;
|
|
6112
|
+
};
|
|
6113
|
+
_input_in: {
|
|
6114
|
+
appId?: string | undefined;
|
|
6115
|
+
} & {
|
|
6116
|
+
branchId: string;
|
|
6117
|
+
};
|
|
6118
|
+
_input_out: {
|
|
6119
|
+
appId?: string | undefined;
|
|
6120
|
+
} & {
|
|
6121
|
+
branchId: string;
|
|
6122
|
+
};
|
|
6123
|
+
_output_in: {
|
|
6124
|
+
id: string;
|
|
6125
|
+
name: string;
|
|
6126
|
+
currentState: "init" | "ready";
|
|
6127
|
+
isPrimary: boolean;
|
|
6128
|
+
parentId?: string | undefined;
|
|
6129
|
+
};
|
|
6130
|
+
_output_out: {
|
|
6131
|
+
id: string;
|
|
6132
|
+
name: string;
|
|
6133
|
+
currentState: "init" | "ready";
|
|
6134
|
+
isPrimary: boolean;
|
|
6135
|
+
parentId?: string | undefined;
|
|
6136
|
+
};
|
|
6137
|
+
}, unknown>;
|
|
6138
|
+
getAll: _trpc_server.BuildProcedure<"query", {
|
|
6139
|
+
_config: _trpc_server.RootConfig<{
|
|
6140
|
+
ctx: {};
|
|
6141
|
+
meta: object;
|
|
6142
|
+
errorShape: {
|
|
6143
|
+
message: string;
|
|
6144
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6145
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6146
|
+
} | {
|
|
6147
|
+
data: {
|
|
6148
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6149
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6150
|
+
httpStatus: number;
|
|
6151
|
+
path?: string | undefined;
|
|
6152
|
+
stack?: string | undefined;
|
|
6153
|
+
};
|
|
6154
|
+
message: string;
|
|
6155
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6156
|
+
};
|
|
6157
|
+
transformer: typeof superjson.default;
|
|
6158
|
+
}>;
|
|
6159
|
+
_meta: object;
|
|
6160
|
+
_ctx_out: {
|
|
6161
|
+
session: {
|
|
6162
|
+
appId: string;
|
|
6163
|
+
appPlanId: string | null;
|
|
6164
|
+
appFakeUserId: string | undefined;
|
|
6165
|
+
sessionId: string;
|
|
6166
|
+
accountId: string;
|
|
6167
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
6168
|
+
userId: string;
|
|
6169
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
6170
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
6171
|
+
isCare?: boolean | undefined;
|
|
6172
|
+
};
|
|
6173
|
+
req: {
|
|
6174
|
+
headers: Headers;
|
|
6175
|
+
};
|
|
6176
|
+
res: {
|
|
6177
|
+
headers: Headers;
|
|
6178
|
+
};
|
|
6179
|
+
locale: Locales;
|
|
6180
|
+
ls: TranslationFunctions;
|
|
6181
|
+
};
|
|
6182
|
+
_input_in: {
|
|
6183
|
+
appId?: string | undefined;
|
|
6184
|
+
} & {};
|
|
6185
|
+
_input_out: {
|
|
6186
|
+
appId?: string | undefined;
|
|
6187
|
+
} & {};
|
|
6188
|
+
_output_in: {
|
|
6189
|
+
id: string;
|
|
6190
|
+
name: string;
|
|
6191
|
+
currentState: "init" | "ready";
|
|
6192
|
+
isPrimary: boolean;
|
|
6193
|
+
parentId?: string | undefined;
|
|
6194
|
+
}[];
|
|
6195
|
+
_output_out: {
|
|
6196
|
+
id: string;
|
|
6197
|
+
name: string;
|
|
6198
|
+
currentState: "init" | "ready";
|
|
6199
|
+
isPrimary: boolean;
|
|
6200
|
+
parentId?: string | undefined;
|
|
6201
|
+
}[];
|
|
6202
|
+
}, unknown>;
|
|
6203
|
+
update: _trpc_server.BuildProcedure<"mutation", {
|
|
6204
|
+
_config: _trpc_server.RootConfig<{
|
|
6205
|
+
ctx: {};
|
|
6206
|
+
meta: object;
|
|
6207
|
+
errorShape: {
|
|
6208
|
+
message: string;
|
|
6209
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6210
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6211
|
+
} | {
|
|
6212
|
+
data: {
|
|
6213
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6214
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6215
|
+
httpStatus: number;
|
|
6216
|
+
path?: string | undefined;
|
|
6217
|
+
stack?: string | undefined;
|
|
6218
|
+
};
|
|
6219
|
+
message: string;
|
|
6220
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6221
|
+
};
|
|
6222
|
+
transformer: typeof superjson.default;
|
|
6223
|
+
}>;
|
|
6224
|
+
_meta: object;
|
|
6225
|
+
_ctx_out: {
|
|
6226
|
+
session: {
|
|
6227
|
+
appId: string;
|
|
6228
|
+
appPlanId: string | null;
|
|
6229
|
+
appFakeUserId: string | undefined;
|
|
6230
|
+
sessionId: string;
|
|
6231
|
+
accountId: string;
|
|
6232
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
6233
|
+
userId: string;
|
|
6234
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
6235
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
6236
|
+
isCare?: boolean | undefined;
|
|
6237
|
+
};
|
|
6238
|
+
req: {
|
|
6239
|
+
headers: Headers;
|
|
6240
|
+
};
|
|
6241
|
+
res: {
|
|
6242
|
+
headers: Headers;
|
|
6243
|
+
};
|
|
6244
|
+
locale: Locales;
|
|
6245
|
+
ls: TranslationFunctions;
|
|
6246
|
+
};
|
|
6247
|
+
_input_in: {
|
|
6248
|
+
appId?: string | undefined;
|
|
6249
|
+
} & {
|
|
6250
|
+
branchId: string;
|
|
6251
|
+
newBranchName?: string | undefined;
|
|
6252
|
+
newProtectedState?: boolean | undefined;
|
|
6253
|
+
};
|
|
6254
|
+
_input_out: {
|
|
6255
|
+
appId?: string | undefined;
|
|
6256
|
+
} & {
|
|
6257
|
+
branchId: string;
|
|
6258
|
+
newBranchName?: string | undefined;
|
|
6259
|
+
newProtectedState?: boolean | undefined;
|
|
6260
|
+
};
|
|
6261
|
+
_output_in: {
|
|
6262
|
+
id: string;
|
|
6263
|
+
name: string;
|
|
6264
|
+
currentState: "init" | "ready";
|
|
6265
|
+
isPrimary: boolean;
|
|
6266
|
+
parentId?: string | undefined;
|
|
6267
|
+
};
|
|
6268
|
+
_output_out: {
|
|
6269
|
+
id: string;
|
|
6270
|
+
name: string;
|
|
6271
|
+
currentState: "init" | "ready";
|
|
6272
|
+
isPrimary: boolean;
|
|
6273
|
+
parentId?: string | undefined;
|
|
6274
|
+
};
|
|
6275
|
+
}, unknown>;
|
|
6276
|
+
getConnectionUri: _trpc_server.BuildProcedure<"query", {
|
|
6277
|
+
_config: _trpc_server.RootConfig<{
|
|
6278
|
+
ctx: {};
|
|
6279
|
+
meta: object;
|
|
6280
|
+
errorShape: {
|
|
6281
|
+
message: string;
|
|
6282
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6283
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6284
|
+
} | {
|
|
6285
|
+
data: {
|
|
6286
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6287
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6288
|
+
httpStatus: number;
|
|
6289
|
+
path?: string | undefined;
|
|
6290
|
+
stack?: string | undefined;
|
|
6291
|
+
};
|
|
6292
|
+
message: string;
|
|
6293
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6294
|
+
};
|
|
6295
|
+
transformer: typeof superjson.default;
|
|
6296
|
+
}>;
|
|
6297
|
+
_meta: object;
|
|
6298
|
+
_ctx_out: {
|
|
6299
|
+
session: {
|
|
6300
|
+
appId: string;
|
|
6301
|
+
appPlanId: string | null;
|
|
6302
|
+
appFakeUserId: string | undefined;
|
|
6303
|
+
sessionId: string;
|
|
6304
|
+
accountId: string;
|
|
6305
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
6306
|
+
userId: string;
|
|
6307
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
6308
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
6309
|
+
isCare?: boolean | undefined;
|
|
6310
|
+
};
|
|
6311
|
+
req: {
|
|
6312
|
+
headers: Headers;
|
|
6313
|
+
};
|
|
6314
|
+
res: {
|
|
6315
|
+
headers: Headers;
|
|
6316
|
+
};
|
|
6317
|
+
locale: Locales;
|
|
6318
|
+
ls: TranslationFunctions;
|
|
6319
|
+
};
|
|
6320
|
+
_input_in: {
|
|
6321
|
+
appId?: string | undefined;
|
|
6322
|
+
} & {
|
|
6323
|
+
branchId: string;
|
|
6324
|
+
databaseName: string;
|
|
6325
|
+
roleName?: string | undefined;
|
|
6326
|
+
};
|
|
6327
|
+
_input_out: {
|
|
6328
|
+
appId?: string | undefined;
|
|
6329
|
+
} & {
|
|
6330
|
+
branchId: string;
|
|
6331
|
+
databaseName: string;
|
|
6332
|
+
roleName?: string | undefined;
|
|
6333
|
+
};
|
|
6334
|
+
_output_in: {
|
|
6335
|
+
uri: string;
|
|
6336
|
+
};
|
|
6337
|
+
_output_out: {
|
|
6338
|
+
uri: string;
|
|
6339
|
+
};
|
|
6340
|
+
}, unknown>;
|
|
6341
|
+
setPrimary: _trpc_server.BuildProcedure<"mutation", {
|
|
6342
|
+
_config: _trpc_server.RootConfig<{
|
|
6343
|
+
ctx: {};
|
|
6344
|
+
meta: object;
|
|
6345
|
+
errorShape: {
|
|
6346
|
+
message: string;
|
|
6347
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6348
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6349
|
+
} | {
|
|
6350
|
+
data: {
|
|
6351
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6352
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6353
|
+
httpStatus: number;
|
|
6354
|
+
path?: string | undefined;
|
|
6355
|
+
stack?: string | undefined;
|
|
6356
|
+
};
|
|
6357
|
+
message: string;
|
|
6358
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6359
|
+
};
|
|
6360
|
+
transformer: typeof superjson.default;
|
|
6361
|
+
}>;
|
|
6362
|
+
_meta: object;
|
|
6363
|
+
_ctx_out: {
|
|
6364
|
+
session: {
|
|
6365
|
+
appId: string;
|
|
6366
|
+
appPlanId: string | null;
|
|
6367
|
+
appFakeUserId: string | undefined;
|
|
6368
|
+
sessionId: string;
|
|
6369
|
+
accountId: string;
|
|
6370
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
6371
|
+
userId: string;
|
|
6372
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
6373
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
6374
|
+
isCare?: boolean | undefined;
|
|
6375
|
+
};
|
|
6376
|
+
req: {
|
|
6377
|
+
headers: Headers;
|
|
6378
|
+
};
|
|
6379
|
+
res: {
|
|
6380
|
+
headers: Headers;
|
|
6381
|
+
};
|
|
6382
|
+
locale: Locales;
|
|
6383
|
+
ls: TranslationFunctions;
|
|
6384
|
+
};
|
|
6385
|
+
_input_in: {
|
|
6386
|
+
appId?: string | undefined;
|
|
6387
|
+
} & {
|
|
6388
|
+
branchId: string;
|
|
6389
|
+
};
|
|
6390
|
+
_input_out: {
|
|
6391
|
+
appId?: string | undefined;
|
|
6392
|
+
} & {
|
|
6393
|
+
branchId: string;
|
|
6394
|
+
};
|
|
6395
|
+
_output_in: {
|
|
6396
|
+
id: string;
|
|
6397
|
+
name: string;
|
|
6398
|
+
currentState: "init" | "ready";
|
|
6399
|
+
isPrimary: boolean;
|
|
6400
|
+
parentId?: string | undefined;
|
|
6401
|
+
};
|
|
6402
|
+
_output_out: {
|
|
6403
|
+
id: string;
|
|
6404
|
+
name: string;
|
|
6405
|
+
currentState: "init" | "ready";
|
|
6406
|
+
isPrimary: boolean;
|
|
6407
|
+
parentId?: string | undefined;
|
|
6408
|
+
};
|
|
6409
|
+
}, unknown>;
|
|
6410
|
+
restoreBranch: _trpc_server.BuildProcedure<"mutation", {
|
|
6411
|
+
_config: _trpc_server.RootConfig<{
|
|
6412
|
+
ctx: {};
|
|
6413
|
+
meta: object;
|
|
6414
|
+
errorShape: {
|
|
6415
|
+
message: string;
|
|
6416
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6417
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6418
|
+
} | {
|
|
6419
|
+
data: {
|
|
6420
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6421
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6422
|
+
httpStatus: number;
|
|
6423
|
+
path?: string | undefined;
|
|
6424
|
+
stack?: string | undefined;
|
|
6425
|
+
};
|
|
6426
|
+
message: string;
|
|
6427
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6428
|
+
};
|
|
6429
|
+
transformer: typeof superjson.default;
|
|
6430
|
+
}>;
|
|
6431
|
+
_meta: object;
|
|
6432
|
+
_ctx_out: {
|
|
6433
|
+
session: {
|
|
6434
|
+
appId: string;
|
|
6435
|
+
appPlanId: string | null;
|
|
6436
|
+
appFakeUserId: string | undefined;
|
|
6437
|
+
sessionId: string;
|
|
6438
|
+
accountId: string;
|
|
6439
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
6440
|
+
userId: string;
|
|
6441
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
6442
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
6443
|
+
isCare?: boolean | undefined;
|
|
6444
|
+
};
|
|
6445
|
+
req: {
|
|
6446
|
+
headers: Headers;
|
|
6447
|
+
};
|
|
6448
|
+
res: {
|
|
6449
|
+
headers: Headers;
|
|
6450
|
+
};
|
|
6451
|
+
locale: Locales;
|
|
6452
|
+
ls: TranslationFunctions;
|
|
6453
|
+
};
|
|
6454
|
+
_input_in: {
|
|
6455
|
+
appId?: string | undefined;
|
|
6456
|
+
} & {
|
|
6457
|
+
toBranchId: string;
|
|
6458
|
+
fromBranchId: string;
|
|
6459
|
+
};
|
|
6460
|
+
_input_out: {
|
|
6461
|
+
appId?: string | undefined;
|
|
6462
|
+
} & {
|
|
6463
|
+
toBranchId: string;
|
|
6464
|
+
fromBranchId: string;
|
|
6465
|
+
};
|
|
6466
|
+
_output_in: {
|
|
6467
|
+
id: string;
|
|
6468
|
+
name: string;
|
|
6469
|
+
currentState: "init" | "ready";
|
|
6470
|
+
isPrimary: boolean;
|
|
6471
|
+
parentId?: string | undefined;
|
|
6472
|
+
};
|
|
6473
|
+
_output_out: {
|
|
6474
|
+
id: string;
|
|
6475
|
+
name: string;
|
|
6476
|
+
currentState: "init" | "ready";
|
|
6477
|
+
isPrimary: boolean;
|
|
6478
|
+
parentId?: string | undefined;
|
|
6479
|
+
};
|
|
6480
|
+
}, unknown>;
|
|
6481
|
+
metrics: _trpc_server.BuildProcedure<"query", {
|
|
6482
|
+
_config: _trpc_server.RootConfig<{
|
|
6483
|
+
ctx: {};
|
|
6484
|
+
meta: object;
|
|
6485
|
+
errorShape: {
|
|
6486
|
+
message: string;
|
|
6487
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6488
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6489
|
+
} | {
|
|
6490
|
+
data: {
|
|
6491
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6492
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6493
|
+
httpStatus: number;
|
|
6494
|
+
path?: string | undefined;
|
|
6495
|
+
stack?: string | undefined;
|
|
6496
|
+
};
|
|
6497
|
+
message: string;
|
|
6498
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6499
|
+
};
|
|
6500
|
+
transformer: typeof superjson.default;
|
|
6501
|
+
}>;
|
|
6502
|
+
_meta: object;
|
|
6503
|
+
_ctx_out: {
|
|
6504
|
+
session: {
|
|
6505
|
+
appId: string;
|
|
6506
|
+
appPlanId: string | null;
|
|
6507
|
+
appFakeUserId: string | undefined;
|
|
6508
|
+
sessionId: string;
|
|
6509
|
+
accountId: string;
|
|
6510
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
6511
|
+
userId: string;
|
|
6512
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
6513
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
6514
|
+
isCare?: boolean | undefined;
|
|
6515
|
+
};
|
|
6516
|
+
req: {
|
|
6517
|
+
headers: Headers;
|
|
6518
|
+
};
|
|
6519
|
+
res: {
|
|
6520
|
+
headers: Headers;
|
|
6521
|
+
};
|
|
6522
|
+
locale: Locales;
|
|
6523
|
+
ls: TranslationFunctions;
|
|
6524
|
+
};
|
|
6525
|
+
_input_in: {
|
|
6526
|
+
appId?: string | undefined;
|
|
6527
|
+
} & {
|
|
6528
|
+
branchId: string;
|
|
6529
|
+
};
|
|
6530
|
+
_input_out: {
|
|
6531
|
+
appId?: string | undefined;
|
|
6532
|
+
} & {
|
|
6533
|
+
branchId: string;
|
|
6534
|
+
};
|
|
6535
|
+
_output_in: {
|
|
6536
|
+
activeTimeSeconds: number;
|
|
6537
|
+
computeTimeseconds: number;
|
|
6538
|
+
writtenDataBytes: number;
|
|
6539
|
+
dataTransferBytes: number;
|
|
6540
|
+
logicalSizeLimit?: number | undefined;
|
|
6541
|
+
};
|
|
6542
|
+
_output_out: {
|
|
6543
|
+
activeTimeSeconds: number;
|
|
6544
|
+
computeTimeseconds: number;
|
|
6545
|
+
writtenDataBytes: number;
|
|
6546
|
+
dataTransferBytes: number;
|
|
6547
|
+
logicalSizeLimit?: number | undefined;
|
|
6548
|
+
};
|
|
6549
|
+
}, unknown>;
|
|
6550
|
+
}>;
|
|
6551
|
+
database: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
|
|
6552
|
+
ctx: {};
|
|
6553
|
+
meta: object;
|
|
6554
|
+
errorShape: {
|
|
6555
|
+
message: string;
|
|
6556
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6557
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6558
|
+
} | {
|
|
6559
|
+
data: {
|
|
6560
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6561
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6562
|
+
httpStatus: number;
|
|
6563
|
+
path?: string | undefined;
|
|
6564
|
+
stack?: string | undefined;
|
|
6565
|
+
};
|
|
6566
|
+
message: string;
|
|
6567
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6568
|
+
};
|
|
6569
|
+
transformer: typeof superjson.default;
|
|
6570
|
+
}>, {
|
|
6571
|
+
create: _trpc_server.BuildProcedure<"mutation", {
|
|
6572
|
+
_config: _trpc_server.RootConfig<{
|
|
6573
|
+
ctx: {};
|
|
6574
|
+
meta: object;
|
|
6575
|
+
errorShape: {
|
|
6576
|
+
message: string;
|
|
6577
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6578
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6579
|
+
} | {
|
|
6580
|
+
data: {
|
|
6581
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6582
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6583
|
+
httpStatus: number;
|
|
6584
|
+
path?: string | undefined;
|
|
6585
|
+
stack?: string | undefined;
|
|
6586
|
+
};
|
|
6587
|
+
message: string;
|
|
6588
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6589
|
+
};
|
|
6590
|
+
transformer: typeof superjson.default;
|
|
6591
|
+
}>;
|
|
6592
|
+
_meta: object;
|
|
6593
|
+
_ctx_out: {
|
|
6594
|
+
session: {
|
|
6595
|
+
appId: string;
|
|
6596
|
+
appPlanId: string | null;
|
|
6597
|
+
appFakeUserId: string | undefined;
|
|
6598
|
+
sessionId: string;
|
|
6599
|
+
accountId: string;
|
|
6600
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
6601
|
+
userId: string;
|
|
6602
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
6603
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
6604
|
+
isCare?: boolean | undefined;
|
|
6605
|
+
};
|
|
6606
|
+
req: {
|
|
6607
|
+
headers: Headers;
|
|
6608
|
+
};
|
|
6609
|
+
res: {
|
|
6610
|
+
headers: Headers;
|
|
6611
|
+
};
|
|
6612
|
+
locale: Locales;
|
|
6613
|
+
ls: TranslationFunctions;
|
|
6614
|
+
};
|
|
6615
|
+
_input_in: {
|
|
6616
|
+
appId?: string | undefined;
|
|
6617
|
+
} & {
|
|
6618
|
+
name: string;
|
|
6619
|
+
branchId: string;
|
|
6620
|
+
};
|
|
6621
|
+
_input_out: {
|
|
6622
|
+
appId?: string | undefined;
|
|
6623
|
+
} & {
|
|
6624
|
+
name: string;
|
|
6625
|
+
branchId: string;
|
|
6626
|
+
};
|
|
6627
|
+
_output_in: {
|
|
6628
|
+
id: number;
|
|
6629
|
+
name: string;
|
|
6630
|
+
branchId: string;
|
|
6631
|
+
ownerName: string;
|
|
6632
|
+
};
|
|
6633
|
+
_output_out: {
|
|
6634
|
+
id: number;
|
|
6635
|
+
name: string;
|
|
6636
|
+
branchId: string;
|
|
6637
|
+
ownerName: string;
|
|
6638
|
+
};
|
|
6639
|
+
}, unknown>;
|
|
6640
|
+
delete: _trpc_server.BuildProcedure<"mutation", {
|
|
6641
|
+
_config: _trpc_server.RootConfig<{
|
|
6642
|
+
ctx: {};
|
|
6643
|
+
meta: object;
|
|
6644
|
+
errorShape: {
|
|
6645
|
+
message: string;
|
|
6646
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6647
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6648
|
+
} | {
|
|
6649
|
+
data: {
|
|
6650
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6651
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6652
|
+
httpStatus: number;
|
|
6653
|
+
path?: string | undefined;
|
|
6654
|
+
stack?: string | undefined;
|
|
6655
|
+
};
|
|
6656
|
+
message: string;
|
|
6657
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6658
|
+
};
|
|
6659
|
+
transformer: typeof superjson.default;
|
|
6660
|
+
}>;
|
|
6661
|
+
_meta: object;
|
|
6662
|
+
_ctx_out: {
|
|
6663
|
+
session: {
|
|
6664
|
+
appId: string;
|
|
6665
|
+
appPlanId: string | null;
|
|
6666
|
+
appFakeUserId: string | undefined;
|
|
6667
|
+
sessionId: string;
|
|
6668
|
+
accountId: string;
|
|
6669
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
6670
|
+
userId: string;
|
|
6671
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
6672
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
6673
|
+
isCare?: boolean | undefined;
|
|
6674
|
+
};
|
|
6675
|
+
req: {
|
|
6676
|
+
headers: Headers;
|
|
6677
|
+
};
|
|
6678
|
+
res: {
|
|
6679
|
+
headers: Headers;
|
|
6680
|
+
};
|
|
6681
|
+
locale: Locales;
|
|
6682
|
+
ls: TranslationFunctions;
|
|
6683
|
+
};
|
|
6684
|
+
_input_in: {
|
|
6685
|
+
appId?: string | undefined;
|
|
6686
|
+
} & {
|
|
6687
|
+
branchId: string;
|
|
6688
|
+
databaseName: string;
|
|
6689
|
+
};
|
|
6690
|
+
_input_out: {
|
|
6691
|
+
appId?: string | undefined;
|
|
6692
|
+
} & {
|
|
6693
|
+
branchId: string;
|
|
6694
|
+
databaseName: string;
|
|
6695
|
+
};
|
|
6696
|
+
_output_in: {
|
|
6697
|
+
isDeleted: boolean;
|
|
6698
|
+
};
|
|
6699
|
+
_output_out: {
|
|
6700
|
+
isDeleted: boolean;
|
|
6701
|
+
};
|
|
6702
|
+
}, unknown>;
|
|
6703
|
+
get: _trpc_server.BuildProcedure<"query", {
|
|
6704
|
+
_config: _trpc_server.RootConfig<{
|
|
6705
|
+
ctx: {};
|
|
6706
|
+
meta: object;
|
|
6707
|
+
errorShape: {
|
|
6708
|
+
message: string;
|
|
6709
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6710
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6711
|
+
} | {
|
|
6712
|
+
data: {
|
|
6713
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6714
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6715
|
+
httpStatus: number;
|
|
6716
|
+
path?: string | undefined;
|
|
6717
|
+
stack?: string | undefined;
|
|
6718
|
+
};
|
|
6719
|
+
message: string;
|
|
6720
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6721
|
+
};
|
|
6722
|
+
transformer: typeof superjson.default;
|
|
6723
|
+
}>;
|
|
6724
|
+
_meta: object;
|
|
6725
|
+
_ctx_out: {
|
|
6726
|
+
session: {
|
|
6727
|
+
appId: string;
|
|
6728
|
+
appPlanId: string | null;
|
|
6729
|
+
appFakeUserId: string | undefined;
|
|
6730
|
+
sessionId: string;
|
|
6731
|
+
accountId: string;
|
|
6732
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
6733
|
+
userId: string;
|
|
6734
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
6735
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
6736
|
+
isCare?: boolean | undefined;
|
|
6737
|
+
};
|
|
6738
|
+
req: {
|
|
6739
|
+
headers: Headers;
|
|
6740
|
+
};
|
|
6741
|
+
res: {
|
|
6742
|
+
headers: Headers;
|
|
6743
|
+
};
|
|
6744
|
+
locale: Locales;
|
|
6745
|
+
ls: TranslationFunctions;
|
|
6746
|
+
};
|
|
6747
|
+
_input_in: {
|
|
6748
|
+
appId?: string | undefined;
|
|
6749
|
+
} & {
|
|
6750
|
+
branchId: string;
|
|
6751
|
+
databaseName: string;
|
|
6752
|
+
};
|
|
6753
|
+
_input_out: {
|
|
6754
|
+
appId?: string | undefined;
|
|
6755
|
+
} & {
|
|
6756
|
+
branchId: string;
|
|
6757
|
+
databaseName: string;
|
|
6758
|
+
};
|
|
6759
|
+
_output_in: {
|
|
6760
|
+
id: number;
|
|
6761
|
+
name: string;
|
|
6762
|
+
branchId: string;
|
|
6763
|
+
ownerName: string;
|
|
6764
|
+
};
|
|
6765
|
+
_output_out: {
|
|
6766
|
+
id: number;
|
|
6767
|
+
name: string;
|
|
6768
|
+
branchId: string;
|
|
6769
|
+
ownerName: string;
|
|
6770
|
+
};
|
|
6771
|
+
}, unknown>;
|
|
6772
|
+
getAll: _trpc_server.BuildProcedure<"query", {
|
|
6773
|
+
_config: _trpc_server.RootConfig<{
|
|
6774
|
+
ctx: {};
|
|
6775
|
+
meta: object;
|
|
6776
|
+
errorShape: {
|
|
6777
|
+
message: string;
|
|
6778
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6779
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6780
|
+
} | {
|
|
6781
|
+
data: {
|
|
6782
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6783
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6784
|
+
httpStatus: number;
|
|
6785
|
+
path?: string | undefined;
|
|
6786
|
+
stack?: string | undefined;
|
|
6787
|
+
};
|
|
6788
|
+
message: string;
|
|
6789
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6790
|
+
};
|
|
6791
|
+
transformer: typeof superjson.default;
|
|
6792
|
+
}>;
|
|
6793
|
+
_meta: object;
|
|
6794
|
+
_ctx_out: {
|
|
6795
|
+
session: {
|
|
6796
|
+
appId: string;
|
|
6797
|
+
appPlanId: string | null;
|
|
6798
|
+
appFakeUserId: string | undefined;
|
|
6799
|
+
sessionId: string;
|
|
6800
|
+
accountId: string;
|
|
6801
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
6802
|
+
userId: string;
|
|
6803
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
6804
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
6805
|
+
isCare?: boolean | undefined;
|
|
6806
|
+
};
|
|
6807
|
+
req: {
|
|
6808
|
+
headers: Headers;
|
|
6809
|
+
};
|
|
6810
|
+
res: {
|
|
6811
|
+
headers: Headers;
|
|
6812
|
+
};
|
|
6813
|
+
locale: Locales;
|
|
6814
|
+
ls: TranslationFunctions;
|
|
6815
|
+
};
|
|
6816
|
+
_input_in: {
|
|
6817
|
+
appId?: string | undefined;
|
|
6818
|
+
} & {
|
|
6819
|
+
branchId: string;
|
|
6820
|
+
};
|
|
6821
|
+
_input_out: {
|
|
6822
|
+
appId?: string | undefined;
|
|
6823
|
+
} & {
|
|
6824
|
+
branchId: string;
|
|
6825
|
+
};
|
|
6826
|
+
_output_in: {
|
|
6827
|
+
id: number;
|
|
6828
|
+
name: string;
|
|
6829
|
+
branchId: string;
|
|
6830
|
+
ownerName: string;
|
|
6831
|
+
}[];
|
|
6832
|
+
_output_out: {
|
|
6833
|
+
id: number;
|
|
6834
|
+
name: string;
|
|
6835
|
+
branchId: string;
|
|
6836
|
+
ownerName: string;
|
|
6837
|
+
}[];
|
|
6838
|
+
}, unknown>;
|
|
6839
|
+
update: _trpc_server.BuildProcedure<"mutation", {
|
|
6840
|
+
_config: _trpc_server.RootConfig<{
|
|
6841
|
+
ctx: {};
|
|
6842
|
+
meta: object;
|
|
6843
|
+
errorShape: {
|
|
6844
|
+
message: string;
|
|
6845
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6846
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6847
|
+
} | {
|
|
6848
|
+
data: {
|
|
6849
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6850
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6851
|
+
httpStatus: number;
|
|
6852
|
+
path?: string | undefined;
|
|
6853
|
+
stack?: string | undefined;
|
|
6854
|
+
};
|
|
6855
|
+
message: string;
|
|
6856
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6857
|
+
};
|
|
6858
|
+
transformer: typeof superjson.default;
|
|
6859
|
+
}>;
|
|
6860
|
+
_meta: object;
|
|
6861
|
+
_ctx_out: {
|
|
6862
|
+
session: {
|
|
6863
|
+
appId: string;
|
|
6864
|
+
appPlanId: string | null;
|
|
6865
|
+
appFakeUserId: string | undefined;
|
|
6866
|
+
sessionId: string;
|
|
6867
|
+
accountId: string;
|
|
6868
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
6869
|
+
userId: string;
|
|
6870
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
6871
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
6872
|
+
isCare?: boolean | undefined;
|
|
6873
|
+
};
|
|
6874
|
+
req: {
|
|
6875
|
+
headers: Headers;
|
|
6876
|
+
};
|
|
6877
|
+
res: {
|
|
6878
|
+
headers: Headers;
|
|
6879
|
+
};
|
|
6880
|
+
locale: Locales;
|
|
6881
|
+
ls: TranslationFunctions;
|
|
6882
|
+
};
|
|
6883
|
+
_input_in: {
|
|
6884
|
+
appId?: string | undefined;
|
|
6885
|
+
} & {
|
|
6886
|
+
branchId: string;
|
|
6887
|
+
databaseName: string;
|
|
6888
|
+
newDatabaseName?: string | undefined;
|
|
6889
|
+
newOwnerName?: string | undefined;
|
|
6890
|
+
};
|
|
6891
|
+
_input_out: {
|
|
6892
|
+
appId?: string | undefined;
|
|
6893
|
+
} & {
|
|
6894
|
+
branchId: string;
|
|
6895
|
+
databaseName: string;
|
|
6896
|
+
newDatabaseName?: string | undefined;
|
|
6897
|
+
newOwnerName?: string | undefined;
|
|
6898
|
+
};
|
|
6899
|
+
_output_in: {
|
|
6900
|
+
id: number;
|
|
6901
|
+
name: string;
|
|
6902
|
+
branchId: string;
|
|
6903
|
+
ownerName: string;
|
|
6904
|
+
};
|
|
6905
|
+
_output_out: {
|
|
6906
|
+
id: number;
|
|
6907
|
+
name: string;
|
|
6908
|
+
branchId: string;
|
|
6909
|
+
ownerName: string;
|
|
6910
|
+
};
|
|
6911
|
+
}, unknown>;
|
|
6912
|
+
}>;
|
|
6913
|
+
endpoint: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
|
|
6914
|
+
ctx: {};
|
|
6915
|
+
meta: object;
|
|
6916
|
+
errorShape: {
|
|
6917
|
+
message: string;
|
|
6918
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6919
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6920
|
+
} | {
|
|
6921
|
+
data: {
|
|
6922
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6923
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6924
|
+
httpStatus: number;
|
|
6925
|
+
path?: string | undefined;
|
|
6926
|
+
stack?: string | undefined;
|
|
6927
|
+
};
|
|
6928
|
+
message: string;
|
|
6929
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6930
|
+
};
|
|
6931
|
+
transformer: typeof superjson.default;
|
|
6932
|
+
}>, {
|
|
6933
|
+
create: _trpc_server.BuildProcedure<"mutation", {
|
|
6934
|
+
_config: _trpc_server.RootConfig<{
|
|
6935
|
+
ctx: {};
|
|
6936
|
+
meta: object;
|
|
6937
|
+
errorShape: {
|
|
6938
|
+
message: string;
|
|
6939
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6940
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
6941
|
+
} | {
|
|
6942
|
+
data: {
|
|
6943
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
6944
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
6945
|
+
httpStatus: number;
|
|
6946
|
+
path?: string | undefined;
|
|
6947
|
+
stack?: string | undefined;
|
|
6948
|
+
};
|
|
6949
|
+
message: string;
|
|
6950
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
6951
|
+
};
|
|
6952
|
+
transformer: typeof superjson.default;
|
|
6953
|
+
}>;
|
|
6954
|
+
_meta: object;
|
|
6955
|
+
_ctx_out: {
|
|
6956
|
+
session: {
|
|
6957
|
+
appId: string;
|
|
6958
|
+
appPlanId: string | null;
|
|
6959
|
+
appFakeUserId: string | undefined;
|
|
6960
|
+
sessionId: string;
|
|
6961
|
+
accountId: string;
|
|
6962
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
6963
|
+
userId: string;
|
|
6964
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
6965
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
6966
|
+
isCare?: boolean | undefined;
|
|
6967
|
+
};
|
|
6968
|
+
req: {
|
|
6969
|
+
headers: Headers;
|
|
6970
|
+
};
|
|
6971
|
+
res: {
|
|
6972
|
+
headers: Headers;
|
|
6973
|
+
};
|
|
6974
|
+
locale: Locales;
|
|
6975
|
+
ls: TranslationFunctions;
|
|
6976
|
+
};
|
|
6977
|
+
_input_in: {
|
|
6978
|
+
appId?: string | undefined;
|
|
6979
|
+
} & {
|
|
6980
|
+
type: _neondatabase_api_client.EndpointType;
|
|
6981
|
+
name: string;
|
|
6982
|
+
branchId: string;
|
|
6983
|
+
regionId?: "aws-us-east-1" | "aws-us-east-2" | "aws-us-west-2" | "aws-eu-central-1" | "aws-ap-southeast-1" | "aws-ap-southeast-2" | undefined;
|
|
6984
|
+
};
|
|
6985
|
+
_input_out: {
|
|
6986
|
+
appId?: string | undefined;
|
|
6987
|
+
} & {
|
|
6988
|
+
type: _neondatabase_api_client.EndpointType;
|
|
6989
|
+
name: string;
|
|
6990
|
+
branchId: string;
|
|
6991
|
+
regionId: "aws-us-east-1" | "aws-us-east-2" | "aws-us-west-2" | "aws-eu-central-1" | "aws-ap-southeast-1" | "aws-ap-southeast-2";
|
|
6992
|
+
};
|
|
6993
|
+
_output_in: {
|
|
6994
|
+
type: _neondatabase_api_client.EndpointType;
|
|
6995
|
+
id: string;
|
|
6996
|
+
createdAt: string;
|
|
6997
|
+
updatedAt: string;
|
|
6998
|
+
host: string;
|
|
6999
|
+
branchId: string;
|
|
7000
|
+
currentState: _neondatabase_api_client.EndpointState;
|
|
7001
|
+
regionId: string;
|
|
7002
|
+
creationSource: string;
|
|
7003
|
+
disabled: boolean;
|
|
7004
|
+
passwordlessAccess: boolean;
|
|
7005
|
+
poolerEnabled: boolean;
|
|
7006
|
+
poolerMode: _neondatabase_api_client.EndpointPoolerMode;
|
|
7007
|
+
provisioner: _neondatabase_api_client.Provisioner;
|
|
7008
|
+
proxyHost: string;
|
|
7009
|
+
suspendTimeoutSeconds: number;
|
|
7010
|
+
autoscalingLimitMinCU: number;
|
|
7011
|
+
autoscalingLimitMaxCU: number;
|
|
7012
|
+
lastActive?: string | undefined;
|
|
7013
|
+
pendingState?: _neondatabase_api_client.EndpointState | undefined;
|
|
7014
|
+
};
|
|
7015
|
+
_output_out: {
|
|
7016
|
+
type: _neondatabase_api_client.EndpointType;
|
|
7017
|
+
id: string;
|
|
7018
|
+
createdAt: string;
|
|
7019
|
+
updatedAt: string;
|
|
7020
|
+
host: string;
|
|
7021
|
+
branchId: string;
|
|
7022
|
+
currentState: _neondatabase_api_client.EndpointState;
|
|
7023
|
+
regionId: string;
|
|
7024
|
+
creationSource: string;
|
|
7025
|
+
disabled: boolean;
|
|
7026
|
+
passwordlessAccess: boolean;
|
|
7027
|
+
poolerEnabled: boolean;
|
|
7028
|
+
poolerMode: _neondatabase_api_client.EndpointPoolerMode;
|
|
7029
|
+
provisioner: _neondatabase_api_client.Provisioner;
|
|
7030
|
+
proxyHost: string;
|
|
7031
|
+
suspendTimeoutSeconds: number;
|
|
7032
|
+
autoscalingLimitMinCU: number;
|
|
7033
|
+
autoscalingLimitMaxCU: number;
|
|
7034
|
+
lastActive?: string | undefined;
|
|
7035
|
+
pendingState?: _neondatabase_api_client.EndpointState | undefined;
|
|
7036
|
+
};
|
|
7037
|
+
}, unknown>;
|
|
7038
|
+
delete: _trpc_server.BuildProcedure<"mutation", {
|
|
7039
|
+
_config: _trpc_server.RootConfig<{
|
|
7040
|
+
ctx: {};
|
|
7041
|
+
meta: object;
|
|
7042
|
+
errorShape: {
|
|
7043
|
+
message: string;
|
|
7044
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7045
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
7046
|
+
} | {
|
|
7047
|
+
data: {
|
|
7048
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
7049
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
7050
|
+
httpStatus: number;
|
|
7051
|
+
path?: string | undefined;
|
|
7052
|
+
stack?: string | undefined;
|
|
7053
|
+
};
|
|
7054
|
+
message: string;
|
|
7055
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7056
|
+
};
|
|
7057
|
+
transformer: typeof superjson.default;
|
|
7058
|
+
}>;
|
|
7059
|
+
_meta: object;
|
|
7060
|
+
_ctx_out: {
|
|
7061
|
+
session: {
|
|
7062
|
+
appId: string;
|
|
7063
|
+
appPlanId: string | null;
|
|
7064
|
+
appFakeUserId: string | undefined;
|
|
7065
|
+
sessionId: string;
|
|
7066
|
+
accountId: string;
|
|
7067
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
7068
|
+
userId: string;
|
|
7069
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
7070
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
7071
|
+
isCare?: boolean | undefined;
|
|
7072
|
+
};
|
|
7073
|
+
req: {
|
|
7074
|
+
headers: Headers;
|
|
7075
|
+
};
|
|
7076
|
+
res: {
|
|
7077
|
+
headers: Headers;
|
|
7078
|
+
};
|
|
7079
|
+
locale: Locales;
|
|
7080
|
+
ls: TranslationFunctions;
|
|
7081
|
+
};
|
|
7082
|
+
_input_in: {
|
|
7083
|
+
appId?: string | undefined;
|
|
7084
|
+
} & {
|
|
7085
|
+
endpointId: string;
|
|
7086
|
+
};
|
|
7087
|
+
_input_out: {
|
|
7088
|
+
appId?: string | undefined;
|
|
7089
|
+
} & {
|
|
7090
|
+
endpointId: string;
|
|
7091
|
+
};
|
|
7092
|
+
_output_in: {
|
|
7093
|
+
isDeleted: boolean;
|
|
7094
|
+
};
|
|
7095
|
+
_output_out: {
|
|
7096
|
+
isDeleted: boolean;
|
|
7097
|
+
};
|
|
7098
|
+
}, unknown>;
|
|
7099
|
+
getBranchEndpoints: _trpc_server.BuildProcedure<"query", {
|
|
7100
|
+
_config: _trpc_server.RootConfig<{
|
|
7101
|
+
ctx: {};
|
|
7102
|
+
meta: object;
|
|
7103
|
+
errorShape: {
|
|
7104
|
+
message: string;
|
|
7105
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7106
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
7107
|
+
} | {
|
|
7108
|
+
data: {
|
|
7109
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
7110
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
7111
|
+
httpStatus: number;
|
|
7112
|
+
path?: string | undefined;
|
|
7113
|
+
stack?: string | undefined;
|
|
7114
|
+
};
|
|
7115
|
+
message: string;
|
|
7116
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7117
|
+
};
|
|
7118
|
+
transformer: typeof superjson.default;
|
|
7119
|
+
}>;
|
|
7120
|
+
_meta: object;
|
|
7121
|
+
_ctx_out: {
|
|
7122
|
+
session: {
|
|
7123
|
+
appId: string;
|
|
7124
|
+
appPlanId: string | null;
|
|
7125
|
+
appFakeUserId: string | undefined;
|
|
7126
|
+
sessionId: string;
|
|
7127
|
+
accountId: string;
|
|
7128
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
7129
|
+
userId: string;
|
|
7130
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
7131
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
7132
|
+
isCare?: boolean | undefined;
|
|
7133
|
+
};
|
|
7134
|
+
req: {
|
|
7135
|
+
headers: Headers;
|
|
7136
|
+
};
|
|
7137
|
+
res: {
|
|
7138
|
+
headers: Headers;
|
|
7139
|
+
};
|
|
7140
|
+
locale: Locales;
|
|
7141
|
+
ls: TranslationFunctions;
|
|
7142
|
+
};
|
|
7143
|
+
_input_in: {
|
|
7144
|
+
appId?: string | undefined;
|
|
7145
|
+
} & {
|
|
7146
|
+
branchId: string;
|
|
7147
|
+
};
|
|
7148
|
+
_input_out: {
|
|
7149
|
+
appId?: string | undefined;
|
|
7150
|
+
} & {
|
|
7151
|
+
branchId: string;
|
|
7152
|
+
};
|
|
7153
|
+
_output_in: {
|
|
7154
|
+
type: _neondatabase_api_client.EndpointType;
|
|
7155
|
+
id: string;
|
|
7156
|
+
createdAt: string;
|
|
7157
|
+
updatedAt: string;
|
|
7158
|
+
host: string;
|
|
7159
|
+
branchId: string;
|
|
7160
|
+
currentState: _neondatabase_api_client.EndpointState;
|
|
7161
|
+
regionId: string;
|
|
7162
|
+
creationSource: string;
|
|
7163
|
+
disabled: boolean;
|
|
7164
|
+
passwordlessAccess: boolean;
|
|
7165
|
+
poolerEnabled: boolean;
|
|
7166
|
+
poolerMode: _neondatabase_api_client.EndpointPoolerMode;
|
|
7167
|
+
provisioner: _neondatabase_api_client.Provisioner;
|
|
7168
|
+
proxyHost: string;
|
|
7169
|
+
suspendTimeoutSeconds: number;
|
|
7170
|
+
autoscalingLimitMinCU: number;
|
|
7171
|
+
autoscalingLimitMaxCU: number;
|
|
7172
|
+
lastActive?: string | undefined;
|
|
7173
|
+
pendingState?: _neondatabase_api_client.EndpointState | undefined;
|
|
7174
|
+
}[];
|
|
7175
|
+
_output_out: {
|
|
7176
|
+
type: _neondatabase_api_client.EndpointType;
|
|
7177
|
+
id: string;
|
|
7178
|
+
createdAt: string;
|
|
7179
|
+
updatedAt: string;
|
|
7180
|
+
host: string;
|
|
7181
|
+
branchId: string;
|
|
7182
|
+
currentState: _neondatabase_api_client.EndpointState;
|
|
7183
|
+
regionId: string;
|
|
7184
|
+
creationSource: string;
|
|
7185
|
+
disabled: boolean;
|
|
7186
|
+
passwordlessAccess: boolean;
|
|
7187
|
+
poolerEnabled: boolean;
|
|
7188
|
+
poolerMode: _neondatabase_api_client.EndpointPoolerMode;
|
|
7189
|
+
provisioner: _neondatabase_api_client.Provisioner;
|
|
7190
|
+
proxyHost: string;
|
|
7191
|
+
suspendTimeoutSeconds: number;
|
|
7192
|
+
autoscalingLimitMinCU: number;
|
|
7193
|
+
autoscalingLimitMaxCU: number;
|
|
7194
|
+
lastActive?: string | undefined;
|
|
7195
|
+
pendingState?: _neondatabase_api_client.EndpointState | undefined;
|
|
7196
|
+
}[];
|
|
7197
|
+
}, unknown>;
|
|
7198
|
+
getProjectEndpoints: _trpc_server.BuildProcedure<"query", {
|
|
7199
|
+
_config: _trpc_server.RootConfig<{
|
|
7200
|
+
ctx: {};
|
|
7201
|
+
meta: object;
|
|
7202
|
+
errorShape: {
|
|
7203
|
+
message: string;
|
|
7204
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7205
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
7206
|
+
} | {
|
|
7207
|
+
data: {
|
|
7208
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
7209
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
7210
|
+
httpStatus: number;
|
|
7211
|
+
path?: string | undefined;
|
|
7212
|
+
stack?: string | undefined;
|
|
7213
|
+
};
|
|
7214
|
+
message: string;
|
|
7215
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7216
|
+
};
|
|
7217
|
+
transformer: typeof superjson.default;
|
|
7218
|
+
}>;
|
|
7219
|
+
_meta: object;
|
|
7220
|
+
_ctx_out: {
|
|
7221
|
+
session: {
|
|
7222
|
+
appId: string;
|
|
7223
|
+
appPlanId: string | null;
|
|
7224
|
+
appFakeUserId: string | undefined;
|
|
7225
|
+
sessionId: string;
|
|
7226
|
+
accountId: string;
|
|
7227
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
7228
|
+
userId: string;
|
|
7229
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
7230
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
7231
|
+
isCare?: boolean | undefined;
|
|
7232
|
+
};
|
|
7233
|
+
req: {
|
|
7234
|
+
headers: Headers;
|
|
7235
|
+
};
|
|
7236
|
+
res: {
|
|
7237
|
+
headers: Headers;
|
|
7238
|
+
};
|
|
7239
|
+
locale: Locales;
|
|
7240
|
+
ls: TranslationFunctions;
|
|
7241
|
+
};
|
|
7242
|
+
_input_in: {
|
|
7243
|
+
appId?: string | undefined;
|
|
7244
|
+
} & {};
|
|
7245
|
+
_input_out: {
|
|
7246
|
+
appId?: string | undefined;
|
|
7247
|
+
} & {};
|
|
7248
|
+
_output_in: {
|
|
7249
|
+
type: _neondatabase_api_client.EndpointType;
|
|
7250
|
+
id: string;
|
|
7251
|
+
createdAt: string;
|
|
7252
|
+
updatedAt: string;
|
|
7253
|
+
host: string;
|
|
7254
|
+
branchId: string;
|
|
7255
|
+
currentState: _neondatabase_api_client.EndpointState;
|
|
7256
|
+
regionId: string;
|
|
7257
|
+
creationSource: string;
|
|
7258
|
+
disabled: boolean;
|
|
7259
|
+
passwordlessAccess: boolean;
|
|
7260
|
+
poolerEnabled: boolean;
|
|
7261
|
+
poolerMode: _neondatabase_api_client.EndpointPoolerMode;
|
|
7262
|
+
provisioner: _neondatabase_api_client.Provisioner;
|
|
7263
|
+
proxyHost: string;
|
|
7264
|
+
suspendTimeoutSeconds: number;
|
|
7265
|
+
autoscalingLimitMinCU: number;
|
|
7266
|
+
autoscalingLimitMaxCU: number;
|
|
7267
|
+
lastActive?: string | undefined;
|
|
7268
|
+
pendingState?: _neondatabase_api_client.EndpointState | undefined;
|
|
7269
|
+
}[];
|
|
7270
|
+
_output_out: {
|
|
7271
|
+
type: _neondatabase_api_client.EndpointType;
|
|
7272
|
+
id: string;
|
|
7273
|
+
createdAt: string;
|
|
7274
|
+
updatedAt: string;
|
|
7275
|
+
host: string;
|
|
7276
|
+
branchId: string;
|
|
7277
|
+
currentState: _neondatabase_api_client.EndpointState;
|
|
7278
|
+
regionId: string;
|
|
7279
|
+
creationSource: string;
|
|
7280
|
+
disabled: boolean;
|
|
7281
|
+
passwordlessAccess: boolean;
|
|
7282
|
+
poolerEnabled: boolean;
|
|
7283
|
+
poolerMode: _neondatabase_api_client.EndpointPoolerMode;
|
|
7284
|
+
provisioner: _neondatabase_api_client.Provisioner;
|
|
7285
|
+
proxyHost: string;
|
|
7286
|
+
suspendTimeoutSeconds: number;
|
|
7287
|
+
autoscalingLimitMinCU: number;
|
|
7288
|
+
autoscalingLimitMaxCU: number;
|
|
7289
|
+
lastActive?: string | undefined;
|
|
7290
|
+
pendingState?: _neondatabase_api_client.EndpointState | undefined;
|
|
7291
|
+
}[];
|
|
7292
|
+
}, unknown>;
|
|
7293
|
+
start: _trpc_server.BuildProcedure<"mutation", {
|
|
7294
|
+
_config: _trpc_server.RootConfig<{
|
|
7295
|
+
ctx: {};
|
|
7296
|
+
meta: object;
|
|
7297
|
+
errorShape: {
|
|
7298
|
+
message: string;
|
|
7299
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7300
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
7301
|
+
} | {
|
|
7302
|
+
data: {
|
|
7303
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
7304
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
7305
|
+
httpStatus: number;
|
|
7306
|
+
path?: string | undefined;
|
|
7307
|
+
stack?: string | undefined;
|
|
7308
|
+
};
|
|
7309
|
+
message: string;
|
|
7310
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7311
|
+
};
|
|
7312
|
+
transformer: typeof superjson.default;
|
|
7313
|
+
}>;
|
|
7314
|
+
_meta: object;
|
|
7315
|
+
_ctx_out: {
|
|
7316
|
+
session: {
|
|
7317
|
+
appId: string;
|
|
7318
|
+
appPlanId: string | null;
|
|
7319
|
+
appFakeUserId: string | undefined;
|
|
7320
|
+
sessionId: string;
|
|
7321
|
+
accountId: string;
|
|
7322
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
7323
|
+
userId: string;
|
|
7324
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
7325
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
7326
|
+
isCare?: boolean | undefined;
|
|
7327
|
+
};
|
|
7328
|
+
req: {
|
|
7329
|
+
headers: Headers;
|
|
7330
|
+
};
|
|
7331
|
+
res: {
|
|
7332
|
+
headers: Headers;
|
|
7333
|
+
};
|
|
7334
|
+
locale: Locales;
|
|
7335
|
+
ls: TranslationFunctions;
|
|
7336
|
+
};
|
|
7337
|
+
_input_in: {
|
|
7338
|
+
appId?: string | undefined;
|
|
7339
|
+
} & {
|
|
7340
|
+
endpointId: string;
|
|
7341
|
+
};
|
|
7342
|
+
_input_out: {
|
|
7343
|
+
appId?: string | undefined;
|
|
7344
|
+
} & {
|
|
7345
|
+
endpointId: string;
|
|
7346
|
+
};
|
|
7347
|
+
_output_in: {
|
|
7348
|
+
type: _neondatabase_api_client.EndpointType;
|
|
7349
|
+
id: string;
|
|
7350
|
+
createdAt: string;
|
|
7351
|
+
updatedAt: string;
|
|
7352
|
+
host: string;
|
|
7353
|
+
branchId: string;
|
|
7354
|
+
currentState: _neondatabase_api_client.EndpointState;
|
|
7355
|
+
regionId: string;
|
|
7356
|
+
creationSource: string;
|
|
7357
|
+
disabled: boolean;
|
|
7358
|
+
passwordlessAccess: boolean;
|
|
7359
|
+
poolerEnabled: boolean;
|
|
7360
|
+
poolerMode: _neondatabase_api_client.EndpointPoolerMode;
|
|
7361
|
+
provisioner: _neondatabase_api_client.Provisioner;
|
|
7362
|
+
proxyHost: string;
|
|
7363
|
+
suspendTimeoutSeconds: number;
|
|
7364
|
+
autoscalingLimitMinCU: number;
|
|
7365
|
+
autoscalingLimitMaxCU: number;
|
|
7366
|
+
lastActive?: string | undefined;
|
|
7367
|
+
pendingState?: _neondatabase_api_client.EndpointState | undefined;
|
|
7368
|
+
};
|
|
7369
|
+
_output_out: {
|
|
7370
|
+
type: _neondatabase_api_client.EndpointType;
|
|
7371
|
+
id: string;
|
|
7372
|
+
createdAt: string;
|
|
7373
|
+
updatedAt: string;
|
|
7374
|
+
host: string;
|
|
7375
|
+
branchId: string;
|
|
7376
|
+
currentState: _neondatabase_api_client.EndpointState;
|
|
7377
|
+
regionId: string;
|
|
7378
|
+
creationSource: string;
|
|
7379
|
+
disabled: boolean;
|
|
7380
|
+
passwordlessAccess: boolean;
|
|
7381
|
+
poolerEnabled: boolean;
|
|
7382
|
+
poolerMode: _neondatabase_api_client.EndpointPoolerMode;
|
|
7383
|
+
provisioner: _neondatabase_api_client.Provisioner;
|
|
7384
|
+
proxyHost: string;
|
|
7385
|
+
suspendTimeoutSeconds: number;
|
|
7386
|
+
autoscalingLimitMinCU: number;
|
|
7387
|
+
autoscalingLimitMaxCU: number;
|
|
7388
|
+
lastActive?: string | undefined;
|
|
7389
|
+
pendingState?: _neondatabase_api_client.EndpointState | undefined;
|
|
7390
|
+
};
|
|
7391
|
+
}, unknown>;
|
|
7392
|
+
suspend: _trpc_server.BuildProcedure<"mutation", {
|
|
7393
|
+
_config: _trpc_server.RootConfig<{
|
|
7394
|
+
ctx: {};
|
|
7395
|
+
meta: object;
|
|
7396
|
+
errorShape: {
|
|
7397
|
+
message: string;
|
|
7398
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7399
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
7400
|
+
} | {
|
|
7401
|
+
data: {
|
|
7402
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
7403
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
7404
|
+
httpStatus: number;
|
|
7405
|
+
path?: string | undefined;
|
|
7406
|
+
stack?: string | undefined;
|
|
7407
|
+
};
|
|
7408
|
+
message: string;
|
|
7409
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7410
|
+
};
|
|
7411
|
+
transformer: typeof superjson.default;
|
|
7412
|
+
}>;
|
|
7413
|
+
_meta: object;
|
|
7414
|
+
_ctx_out: {
|
|
7415
|
+
session: {
|
|
7416
|
+
appId: string;
|
|
7417
|
+
appPlanId: string | null;
|
|
7418
|
+
appFakeUserId: string | undefined;
|
|
7419
|
+
sessionId: string;
|
|
7420
|
+
accountId: string;
|
|
7421
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
7422
|
+
userId: string;
|
|
7423
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
7424
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
7425
|
+
isCare?: boolean | undefined;
|
|
7426
|
+
};
|
|
7427
|
+
req: {
|
|
7428
|
+
headers: Headers;
|
|
7429
|
+
};
|
|
7430
|
+
res: {
|
|
7431
|
+
headers: Headers;
|
|
7432
|
+
};
|
|
7433
|
+
locale: Locales;
|
|
7434
|
+
ls: TranslationFunctions;
|
|
7435
|
+
};
|
|
7436
|
+
_input_in: {
|
|
7437
|
+
appId?: string | undefined;
|
|
7438
|
+
} & {
|
|
7439
|
+
endpointId: string;
|
|
7440
|
+
};
|
|
7441
|
+
_input_out: {
|
|
7442
|
+
appId?: string | undefined;
|
|
7443
|
+
} & {
|
|
7444
|
+
endpointId: string;
|
|
7445
|
+
};
|
|
7446
|
+
_output_in: {
|
|
7447
|
+
type: _neondatabase_api_client.EndpointType;
|
|
7448
|
+
id: string;
|
|
7449
|
+
createdAt: string;
|
|
7450
|
+
updatedAt: string;
|
|
7451
|
+
host: string;
|
|
7452
|
+
branchId: string;
|
|
7453
|
+
currentState: _neondatabase_api_client.EndpointState;
|
|
7454
|
+
regionId: string;
|
|
7455
|
+
creationSource: string;
|
|
7456
|
+
disabled: boolean;
|
|
7457
|
+
passwordlessAccess: boolean;
|
|
7458
|
+
poolerEnabled: boolean;
|
|
7459
|
+
poolerMode: _neondatabase_api_client.EndpointPoolerMode;
|
|
7460
|
+
provisioner: _neondatabase_api_client.Provisioner;
|
|
7461
|
+
proxyHost: string;
|
|
7462
|
+
suspendTimeoutSeconds: number;
|
|
7463
|
+
autoscalingLimitMinCU: number;
|
|
7464
|
+
autoscalingLimitMaxCU: number;
|
|
7465
|
+
lastActive?: string | undefined;
|
|
7466
|
+
pendingState?: _neondatabase_api_client.EndpointState | undefined;
|
|
7467
|
+
};
|
|
7468
|
+
_output_out: {
|
|
7469
|
+
type: _neondatabase_api_client.EndpointType;
|
|
7470
|
+
id: string;
|
|
7471
|
+
createdAt: string;
|
|
7472
|
+
updatedAt: string;
|
|
7473
|
+
host: string;
|
|
7474
|
+
branchId: string;
|
|
7475
|
+
currentState: _neondatabase_api_client.EndpointState;
|
|
7476
|
+
regionId: string;
|
|
7477
|
+
creationSource: string;
|
|
7478
|
+
disabled: boolean;
|
|
7479
|
+
passwordlessAccess: boolean;
|
|
7480
|
+
poolerEnabled: boolean;
|
|
7481
|
+
poolerMode: _neondatabase_api_client.EndpointPoolerMode;
|
|
7482
|
+
provisioner: _neondatabase_api_client.Provisioner;
|
|
7483
|
+
proxyHost: string;
|
|
7484
|
+
suspendTimeoutSeconds: number;
|
|
7485
|
+
autoscalingLimitMinCU: number;
|
|
7486
|
+
autoscalingLimitMaxCU: number;
|
|
7487
|
+
lastActive?: string | undefined;
|
|
7488
|
+
pendingState?: _neondatabase_api_client.EndpointState | undefined;
|
|
7489
|
+
};
|
|
7490
|
+
}, unknown>;
|
|
7491
|
+
}>;
|
|
7492
|
+
}>;
|
|
7493
|
+
faq: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
|
|
7494
|
+
ctx: {};
|
|
7495
|
+
meta: object;
|
|
7496
|
+
errorShape: {
|
|
7497
|
+
message: string;
|
|
7498
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7499
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
7500
|
+
} | {
|
|
7501
|
+
data: {
|
|
7502
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
7503
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
7504
|
+
httpStatus: number;
|
|
7505
|
+
path?: string | undefined;
|
|
7506
|
+
stack?: string | undefined;
|
|
7507
|
+
};
|
|
7508
|
+
message: string;
|
|
7509
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7510
|
+
};
|
|
7511
|
+
transformer: typeof superjson.default;
|
|
7512
|
+
}>, {
|
|
7513
|
+
all: _trpc_server.BuildProcedure<"query", {
|
|
7514
|
+
_config: _trpc_server.RootConfig<{
|
|
7515
|
+
ctx: {};
|
|
7516
|
+
meta: object;
|
|
7517
|
+
errorShape: {
|
|
7518
|
+
message: string;
|
|
7519
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7520
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
7521
|
+
} | {
|
|
7522
|
+
data: {
|
|
7523
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
7524
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
7525
|
+
httpStatus: number;
|
|
7526
|
+
path?: string | undefined;
|
|
7527
|
+
stack?: string | undefined;
|
|
7528
|
+
};
|
|
7529
|
+
message: string;
|
|
7530
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7531
|
+
};
|
|
7532
|
+
transformer: typeof superjson.default;
|
|
7533
|
+
}>;
|
|
7534
|
+
_meta: object;
|
|
7535
|
+
_ctx_out: {};
|
|
7536
|
+
_input_in: {
|
|
7537
|
+
lang: "fr" | "en";
|
|
7538
|
+
};
|
|
7539
|
+
_input_out: {
|
|
7540
|
+
lang: "fr" | "en";
|
|
7541
|
+
};
|
|
7542
|
+
_output_in: {
|
|
7543
|
+
order: number;
|
|
7544
|
+
question: string;
|
|
7545
|
+
answer: string;
|
|
7546
|
+
}[];
|
|
7547
|
+
_output_out: {
|
|
7548
|
+
order: number;
|
|
7549
|
+
question: string;
|
|
7550
|
+
answer: string;
|
|
7551
|
+
}[];
|
|
7552
|
+
}, unknown>;
|
|
7553
|
+
}>;
|
|
7554
|
+
mail: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
|
|
7555
|
+
ctx: {};
|
|
7556
|
+
meta: object;
|
|
7557
|
+
errorShape: {
|
|
7558
|
+
message: string;
|
|
7559
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7560
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
7561
|
+
} | {
|
|
7562
|
+
data: {
|
|
7563
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
7564
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
7565
|
+
httpStatus: number;
|
|
7566
|
+
path?: string | undefined;
|
|
7567
|
+
stack?: string | undefined;
|
|
7568
|
+
};
|
|
7569
|
+
message: string;
|
|
7570
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7571
|
+
};
|
|
7572
|
+
transformer: typeof superjson.default;
|
|
7573
|
+
}>, {
|
|
7574
|
+
byId: _trpc_server.BuildProcedure<"query", {
|
|
7575
|
+
_config: _trpc_server.RootConfig<{
|
|
7576
|
+
ctx: {};
|
|
7577
|
+
meta: object;
|
|
7578
|
+
errorShape: {
|
|
7579
|
+
message: string;
|
|
7580
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7581
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
7582
|
+
} | {
|
|
7583
|
+
data: {
|
|
7584
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
7585
|
+
code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
|
|
7586
|
+
httpStatus: number;
|
|
7587
|
+
path?: string | undefined;
|
|
7588
|
+
stack?: string | undefined;
|
|
7589
|
+
};
|
|
7590
|
+
message: string;
|
|
7591
|
+
code: _trpc_server_dist_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
7592
|
+
};
|
|
7593
|
+
transformer: typeof superjson.default;
|
|
7594
|
+
}>;
|
|
4904
7595
|
_meta: object;
|
|
4905
7596
|
_ctx_out: {};
|
|
4906
7597
|
_input_in: {
|
|
@@ -5858,7 +8549,28 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
5858
8549
|
transformer: typeof superjson.default;
|
|
5859
8550
|
}>;
|
|
5860
8551
|
_meta: object;
|
|
5861
|
-
_ctx_out: {
|
|
8552
|
+
_ctx_out: {
|
|
8553
|
+
session: {
|
|
8554
|
+
appId: string;
|
|
8555
|
+
appPlanId: string | null;
|
|
8556
|
+
appFakeUserId: string | undefined;
|
|
8557
|
+
sessionId: string;
|
|
8558
|
+
accountId: string;
|
|
8559
|
+
accountRole: _prisma_client.$Enums.AccountRole;
|
|
8560
|
+
userId: string;
|
|
8561
|
+
userRole: _prisma_client.$Enums.UserRole;
|
|
8562
|
+
userPlan: _prisma_client.$Enums.PlanKind;
|
|
8563
|
+
isCare?: boolean | undefined;
|
|
8564
|
+
};
|
|
8565
|
+
req: {
|
|
8566
|
+
headers: Headers;
|
|
8567
|
+
};
|
|
8568
|
+
res: {
|
|
8569
|
+
headers: Headers;
|
|
8570
|
+
};
|
|
8571
|
+
locale: Locales;
|
|
8572
|
+
ls: TranslationFunctions;
|
|
8573
|
+
};
|
|
5862
8574
|
_input_in: {
|
|
5863
8575
|
subject: string;
|
|
5864
8576
|
html: string;
|
|
@@ -6556,10 +9268,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
6556
9268
|
_output_in: ({
|
|
6557
9269
|
codes: string[];
|
|
6558
9270
|
id: string;
|
|
6559
|
-
|
|
9271
|
+
quotasId: string;
|
|
6560
9272
|
kind: "free" | "basic" | "advanced" | "pro";
|
|
6561
9273
|
} & {
|
|
6562
|
-
|
|
9274
|
+
quotas: {
|
|
6563
9275
|
id: string;
|
|
6564
9276
|
uploadCount: bigint | null;
|
|
6565
9277
|
downloadCount: bigint | null;
|
|
@@ -6596,10 +9308,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
6596
9308
|
_output_out: ({
|
|
6597
9309
|
codes: string[];
|
|
6598
9310
|
id: string;
|
|
6599
|
-
|
|
9311
|
+
quotasId: string;
|
|
6600
9312
|
kind: "free" | "basic" | "advanced" | "pro";
|
|
6601
9313
|
} & {
|
|
6602
|
-
|
|
9314
|
+
quotas: {
|
|
6603
9315
|
id: string;
|
|
6604
9316
|
uploadCount: bigint | null;
|
|
6605
9317
|
downloadCount: bigint | null;
|
|
@@ -7438,6 +10150,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
7438
10150
|
userId: string;
|
|
7439
10151
|
userRole: _prisma_client.$Enums.UserRole;
|
|
7440
10152
|
userPlan: _prisma_client.$Enums.PlanKind;
|
|
10153
|
+
isCare?: boolean | undefined;
|
|
7441
10154
|
};
|
|
7442
10155
|
req: {
|
|
7443
10156
|
headers: Headers;
|
|
@@ -7532,6 +10245,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
7532
10245
|
userId: string;
|
|
7533
10246
|
userRole: _prisma_client.$Enums.UserRole;
|
|
7534
10247
|
userPlan: _prisma_client.$Enums.PlanKind;
|
|
10248
|
+
isCare?: boolean | undefined;
|
|
7535
10249
|
};
|
|
7536
10250
|
req: {
|
|
7537
10251
|
headers: Headers;
|
|
@@ -8111,6 +10825,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
8111
10825
|
userId: string;
|
|
8112
10826
|
userRole: _prisma_client.$Enums.UserRole;
|
|
8113
10827
|
userPlan: _prisma_client.$Enums.PlanKind;
|
|
10828
|
+
isCare?: boolean | undefined;
|
|
8114
10829
|
};
|
|
8115
10830
|
req: {
|
|
8116
10831
|
headers: Headers;
|
|
@@ -8171,6 +10886,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
8171
10886
|
userId: string;
|
|
8172
10887
|
userRole: _prisma_client.$Enums.UserRole;
|
|
8173
10888
|
userPlan: _prisma_client.$Enums.PlanKind;
|
|
10889
|
+
isCare?: boolean | undefined;
|
|
8174
10890
|
};
|
|
8175
10891
|
req: {
|
|
8176
10892
|
headers: Headers;
|
|
@@ -8215,7 +10931,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
8215
10931
|
id: string;
|
|
8216
10932
|
createdAt: Date;
|
|
8217
10933
|
planId: string | null;
|
|
8218
|
-
limitsId: string;
|
|
8219
10934
|
ownerId: string;
|
|
8220
10935
|
blocked: boolean;
|
|
8221
10936
|
name: string;
|
|
@@ -8223,7 +10938,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
8223
10938
|
logo: string | null;
|
|
8224
10939
|
updatedAt: Date;
|
|
8225
10940
|
origin: string[];
|
|
8226
|
-
|
|
10941
|
+
quotasId: string;
|
|
10942
|
+
metricsId: string;
|
|
8227
10943
|
owner: {
|
|
8228
10944
|
user: {
|
|
8229
10945
|
id: string;
|
|
@@ -8285,7 +11001,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
8285
11001
|
id: string;
|
|
8286
11002
|
createdAt: Date;
|
|
8287
11003
|
planId: string | null;
|
|
8288
|
-
limitsId: string;
|
|
8289
11004
|
ownerId: string;
|
|
8290
11005
|
blocked: boolean;
|
|
8291
11006
|
name: string;
|
|
@@ -8293,7 +11008,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
8293
11008
|
logo: string | null;
|
|
8294
11009
|
updatedAt: Date;
|
|
8295
11010
|
origin: string[];
|
|
8296
|
-
|
|
11011
|
+
quotasId: string;
|
|
11012
|
+
metricsId: string;
|
|
8297
11013
|
owner: {
|
|
8298
11014
|
user: {
|
|
8299
11015
|
id: string;
|
|
@@ -8385,7 +11101,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
8385
11101
|
id: string;
|
|
8386
11102
|
createdAt: Date;
|
|
8387
11103
|
planId: string | null;
|
|
8388
|
-
limitsId: string;
|
|
8389
11104
|
ownerId: string;
|
|
8390
11105
|
blocked: boolean;
|
|
8391
11106
|
name: string;
|
|
@@ -8393,7 +11108,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
8393
11108
|
logo: string | null;
|
|
8394
11109
|
updatedAt: Date;
|
|
8395
11110
|
origin: string[];
|
|
8396
|
-
|
|
11111
|
+
quotasId: string;
|
|
11112
|
+
metricsId: string;
|
|
8397
11113
|
owner: {
|
|
8398
11114
|
user: {
|
|
8399
11115
|
id: string;
|
|
@@ -8455,7 +11171,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
8455
11171
|
id: string;
|
|
8456
11172
|
createdAt: Date;
|
|
8457
11173
|
planId: string | null;
|
|
8458
|
-
limitsId: string;
|
|
8459
11174
|
ownerId: string;
|
|
8460
11175
|
blocked: boolean;
|
|
8461
11176
|
name: string;
|
|
@@ -8463,7 +11178,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
8463
11178
|
logo: string | null;
|
|
8464
11179
|
updatedAt: Date;
|
|
8465
11180
|
origin: string[];
|
|
8466
|
-
|
|
11181
|
+
quotasId: string;
|
|
11182
|
+
metricsId: string;
|
|
8467
11183
|
owner: {
|
|
8468
11184
|
user: {
|
|
8469
11185
|
id: string;
|
|
@@ -8581,6 +11297,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
8581
11297
|
userId: string;
|
|
8582
11298
|
userRole: _prisma_client.$Enums.UserRole;
|
|
8583
11299
|
userPlan: _prisma_client.$Enums.PlanKind;
|
|
11300
|
+
isCare?: boolean | undefined;
|
|
8584
11301
|
};
|
|
8585
11302
|
req: {
|
|
8586
11303
|
headers: Headers;
|
|
@@ -8637,6 +11354,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
8637
11354
|
userId: string;
|
|
8638
11355
|
userRole: _prisma_client.$Enums.UserRole;
|
|
8639
11356
|
userPlan: _prisma_client.$Enums.PlanKind;
|
|
11357
|
+
isCare?: boolean | undefined;
|
|
8640
11358
|
};
|
|
8641
11359
|
req: {
|
|
8642
11360
|
headers: Headers;
|
|
@@ -8695,6 +11413,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
8695
11413
|
userId: string;
|
|
8696
11414
|
userRole: _prisma_client.$Enums.UserRole;
|
|
8697
11415
|
userPlan: _prisma_client.$Enums.PlanKind;
|
|
11416
|
+
isCare?: boolean | undefined;
|
|
8698
11417
|
};
|
|
8699
11418
|
req: {
|
|
8700
11419
|
headers: Headers;
|
|
@@ -8783,6 +11502,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
8783
11502
|
userId: string;
|
|
8784
11503
|
userRole: _prisma_client.$Enums.UserRole;
|
|
8785
11504
|
userPlan: _prisma_client.$Enums.PlanKind;
|
|
11505
|
+
isCare?: boolean | undefined;
|
|
8786
11506
|
};
|
|
8787
11507
|
req: {
|
|
8788
11508
|
headers: Headers;
|
|
@@ -8869,6 +11589,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
8869
11589
|
userId: string;
|
|
8870
11590
|
userRole: _prisma_client.$Enums.UserRole;
|
|
8871
11591
|
userPlan: _prisma_client.$Enums.PlanKind;
|
|
11592
|
+
isCare?: boolean | undefined;
|
|
8872
11593
|
};
|
|
8873
11594
|
req: {
|
|
8874
11595
|
headers: Headers;
|
|
@@ -8927,6 +11648,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
8927
11648
|
userId: string;
|
|
8928
11649
|
userRole: _prisma_client.$Enums.UserRole;
|
|
8929
11650
|
userPlan: _prisma_client.$Enums.PlanKind;
|
|
11651
|
+
isCare?: boolean | undefined;
|
|
8930
11652
|
};
|
|
8931
11653
|
req: {
|
|
8932
11654
|
headers: Headers;
|
|
@@ -8989,6 +11711,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
8989
11711
|
userId: string;
|
|
8990
11712
|
userRole: _prisma_client.$Enums.UserRole;
|
|
8991
11713
|
userPlan: _prisma_client.$Enums.PlanKind;
|
|
11714
|
+
isCare?: boolean | undefined;
|
|
8992
11715
|
};
|
|
8993
11716
|
req: {
|
|
8994
11717
|
headers: Headers;
|
|
@@ -9049,6 +11772,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
9049
11772
|
userId: string;
|
|
9050
11773
|
userRole: _prisma_client.$Enums.UserRole;
|
|
9051
11774
|
userPlan: _prisma_client.$Enums.PlanKind;
|
|
11775
|
+
isCare?: boolean | undefined;
|
|
9052
11776
|
};
|
|
9053
11777
|
req: {
|
|
9054
11778
|
headers: Headers;
|