@1mtx/did-api-contract 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3139 -103
- package/dist/index.d.ts +3139 -103
- package/dist/index.js +346 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +330 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1446,17 +1446,2114 @@ declare const appConfigContract: {
|
|
|
1446
1446
|
}, {
|
|
1447
1447
|
enabled: boolean;
|
|
1448
1448
|
}>;
|
|
1449
|
+
publicEvents: z.ZodObject<{
|
|
1450
|
+
enabled: z.ZodBoolean;
|
|
1451
|
+
}, "strip", z.ZodTypeAny, {
|
|
1452
|
+
enabled: boolean;
|
|
1453
|
+
}, {
|
|
1454
|
+
enabled: boolean;
|
|
1455
|
+
}>;
|
|
1449
1456
|
}, "strip", z.ZodTypeAny, {
|
|
1450
1457
|
demoMode: {
|
|
1451
1458
|
enabled: boolean;
|
|
1452
1459
|
};
|
|
1460
|
+
publicEvents: {
|
|
1461
|
+
enabled: boolean;
|
|
1462
|
+
};
|
|
1453
1463
|
}, {
|
|
1454
1464
|
demoMode: {
|
|
1455
1465
|
enabled: boolean;
|
|
1456
1466
|
};
|
|
1467
|
+
publicEvents: {
|
|
1468
|
+
enabled: boolean;
|
|
1469
|
+
};
|
|
1470
|
+
}>;
|
|
1471
|
+
};
|
|
1472
|
+
};
|
|
1473
|
+
};
|
|
1474
|
+
|
|
1475
|
+
declare const CreateOrganisationSchema: z.ZodObject<{
|
|
1476
|
+
name: z.ZodString;
|
|
1477
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1478
|
+
verifiablePresentation: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1479
|
+
}, "strip", z.ZodTypeAny, {
|
|
1480
|
+
name: string;
|
|
1481
|
+
verifiablePresentation: Record<string, unknown>;
|
|
1482
|
+
description?: string | undefined;
|
|
1483
|
+
}, {
|
|
1484
|
+
name: string;
|
|
1485
|
+
verifiablePresentation: Record<string, unknown>;
|
|
1486
|
+
description?: string | undefined;
|
|
1487
|
+
}>;
|
|
1488
|
+
declare const UpdateOrganisationSchema: z.ZodObject<{
|
|
1489
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1490
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1491
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1492
|
+
}, "strip", z.ZodTypeAny, {
|
|
1493
|
+
description?: string | null | undefined;
|
|
1494
|
+
name?: string | undefined;
|
|
1495
|
+
avatarUrl?: string | null | undefined;
|
|
1496
|
+
}, {
|
|
1497
|
+
description?: string | null | undefined;
|
|
1498
|
+
name?: string | undefined;
|
|
1499
|
+
avatarUrl?: string | null | undefined;
|
|
1500
|
+
}>;
|
|
1501
|
+
declare const OrgResponseSchema: z.ZodObject<{
|
|
1502
|
+
id: z.ZodString;
|
|
1503
|
+
name: z.ZodString;
|
|
1504
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1505
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
1506
|
+
didUri: z.ZodNullable<z.ZodString>;
|
|
1507
|
+
memberCount: z.ZodNumber;
|
|
1508
|
+
createdAt: z.ZodString;
|
|
1509
|
+
updatedAt: z.ZodString;
|
|
1510
|
+
}, "strip", z.ZodTypeAny, {
|
|
1511
|
+
description: string | null;
|
|
1512
|
+
id: string;
|
|
1513
|
+
name: string;
|
|
1514
|
+
createdAt: string;
|
|
1515
|
+
updatedAt: string;
|
|
1516
|
+
avatarUrl: string | null;
|
|
1517
|
+
didUri: string | null;
|
|
1518
|
+
memberCount: number;
|
|
1519
|
+
}, {
|
|
1520
|
+
description: string | null;
|
|
1521
|
+
id: string;
|
|
1522
|
+
name: string;
|
|
1523
|
+
createdAt: string;
|
|
1524
|
+
updatedAt: string;
|
|
1525
|
+
avatarUrl: string | null;
|
|
1526
|
+
didUri: string | null;
|
|
1527
|
+
memberCount: number;
|
|
1528
|
+
}>;
|
|
1529
|
+
declare const OrgListItemSchema: z.ZodObject<{
|
|
1530
|
+
id: z.ZodString;
|
|
1531
|
+
name: z.ZodString;
|
|
1532
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1533
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
1534
|
+
didUri: z.ZodNullable<z.ZodString>;
|
|
1535
|
+
memberCount: z.ZodNumber;
|
|
1536
|
+
createdAt: z.ZodString;
|
|
1537
|
+
updatedAt: z.ZodString;
|
|
1538
|
+
} & {
|
|
1539
|
+
role: z.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
1540
|
+
}, "strip", z.ZodTypeAny, {
|
|
1541
|
+
description: string | null;
|
|
1542
|
+
id: string;
|
|
1543
|
+
name: string;
|
|
1544
|
+
createdAt: string;
|
|
1545
|
+
updatedAt: string;
|
|
1546
|
+
avatarUrl: string | null;
|
|
1547
|
+
didUri: string | null;
|
|
1548
|
+
memberCount: number;
|
|
1549
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1550
|
+
}, {
|
|
1551
|
+
description: string | null;
|
|
1552
|
+
id: string;
|
|
1553
|
+
name: string;
|
|
1554
|
+
createdAt: string;
|
|
1555
|
+
updatedAt: string;
|
|
1556
|
+
avatarUrl: string | null;
|
|
1557
|
+
didUri: string | null;
|
|
1558
|
+
memberCount: number;
|
|
1559
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1560
|
+
}>;
|
|
1561
|
+
declare const OrgDetailResponseSchema: z.ZodObject<{
|
|
1562
|
+
id: z.ZodString;
|
|
1563
|
+
name: z.ZodString;
|
|
1564
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1565
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
1566
|
+
didUri: z.ZodNullable<z.ZodString>;
|
|
1567
|
+
memberCount: z.ZodNumber;
|
|
1568
|
+
createdAt: z.ZodString;
|
|
1569
|
+
updatedAt: z.ZodString;
|
|
1570
|
+
} & {
|
|
1571
|
+
role: z.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
1572
|
+
} & {
|
|
1573
|
+
members: z.ZodArray<z.ZodObject<{
|
|
1574
|
+
id: z.ZodString;
|
|
1575
|
+
userId: z.ZodString;
|
|
1576
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
1577
|
+
role: z.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
1578
|
+
joinedAt: z.ZodString;
|
|
1579
|
+
}, "strip", z.ZodTypeAny, {
|
|
1580
|
+
id: string;
|
|
1581
|
+
userId: string;
|
|
1582
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1583
|
+
displayName: string | null;
|
|
1584
|
+
joinedAt: string;
|
|
1585
|
+
}, {
|
|
1586
|
+
id: string;
|
|
1587
|
+
userId: string;
|
|
1588
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1589
|
+
displayName: string | null;
|
|
1590
|
+
joinedAt: string;
|
|
1591
|
+
}>, "many">;
|
|
1592
|
+
}, "strip", z.ZodTypeAny, {
|
|
1593
|
+
description: string | null;
|
|
1594
|
+
id: string;
|
|
1595
|
+
name: string;
|
|
1596
|
+
createdAt: string;
|
|
1597
|
+
updatedAt: string;
|
|
1598
|
+
avatarUrl: string | null;
|
|
1599
|
+
didUri: string | null;
|
|
1600
|
+
memberCount: number;
|
|
1601
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1602
|
+
members: {
|
|
1603
|
+
id: string;
|
|
1604
|
+
userId: string;
|
|
1605
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1606
|
+
displayName: string | null;
|
|
1607
|
+
joinedAt: string;
|
|
1608
|
+
}[];
|
|
1609
|
+
}, {
|
|
1610
|
+
description: string | null;
|
|
1611
|
+
id: string;
|
|
1612
|
+
name: string;
|
|
1613
|
+
createdAt: string;
|
|
1614
|
+
updatedAt: string;
|
|
1615
|
+
avatarUrl: string | null;
|
|
1616
|
+
didUri: string | null;
|
|
1617
|
+
memberCount: number;
|
|
1618
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1619
|
+
members: {
|
|
1620
|
+
id: string;
|
|
1621
|
+
userId: string;
|
|
1622
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1623
|
+
displayName: string | null;
|
|
1624
|
+
joinedAt: string;
|
|
1625
|
+
}[];
|
|
1626
|
+
}>;
|
|
1627
|
+
declare const MemberResponseSchema: z.ZodObject<{
|
|
1628
|
+
id: z.ZodString;
|
|
1629
|
+
userId: z.ZodString;
|
|
1630
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
1631
|
+
role: z.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
1632
|
+
joinedAt: z.ZodString;
|
|
1633
|
+
}, "strip", z.ZodTypeAny, {
|
|
1634
|
+
id: string;
|
|
1635
|
+
userId: string;
|
|
1636
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1637
|
+
displayName: string | null;
|
|
1638
|
+
joinedAt: string;
|
|
1639
|
+
}, {
|
|
1640
|
+
id: string;
|
|
1641
|
+
userId: string;
|
|
1642
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1643
|
+
displayName: string | null;
|
|
1644
|
+
joinedAt: string;
|
|
1645
|
+
}>;
|
|
1646
|
+
declare const UpdateMemberRoleSchema: z.ZodObject<{
|
|
1647
|
+
role: z.ZodEnum<["ADMIN", "ISSUER", "MEMBER"]>;
|
|
1648
|
+
}, "strip", z.ZodTypeAny, {
|
|
1649
|
+
role: "ADMIN" | "ISSUER" | "MEMBER";
|
|
1650
|
+
}, {
|
|
1651
|
+
role: "ADMIN" | "ISSUER" | "MEMBER";
|
|
1652
|
+
}>;
|
|
1653
|
+
declare const CreateInvitationSchema: z.ZodObject<{
|
|
1654
|
+
expiresInDays: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
1655
|
+
}, "strip", z.ZodTypeAny, {
|
|
1656
|
+
expiresInDays?: number | undefined;
|
|
1657
|
+
}, {
|
|
1658
|
+
expiresInDays?: number | undefined;
|
|
1659
|
+
}>;
|
|
1660
|
+
declare const InvitationResponseSchema: z.ZodObject<{
|
|
1661
|
+
id: z.ZodString;
|
|
1662
|
+
orgId: z.ZodString;
|
|
1663
|
+
orgName: z.ZodString;
|
|
1664
|
+
token: z.ZodString;
|
|
1665
|
+
status: z.ZodEnum<["PENDING", "SUBMITTED", "ACCEPTED", "DECLINED", "EXPIRED"]>;
|
|
1666
|
+
inviteeDisplayName: z.ZodNullable<z.ZodString>;
|
|
1667
|
+
createdAt: z.ZodString;
|
|
1668
|
+
expiresAt: z.ZodString;
|
|
1669
|
+
}, "strip", z.ZodTypeAny, {
|
|
1670
|
+
status: "PENDING" | "SUBMITTED" | "ACCEPTED" | "DECLINED" | "EXPIRED";
|
|
1671
|
+
id: string;
|
|
1672
|
+
createdAt: string;
|
|
1673
|
+
expiresAt: string;
|
|
1674
|
+
orgId: string;
|
|
1675
|
+
orgName: string;
|
|
1676
|
+
token: string;
|
|
1677
|
+
inviteeDisplayName: string | null;
|
|
1678
|
+
}, {
|
|
1679
|
+
status: "PENDING" | "SUBMITTED" | "ACCEPTED" | "DECLINED" | "EXPIRED";
|
|
1680
|
+
id: string;
|
|
1681
|
+
createdAt: string;
|
|
1682
|
+
expiresAt: string;
|
|
1683
|
+
orgId: string;
|
|
1684
|
+
orgName: string;
|
|
1685
|
+
token: string;
|
|
1686
|
+
inviteeDisplayName: string | null;
|
|
1687
|
+
}>;
|
|
1688
|
+
declare const JoinInvitationSchema: z.ZodObject<{
|
|
1689
|
+
verifiablePresentation: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1690
|
+
}, "strip", z.ZodTypeAny, {
|
|
1691
|
+
verifiablePresentation: Record<string, unknown>;
|
|
1692
|
+
}, {
|
|
1693
|
+
verifiablePresentation: Record<string, unknown>;
|
|
1694
|
+
}>;
|
|
1695
|
+
declare const IssueVCSchema: z.ZodObject<{
|
|
1696
|
+
holderDid: z.ZodString;
|
|
1697
|
+
credentialSubject: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1698
|
+
type: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1699
|
+
}, "strip", z.ZodTypeAny, {
|
|
1700
|
+
holderDid: string;
|
|
1701
|
+
credentialSubject: Record<string, unknown>;
|
|
1702
|
+
type?: string[] | undefined;
|
|
1703
|
+
}, {
|
|
1704
|
+
holderDid: string;
|
|
1705
|
+
credentialSubject: Record<string, unknown>;
|
|
1706
|
+
type?: string[] | undefined;
|
|
1707
|
+
}>;
|
|
1708
|
+
declare const orgCrudContract: {
|
|
1709
|
+
createVpRequest: {
|
|
1710
|
+
metadata: {
|
|
1711
|
+
openApiTags: string[];
|
|
1712
|
+
openApiSecurity: {
|
|
1713
|
+
bearerAuth: never[];
|
|
1714
|
+
}[];
|
|
1715
|
+
};
|
|
1716
|
+
summary: "Get VP request for creating an organisation";
|
|
1717
|
+
method: "POST";
|
|
1718
|
+
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1719
|
+
path: "/v1/organisations/vp-request";
|
|
1720
|
+
responses: {
|
|
1721
|
+
200: z.ZodObject<{
|
|
1722
|
+
vpRequest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1723
|
+
expiresAt: z.ZodString;
|
|
1724
|
+
}, "strip", z.ZodTypeAny, {
|
|
1725
|
+
vpRequest: Record<string, unknown>;
|
|
1726
|
+
expiresAt: string;
|
|
1727
|
+
}, {
|
|
1728
|
+
vpRequest: Record<string, unknown>;
|
|
1729
|
+
expiresAt: string;
|
|
1730
|
+
}>;
|
|
1731
|
+
401: z.ZodObject<{
|
|
1732
|
+
message: z.ZodString;
|
|
1733
|
+
}, "strip", z.ZodTypeAny, {
|
|
1734
|
+
message: string;
|
|
1735
|
+
}, {
|
|
1736
|
+
message: string;
|
|
1737
|
+
}>;
|
|
1738
|
+
};
|
|
1739
|
+
};
|
|
1740
|
+
create: {
|
|
1741
|
+
metadata: {
|
|
1742
|
+
openApiTags: string[];
|
|
1743
|
+
openApiSecurity: {
|
|
1744
|
+
bearerAuth: never[];
|
|
1745
|
+
}[];
|
|
1746
|
+
};
|
|
1747
|
+
summary: "Create a new organisation (requires CCCD VP)";
|
|
1748
|
+
method: "POST";
|
|
1749
|
+
body: z.ZodObject<{
|
|
1750
|
+
name: z.ZodString;
|
|
1751
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1752
|
+
verifiablePresentation: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1753
|
+
}, "strip", z.ZodTypeAny, {
|
|
1754
|
+
name: string;
|
|
1755
|
+
verifiablePresentation: Record<string, unknown>;
|
|
1756
|
+
description?: string | undefined;
|
|
1757
|
+
}, {
|
|
1758
|
+
name: string;
|
|
1759
|
+
verifiablePresentation: Record<string, unknown>;
|
|
1760
|
+
description?: string | undefined;
|
|
1761
|
+
}>;
|
|
1762
|
+
path: "/v1/organisations";
|
|
1763
|
+
responses: {
|
|
1764
|
+
201: z.ZodObject<{
|
|
1765
|
+
id: z.ZodString;
|
|
1766
|
+
name: z.ZodString;
|
|
1767
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1768
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
1769
|
+
didUri: z.ZodNullable<z.ZodString>;
|
|
1770
|
+
memberCount: z.ZodNumber;
|
|
1771
|
+
createdAt: z.ZodString;
|
|
1772
|
+
updatedAt: z.ZodString;
|
|
1773
|
+
}, "strip", z.ZodTypeAny, {
|
|
1774
|
+
description: string | null;
|
|
1775
|
+
id: string;
|
|
1776
|
+
name: string;
|
|
1777
|
+
createdAt: string;
|
|
1778
|
+
updatedAt: string;
|
|
1779
|
+
avatarUrl: string | null;
|
|
1780
|
+
didUri: string | null;
|
|
1781
|
+
memberCount: number;
|
|
1782
|
+
}, {
|
|
1783
|
+
description: string | null;
|
|
1784
|
+
id: string;
|
|
1785
|
+
name: string;
|
|
1786
|
+
createdAt: string;
|
|
1787
|
+
updatedAt: string;
|
|
1788
|
+
avatarUrl: string | null;
|
|
1789
|
+
didUri: string | null;
|
|
1790
|
+
memberCount: number;
|
|
1791
|
+
}>;
|
|
1792
|
+
400: z.ZodObject<{
|
|
1793
|
+
message: z.ZodString;
|
|
1794
|
+
}, "strip", z.ZodTypeAny, {
|
|
1795
|
+
message: string;
|
|
1796
|
+
}, {
|
|
1797
|
+
message: string;
|
|
1798
|
+
}>;
|
|
1799
|
+
401: z.ZodObject<{
|
|
1800
|
+
message: z.ZodString;
|
|
1801
|
+
}, "strip", z.ZodTypeAny, {
|
|
1802
|
+
message: string;
|
|
1803
|
+
}, {
|
|
1804
|
+
message: string;
|
|
1805
|
+
}>;
|
|
1806
|
+
};
|
|
1807
|
+
};
|
|
1808
|
+
list: {
|
|
1809
|
+
metadata: {
|
|
1810
|
+
openApiTags: string[];
|
|
1811
|
+
openApiSecurity: {
|
|
1812
|
+
bearerAuth: never[];
|
|
1813
|
+
}[];
|
|
1814
|
+
};
|
|
1815
|
+
summary: "List user's organisations";
|
|
1816
|
+
method: "GET";
|
|
1817
|
+
path: "/v1/organisations";
|
|
1818
|
+
responses: {
|
|
1819
|
+
200: z.ZodArray<z.ZodObject<{
|
|
1820
|
+
id: z.ZodString;
|
|
1821
|
+
name: z.ZodString;
|
|
1822
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1823
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
1824
|
+
didUri: z.ZodNullable<z.ZodString>;
|
|
1825
|
+
memberCount: z.ZodNumber;
|
|
1826
|
+
createdAt: z.ZodString;
|
|
1827
|
+
updatedAt: z.ZodString;
|
|
1828
|
+
} & {
|
|
1829
|
+
role: z.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
1830
|
+
}, "strip", z.ZodTypeAny, {
|
|
1831
|
+
description: string | null;
|
|
1832
|
+
id: string;
|
|
1833
|
+
name: string;
|
|
1834
|
+
createdAt: string;
|
|
1835
|
+
updatedAt: string;
|
|
1836
|
+
avatarUrl: string | null;
|
|
1837
|
+
didUri: string | null;
|
|
1838
|
+
memberCount: number;
|
|
1839
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1840
|
+
}, {
|
|
1841
|
+
description: string | null;
|
|
1842
|
+
id: string;
|
|
1843
|
+
name: string;
|
|
1844
|
+
createdAt: string;
|
|
1845
|
+
updatedAt: string;
|
|
1846
|
+
avatarUrl: string | null;
|
|
1847
|
+
didUri: string | null;
|
|
1848
|
+
memberCount: number;
|
|
1849
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1850
|
+
}>, "many">;
|
|
1851
|
+
401: z.ZodObject<{
|
|
1852
|
+
message: z.ZodString;
|
|
1853
|
+
}, "strip", z.ZodTypeAny, {
|
|
1854
|
+
message: string;
|
|
1855
|
+
}, {
|
|
1856
|
+
message: string;
|
|
1457
1857
|
}>;
|
|
1458
1858
|
};
|
|
1459
1859
|
};
|
|
1860
|
+
getById: {
|
|
1861
|
+
metadata: {
|
|
1862
|
+
openApiTags: string[];
|
|
1863
|
+
openApiSecurity: {
|
|
1864
|
+
bearerAuth: never[];
|
|
1865
|
+
}[];
|
|
1866
|
+
};
|
|
1867
|
+
summary: "Get organisation details (members only)";
|
|
1868
|
+
method: "GET";
|
|
1869
|
+
path: "/v1/organisations/:orgId";
|
|
1870
|
+
responses: {
|
|
1871
|
+
200: z.ZodObject<{
|
|
1872
|
+
id: z.ZodString;
|
|
1873
|
+
name: z.ZodString;
|
|
1874
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1875
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
1876
|
+
didUri: z.ZodNullable<z.ZodString>;
|
|
1877
|
+
memberCount: z.ZodNumber;
|
|
1878
|
+
createdAt: z.ZodString;
|
|
1879
|
+
updatedAt: z.ZodString;
|
|
1880
|
+
} & {
|
|
1881
|
+
role: z.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
1882
|
+
} & {
|
|
1883
|
+
members: z.ZodArray<z.ZodObject<{
|
|
1884
|
+
id: z.ZodString;
|
|
1885
|
+
userId: z.ZodString;
|
|
1886
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
1887
|
+
role: z.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
1888
|
+
joinedAt: z.ZodString;
|
|
1889
|
+
}, "strip", z.ZodTypeAny, {
|
|
1890
|
+
id: string;
|
|
1891
|
+
userId: string;
|
|
1892
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1893
|
+
displayName: string | null;
|
|
1894
|
+
joinedAt: string;
|
|
1895
|
+
}, {
|
|
1896
|
+
id: string;
|
|
1897
|
+
userId: string;
|
|
1898
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1899
|
+
displayName: string | null;
|
|
1900
|
+
joinedAt: string;
|
|
1901
|
+
}>, "many">;
|
|
1902
|
+
}, "strip", z.ZodTypeAny, {
|
|
1903
|
+
description: string | null;
|
|
1904
|
+
id: string;
|
|
1905
|
+
name: string;
|
|
1906
|
+
createdAt: string;
|
|
1907
|
+
updatedAt: string;
|
|
1908
|
+
avatarUrl: string | null;
|
|
1909
|
+
didUri: string | null;
|
|
1910
|
+
memberCount: number;
|
|
1911
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1912
|
+
members: {
|
|
1913
|
+
id: string;
|
|
1914
|
+
userId: string;
|
|
1915
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1916
|
+
displayName: string | null;
|
|
1917
|
+
joinedAt: string;
|
|
1918
|
+
}[];
|
|
1919
|
+
}, {
|
|
1920
|
+
description: string | null;
|
|
1921
|
+
id: string;
|
|
1922
|
+
name: string;
|
|
1923
|
+
createdAt: string;
|
|
1924
|
+
updatedAt: string;
|
|
1925
|
+
avatarUrl: string | null;
|
|
1926
|
+
didUri: string | null;
|
|
1927
|
+
memberCount: number;
|
|
1928
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1929
|
+
members: {
|
|
1930
|
+
id: string;
|
|
1931
|
+
userId: string;
|
|
1932
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
1933
|
+
displayName: string | null;
|
|
1934
|
+
joinedAt: string;
|
|
1935
|
+
}[];
|
|
1936
|
+
}>;
|
|
1937
|
+
401: z.ZodObject<{
|
|
1938
|
+
message: z.ZodString;
|
|
1939
|
+
}, "strip", z.ZodTypeAny, {
|
|
1940
|
+
message: string;
|
|
1941
|
+
}, {
|
|
1942
|
+
message: string;
|
|
1943
|
+
}>;
|
|
1944
|
+
403: z.ZodObject<{
|
|
1945
|
+
message: z.ZodString;
|
|
1946
|
+
}, "strip", z.ZodTypeAny, {
|
|
1947
|
+
message: string;
|
|
1948
|
+
}, {
|
|
1949
|
+
message: string;
|
|
1950
|
+
}>;
|
|
1951
|
+
404: z.ZodObject<{
|
|
1952
|
+
message: z.ZodString;
|
|
1953
|
+
}, "strip", z.ZodTypeAny, {
|
|
1954
|
+
message: string;
|
|
1955
|
+
}, {
|
|
1956
|
+
message: string;
|
|
1957
|
+
}>;
|
|
1958
|
+
};
|
|
1959
|
+
};
|
|
1960
|
+
update: {
|
|
1961
|
+
metadata: {
|
|
1962
|
+
openApiTags: string[];
|
|
1963
|
+
openApiSecurity: {
|
|
1964
|
+
bearerAuth: never[];
|
|
1965
|
+
}[];
|
|
1966
|
+
};
|
|
1967
|
+
summary: "Update organisation details (owner/admin only)";
|
|
1968
|
+
method: "PATCH";
|
|
1969
|
+
body: z.ZodObject<{
|
|
1970
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1971
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1972
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1973
|
+
}, "strip", z.ZodTypeAny, {
|
|
1974
|
+
description?: string | null | undefined;
|
|
1975
|
+
name?: string | undefined;
|
|
1976
|
+
avatarUrl?: string | null | undefined;
|
|
1977
|
+
}, {
|
|
1978
|
+
description?: string | null | undefined;
|
|
1979
|
+
name?: string | undefined;
|
|
1980
|
+
avatarUrl?: string | null | undefined;
|
|
1981
|
+
}>;
|
|
1982
|
+
path: "/v1/organisations/:orgId";
|
|
1983
|
+
responses: {
|
|
1984
|
+
200: z.ZodObject<{
|
|
1985
|
+
id: z.ZodString;
|
|
1986
|
+
name: z.ZodString;
|
|
1987
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1988
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
1989
|
+
didUri: z.ZodNullable<z.ZodString>;
|
|
1990
|
+
memberCount: z.ZodNumber;
|
|
1991
|
+
createdAt: z.ZodString;
|
|
1992
|
+
updatedAt: z.ZodString;
|
|
1993
|
+
}, "strip", z.ZodTypeAny, {
|
|
1994
|
+
description: string | null;
|
|
1995
|
+
id: string;
|
|
1996
|
+
name: string;
|
|
1997
|
+
createdAt: string;
|
|
1998
|
+
updatedAt: string;
|
|
1999
|
+
avatarUrl: string | null;
|
|
2000
|
+
didUri: string | null;
|
|
2001
|
+
memberCount: number;
|
|
2002
|
+
}, {
|
|
2003
|
+
description: string | null;
|
|
2004
|
+
id: string;
|
|
2005
|
+
name: string;
|
|
2006
|
+
createdAt: string;
|
|
2007
|
+
updatedAt: string;
|
|
2008
|
+
avatarUrl: string | null;
|
|
2009
|
+
didUri: string | null;
|
|
2010
|
+
memberCount: number;
|
|
2011
|
+
}>;
|
|
2012
|
+
400: z.ZodObject<{
|
|
2013
|
+
message: z.ZodString;
|
|
2014
|
+
}, "strip", z.ZodTypeAny, {
|
|
2015
|
+
message: string;
|
|
2016
|
+
}, {
|
|
2017
|
+
message: string;
|
|
2018
|
+
}>;
|
|
2019
|
+
401: z.ZodObject<{
|
|
2020
|
+
message: z.ZodString;
|
|
2021
|
+
}, "strip", z.ZodTypeAny, {
|
|
2022
|
+
message: string;
|
|
2023
|
+
}, {
|
|
2024
|
+
message: string;
|
|
2025
|
+
}>;
|
|
2026
|
+
403: z.ZodObject<{
|
|
2027
|
+
message: z.ZodString;
|
|
2028
|
+
}, "strip", z.ZodTypeAny, {
|
|
2029
|
+
message: string;
|
|
2030
|
+
}, {
|
|
2031
|
+
message: string;
|
|
2032
|
+
}>;
|
|
2033
|
+
404: z.ZodObject<{
|
|
2034
|
+
message: z.ZodString;
|
|
2035
|
+
}, "strip", z.ZodTypeAny, {
|
|
2036
|
+
message: string;
|
|
2037
|
+
}, {
|
|
2038
|
+
message: string;
|
|
2039
|
+
}>;
|
|
2040
|
+
};
|
|
2041
|
+
};
|
|
2042
|
+
delete: {
|
|
2043
|
+
metadata: {
|
|
2044
|
+
openApiTags: string[];
|
|
2045
|
+
openApiSecurity: {
|
|
2046
|
+
bearerAuth: never[];
|
|
2047
|
+
}[];
|
|
2048
|
+
};
|
|
2049
|
+
summary: "Delete organisation (owner only)";
|
|
2050
|
+
method: "DELETE";
|
|
2051
|
+
body: typeof _ts_rest_core.ContractNoBody;
|
|
2052
|
+
path: "/v1/organisations/:orgId";
|
|
2053
|
+
responses: {
|
|
2054
|
+
204: z.ZodUndefined;
|
|
2055
|
+
401: z.ZodObject<{
|
|
2056
|
+
message: z.ZodString;
|
|
2057
|
+
}, "strip", z.ZodTypeAny, {
|
|
2058
|
+
message: string;
|
|
2059
|
+
}, {
|
|
2060
|
+
message: string;
|
|
2061
|
+
}>;
|
|
2062
|
+
403: z.ZodObject<{
|
|
2063
|
+
message: z.ZodString;
|
|
2064
|
+
}, "strip", z.ZodTypeAny, {
|
|
2065
|
+
message: string;
|
|
2066
|
+
}, {
|
|
2067
|
+
message: string;
|
|
2068
|
+
}>;
|
|
2069
|
+
404: z.ZodObject<{
|
|
2070
|
+
message: z.ZodString;
|
|
2071
|
+
}, "strip", z.ZodTypeAny, {
|
|
2072
|
+
message: string;
|
|
2073
|
+
}, {
|
|
2074
|
+
message: string;
|
|
2075
|
+
}>;
|
|
2076
|
+
};
|
|
2077
|
+
};
|
|
2078
|
+
};
|
|
2079
|
+
declare const orgMembersContract: {
|
|
2080
|
+
listMembers: {
|
|
2081
|
+
metadata: {
|
|
2082
|
+
openApiTags: string[];
|
|
2083
|
+
openApiSecurity: {
|
|
2084
|
+
bearerAuth: never[];
|
|
2085
|
+
}[];
|
|
2086
|
+
};
|
|
2087
|
+
summary: "List organisation members";
|
|
2088
|
+
method: "GET";
|
|
2089
|
+
path: "/v1/organisations/:orgId/members";
|
|
2090
|
+
responses: {
|
|
2091
|
+
200: z.ZodArray<z.ZodObject<{
|
|
2092
|
+
id: z.ZodString;
|
|
2093
|
+
userId: z.ZodString;
|
|
2094
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
2095
|
+
role: z.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
2096
|
+
joinedAt: z.ZodString;
|
|
2097
|
+
}, "strip", z.ZodTypeAny, {
|
|
2098
|
+
id: string;
|
|
2099
|
+
userId: string;
|
|
2100
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
2101
|
+
displayName: string | null;
|
|
2102
|
+
joinedAt: string;
|
|
2103
|
+
}, {
|
|
2104
|
+
id: string;
|
|
2105
|
+
userId: string;
|
|
2106
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
2107
|
+
displayName: string | null;
|
|
2108
|
+
joinedAt: string;
|
|
2109
|
+
}>, "many">;
|
|
2110
|
+
401: z.ZodObject<{
|
|
2111
|
+
message: z.ZodString;
|
|
2112
|
+
}, "strip", z.ZodTypeAny, {
|
|
2113
|
+
message: string;
|
|
2114
|
+
}, {
|
|
2115
|
+
message: string;
|
|
2116
|
+
}>;
|
|
2117
|
+
403: z.ZodObject<{
|
|
2118
|
+
message: z.ZodString;
|
|
2119
|
+
}, "strip", z.ZodTypeAny, {
|
|
2120
|
+
message: string;
|
|
2121
|
+
}, {
|
|
2122
|
+
message: string;
|
|
2123
|
+
}>;
|
|
2124
|
+
};
|
|
2125
|
+
};
|
|
2126
|
+
updateMemberRole: {
|
|
2127
|
+
metadata: {
|
|
2128
|
+
openApiTags: string[];
|
|
2129
|
+
openApiSecurity: {
|
|
2130
|
+
bearerAuth: never[];
|
|
2131
|
+
}[];
|
|
2132
|
+
};
|
|
2133
|
+
summary: "Update member role (owner/admin only)";
|
|
2134
|
+
method: "PATCH";
|
|
2135
|
+
body: z.ZodObject<{
|
|
2136
|
+
role: z.ZodEnum<["ADMIN", "ISSUER", "MEMBER"]>;
|
|
2137
|
+
}, "strip", z.ZodTypeAny, {
|
|
2138
|
+
role: "ADMIN" | "ISSUER" | "MEMBER";
|
|
2139
|
+
}, {
|
|
2140
|
+
role: "ADMIN" | "ISSUER" | "MEMBER";
|
|
2141
|
+
}>;
|
|
2142
|
+
path: "/v1/organisations/:orgId/members/:memberId";
|
|
2143
|
+
responses: {
|
|
2144
|
+
200: z.ZodObject<{
|
|
2145
|
+
id: z.ZodString;
|
|
2146
|
+
userId: z.ZodString;
|
|
2147
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
2148
|
+
role: z.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
2149
|
+
joinedAt: z.ZodString;
|
|
2150
|
+
}, "strip", z.ZodTypeAny, {
|
|
2151
|
+
id: string;
|
|
2152
|
+
userId: string;
|
|
2153
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
2154
|
+
displayName: string | null;
|
|
2155
|
+
joinedAt: string;
|
|
2156
|
+
}, {
|
|
2157
|
+
id: string;
|
|
2158
|
+
userId: string;
|
|
2159
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
2160
|
+
displayName: string | null;
|
|
2161
|
+
joinedAt: string;
|
|
2162
|
+
}>;
|
|
2163
|
+
400: z.ZodObject<{
|
|
2164
|
+
message: z.ZodString;
|
|
2165
|
+
}, "strip", z.ZodTypeAny, {
|
|
2166
|
+
message: string;
|
|
2167
|
+
}, {
|
|
2168
|
+
message: string;
|
|
2169
|
+
}>;
|
|
2170
|
+
401: z.ZodObject<{
|
|
2171
|
+
message: z.ZodString;
|
|
2172
|
+
}, "strip", z.ZodTypeAny, {
|
|
2173
|
+
message: string;
|
|
2174
|
+
}, {
|
|
2175
|
+
message: string;
|
|
2176
|
+
}>;
|
|
2177
|
+
403: z.ZodObject<{
|
|
2178
|
+
message: z.ZodString;
|
|
2179
|
+
}, "strip", z.ZodTypeAny, {
|
|
2180
|
+
message: string;
|
|
2181
|
+
}, {
|
|
2182
|
+
message: string;
|
|
2183
|
+
}>;
|
|
2184
|
+
404: z.ZodObject<{
|
|
2185
|
+
message: z.ZodString;
|
|
2186
|
+
}, "strip", z.ZodTypeAny, {
|
|
2187
|
+
message: string;
|
|
2188
|
+
}, {
|
|
2189
|
+
message: string;
|
|
2190
|
+
}>;
|
|
2191
|
+
};
|
|
2192
|
+
};
|
|
2193
|
+
removeMember: {
|
|
2194
|
+
metadata: {
|
|
2195
|
+
openApiTags: string[];
|
|
2196
|
+
openApiSecurity: {
|
|
2197
|
+
bearerAuth: never[];
|
|
2198
|
+
}[];
|
|
2199
|
+
};
|
|
2200
|
+
summary: "Remove member from organisation (owner/admin only)";
|
|
2201
|
+
method: "DELETE";
|
|
2202
|
+
body: typeof _ts_rest_core.ContractNoBody;
|
|
2203
|
+
path: "/v1/organisations/:orgId/members/:memberId";
|
|
2204
|
+
responses: {
|
|
2205
|
+
204: z.ZodUndefined;
|
|
2206
|
+
400: z.ZodObject<{
|
|
2207
|
+
message: z.ZodString;
|
|
2208
|
+
}, "strip", z.ZodTypeAny, {
|
|
2209
|
+
message: string;
|
|
2210
|
+
}, {
|
|
2211
|
+
message: string;
|
|
2212
|
+
}>;
|
|
2213
|
+
401: z.ZodObject<{
|
|
2214
|
+
message: z.ZodString;
|
|
2215
|
+
}, "strip", z.ZodTypeAny, {
|
|
2216
|
+
message: string;
|
|
2217
|
+
}, {
|
|
2218
|
+
message: string;
|
|
2219
|
+
}>;
|
|
2220
|
+
403: z.ZodObject<{
|
|
2221
|
+
message: z.ZodString;
|
|
2222
|
+
}, "strip", z.ZodTypeAny, {
|
|
2223
|
+
message: string;
|
|
2224
|
+
}, {
|
|
2225
|
+
message: string;
|
|
2226
|
+
}>;
|
|
2227
|
+
404: z.ZodObject<{
|
|
2228
|
+
message: z.ZodString;
|
|
2229
|
+
}, "strip", z.ZodTypeAny, {
|
|
2230
|
+
message: string;
|
|
2231
|
+
}, {
|
|
2232
|
+
message: string;
|
|
2233
|
+
}>;
|
|
2234
|
+
};
|
|
2235
|
+
};
|
|
2236
|
+
};
|
|
2237
|
+
declare const orgInvitationsContract: {
|
|
2238
|
+
createInvitation: {
|
|
2239
|
+
metadata: {
|
|
2240
|
+
openApiTags: string[];
|
|
2241
|
+
openApiSecurity: {
|
|
2242
|
+
bearerAuth: never[];
|
|
2243
|
+
}[];
|
|
2244
|
+
};
|
|
2245
|
+
summary: "Create invitation (owner/admin only)";
|
|
2246
|
+
method: "POST";
|
|
2247
|
+
body: z.ZodObject<{
|
|
2248
|
+
expiresInDays: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
2249
|
+
}, "strip", z.ZodTypeAny, {
|
|
2250
|
+
expiresInDays?: number | undefined;
|
|
2251
|
+
}, {
|
|
2252
|
+
expiresInDays?: number | undefined;
|
|
2253
|
+
}>;
|
|
2254
|
+
path: "/v1/organisations/:orgId/invitations";
|
|
2255
|
+
responses: {
|
|
2256
|
+
201: z.ZodObject<{
|
|
2257
|
+
id: z.ZodString;
|
|
2258
|
+
orgId: z.ZodString;
|
|
2259
|
+
orgName: z.ZodString;
|
|
2260
|
+
token: z.ZodString;
|
|
2261
|
+
status: z.ZodEnum<["PENDING", "SUBMITTED", "ACCEPTED", "DECLINED", "EXPIRED"]>;
|
|
2262
|
+
inviteeDisplayName: z.ZodNullable<z.ZodString>;
|
|
2263
|
+
createdAt: z.ZodString;
|
|
2264
|
+
expiresAt: z.ZodString;
|
|
2265
|
+
}, "strip", z.ZodTypeAny, {
|
|
2266
|
+
status: "PENDING" | "SUBMITTED" | "ACCEPTED" | "DECLINED" | "EXPIRED";
|
|
2267
|
+
id: string;
|
|
2268
|
+
createdAt: string;
|
|
2269
|
+
expiresAt: string;
|
|
2270
|
+
orgId: string;
|
|
2271
|
+
orgName: string;
|
|
2272
|
+
token: string;
|
|
2273
|
+
inviteeDisplayName: string | null;
|
|
2274
|
+
}, {
|
|
2275
|
+
status: "PENDING" | "SUBMITTED" | "ACCEPTED" | "DECLINED" | "EXPIRED";
|
|
2276
|
+
id: string;
|
|
2277
|
+
createdAt: string;
|
|
2278
|
+
expiresAt: string;
|
|
2279
|
+
orgId: string;
|
|
2280
|
+
orgName: string;
|
|
2281
|
+
token: string;
|
|
2282
|
+
inviteeDisplayName: string | null;
|
|
2283
|
+
}>;
|
|
2284
|
+
401: z.ZodObject<{
|
|
2285
|
+
message: z.ZodString;
|
|
2286
|
+
}, "strip", z.ZodTypeAny, {
|
|
2287
|
+
message: string;
|
|
2288
|
+
}, {
|
|
2289
|
+
message: string;
|
|
2290
|
+
}>;
|
|
2291
|
+
403: z.ZodObject<{
|
|
2292
|
+
message: z.ZodString;
|
|
2293
|
+
}, "strip", z.ZodTypeAny, {
|
|
2294
|
+
message: string;
|
|
2295
|
+
}, {
|
|
2296
|
+
message: string;
|
|
2297
|
+
}>;
|
|
2298
|
+
};
|
|
2299
|
+
};
|
|
2300
|
+
listInvitations: {
|
|
2301
|
+
metadata: {
|
|
2302
|
+
openApiTags: string[];
|
|
2303
|
+
openApiSecurity: {
|
|
2304
|
+
bearerAuth: never[];
|
|
2305
|
+
}[];
|
|
2306
|
+
};
|
|
2307
|
+
summary: "List pending invitations (owner/admin only)";
|
|
2308
|
+
method: "GET";
|
|
2309
|
+
path: "/v1/organisations/:orgId/invitations";
|
|
2310
|
+
responses: {
|
|
2311
|
+
200: z.ZodArray<z.ZodObject<{
|
|
2312
|
+
id: z.ZodString;
|
|
2313
|
+
orgId: z.ZodString;
|
|
2314
|
+
orgName: z.ZodString;
|
|
2315
|
+
token: z.ZodString;
|
|
2316
|
+
status: z.ZodEnum<["PENDING", "SUBMITTED", "ACCEPTED", "DECLINED", "EXPIRED"]>;
|
|
2317
|
+
inviteeDisplayName: z.ZodNullable<z.ZodString>;
|
|
2318
|
+
createdAt: z.ZodString;
|
|
2319
|
+
expiresAt: z.ZodString;
|
|
2320
|
+
}, "strip", z.ZodTypeAny, {
|
|
2321
|
+
status: "PENDING" | "SUBMITTED" | "ACCEPTED" | "DECLINED" | "EXPIRED";
|
|
2322
|
+
id: string;
|
|
2323
|
+
createdAt: string;
|
|
2324
|
+
expiresAt: string;
|
|
2325
|
+
orgId: string;
|
|
2326
|
+
orgName: string;
|
|
2327
|
+
token: string;
|
|
2328
|
+
inviteeDisplayName: string | null;
|
|
2329
|
+
}, {
|
|
2330
|
+
status: "PENDING" | "SUBMITTED" | "ACCEPTED" | "DECLINED" | "EXPIRED";
|
|
2331
|
+
id: string;
|
|
2332
|
+
createdAt: string;
|
|
2333
|
+
expiresAt: string;
|
|
2334
|
+
orgId: string;
|
|
2335
|
+
orgName: string;
|
|
2336
|
+
token: string;
|
|
2337
|
+
inviteeDisplayName: string | null;
|
|
2338
|
+
}>, "many">;
|
|
2339
|
+
401: z.ZodObject<{
|
|
2340
|
+
message: z.ZodString;
|
|
2341
|
+
}, "strip", z.ZodTypeAny, {
|
|
2342
|
+
message: string;
|
|
2343
|
+
}, {
|
|
2344
|
+
message: string;
|
|
2345
|
+
}>;
|
|
2346
|
+
403: z.ZodObject<{
|
|
2347
|
+
message: z.ZodString;
|
|
2348
|
+
}, "strip", z.ZodTypeAny, {
|
|
2349
|
+
message: string;
|
|
2350
|
+
}, {
|
|
2351
|
+
message: string;
|
|
2352
|
+
}>;
|
|
2353
|
+
};
|
|
2354
|
+
};
|
|
2355
|
+
joinVpRequest: {
|
|
2356
|
+
metadata: {
|
|
2357
|
+
openApiTags: string[];
|
|
2358
|
+
openApiSecurity: {
|
|
2359
|
+
bearerAuth: never[];
|
|
2360
|
+
}[];
|
|
2361
|
+
};
|
|
2362
|
+
summary: "Get VP request for joining via invitation";
|
|
2363
|
+
method: "POST";
|
|
2364
|
+
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
2365
|
+
path: "/v1/organisations/invitations/:token/vp-request";
|
|
2366
|
+
responses: {
|
|
2367
|
+
200: z.ZodObject<{
|
|
2368
|
+
vpRequest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2369
|
+
expiresAt: z.ZodString;
|
|
2370
|
+
}, "strip", z.ZodTypeAny, {
|
|
2371
|
+
vpRequest: Record<string, unknown>;
|
|
2372
|
+
expiresAt: string;
|
|
2373
|
+
}, {
|
|
2374
|
+
vpRequest: Record<string, unknown>;
|
|
2375
|
+
expiresAt: string;
|
|
2376
|
+
}>;
|
|
2377
|
+
401: z.ZodObject<{
|
|
2378
|
+
message: z.ZodString;
|
|
2379
|
+
}, "strip", z.ZodTypeAny, {
|
|
2380
|
+
message: string;
|
|
2381
|
+
}, {
|
|
2382
|
+
message: string;
|
|
2383
|
+
}>;
|
|
2384
|
+
404: z.ZodObject<{
|
|
2385
|
+
message: z.ZodString;
|
|
2386
|
+
}, "strip", z.ZodTypeAny, {
|
|
2387
|
+
message: string;
|
|
2388
|
+
}, {
|
|
2389
|
+
message: string;
|
|
2390
|
+
}>;
|
|
2391
|
+
410: z.ZodObject<{
|
|
2392
|
+
message: z.ZodString;
|
|
2393
|
+
}, "strip", z.ZodTypeAny, {
|
|
2394
|
+
message: string;
|
|
2395
|
+
}, {
|
|
2396
|
+
message: string;
|
|
2397
|
+
}>;
|
|
2398
|
+
};
|
|
2399
|
+
};
|
|
2400
|
+
joinInvitation: {
|
|
2401
|
+
metadata: {
|
|
2402
|
+
openApiTags: string[];
|
|
2403
|
+
openApiSecurity: {
|
|
2404
|
+
bearerAuth: never[];
|
|
2405
|
+
}[];
|
|
2406
|
+
};
|
|
2407
|
+
summary: "Invitee submits CCCD VP to join";
|
|
2408
|
+
method: "POST";
|
|
2409
|
+
body: z.ZodObject<{
|
|
2410
|
+
verifiablePresentation: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2411
|
+
}, "strip", z.ZodTypeAny, {
|
|
2412
|
+
verifiablePresentation: Record<string, unknown>;
|
|
2413
|
+
}, {
|
|
2414
|
+
verifiablePresentation: Record<string, unknown>;
|
|
2415
|
+
}>;
|
|
2416
|
+
path: "/v1/organisations/invitations/:token/join";
|
|
2417
|
+
responses: {
|
|
2418
|
+
200: z.ZodObject<{
|
|
2419
|
+
message: z.ZodString;
|
|
2420
|
+
}, "strip", z.ZodTypeAny, {
|
|
2421
|
+
message: string;
|
|
2422
|
+
}, {
|
|
2423
|
+
message: string;
|
|
2424
|
+
}>;
|
|
2425
|
+
400: z.ZodObject<{
|
|
2426
|
+
message: z.ZodString;
|
|
2427
|
+
}, "strip", z.ZodTypeAny, {
|
|
2428
|
+
message: string;
|
|
2429
|
+
}, {
|
|
2430
|
+
message: string;
|
|
2431
|
+
}>;
|
|
2432
|
+
401: z.ZodObject<{
|
|
2433
|
+
message: z.ZodString;
|
|
2434
|
+
}, "strip", z.ZodTypeAny, {
|
|
2435
|
+
message: string;
|
|
2436
|
+
}, {
|
|
2437
|
+
message: string;
|
|
2438
|
+
}>;
|
|
2439
|
+
410: z.ZodObject<{
|
|
2440
|
+
message: z.ZodString;
|
|
2441
|
+
}, "strip", z.ZodTypeAny, {
|
|
2442
|
+
message: string;
|
|
2443
|
+
}, {
|
|
2444
|
+
message: string;
|
|
2445
|
+
}>;
|
|
2446
|
+
};
|
|
2447
|
+
};
|
|
2448
|
+
acceptInvitation: {
|
|
2449
|
+
metadata: {
|
|
2450
|
+
openApiTags: string[];
|
|
2451
|
+
openApiSecurity: {
|
|
2452
|
+
bearerAuth: never[];
|
|
2453
|
+
}[];
|
|
2454
|
+
};
|
|
2455
|
+
summary: "Accept invitation (owner/admin only)";
|
|
2456
|
+
method: "POST";
|
|
2457
|
+
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
2458
|
+
path: "/v1/organisations/:orgId/invitations/:invitationId/accept";
|
|
2459
|
+
responses: {
|
|
2460
|
+
200: z.ZodObject<{
|
|
2461
|
+
message: z.ZodString;
|
|
2462
|
+
memberId: z.ZodString;
|
|
2463
|
+
}, "strip", z.ZodTypeAny, {
|
|
2464
|
+
message: string;
|
|
2465
|
+
memberId: string;
|
|
2466
|
+
}, {
|
|
2467
|
+
message: string;
|
|
2468
|
+
memberId: string;
|
|
2469
|
+
}>;
|
|
2470
|
+
401: z.ZodObject<{
|
|
2471
|
+
message: z.ZodString;
|
|
2472
|
+
}, "strip", z.ZodTypeAny, {
|
|
2473
|
+
message: string;
|
|
2474
|
+
}, {
|
|
2475
|
+
message: string;
|
|
2476
|
+
}>;
|
|
2477
|
+
403: z.ZodObject<{
|
|
2478
|
+
message: z.ZodString;
|
|
2479
|
+
}, "strip", z.ZodTypeAny, {
|
|
2480
|
+
message: string;
|
|
2481
|
+
}, {
|
|
2482
|
+
message: string;
|
|
2483
|
+
}>;
|
|
2484
|
+
409: z.ZodObject<{
|
|
2485
|
+
message: z.ZodString;
|
|
2486
|
+
}, "strip", z.ZodTypeAny, {
|
|
2487
|
+
message: string;
|
|
2488
|
+
}, {
|
|
2489
|
+
message: string;
|
|
2490
|
+
}>;
|
|
2491
|
+
};
|
|
2492
|
+
};
|
|
2493
|
+
declineInvitation: {
|
|
2494
|
+
metadata: {
|
|
2495
|
+
openApiTags: string[];
|
|
2496
|
+
openApiSecurity: {
|
|
2497
|
+
bearerAuth: never[];
|
|
2498
|
+
}[];
|
|
2499
|
+
};
|
|
2500
|
+
summary: "Decline invitation (owner/admin only)";
|
|
2501
|
+
method: "POST";
|
|
2502
|
+
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
2503
|
+
path: "/v1/organisations/:orgId/invitations/:invitationId/decline";
|
|
2504
|
+
responses: {
|
|
2505
|
+
200: z.ZodObject<{
|
|
2506
|
+
message: z.ZodString;
|
|
2507
|
+
}, "strip", z.ZodTypeAny, {
|
|
2508
|
+
message: string;
|
|
2509
|
+
}, {
|
|
2510
|
+
message: string;
|
|
2511
|
+
}>;
|
|
2512
|
+
401: z.ZodObject<{
|
|
2513
|
+
message: z.ZodString;
|
|
2514
|
+
}, "strip", z.ZodTypeAny, {
|
|
2515
|
+
message: string;
|
|
2516
|
+
}, {
|
|
2517
|
+
message: string;
|
|
2518
|
+
}>;
|
|
2519
|
+
403: z.ZodObject<{
|
|
2520
|
+
message: z.ZodString;
|
|
2521
|
+
}, "strip", z.ZodTypeAny, {
|
|
2522
|
+
message: string;
|
|
2523
|
+
}, {
|
|
2524
|
+
message: string;
|
|
2525
|
+
}>;
|
|
2526
|
+
409: z.ZodObject<{
|
|
2527
|
+
message: z.ZodString;
|
|
2528
|
+
}, "strip", z.ZodTypeAny, {
|
|
2529
|
+
message: string;
|
|
2530
|
+
}, {
|
|
2531
|
+
message: string;
|
|
2532
|
+
}>;
|
|
2533
|
+
};
|
|
2534
|
+
};
|
|
2535
|
+
};
|
|
2536
|
+
declare const orgCredentialsContract: {
|
|
2537
|
+
issueVC: {
|
|
2538
|
+
metadata: {
|
|
2539
|
+
openApiTags: string[];
|
|
2540
|
+
openApiSecurity: {
|
|
2541
|
+
bearerAuth: never[];
|
|
2542
|
+
}[];
|
|
2543
|
+
};
|
|
2544
|
+
summary: "Issue VC on behalf of organisation (owner/admin/issuer)";
|
|
2545
|
+
method: "POST";
|
|
2546
|
+
body: z.ZodObject<{
|
|
2547
|
+
holderDid: z.ZodString;
|
|
2548
|
+
credentialSubject: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2549
|
+
type: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2550
|
+
}, "strip", z.ZodTypeAny, {
|
|
2551
|
+
holderDid: string;
|
|
2552
|
+
credentialSubject: Record<string, unknown>;
|
|
2553
|
+
type?: string[] | undefined;
|
|
2554
|
+
}, {
|
|
2555
|
+
holderDid: string;
|
|
2556
|
+
credentialSubject: Record<string, unknown>;
|
|
2557
|
+
type?: string[] | undefined;
|
|
2558
|
+
}>;
|
|
2559
|
+
path: "/v1/organisations/:orgId/credentials/issue";
|
|
2560
|
+
responses: {
|
|
2561
|
+
201: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2562
|
+
400: z.ZodObject<{
|
|
2563
|
+
message: z.ZodString;
|
|
2564
|
+
}, "strip", z.ZodTypeAny, {
|
|
2565
|
+
message: string;
|
|
2566
|
+
}, {
|
|
2567
|
+
message: string;
|
|
2568
|
+
}>;
|
|
2569
|
+
401: z.ZodObject<{
|
|
2570
|
+
message: z.ZodString;
|
|
2571
|
+
}, "strip", z.ZodTypeAny, {
|
|
2572
|
+
message: string;
|
|
2573
|
+
}, {
|
|
2574
|
+
message: string;
|
|
2575
|
+
}>;
|
|
2576
|
+
403: z.ZodObject<{
|
|
2577
|
+
message: z.ZodString;
|
|
2578
|
+
}, "strip", z.ZodTypeAny, {
|
|
2579
|
+
message: string;
|
|
2580
|
+
}, {
|
|
2581
|
+
message: string;
|
|
2582
|
+
}>;
|
|
2583
|
+
};
|
|
2584
|
+
};
|
|
2585
|
+
listIssuedCredentials: {
|
|
2586
|
+
metadata: {
|
|
2587
|
+
openApiTags: string[];
|
|
2588
|
+
openApiSecurity: {
|
|
2589
|
+
bearerAuth: never[];
|
|
2590
|
+
}[];
|
|
2591
|
+
};
|
|
2592
|
+
summary: "List issued credentials (owner/admin only)";
|
|
2593
|
+
method: "GET";
|
|
2594
|
+
path: "/v1/organisations/:orgId/credentials";
|
|
2595
|
+
responses: {
|
|
2596
|
+
200: z.ZodArray<z.ZodObject<{
|
|
2597
|
+
id: z.ZodString;
|
|
2598
|
+
holderDid: z.ZodString;
|
|
2599
|
+
issuingMemberId: z.ZodString;
|
|
2600
|
+
credentialJson: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2601
|
+
issuedAt: z.ZodString;
|
|
2602
|
+
}, "strip", z.ZodTypeAny, {
|
|
2603
|
+
id: string;
|
|
2604
|
+
holderDid: string;
|
|
2605
|
+
issuingMemberId: string;
|
|
2606
|
+
credentialJson: Record<string, unknown>;
|
|
2607
|
+
issuedAt: string;
|
|
2608
|
+
}, {
|
|
2609
|
+
id: string;
|
|
2610
|
+
holderDid: string;
|
|
2611
|
+
issuingMemberId: string;
|
|
2612
|
+
credentialJson: Record<string, unknown>;
|
|
2613
|
+
issuedAt: string;
|
|
2614
|
+
}>, "many">;
|
|
2615
|
+
401: z.ZodObject<{
|
|
2616
|
+
message: z.ZodString;
|
|
2617
|
+
}, "strip", z.ZodTypeAny, {
|
|
2618
|
+
message: string;
|
|
2619
|
+
}, {
|
|
2620
|
+
message: string;
|
|
2621
|
+
}>;
|
|
2622
|
+
403: z.ZodObject<{
|
|
2623
|
+
message: z.ZodString;
|
|
2624
|
+
}, "strip", z.ZodTypeAny, {
|
|
2625
|
+
message: string;
|
|
2626
|
+
}, {
|
|
2627
|
+
message: string;
|
|
2628
|
+
}>;
|
|
2629
|
+
};
|
|
2630
|
+
};
|
|
2631
|
+
};
|
|
2632
|
+
declare const organisationsContract: {
|
|
2633
|
+
crud: {
|
|
2634
|
+
createVpRequest: {
|
|
2635
|
+
metadata: {
|
|
2636
|
+
openApiTags: string[];
|
|
2637
|
+
openApiSecurity: {
|
|
2638
|
+
bearerAuth: never[];
|
|
2639
|
+
}[];
|
|
2640
|
+
};
|
|
2641
|
+
summary: "Get VP request for creating an organisation";
|
|
2642
|
+
method: "POST";
|
|
2643
|
+
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
2644
|
+
path: "/v1/organisations/vp-request";
|
|
2645
|
+
responses: {
|
|
2646
|
+
200: z.ZodObject<{
|
|
2647
|
+
vpRequest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2648
|
+
expiresAt: z.ZodString;
|
|
2649
|
+
}, "strip", z.ZodTypeAny, {
|
|
2650
|
+
vpRequest: Record<string, unknown>;
|
|
2651
|
+
expiresAt: string;
|
|
2652
|
+
}, {
|
|
2653
|
+
vpRequest: Record<string, unknown>;
|
|
2654
|
+
expiresAt: string;
|
|
2655
|
+
}>;
|
|
2656
|
+
401: z.ZodObject<{
|
|
2657
|
+
message: z.ZodString;
|
|
2658
|
+
}, "strip", z.ZodTypeAny, {
|
|
2659
|
+
message: string;
|
|
2660
|
+
}, {
|
|
2661
|
+
message: string;
|
|
2662
|
+
}>;
|
|
2663
|
+
};
|
|
2664
|
+
};
|
|
2665
|
+
create: {
|
|
2666
|
+
metadata: {
|
|
2667
|
+
openApiTags: string[];
|
|
2668
|
+
openApiSecurity: {
|
|
2669
|
+
bearerAuth: never[];
|
|
2670
|
+
}[];
|
|
2671
|
+
};
|
|
2672
|
+
summary: "Create a new organisation (requires CCCD VP)";
|
|
2673
|
+
method: "POST";
|
|
2674
|
+
body: z.ZodObject<{
|
|
2675
|
+
name: z.ZodString;
|
|
2676
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2677
|
+
verifiablePresentation: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2678
|
+
}, "strip", z.ZodTypeAny, {
|
|
2679
|
+
name: string;
|
|
2680
|
+
verifiablePresentation: Record<string, unknown>;
|
|
2681
|
+
description?: string | undefined;
|
|
2682
|
+
}, {
|
|
2683
|
+
name: string;
|
|
2684
|
+
verifiablePresentation: Record<string, unknown>;
|
|
2685
|
+
description?: string | undefined;
|
|
2686
|
+
}>;
|
|
2687
|
+
path: "/v1/organisations";
|
|
2688
|
+
responses: {
|
|
2689
|
+
201: z.ZodObject<{
|
|
2690
|
+
id: z.ZodString;
|
|
2691
|
+
name: z.ZodString;
|
|
2692
|
+
description: z.ZodNullable<z.ZodString>;
|
|
2693
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
2694
|
+
didUri: z.ZodNullable<z.ZodString>;
|
|
2695
|
+
memberCount: z.ZodNumber;
|
|
2696
|
+
createdAt: z.ZodString;
|
|
2697
|
+
updatedAt: z.ZodString;
|
|
2698
|
+
}, "strip", z.ZodTypeAny, {
|
|
2699
|
+
description: string | null;
|
|
2700
|
+
id: string;
|
|
2701
|
+
name: string;
|
|
2702
|
+
createdAt: string;
|
|
2703
|
+
updatedAt: string;
|
|
2704
|
+
avatarUrl: string | null;
|
|
2705
|
+
didUri: string | null;
|
|
2706
|
+
memberCount: number;
|
|
2707
|
+
}, {
|
|
2708
|
+
description: string | null;
|
|
2709
|
+
id: string;
|
|
2710
|
+
name: string;
|
|
2711
|
+
createdAt: string;
|
|
2712
|
+
updatedAt: string;
|
|
2713
|
+
avatarUrl: string | null;
|
|
2714
|
+
didUri: string | null;
|
|
2715
|
+
memberCount: number;
|
|
2716
|
+
}>;
|
|
2717
|
+
400: z.ZodObject<{
|
|
2718
|
+
message: z.ZodString;
|
|
2719
|
+
}, "strip", z.ZodTypeAny, {
|
|
2720
|
+
message: string;
|
|
2721
|
+
}, {
|
|
2722
|
+
message: string;
|
|
2723
|
+
}>;
|
|
2724
|
+
401: z.ZodObject<{
|
|
2725
|
+
message: z.ZodString;
|
|
2726
|
+
}, "strip", z.ZodTypeAny, {
|
|
2727
|
+
message: string;
|
|
2728
|
+
}, {
|
|
2729
|
+
message: string;
|
|
2730
|
+
}>;
|
|
2731
|
+
};
|
|
2732
|
+
};
|
|
2733
|
+
list: {
|
|
2734
|
+
metadata: {
|
|
2735
|
+
openApiTags: string[];
|
|
2736
|
+
openApiSecurity: {
|
|
2737
|
+
bearerAuth: never[];
|
|
2738
|
+
}[];
|
|
2739
|
+
};
|
|
2740
|
+
summary: "List user's organisations";
|
|
2741
|
+
method: "GET";
|
|
2742
|
+
path: "/v1/organisations";
|
|
2743
|
+
responses: {
|
|
2744
|
+
200: z.ZodArray<z.ZodObject<{
|
|
2745
|
+
id: z.ZodString;
|
|
2746
|
+
name: z.ZodString;
|
|
2747
|
+
description: z.ZodNullable<z.ZodString>;
|
|
2748
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
2749
|
+
didUri: z.ZodNullable<z.ZodString>;
|
|
2750
|
+
memberCount: z.ZodNumber;
|
|
2751
|
+
createdAt: z.ZodString;
|
|
2752
|
+
updatedAt: z.ZodString;
|
|
2753
|
+
} & {
|
|
2754
|
+
role: z.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
2755
|
+
}, "strip", z.ZodTypeAny, {
|
|
2756
|
+
description: string | null;
|
|
2757
|
+
id: string;
|
|
2758
|
+
name: string;
|
|
2759
|
+
createdAt: string;
|
|
2760
|
+
updatedAt: string;
|
|
2761
|
+
avatarUrl: string | null;
|
|
2762
|
+
didUri: string | null;
|
|
2763
|
+
memberCount: number;
|
|
2764
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
2765
|
+
}, {
|
|
2766
|
+
description: string | null;
|
|
2767
|
+
id: string;
|
|
2768
|
+
name: string;
|
|
2769
|
+
createdAt: string;
|
|
2770
|
+
updatedAt: string;
|
|
2771
|
+
avatarUrl: string | null;
|
|
2772
|
+
didUri: string | null;
|
|
2773
|
+
memberCount: number;
|
|
2774
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
2775
|
+
}>, "many">;
|
|
2776
|
+
401: z.ZodObject<{
|
|
2777
|
+
message: z.ZodString;
|
|
2778
|
+
}, "strip", z.ZodTypeAny, {
|
|
2779
|
+
message: string;
|
|
2780
|
+
}, {
|
|
2781
|
+
message: string;
|
|
2782
|
+
}>;
|
|
2783
|
+
};
|
|
2784
|
+
};
|
|
2785
|
+
getById: {
|
|
2786
|
+
metadata: {
|
|
2787
|
+
openApiTags: string[];
|
|
2788
|
+
openApiSecurity: {
|
|
2789
|
+
bearerAuth: never[];
|
|
2790
|
+
}[];
|
|
2791
|
+
};
|
|
2792
|
+
summary: "Get organisation details (members only)";
|
|
2793
|
+
method: "GET";
|
|
2794
|
+
path: "/v1/organisations/:orgId";
|
|
2795
|
+
responses: {
|
|
2796
|
+
200: z.ZodObject<{
|
|
2797
|
+
id: z.ZodString;
|
|
2798
|
+
name: z.ZodString;
|
|
2799
|
+
description: z.ZodNullable<z.ZodString>;
|
|
2800
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
2801
|
+
didUri: z.ZodNullable<z.ZodString>;
|
|
2802
|
+
memberCount: z.ZodNumber;
|
|
2803
|
+
createdAt: z.ZodString;
|
|
2804
|
+
updatedAt: z.ZodString;
|
|
2805
|
+
} & {
|
|
2806
|
+
role: z.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
2807
|
+
} & {
|
|
2808
|
+
members: z.ZodArray<z.ZodObject<{
|
|
2809
|
+
id: z.ZodString;
|
|
2810
|
+
userId: z.ZodString;
|
|
2811
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
2812
|
+
role: z.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
2813
|
+
joinedAt: z.ZodString;
|
|
2814
|
+
}, "strip", z.ZodTypeAny, {
|
|
2815
|
+
id: string;
|
|
2816
|
+
userId: string;
|
|
2817
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
2818
|
+
displayName: string | null;
|
|
2819
|
+
joinedAt: string;
|
|
2820
|
+
}, {
|
|
2821
|
+
id: string;
|
|
2822
|
+
userId: string;
|
|
2823
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
2824
|
+
displayName: string | null;
|
|
2825
|
+
joinedAt: string;
|
|
2826
|
+
}>, "many">;
|
|
2827
|
+
}, "strip", z.ZodTypeAny, {
|
|
2828
|
+
description: string | null;
|
|
2829
|
+
id: string;
|
|
2830
|
+
name: string;
|
|
2831
|
+
createdAt: string;
|
|
2832
|
+
updatedAt: string;
|
|
2833
|
+
avatarUrl: string | null;
|
|
2834
|
+
didUri: string | null;
|
|
2835
|
+
memberCount: number;
|
|
2836
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
2837
|
+
members: {
|
|
2838
|
+
id: string;
|
|
2839
|
+
userId: string;
|
|
2840
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
2841
|
+
displayName: string | null;
|
|
2842
|
+
joinedAt: string;
|
|
2843
|
+
}[];
|
|
2844
|
+
}, {
|
|
2845
|
+
description: string | null;
|
|
2846
|
+
id: string;
|
|
2847
|
+
name: string;
|
|
2848
|
+
createdAt: string;
|
|
2849
|
+
updatedAt: string;
|
|
2850
|
+
avatarUrl: string | null;
|
|
2851
|
+
didUri: string | null;
|
|
2852
|
+
memberCount: number;
|
|
2853
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
2854
|
+
members: {
|
|
2855
|
+
id: string;
|
|
2856
|
+
userId: string;
|
|
2857
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
2858
|
+
displayName: string | null;
|
|
2859
|
+
joinedAt: string;
|
|
2860
|
+
}[];
|
|
2861
|
+
}>;
|
|
2862
|
+
401: z.ZodObject<{
|
|
2863
|
+
message: z.ZodString;
|
|
2864
|
+
}, "strip", z.ZodTypeAny, {
|
|
2865
|
+
message: string;
|
|
2866
|
+
}, {
|
|
2867
|
+
message: string;
|
|
2868
|
+
}>;
|
|
2869
|
+
403: z.ZodObject<{
|
|
2870
|
+
message: z.ZodString;
|
|
2871
|
+
}, "strip", z.ZodTypeAny, {
|
|
2872
|
+
message: string;
|
|
2873
|
+
}, {
|
|
2874
|
+
message: string;
|
|
2875
|
+
}>;
|
|
2876
|
+
404: z.ZodObject<{
|
|
2877
|
+
message: z.ZodString;
|
|
2878
|
+
}, "strip", z.ZodTypeAny, {
|
|
2879
|
+
message: string;
|
|
2880
|
+
}, {
|
|
2881
|
+
message: string;
|
|
2882
|
+
}>;
|
|
2883
|
+
};
|
|
2884
|
+
};
|
|
2885
|
+
update: {
|
|
2886
|
+
metadata: {
|
|
2887
|
+
openApiTags: string[];
|
|
2888
|
+
openApiSecurity: {
|
|
2889
|
+
bearerAuth: never[];
|
|
2890
|
+
}[];
|
|
2891
|
+
};
|
|
2892
|
+
summary: "Update organisation details (owner/admin only)";
|
|
2893
|
+
method: "PATCH";
|
|
2894
|
+
body: z.ZodObject<{
|
|
2895
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2896
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2897
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2898
|
+
}, "strip", z.ZodTypeAny, {
|
|
2899
|
+
description?: string | null | undefined;
|
|
2900
|
+
name?: string | undefined;
|
|
2901
|
+
avatarUrl?: string | null | undefined;
|
|
2902
|
+
}, {
|
|
2903
|
+
description?: string | null | undefined;
|
|
2904
|
+
name?: string | undefined;
|
|
2905
|
+
avatarUrl?: string | null | undefined;
|
|
2906
|
+
}>;
|
|
2907
|
+
path: "/v1/organisations/:orgId";
|
|
2908
|
+
responses: {
|
|
2909
|
+
200: z.ZodObject<{
|
|
2910
|
+
id: z.ZodString;
|
|
2911
|
+
name: z.ZodString;
|
|
2912
|
+
description: z.ZodNullable<z.ZodString>;
|
|
2913
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
2914
|
+
didUri: z.ZodNullable<z.ZodString>;
|
|
2915
|
+
memberCount: z.ZodNumber;
|
|
2916
|
+
createdAt: z.ZodString;
|
|
2917
|
+
updatedAt: z.ZodString;
|
|
2918
|
+
}, "strip", z.ZodTypeAny, {
|
|
2919
|
+
description: string | null;
|
|
2920
|
+
id: string;
|
|
2921
|
+
name: string;
|
|
2922
|
+
createdAt: string;
|
|
2923
|
+
updatedAt: string;
|
|
2924
|
+
avatarUrl: string | null;
|
|
2925
|
+
didUri: string | null;
|
|
2926
|
+
memberCount: number;
|
|
2927
|
+
}, {
|
|
2928
|
+
description: string | null;
|
|
2929
|
+
id: string;
|
|
2930
|
+
name: string;
|
|
2931
|
+
createdAt: string;
|
|
2932
|
+
updatedAt: string;
|
|
2933
|
+
avatarUrl: string | null;
|
|
2934
|
+
didUri: string | null;
|
|
2935
|
+
memberCount: number;
|
|
2936
|
+
}>;
|
|
2937
|
+
400: z.ZodObject<{
|
|
2938
|
+
message: z.ZodString;
|
|
2939
|
+
}, "strip", z.ZodTypeAny, {
|
|
2940
|
+
message: string;
|
|
2941
|
+
}, {
|
|
2942
|
+
message: string;
|
|
2943
|
+
}>;
|
|
2944
|
+
401: z.ZodObject<{
|
|
2945
|
+
message: z.ZodString;
|
|
2946
|
+
}, "strip", z.ZodTypeAny, {
|
|
2947
|
+
message: string;
|
|
2948
|
+
}, {
|
|
2949
|
+
message: string;
|
|
2950
|
+
}>;
|
|
2951
|
+
403: z.ZodObject<{
|
|
2952
|
+
message: z.ZodString;
|
|
2953
|
+
}, "strip", z.ZodTypeAny, {
|
|
2954
|
+
message: string;
|
|
2955
|
+
}, {
|
|
2956
|
+
message: string;
|
|
2957
|
+
}>;
|
|
2958
|
+
404: z.ZodObject<{
|
|
2959
|
+
message: z.ZodString;
|
|
2960
|
+
}, "strip", z.ZodTypeAny, {
|
|
2961
|
+
message: string;
|
|
2962
|
+
}, {
|
|
2963
|
+
message: string;
|
|
2964
|
+
}>;
|
|
2965
|
+
};
|
|
2966
|
+
};
|
|
2967
|
+
delete: {
|
|
2968
|
+
metadata: {
|
|
2969
|
+
openApiTags: string[];
|
|
2970
|
+
openApiSecurity: {
|
|
2971
|
+
bearerAuth: never[];
|
|
2972
|
+
}[];
|
|
2973
|
+
};
|
|
2974
|
+
summary: "Delete organisation (owner only)";
|
|
2975
|
+
method: "DELETE";
|
|
2976
|
+
body: typeof _ts_rest_core.ContractNoBody;
|
|
2977
|
+
path: "/v1/organisations/:orgId";
|
|
2978
|
+
responses: {
|
|
2979
|
+
204: z.ZodUndefined;
|
|
2980
|
+
401: z.ZodObject<{
|
|
2981
|
+
message: z.ZodString;
|
|
2982
|
+
}, "strip", z.ZodTypeAny, {
|
|
2983
|
+
message: string;
|
|
2984
|
+
}, {
|
|
2985
|
+
message: string;
|
|
2986
|
+
}>;
|
|
2987
|
+
403: z.ZodObject<{
|
|
2988
|
+
message: z.ZodString;
|
|
2989
|
+
}, "strip", z.ZodTypeAny, {
|
|
2990
|
+
message: string;
|
|
2991
|
+
}, {
|
|
2992
|
+
message: string;
|
|
2993
|
+
}>;
|
|
2994
|
+
404: z.ZodObject<{
|
|
2995
|
+
message: z.ZodString;
|
|
2996
|
+
}, "strip", z.ZodTypeAny, {
|
|
2997
|
+
message: string;
|
|
2998
|
+
}, {
|
|
2999
|
+
message: string;
|
|
3000
|
+
}>;
|
|
3001
|
+
};
|
|
3002
|
+
};
|
|
3003
|
+
};
|
|
3004
|
+
members: {
|
|
3005
|
+
listMembers: {
|
|
3006
|
+
metadata: {
|
|
3007
|
+
openApiTags: string[];
|
|
3008
|
+
openApiSecurity: {
|
|
3009
|
+
bearerAuth: never[];
|
|
3010
|
+
}[];
|
|
3011
|
+
};
|
|
3012
|
+
summary: "List organisation members";
|
|
3013
|
+
method: "GET";
|
|
3014
|
+
path: "/v1/organisations/:orgId/members";
|
|
3015
|
+
responses: {
|
|
3016
|
+
200: z.ZodArray<z.ZodObject<{
|
|
3017
|
+
id: z.ZodString;
|
|
3018
|
+
userId: z.ZodString;
|
|
3019
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
3020
|
+
role: z.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
3021
|
+
joinedAt: z.ZodString;
|
|
3022
|
+
}, "strip", z.ZodTypeAny, {
|
|
3023
|
+
id: string;
|
|
3024
|
+
userId: string;
|
|
3025
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
3026
|
+
displayName: string | null;
|
|
3027
|
+
joinedAt: string;
|
|
3028
|
+
}, {
|
|
3029
|
+
id: string;
|
|
3030
|
+
userId: string;
|
|
3031
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
3032
|
+
displayName: string | null;
|
|
3033
|
+
joinedAt: string;
|
|
3034
|
+
}>, "many">;
|
|
3035
|
+
401: z.ZodObject<{
|
|
3036
|
+
message: z.ZodString;
|
|
3037
|
+
}, "strip", z.ZodTypeAny, {
|
|
3038
|
+
message: string;
|
|
3039
|
+
}, {
|
|
3040
|
+
message: string;
|
|
3041
|
+
}>;
|
|
3042
|
+
403: z.ZodObject<{
|
|
3043
|
+
message: z.ZodString;
|
|
3044
|
+
}, "strip", z.ZodTypeAny, {
|
|
3045
|
+
message: string;
|
|
3046
|
+
}, {
|
|
3047
|
+
message: string;
|
|
3048
|
+
}>;
|
|
3049
|
+
};
|
|
3050
|
+
};
|
|
3051
|
+
updateMemberRole: {
|
|
3052
|
+
metadata: {
|
|
3053
|
+
openApiTags: string[];
|
|
3054
|
+
openApiSecurity: {
|
|
3055
|
+
bearerAuth: never[];
|
|
3056
|
+
}[];
|
|
3057
|
+
};
|
|
3058
|
+
summary: "Update member role (owner/admin only)";
|
|
3059
|
+
method: "PATCH";
|
|
3060
|
+
body: z.ZodObject<{
|
|
3061
|
+
role: z.ZodEnum<["ADMIN", "ISSUER", "MEMBER"]>;
|
|
3062
|
+
}, "strip", z.ZodTypeAny, {
|
|
3063
|
+
role: "ADMIN" | "ISSUER" | "MEMBER";
|
|
3064
|
+
}, {
|
|
3065
|
+
role: "ADMIN" | "ISSUER" | "MEMBER";
|
|
3066
|
+
}>;
|
|
3067
|
+
path: "/v1/organisations/:orgId/members/:memberId";
|
|
3068
|
+
responses: {
|
|
3069
|
+
200: z.ZodObject<{
|
|
3070
|
+
id: z.ZodString;
|
|
3071
|
+
userId: z.ZodString;
|
|
3072
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
3073
|
+
role: z.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
3074
|
+
joinedAt: z.ZodString;
|
|
3075
|
+
}, "strip", z.ZodTypeAny, {
|
|
3076
|
+
id: string;
|
|
3077
|
+
userId: string;
|
|
3078
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
3079
|
+
displayName: string | null;
|
|
3080
|
+
joinedAt: string;
|
|
3081
|
+
}, {
|
|
3082
|
+
id: string;
|
|
3083
|
+
userId: string;
|
|
3084
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
3085
|
+
displayName: string | null;
|
|
3086
|
+
joinedAt: string;
|
|
3087
|
+
}>;
|
|
3088
|
+
400: z.ZodObject<{
|
|
3089
|
+
message: z.ZodString;
|
|
3090
|
+
}, "strip", z.ZodTypeAny, {
|
|
3091
|
+
message: string;
|
|
3092
|
+
}, {
|
|
3093
|
+
message: string;
|
|
3094
|
+
}>;
|
|
3095
|
+
401: z.ZodObject<{
|
|
3096
|
+
message: z.ZodString;
|
|
3097
|
+
}, "strip", z.ZodTypeAny, {
|
|
3098
|
+
message: string;
|
|
3099
|
+
}, {
|
|
3100
|
+
message: string;
|
|
3101
|
+
}>;
|
|
3102
|
+
403: z.ZodObject<{
|
|
3103
|
+
message: z.ZodString;
|
|
3104
|
+
}, "strip", z.ZodTypeAny, {
|
|
3105
|
+
message: string;
|
|
3106
|
+
}, {
|
|
3107
|
+
message: string;
|
|
3108
|
+
}>;
|
|
3109
|
+
404: z.ZodObject<{
|
|
3110
|
+
message: z.ZodString;
|
|
3111
|
+
}, "strip", z.ZodTypeAny, {
|
|
3112
|
+
message: string;
|
|
3113
|
+
}, {
|
|
3114
|
+
message: string;
|
|
3115
|
+
}>;
|
|
3116
|
+
};
|
|
3117
|
+
};
|
|
3118
|
+
removeMember: {
|
|
3119
|
+
metadata: {
|
|
3120
|
+
openApiTags: string[];
|
|
3121
|
+
openApiSecurity: {
|
|
3122
|
+
bearerAuth: never[];
|
|
3123
|
+
}[];
|
|
3124
|
+
};
|
|
3125
|
+
summary: "Remove member from organisation (owner/admin only)";
|
|
3126
|
+
method: "DELETE";
|
|
3127
|
+
body: typeof _ts_rest_core.ContractNoBody;
|
|
3128
|
+
path: "/v1/organisations/:orgId/members/:memberId";
|
|
3129
|
+
responses: {
|
|
3130
|
+
204: z.ZodUndefined;
|
|
3131
|
+
400: z.ZodObject<{
|
|
3132
|
+
message: z.ZodString;
|
|
3133
|
+
}, "strip", z.ZodTypeAny, {
|
|
3134
|
+
message: string;
|
|
3135
|
+
}, {
|
|
3136
|
+
message: string;
|
|
3137
|
+
}>;
|
|
3138
|
+
401: z.ZodObject<{
|
|
3139
|
+
message: z.ZodString;
|
|
3140
|
+
}, "strip", z.ZodTypeAny, {
|
|
3141
|
+
message: string;
|
|
3142
|
+
}, {
|
|
3143
|
+
message: string;
|
|
3144
|
+
}>;
|
|
3145
|
+
403: z.ZodObject<{
|
|
3146
|
+
message: z.ZodString;
|
|
3147
|
+
}, "strip", z.ZodTypeAny, {
|
|
3148
|
+
message: string;
|
|
3149
|
+
}, {
|
|
3150
|
+
message: string;
|
|
3151
|
+
}>;
|
|
3152
|
+
404: z.ZodObject<{
|
|
3153
|
+
message: z.ZodString;
|
|
3154
|
+
}, "strip", z.ZodTypeAny, {
|
|
3155
|
+
message: string;
|
|
3156
|
+
}, {
|
|
3157
|
+
message: string;
|
|
3158
|
+
}>;
|
|
3159
|
+
};
|
|
3160
|
+
};
|
|
3161
|
+
};
|
|
3162
|
+
invitations: {
|
|
3163
|
+
createInvitation: {
|
|
3164
|
+
metadata: {
|
|
3165
|
+
openApiTags: string[];
|
|
3166
|
+
openApiSecurity: {
|
|
3167
|
+
bearerAuth: never[];
|
|
3168
|
+
}[];
|
|
3169
|
+
};
|
|
3170
|
+
summary: "Create invitation (owner/admin only)";
|
|
3171
|
+
method: "POST";
|
|
3172
|
+
body: z.ZodObject<{
|
|
3173
|
+
expiresInDays: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
3174
|
+
}, "strip", z.ZodTypeAny, {
|
|
3175
|
+
expiresInDays?: number | undefined;
|
|
3176
|
+
}, {
|
|
3177
|
+
expiresInDays?: number | undefined;
|
|
3178
|
+
}>;
|
|
3179
|
+
path: "/v1/organisations/:orgId/invitations";
|
|
3180
|
+
responses: {
|
|
3181
|
+
201: z.ZodObject<{
|
|
3182
|
+
id: z.ZodString;
|
|
3183
|
+
orgId: z.ZodString;
|
|
3184
|
+
orgName: z.ZodString;
|
|
3185
|
+
token: z.ZodString;
|
|
3186
|
+
status: z.ZodEnum<["PENDING", "SUBMITTED", "ACCEPTED", "DECLINED", "EXPIRED"]>;
|
|
3187
|
+
inviteeDisplayName: z.ZodNullable<z.ZodString>;
|
|
3188
|
+
createdAt: z.ZodString;
|
|
3189
|
+
expiresAt: z.ZodString;
|
|
3190
|
+
}, "strip", z.ZodTypeAny, {
|
|
3191
|
+
status: "PENDING" | "SUBMITTED" | "ACCEPTED" | "DECLINED" | "EXPIRED";
|
|
3192
|
+
id: string;
|
|
3193
|
+
createdAt: string;
|
|
3194
|
+
expiresAt: string;
|
|
3195
|
+
orgId: string;
|
|
3196
|
+
orgName: string;
|
|
3197
|
+
token: string;
|
|
3198
|
+
inviteeDisplayName: string | null;
|
|
3199
|
+
}, {
|
|
3200
|
+
status: "PENDING" | "SUBMITTED" | "ACCEPTED" | "DECLINED" | "EXPIRED";
|
|
3201
|
+
id: string;
|
|
3202
|
+
createdAt: string;
|
|
3203
|
+
expiresAt: string;
|
|
3204
|
+
orgId: string;
|
|
3205
|
+
orgName: string;
|
|
3206
|
+
token: string;
|
|
3207
|
+
inviteeDisplayName: string | null;
|
|
3208
|
+
}>;
|
|
3209
|
+
401: z.ZodObject<{
|
|
3210
|
+
message: z.ZodString;
|
|
3211
|
+
}, "strip", z.ZodTypeAny, {
|
|
3212
|
+
message: string;
|
|
3213
|
+
}, {
|
|
3214
|
+
message: string;
|
|
3215
|
+
}>;
|
|
3216
|
+
403: z.ZodObject<{
|
|
3217
|
+
message: z.ZodString;
|
|
3218
|
+
}, "strip", z.ZodTypeAny, {
|
|
3219
|
+
message: string;
|
|
3220
|
+
}, {
|
|
3221
|
+
message: string;
|
|
3222
|
+
}>;
|
|
3223
|
+
};
|
|
3224
|
+
};
|
|
3225
|
+
listInvitations: {
|
|
3226
|
+
metadata: {
|
|
3227
|
+
openApiTags: string[];
|
|
3228
|
+
openApiSecurity: {
|
|
3229
|
+
bearerAuth: never[];
|
|
3230
|
+
}[];
|
|
3231
|
+
};
|
|
3232
|
+
summary: "List pending invitations (owner/admin only)";
|
|
3233
|
+
method: "GET";
|
|
3234
|
+
path: "/v1/organisations/:orgId/invitations";
|
|
3235
|
+
responses: {
|
|
3236
|
+
200: z.ZodArray<z.ZodObject<{
|
|
3237
|
+
id: z.ZodString;
|
|
3238
|
+
orgId: z.ZodString;
|
|
3239
|
+
orgName: z.ZodString;
|
|
3240
|
+
token: z.ZodString;
|
|
3241
|
+
status: z.ZodEnum<["PENDING", "SUBMITTED", "ACCEPTED", "DECLINED", "EXPIRED"]>;
|
|
3242
|
+
inviteeDisplayName: z.ZodNullable<z.ZodString>;
|
|
3243
|
+
createdAt: z.ZodString;
|
|
3244
|
+
expiresAt: z.ZodString;
|
|
3245
|
+
}, "strip", z.ZodTypeAny, {
|
|
3246
|
+
status: "PENDING" | "SUBMITTED" | "ACCEPTED" | "DECLINED" | "EXPIRED";
|
|
3247
|
+
id: string;
|
|
3248
|
+
createdAt: string;
|
|
3249
|
+
expiresAt: string;
|
|
3250
|
+
orgId: string;
|
|
3251
|
+
orgName: string;
|
|
3252
|
+
token: string;
|
|
3253
|
+
inviteeDisplayName: string | null;
|
|
3254
|
+
}, {
|
|
3255
|
+
status: "PENDING" | "SUBMITTED" | "ACCEPTED" | "DECLINED" | "EXPIRED";
|
|
3256
|
+
id: string;
|
|
3257
|
+
createdAt: string;
|
|
3258
|
+
expiresAt: string;
|
|
3259
|
+
orgId: string;
|
|
3260
|
+
orgName: string;
|
|
3261
|
+
token: string;
|
|
3262
|
+
inviteeDisplayName: string | null;
|
|
3263
|
+
}>, "many">;
|
|
3264
|
+
401: z.ZodObject<{
|
|
3265
|
+
message: z.ZodString;
|
|
3266
|
+
}, "strip", z.ZodTypeAny, {
|
|
3267
|
+
message: string;
|
|
3268
|
+
}, {
|
|
3269
|
+
message: string;
|
|
3270
|
+
}>;
|
|
3271
|
+
403: z.ZodObject<{
|
|
3272
|
+
message: z.ZodString;
|
|
3273
|
+
}, "strip", z.ZodTypeAny, {
|
|
3274
|
+
message: string;
|
|
3275
|
+
}, {
|
|
3276
|
+
message: string;
|
|
3277
|
+
}>;
|
|
3278
|
+
};
|
|
3279
|
+
};
|
|
3280
|
+
joinVpRequest: {
|
|
3281
|
+
metadata: {
|
|
3282
|
+
openApiTags: string[];
|
|
3283
|
+
openApiSecurity: {
|
|
3284
|
+
bearerAuth: never[];
|
|
3285
|
+
}[];
|
|
3286
|
+
};
|
|
3287
|
+
summary: "Get VP request for joining via invitation";
|
|
3288
|
+
method: "POST";
|
|
3289
|
+
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
3290
|
+
path: "/v1/organisations/invitations/:token/vp-request";
|
|
3291
|
+
responses: {
|
|
3292
|
+
200: z.ZodObject<{
|
|
3293
|
+
vpRequest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3294
|
+
expiresAt: z.ZodString;
|
|
3295
|
+
}, "strip", z.ZodTypeAny, {
|
|
3296
|
+
vpRequest: Record<string, unknown>;
|
|
3297
|
+
expiresAt: string;
|
|
3298
|
+
}, {
|
|
3299
|
+
vpRequest: Record<string, unknown>;
|
|
3300
|
+
expiresAt: string;
|
|
3301
|
+
}>;
|
|
3302
|
+
401: z.ZodObject<{
|
|
3303
|
+
message: z.ZodString;
|
|
3304
|
+
}, "strip", z.ZodTypeAny, {
|
|
3305
|
+
message: string;
|
|
3306
|
+
}, {
|
|
3307
|
+
message: string;
|
|
3308
|
+
}>;
|
|
3309
|
+
404: z.ZodObject<{
|
|
3310
|
+
message: z.ZodString;
|
|
3311
|
+
}, "strip", z.ZodTypeAny, {
|
|
3312
|
+
message: string;
|
|
3313
|
+
}, {
|
|
3314
|
+
message: string;
|
|
3315
|
+
}>;
|
|
3316
|
+
410: z.ZodObject<{
|
|
3317
|
+
message: z.ZodString;
|
|
3318
|
+
}, "strip", z.ZodTypeAny, {
|
|
3319
|
+
message: string;
|
|
3320
|
+
}, {
|
|
3321
|
+
message: string;
|
|
3322
|
+
}>;
|
|
3323
|
+
};
|
|
3324
|
+
};
|
|
3325
|
+
joinInvitation: {
|
|
3326
|
+
metadata: {
|
|
3327
|
+
openApiTags: string[];
|
|
3328
|
+
openApiSecurity: {
|
|
3329
|
+
bearerAuth: never[];
|
|
3330
|
+
}[];
|
|
3331
|
+
};
|
|
3332
|
+
summary: "Invitee submits CCCD VP to join";
|
|
3333
|
+
method: "POST";
|
|
3334
|
+
body: z.ZodObject<{
|
|
3335
|
+
verifiablePresentation: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3336
|
+
}, "strip", z.ZodTypeAny, {
|
|
3337
|
+
verifiablePresentation: Record<string, unknown>;
|
|
3338
|
+
}, {
|
|
3339
|
+
verifiablePresentation: Record<string, unknown>;
|
|
3340
|
+
}>;
|
|
3341
|
+
path: "/v1/organisations/invitations/:token/join";
|
|
3342
|
+
responses: {
|
|
3343
|
+
200: z.ZodObject<{
|
|
3344
|
+
message: z.ZodString;
|
|
3345
|
+
}, "strip", z.ZodTypeAny, {
|
|
3346
|
+
message: string;
|
|
3347
|
+
}, {
|
|
3348
|
+
message: string;
|
|
3349
|
+
}>;
|
|
3350
|
+
400: z.ZodObject<{
|
|
3351
|
+
message: z.ZodString;
|
|
3352
|
+
}, "strip", z.ZodTypeAny, {
|
|
3353
|
+
message: string;
|
|
3354
|
+
}, {
|
|
3355
|
+
message: string;
|
|
3356
|
+
}>;
|
|
3357
|
+
401: z.ZodObject<{
|
|
3358
|
+
message: z.ZodString;
|
|
3359
|
+
}, "strip", z.ZodTypeAny, {
|
|
3360
|
+
message: string;
|
|
3361
|
+
}, {
|
|
3362
|
+
message: string;
|
|
3363
|
+
}>;
|
|
3364
|
+
410: z.ZodObject<{
|
|
3365
|
+
message: z.ZodString;
|
|
3366
|
+
}, "strip", z.ZodTypeAny, {
|
|
3367
|
+
message: string;
|
|
3368
|
+
}, {
|
|
3369
|
+
message: string;
|
|
3370
|
+
}>;
|
|
3371
|
+
};
|
|
3372
|
+
};
|
|
3373
|
+
acceptInvitation: {
|
|
3374
|
+
metadata: {
|
|
3375
|
+
openApiTags: string[];
|
|
3376
|
+
openApiSecurity: {
|
|
3377
|
+
bearerAuth: never[];
|
|
3378
|
+
}[];
|
|
3379
|
+
};
|
|
3380
|
+
summary: "Accept invitation (owner/admin only)";
|
|
3381
|
+
method: "POST";
|
|
3382
|
+
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
3383
|
+
path: "/v1/organisations/:orgId/invitations/:invitationId/accept";
|
|
3384
|
+
responses: {
|
|
3385
|
+
200: z.ZodObject<{
|
|
3386
|
+
message: z.ZodString;
|
|
3387
|
+
memberId: z.ZodString;
|
|
3388
|
+
}, "strip", z.ZodTypeAny, {
|
|
3389
|
+
message: string;
|
|
3390
|
+
memberId: string;
|
|
3391
|
+
}, {
|
|
3392
|
+
message: string;
|
|
3393
|
+
memberId: string;
|
|
3394
|
+
}>;
|
|
3395
|
+
401: z.ZodObject<{
|
|
3396
|
+
message: z.ZodString;
|
|
3397
|
+
}, "strip", z.ZodTypeAny, {
|
|
3398
|
+
message: string;
|
|
3399
|
+
}, {
|
|
3400
|
+
message: string;
|
|
3401
|
+
}>;
|
|
3402
|
+
403: z.ZodObject<{
|
|
3403
|
+
message: z.ZodString;
|
|
3404
|
+
}, "strip", z.ZodTypeAny, {
|
|
3405
|
+
message: string;
|
|
3406
|
+
}, {
|
|
3407
|
+
message: string;
|
|
3408
|
+
}>;
|
|
3409
|
+
409: z.ZodObject<{
|
|
3410
|
+
message: z.ZodString;
|
|
3411
|
+
}, "strip", z.ZodTypeAny, {
|
|
3412
|
+
message: string;
|
|
3413
|
+
}, {
|
|
3414
|
+
message: string;
|
|
3415
|
+
}>;
|
|
3416
|
+
};
|
|
3417
|
+
};
|
|
3418
|
+
declineInvitation: {
|
|
3419
|
+
metadata: {
|
|
3420
|
+
openApiTags: string[];
|
|
3421
|
+
openApiSecurity: {
|
|
3422
|
+
bearerAuth: never[];
|
|
3423
|
+
}[];
|
|
3424
|
+
};
|
|
3425
|
+
summary: "Decline invitation (owner/admin only)";
|
|
3426
|
+
method: "POST";
|
|
3427
|
+
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
3428
|
+
path: "/v1/organisations/:orgId/invitations/:invitationId/decline";
|
|
3429
|
+
responses: {
|
|
3430
|
+
200: z.ZodObject<{
|
|
3431
|
+
message: z.ZodString;
|
|
3432
|
+
}, "strip", z.ZodTypeAny, {
|
|
3433
|
+
message: string;
|
|
3434
|
+
}, {
|
|
3435
|
+
message: string;
|
|
3436
|
+
}>;
|
|
3437
|
+
401: z.ZodObject<{
|
|
3438
|
+
message: z.ZodString;
|
|
3439
|
+
}, "strip", z.ZodTypeAny, {
|
|
3440
|
+
message: string;
|
|
3441
|
+
}, {
|
|
3442
|
+
message: string;
|
|
3443
|
+
}>;
|
|
3444
|
+
403: z.ZodObject<{
|
|
3445
|
+
message: z.ZodString;
|
|
3446
|
+
}, "strip", z.ZodTypeAny, {
|
|
3447
|
+
message: string;
|
|
3448
|
+
}, {
|
|
3449
|
+
message: string;
|
|
3450
|
+
}>;
|
|
3451
|
+
409: z.ZodObject<{
|
|
3452
|
+
message: z.ZodString;
|
|
3453
|
+
}, "strip", z.ZodTypeAny, {
|
|
3454
|
+
message: string;
|
|
3455
|
+
}, {
|
|
3456
|
+
message: string;
|
|
3457
|
+
}>;
|
|
3458
|
+
};
|
|
3459
|
+
};
|
|
3460
|
+
};
|
|
3461
|
+
credentials: {
|
|
3462
|
+
issueVC: {
|
|
3463
|
+
metadata: {
|
|
3464
|
+
openApiTags: string[];
|
|
3465
|
+
openApiSecurity: {
|
|
3466
|
+
bearerAuth: never[];
|
|
3467
|
+
}[];
|
|
3468
|
+
};
|
|
3469
|
+
summary: "Issue VC on behalf of organisation (owner/admin/issuer)";
|
|
3470
|
+
method: "POST";
|
|
3471
|
+
body: z.ZodObject<{
|
|
3472
|
+
holderDid: z.ZodString;
|
|
3473
|
+
credentialSubject: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3474
|
+
type: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3475
|
+
}, "strip", z.ZodTypeAny, {
|
|
3476
|
+
holderDid: string;
|
|
3477
|
+
credentialSubject: Record<string, unknown>;
|
|
3478
|
+
type?: string[] | undefined;
|
|
3479
|
+
}, {
|
|
3480
|
+
holderDid: string;
|
|
3481
|
+
credentialSubject: Record<string, unknown>;
|
|
3482
|
+
type?: string[] | undefined;
|
|
3483
|
+
}>;
|
|
3484
|
+
path: "/v1/organisations/:orgId/credentials/issue";
|
|
3485
|
+
responses: {
|
|
3486
|
+
201: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3487
|
+
400: z.ZodObject<{
|
|
3488
|
+
message: z.ZodString;
|
|
3489
|
+
}, "strip", z.ZodTypeAny, {
|
|
3490
|
+
message: string;
|
|
3491
|
+
}, {
|
|
3492
|
+
message: string;
|
|
3493
|
+
}>;
|
|
3494
|
+
401: z.ZodObject<{
|
|
3495
|
+
message: z.ZodString;
|
|
3496
|
+
}, "strip", z.ZodTypeAny, {
|
|
3497
|
+
message: string;
|
|
3498
|
+
}, {
|
|
3499
|
+
message: string;
|
|
3500
|
+
}>;
|
|
3501
|
+
403: z.ZodObject<{
|
|
3502
|
+
message: z.ZodString;
|
|
3503
|
+
}, "strip", z.ZodTypeAny, {
|
|
3504
|
+
message: string;
|
|
3505
|
+
}, {
|
|
3506
|
+
message: string;
|
|
3507
|
+
}>;
|
|
3508
|
+
};
|
|
3509
|
+
};
|
|
3510
|
+
listIssuedCredentials: {
|
|
3511
|
+
metadata: {
|
|
3512
|
+
openApiTags: string[];
|
|
3513
|
+
openApiSecurity: {
|
|
3514
|
+
bearerAuth: never[];
|
|
3515
|
+
}[];
|
|
3516
|
+
};
|
|
3517
|
+
summary: "List issued credentials (owner/admin only)";
|
|
3518
|
+
method: "GET";
|
|
3519
|
+
path: "/v1/organisations/:orgId/credentials";
|
|
3520
|
+
responses: {
|
|
3521
|
+
200: z.ZodArray<z.ZodObject<{
|
|
3522
|
+
id: z.ZodString;
|
|
3523
|
+
holderDid: z.ZodString;
|
|
3524
|
+
issuingMemberId: z.ZodString;
|
|
3525
|
+
credentialJson: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3526
|
+
issuedAt: z.ZodString;
|
|
3527
|
+
}, "strip", z.ZodTypeAny, {
|
|
3528
|
+
id: string;
|
|
3529
|
+
holderDid: string;
|
|
3530
|
+
issuingMemberId: string;
|
|
3531
|
+
credentialJson: Record<string, unknown>;
|
|
3532
|
+
issuedAt: string;
|
|
3533
|
+
}, {
|
|
3534
|
+
id: string;
|
|
3535
|
+
holderDid: string;
|
|
3536
|
+
issuingMemberId: string;
|
|
3537
|
+
credentialJson: Record<string, unknown>;
|
|
3538
|
+
issuedAt: string;
|
|
3539
|
+
}>, "many">;
|
|
3540
|
+
401: z.ZodObject<{
|
|
3541
|
+
message: z.ZodString;
|
|
3542
|
+
}, "strip", z.ZodTypeAny, {
|
|
3543
|
+
message: string;
|
|
3544
|
+
}, {
|
|
3545
|
+
message: string;
|
|
3546
|
+
}>;
|
|
3547
|
+
403: z.ZodObject<{
|
|
3548
|
+
message: z.ZodString;
|
|
3549
|
+
}, "strip", z.ZodTypeAny, {
|
|
3550
|
+
message: string;
|
|
3551
|
+
}, {
|
|
3552
|
+
message: string;
|
|
3553
|
+
}>;
|
|
3554
|
+
};
|
|
3555
|
+
};
|
|
3556
|
+
};
|
|
1460
3557
|
};
|
|
1461
3558
|
|
|
1462
3559
|
declare const contract: {
|
|
@@ -2317,133 +4414,1072 @@ declare const contract: {
|
|
|
2317
4414
|
bearerAuth: never[];
|
|
2318
4415
|
}[];
|
|
2319
4416
|
};
|
|
2320
|
-
summary: "Generate pre-signed URLs for event image upload";
|
|
2321
|
-
method: "POST";
|
|
2322
|
-
body: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
|
|
2323
|
-
path: "/v1/uploads/urls";
|
|
2324
|
-
responses: {
|
|
2325
|
-
201: zod.ZodObject<{
|
|
2326
|
-
fileId: zod.ZodString;
|
|
2327
|
-
original: zod.ZodObject<{
|
|
2328
|
-
uploadUrl: zod.ZodString;
|
|
2329
|
-
key: zod.ZodString;
|
|
2330
|
-
publicUrl: zod.ZodString;
|
|
4417
|
+
summary: "Generate pre-signed URLs for event image upload";
|
|
4418
|
+
method: "POST";
|
|
4419
|
+
body: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
|
|
4420
|
+
path: "/v1/uploads/urls";
|
|
4421
|
+
responses: {
|
|
4422
|
+
201: zod.ZodObject<{
|
|
4423
|
+
fileId: zod.ZodString;
|
|
4424
|
+
original: zod.ZodObject<{
|
|
4425
|
+
uploadUrl: zod.ZodString;
|
|
4426
|
+
key: zod.ZodString;
|
|
4427
|
+
publicUrl: zod.ZodString;
|
|
4428
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4429
|
+
uploadUrl: string;
|
|
4430
|
+
key: string;
|
|
4431
|
+
publicUrl: string;
|
|
4432
|
+
}, {
|
|
4433
|
+
uploadUrl: string;
|
|
4434
|
+
key: string;
|
|
4435
|
+
publicUrl: string;
|
|
4436
|
+
}>;
|
|
4437
|
+
resize: zod.ZodObject<{
|
|
4438
|
+
uploadUrl: zod.ZodString;
|
|
4439
|
+
key: zod.ZodString;
|
|
4440
|
+
publicUrl: zod.ZodString;
|
|
4441
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4442
|
+
uploadUrl: string;
|
|
4443
|
+
key: string;
|
|
4444
|
+
publicUrl: string;
|
|
4445
|
+
}, {
|
|
4446
|
+
uploadUrl: string;
|
|
4447
|
+
key: string;
|
|
4448
|
+
publicUrl: string;
|
|
4449
|
+
}>;
|
|
4450
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4451
|
+
fileId: string;
|
|
4452
|
+
original: {
|
|
4453
|
+
uploadUrl: string;
|
|
4454
|
+
key: string;
|
|
4455
|
+
publicUrl: string;
|
|
4456
|
+
};
|
|
4457
|
+
resize: {
|
|
4458
|
+
uploadUrl: string;
|
|
4459
|
+
key: string;
|
|
4460
|
+
publicUrl: string;
|
|
4461
|
+
};
|
|
4462
|
+
}, {
|
|
4463
|
+
fileId: string;
|
|
4464
|
+
original: {
|
|
4465
|
+
uploadUrl: string;
|
|
4466
|
+
key: string;
|
|
4467
|
+
publicUrl: string;
|
|
4468
|
+
};
|
|
4469
|
+
resize: {
|
|
4470
|
+
uploadUrl: string;
|
|
4471
|
+
key: string;
|
|
4472
|
+
publicUrl: string;
|
|
4473
|
+
};
|
|
4474
|
+
}>;
|
|
4475
|
+
};
|
|
4476
|
+
};
|
|
4477
|
+
};
|
|
4478
|
+
tracking: {
|
|
4479
|
+
scan: {
|
|
4480
|
+
metadata: {
|
|
4481
|
+
openApiTags: string[];
|
|
4482
|
+
openApiSecurity: {
|
|
4483
|
+
bearerAuth: never[];
|
|
4484
|
+
}[];
|
|
4485
|
+
};
|
|
4486
|
+
summary: "Record a successful NFC scan event";
|
|
4487
|
+
method: "POST";
|
|
4488
|
+
body: zod.ZodObject<{
|
|
4489
|
+
platform: zod.ZodString;
|
|
4490
|
+
appVersion: zod.ZodOptional<zod.ZodString>;
|
|
4491
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4492
|
+
platform: string;
|
|
4493
|
+
appVersion?: string | undefined;
|
|
4494
|
+
}, {
|
|
4495
|
+
platform: string;
|
|
4496
|
+
appVersion?: string | undefined;
|
|
4497
|
+
}>;
|
|
4498
|
+
path: "/v1/tracking/scan";
|
|
4499
|
+
responses: {
|
|
4500
|
+
201: zod.ZodObject<{
|
|
4501
|
+
id: zod.ZodString;
|
|
4502
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4503
|
+
id: string;
|
|
4504
|
+
}, {
|
|
4505
|
+
id: string;
|
|
4506
|
+
}>;
|
|
4507
|
+
401: zod.ZodObject<{
|
|
4508
|
+
message: zod.ZodString;
|
|
4509
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4510
|
+
message: string;
|
|
4511
|
+
}, {
|
|
4512
|
+
message: string;
|
|
4513
|
+
}>;
|
|
4514
|
+
};
|
|
4515
|
+
};
|
|
4516
|
+
};
|
|
4517
|
+
config: {
|
|
4518
|
+
appConfig: {
|
|
4519
|
+
metadata: {
|
|
4520
|
+
openApiTags: string[];
|
|
4521
|
+
openApiSecurity: never[];
|
|
4522
|
+
};
|
|
4523
|
+
summary: "Get app configuration (public)";
|
|
4524
|
+
method: "GET";
|
|
4525
|
+
path: "/v1/config/app";
|
|
4526
|
+
responses: {
|
|
4527
|
+
200: zod.ZodObject<{
|
|
4528
|
+
demoMode: zod.ZodObject<{
|
|
4529
|
+
enabled: zod.ZodBoolean;
|
|
4530
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4531
|
+
enabled: boolean;
|
|
4532
|
+
}, {
|
|
4533
|
+
enabled: boolean;
|
|
4534
|
+
}>;
|
|
4535
|
+
publicEvents: zod.ZodObject<{
|
|
4536
|
+
enabled: zod.ZodBoolean;
|
|
4537
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4538
|
+
enabled: boolean;
|
|
4539
|
+
}, {
|
|
4540
|
+
enabled: boolean;
|
|
4541
|
+
}>;
|
|
4542
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4543
|
+
demoMode: {
|
|
4544
|
+
enabled: boolean;
|
|
4545
|
+
};
|
|
4546
|
+
publicEvents: {
|
|
4547
|
+
enabled: boolean;
|
|
4548
|
+
};
|
|
4549
|
+
}, {
|
|
4550
|
+
demoMode: {
|
|
4551
|
+
enabled: boolean;
|
|
4552
|
+
};
|
|
4553
|
+
publicEvents: {
|
|
4554
|
+
enabled: boolean;
|
|
4555
|
+
};
|
|
4556
|
+
}>;
|
|
4557
|
+
};
|
|
4558
|
+
};
|
|
4559
|
+
};
|
|
4560
|
+
organisations: {
|
|
4561
|
+
crud: {
|
|
4562
|
+
createVpRequest: {
|
|
4563
|
+
metadata: {
|
|
4564
|
+
openApiTags: string[];
|
|
4565
|
+
openApiSecurity: {
|
|
4566
|
+
bearerAuth: never[];
|
|
4567
|
+
}[];
|
|
4568
|
+
};
|
|
4569
|
+
summary: "Get VP request for creating an organisation";
|
|
4570
|
+
method: "POST";
|
|
4571
|
+
body: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
|
|
4572
|
+
path: "/v1/organisations/vp-request";
|
|
4573
|
+
responses: {
|
|
4574
|
+
200: zod.ZodObject<{
|
|
4575
|
+
vpRequest: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
4576
|
+
expiresAt: zod.ZodString;
|
|
4577
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4578
|
+
vpRequest: Record<string, unknown>;
|
|
4579
|
+
expiresAt: string;
|
|
4580
|
+
}, {
|
|
4581
|
+
vpRequest: Record<string, unknown>;
|
|
4582
|
+
expiresAt: string;
|
|
4583
|
+
}>;
|
|
4584
|
+
401: zod.ZodObject<{
|
|
4585
|
+
message: zod.ZodString;
|
|
4586
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4587
|
+
message: string;
|
|
4588
|
+
}, {
|
|
4589
|
+
message: string;
|
|
4590
|
+
}>;
|
|
4591
|
+
};
|
|
4592
|
+
};
|
|
4593
|
+
create: {
|
|
4594
|
+
metadata: {
|
|
4595
|
+
openApiTags: string[];
|
|
4596
|
+
openApiSecurity: {
|
|
4597
|
+
bearerAuth: never[];
|
|
4598
|
+
}[];
|
|
4599
|
+
};
|
|
4600
|
+
summary: "Create a new organisation (requires CCCD VP)";
|
|
4601
|
+
method: "POST";
|
|
4602
|
+
body: zod.ZodObject<{
|
|
4603
|
+
name: zod.ZodString;
|
|
4604
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
4605
|
+
verifiablePresentation: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
4606
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4607
|
+
name: string;
|
|
4608
|
+
verifiablePresentation: Record<string, unknown>;
|
|
4609
|
+
description?: string | undefined;
|
|
4610
|
+
}, {
|
|
4611
|
+
name: string;
|
|
4612
|
+
verifiablePresentation: Record<string, unknown>;
|
|
4613
|
+
description?: string | undefined;
|
|
4614
|
+
}>;
|
|
4615
|
+
path: "/v1/organisations";
|
|
4616
|
+
responses: {
|
|
4617
|
+
201: zod.ZodObject<{
|
|
4618
|
+
id: zod.ZodString;
|
|
4619
|
+
name: zod.ZodString;
|
|
4620
|
+
description: zod.ZodNullable<zod.ZodString>;
|
|
4621
|
+
avatarUrl: zod.ZodNullable<zod.ZodString>;
|
|
4622
|
+
didUri: zod.ZodNullable<zod.ZodString>;
|
|
4623
|
+
memberCount: zod.ZodNumber;
|
|
4624
|
+
createdAt: zod.ZodString;
|
|
4625
|
+
updatedAt: zod.ZodString;
|
|
4626
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4627
|
+
description: string | null;
|
|
4628
|
+
id: string;
|
|
4629
|
+
name: string;
|
|
4630
|
+
createdAt: string;
|
|
4631
|
+
updatedAt: string;
|
|
4632
|
+
avatarUrl: string | null;
|
|
4633
|
+
didUri: string | null;
|
|
4634
|
+
memberCount: number;
|
|
4635
|
+
}, {
|
|
4636
|
+
description: string | null;
|
|
4637
|
+
id: string;
|
|
4638
|
+
name: string;
|
|
4639
|
+
createdAt: string;
|
|
4640
|
+
updatedAt: string;
|
|
4641
|
+
avatarUrl: string | null;
|
|
4642
|
+
didUri: string | null;
|
|
4643
|
+
memberCount: number;
|
|
4644
|
+
}>;
|
|
4645
|
+
400: zod.ZodObject<{
|
|
4646
|
+
message: zod.ZodString;
|
|
4647
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4648
|
+
message: string;
|
|
4649
|
+
}, {
|
|
4650
|
+
message: string;
|
|
4651
|
+
}>;
|
|
4652
|
+
401: zod.ZodObject<{
|
|
4653
|
+
message: zod.ZodString;
|
|
4654
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4655
|
+
message: string;
|
|
4656
|
+
}, {
|
|
4657
|
+
message: string;
|
|
4658
|
+
}>;
|
|
4659
|
+
};
|
|
4660
|
+
};
|
|
4661
|
+
list: {
|
|
4662
|
+
metadata: {
|
|
4663
|
+
openApiTags: string[];
|
|
4664
|
+
openApiSecurity: {
|
|
4665
|
+
bearerAuth: never[];
|
|
4666
|
+
}[];
|
|
4667
|
+
};
|
|
4668
|
+
summary: "List user's organisations";
|
|
4669
|
+
method: "GET";
|
|
4670
|
+
path: "/v1/organisations";
|
|
4671
|
+
responses: {
|
|
4672
|
+
200: zod.ZodArray<zod.ZodObject<{
|
|
4673
|
+
id: zod.ZodString;
|
|
4674
|
+
name: zod.ZodString;
|
|
4675
|
+
description: zod.ZodNullable<zod.ZodString>;
|
|
4676
|
+
avatarUrl: zod.ZodNullable<zod.ZodString>;
|
|
4677
|
+
didUri: zod.ZodNullable<zod.ZodString>;
|
|
4678
|
+
memberCount: zod.ZodNumber;
|
|
4679
|
+
createdAt: zod.ZodString;
|
|
4680
|
+
updatedAt: zod.ZodString;
|
|
4681
|
+
} & {
|
|
4682
|
+
role: zod.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
4683
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4684
|
+
description: string | null;
|
|
4685
|
+
id: string;
|
|
4686
|
+
name: string;
|
|
4687
|
+
createdAt: string;
|
|
4688
|
+
updatedAt: string;
|
|
4689
|
+
avatarUrl: string | null;
|
|
4690
|
+
didUri: string | null;
|
|
4691
|
+
memberCount: number;
|
|
4692
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
4693
|
+
}, {
|
|
4694
|
+
description: string | null;
|
|
4695
|
+
id: string;
|
|
4696
|
+
name: string;
|
|
4697
|
+
createdAt: string;
|
|
4698
|
+
updatedAt: string;
|
|
4699
|
+
avatarUrl: string | null;
|
|
4700
|
+
didUri: string | null;
|
|
4701
|
+
memberCount: number;
|
|
4702
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
4703
|
+
}>, "many">;
|
|
4704
|
+
401: zod.ZodObject<{
|
|
4705
|
+
message: zod.ZodString;
|
|
4706
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4707
|
+
message: string;
|
|
4708
|
+
}, {
|
|
4709
|
+
message: string;
|
|
4710
|
+
}>;
|
|
4711
|
+
};
|
|
4712
|
+
};
|
|
4713
|
+
getById: {
|
|
4714
|
+
metadata: {
|
|
4715
|
+
openApiTags: string[];
|
|
4716
|
+
openApiSecurity: {
|
|
4717
|
+
bearerAuth: never[];
|
|
4718
|
+
}[];
|
|
4719
|
+
};
|
|
4720
|
+
summary: "Get organisation details (members only)";
|
|
4721
|
+
method: "GET";
|
|
4722
|
+
path: "/v1/organisations/:orgId";
|
|
4723
|
+
responses: {
|
|
4724
|
+
200: zod.ZodObject<{
|
|
4725
|
+
id: zod.ZodString;
|
|
4726
|
+
name: zod.ZodString;
|
|
4727
|
+
description: zod.ZodNullable<zod.ZodString>;
|
|
4728
|
+
avatarUrl: zod.ZodNullable<zod.ZodString>;
|
|
4729
|
+
didUri: zod.ZodNullable<zod.ZodString>;
|
|
4730
|
+
memberCount: zod.ZodNumber;
|
|
4731
|
+
createdAt: zod.ZodString;
|
|
4732
|
+
updatedAt: zod.ZodString;
|
|
4733
|
+
} & {
|
|
4734
|
+
role: zod.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
4735
|
+
} & {
|
|
4736
|
+
members: zod.ZodArray<zod.ZodObject<{
|
|
4737
|
+
id: zod.ZodString;
|
|
4738
|
+
userId: zod.ZodString;
|
|
4739
|
+
displayName: zod.ZodNullable<zod.ZodString>;
|
|
4740
|
+
role: zod.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
4741
|
+
joinedAt: zod.ZodString;
|
|
4742
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4743
|
+
id: string;
|
|
4744
|
+
userId: string;
|
|
4745
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
4746
|
+
displayName: string | null;
|
|
4747
|
+
joinedAt: string;
|
|
4748
|
+
}, {
|
|
4749
|
+
id: string;
|
|
4750
|
+
userId: string;
|
|
4751
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
4752
|
+
displayName: string | null;
|
|
4753
|
+
joinedAt: string;
|
|
4754
|
+
}>, "many">;
|
|
4755
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4756
|
+
description: string | null;
|
|
4757
|
+
id: string;
|
|
4758
|
+
name: string;
|
|
4759
|
+
createdAt: string;
|
|
4760
|
+
updatedAt: string;
|
|
4761
|
+
avatarUrl: string | null;
|
|
4762
|
+
didUri: string | null;
|
|
4763
|
+
memberCount: number;
|
|
4764
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
4765
|
+
members: {
|
|
4766
|
+
id: string;
|
|
4767
|
+
userId: string;
|
|
4768
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
4769
|
+
displayName: string | null;
|
|
4770
|
+
joinedAt: string;
|
|
4771
|
+
}[];
|
|
4772
|
+
}, {
|
|
4773
|
+
description: string | null;
|
|
4774
|
+
id: string;
|
|
4775
|
+
name: string;
|
|
4776
|
+
createdAt: string;
|
|
4777
|
+
updatedAt: string;
|
|
4778
|
+
avatarUrl: string | null;
|
|
4779
|
+
didUri: string | null;
|
|
4780
|
+
memberCount: number;
|
|
4781
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
4782
|
+
members: {
|
|
4783
|
+
id: string;
|
|
4784
|
+
userId: string;
|
|
4785
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
4786
|
+
displayName: string | null;
|
|
4787
|
+
joinedAt: string;
|
|
4788
|
+
}[];
|
|
4789
|
+
}>;
|
|
4790
|
+
401: zod.ZodObject<{
|
|
4791
|
+
message: zod.ZodString;
|
|
4792
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4793
|
+
message: string;
|
|
4794
|
+
}, {
|
|
4795
|
+
message: string;
|
|
4796
|
+
}>;
|
|
4797
|
+
403: zod.ZodObject<{
|
|
4798
|
+
message: zod.ZodString;
|
|
4799
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4800
|
+
message: string;
|
|
4801
|
+
}, {
|
|
4802
|
+
message: string;
|
|
4803
|
+
}>;
|
|
4804
|
+
404: zod.ZodObject<{
|
|
4805
|
+
message: zod.ZodString;
|
|
4806
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4807
|
+
message: string;
|
|
4808
|
+
}, {
|
|
4809
|
+
message: string;
|
|
4810
|
+
}>;
|
|
4811
|
+
};
|
|
4812
|
+
};
|
|
4813
|
+
update: {
|
|
4814
|
+
metadata: {
|
|
4815
|
+
openApiTags: string[];
|
|
4816
|
+
openApiSecurity: {
|
|
4817
|
+
bearerAuth: never[];
|
|
4818
|
+
}[];
|
|
4819
|
+
};
|
|
4820
|
+
summary: "Update organisation details (owner/admin only)";
|
|
4821
|
+
method: "PATCH";
|
|
4822
|
+
body: zod.ZodObject<{
|
|
4823
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
4824
|
+
description: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
4825
|
+
avatarUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
4826
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4827
|
+
description?: string | null | undefined;
|
|
4828
|
+
name?: string | undefined;
|
|
4829
|
+
avatarUrl?: string | null | undefined;
|
|
4830
|
+
}, {
|
|
4831
|
+
description?: string | null | undefined;
|
|
4832
|
+
name?: string | undefined;
|
|
4833
|
+
avatarUrl?: string | null | undefined;
|
|
4834
|
+
}>;
|
|
4835
|
+
path: "/v1/organisations/:orgId";
|
|
4836
|
+
responses: {
|
|
4837
|
+
200: zod.ZodObject<{
|
|
4838
|
+
id: zod.ZodString;
|
|
4839
|
+
name: zod.ZodString;
|
|
4840
|
+
description: zod.ZodNullable<zod.ZodString>;
|
|
4841
|
+
avatarUrl: zod.ZodNullable<zod.ZodString>;
|
|
4842
|
+
didUri: zod.ZodNullable<zod.ZodString>;
|
|
4843
|
+
memberCount: zod.ZodNumber;
|
|
4844
|
+
createdAt: zod.ZodString;
|
|
4845
|
+
updatedAt: zod.ZodString;
|
|
4846
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4847
|
+
description: string | null;
|
|
4848
|
+
id: string;
|
|
4849
|
+
name: string;
|
|
4850
|
+
createdAt: string;
|
|
4851
|
+
updatedAt: string;
|
|
4852
|
+
avatarUrl: string | null;
|
|
4853
|
+
didUri: string | null;
|
|
4854
|
+
memberCount: number;
|
|
4855
|
+
}, {
|
|
4856
|
+
description: string | null;
|
|
4857
|
+
id: string;
|
|
4858
|
+
name: string;
|
|
4859
|
+
createdAt: string;
|
|
4860
|
+
updatedAt: string;
|
|
4861
|
+
avatarUrl: string | null;
|
|
4862
|
+
didUri: string | null;
|
|
4863
|
+
memberCount: number;
|
|
4864
|
+
}>;
|
|
4865
|
+
400: zod.ZodObject<{
|
|
4866
|
+
message: zod.ZodString;
|
|
4867
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4868
|
+
message: string;
|
|
4869
|
+
}, {
|
|
4870
|
+
message: string;
|
|
4871
|
+
}>;
|
|
4872
|
+
401: zod.ZodObject<{
|
|
4873
|
+
message: zod.ZodString;
|
|
4874
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4875
|
+
message: string;
|
|
4876
|
+
}, {
|
|
4877
|
+
message: string;
|
|
4878
|
+
}>;
|
|
4879
|
+
403: zod.ZodObject<{
|
|
4880
|
+
message: zod.ZodString;
|
|
4881
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4882
|
+
message: string;
|
|
4883
|
+
}, {
|
|
4884
|
+
message: string;
|
|
4885
|
+
}>;
|
|
4886
|
+
404: zod.ZodObject<{
|
|
4887
|
+
message: zod.ZodString;
|
|
4888
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4889
|
+
message: string;
|
|
4890
|
+
}, {
|
|
4891
|
+
message: string;
|
|
4892
|
+
}>;
|
|
4893
|
+
};
|
|
4894
|
+
};
|
|
4895
|
+
delete: {
|
|
4896
|
+
metadata: {
|
|
4897
|
+
openApiTags: string[];
|
|
4898
|
+
openApiSecurity: {
|
|
4899
|
+
bearerAuth: never[];
|
|
4900
|
+
}[];
|
|
4901
|
+
};
|
|
4902
|
+
summary: "Delete organisation (owner only)";
|
|
4903
|
+
method: "DELETE";
|
|
4904
|
+
body: typeof _ts_rest_core.ContractNoBody;
|
|
4905
|
+
path: "/v1/organisations/:orgId";
|
|
4906
|
+
responses: {
|
|
4907
|
+
204: zod.ZodUndefined;
|
|
4908
|
+
401: zod.ZodObject<{
|
|
4909
|
+
message: zod.ZodString;
|
|
4910
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4911
|
+
message: string;
|
|
4912
|
+
}, {
|
|
4913
|
+
message: string;
|
|
4914
|
+
}>;
|
|
4915
|
+
403: zod.ZodObject<{
|
|
4916
|
+
message: zod.ZodString;
|
|
4917
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4918
|
+
message: string;
|
|
4919
|
+
}, {
|
|
4920
|
+
message: string;
|
|
4921
|
+
}>;
|
|
4922
|
+
404: zod.ZodObject<{
|
|
4923
|
+
message: zod.ZodString;
|
|
4924
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4925
|
+
message: string;
|
|
4926
|
+
}, {
|
|
4927
|
+
message: string;
|
|
4928
|
+
}>;
|
|
4929
|
+
};
|
|
4930
|
+
};
|
|
4931
|
+
};
|
|
4932
|
+
members: {
|
|
4933
|
+
listMembers: {
|
|
4934
|
+
metadata: {
|
|
4935
|
+
openApiTags: string[];
|
|
4936
|
+
openApiSecurity: {
|
|
4937
|
+
bearerAuth: never[];
|
|
4938
|
+
}[];
|
|
4939
|
+
};
|
|
4940
|
+
summary: "List organisation members";
|
|
4941
|
+
method: "GET";
|
|
4942
|
+
path: "/v1/organisations/:orgId/members";
|
|
4943
|
+
responses: {
|
|
4944
|
+
200: zod.ZodArray<zod.ZodObject<{
|
|
4945
|
+
id: zod.ZodString;
|
|
4946
|
+
userId: zod.ZodString;
|
|
4947
|
+
displayName: zod.ZodNullable<zod.ZodString>;
|
|
4948
|
+
role: zod.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
4949
|
+
joinedAt: zod.ZodString;
|
|
2331
4950
|
}, "strip", zod.ZodTypeAny, {
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
4951
|
+
id: string;
|
|
4952
|
+
userId: string;
|
|
4953
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
4954
|
+
displayName: string | null;
|
|
4955
|
+
joinedAt: string;
|
|
2335
4956
|
}, {
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
4957
|
+
id: string;
|
|
4958
|
+
userId: string;
|
|
4959
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
4960
|
+
displayName: string | null;
|
|
4961
|
+
joinedAt: string;
|
|
4962
|
+
}>, "many">;
|
|
4963
|
+
401: zod.ZodObject<{
|
|
4964
|
+
message: zod.ZodString;
|
|
4965
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4966
|
+
message: string;
|
|
4967
|
+
}, {
|
|
4968
|
+
message: string;
|
|
2339
4969
|
}>;
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
key: zod.ZodString;
|
|
2343
|
-
publicUrl: zod.ZodString;
|
|
4970
|
+
403: zod.ZodObject<{
|
|
4971
|
+
message: zod.ZodString;
|
|
2344
4972
|
}, "strip", zod.ZodTypeAny, {
|
|
2345
|
-
|
|
2346
|
-
key: string;
|
|
2347
|
-
publicUrl: string;
|
|
4973
|
+
message: string;
|
|
2348
4974
|
}, {
|
|
2349
|
-
|
|
2350
|
-
key: string;
|
|
2351
|
-
publicUrl: string;
|
|
4975
|
+
message: string;
|
|
2352
4976
|
}>;
|
|
4977
|
+
};
|
|
4978
|
+
};
|
|
4979
|
+
updateMemberRole: {
|
|
4980
|
+
metadata: {
|
|
4981
|
+
openApiTags: string[];
|
|
4982
|
+
openApiSecurity: {
|
|
4983
|
+
bearerAuth: never[];
|
|
4984
|
+
}[];
|
|
4985
|
+
};
|
|
4986
|
+
summary: "Update member role (owner/admin only)";
|
|
4987
|
+
method: "PATCH";
|
|
4988
|
+
body: zod.ZodObject<{
|
|
4989
|
+
role: zod.ZodEnum<["ADMIN", "ISSUER", "MEMBER"]>;
|
|
2353
4990
|
}, "strip", zod.ZodTypeAny, {
|
|
2354
|
-
|
|
2355
|
-
original: {
|
|
2356
|
-
uploadUrl: string;
|
|
2357
|
-
key: string;
|
|
2358
|
-
publicUrl: string;
|
|
2359
|
-
};
|
|
2360
|
-
resize: {
|
|
2361
|
-
uploadUrl: string;
|
|
2362
|
-
key: string;
|
|
2363
|
-
publicUrl: string;
|
|
2364
|
-
};
|
|
4991
|
+
role: "ADMIN" | "ISSUER" | "MEMBER";
|
|
2365
4992
|
}, {
|
|
2366
|
-
|
|
2367
|
-
original: {
|
|
2368
|
-
uploadUrl: string;
|
|
2369
|
-
key: string;
|
|
2370
|
-
publicUrl: string;
|
|
2371
|
-
};
|
|
2372
|
-
resize: {
|
|
2373
|
-
uploadUrl: string;
|
|
2374
|
-
key: string;
|
|
2375
|
-
publicUrl: string;
|
|
2376
|
-
};
|
|
4993
|
+
role: "ADMIN" | "ISSUER" | "MEMBER";
|
|
2377
4994
|
}>;
|
|
4995
|
+
path: "/v1/organisations/:orgId/members/:memberId";
|
|
4996
|
+
responses: {
|
|
4997
|
+
200: zod.ZodObject<{
|
|
4998
|
+
id: zod.ZodString;
|
|
4999
|
+
userId: zod.ZodString;
|
|
5000
|
+
displayName: zod.ZodNullable<zod.ZodString>;
|
|
5001
|
+
role: zod.ZodEnum<["OWNER", "ADMIN", "ISSUER", "MEMBER"]>;
|
|
5002
|
+
joinedAt: zod.ZodString;
|
|
5003
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5004
|
+
id: string;
|
|
5005
|
+
userId: string;
|
|
5006
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
5007
|
+
displayName: string | null;
|
|
5008
|
+
joinedAt: string;
|
|
5009
|
+
}, {
|
|
5010
|
+
id: string;
|
|
5011
|
+
userId: string;
|
|
5012
|
+
role: "OWNER" | "ADMIN" | "ISSUER" | "MEMBER";
|
|
5013
|
+
displayName: string | null;
|
|
5014
|
+
joinedAt: string;
|
|
5015
|
+
}>;
|
|
5016
|
+
400: zod.ZodObject<{
|
|
5017
|
+
message: zod.ZodString;
|
|
5018
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5019
|
+
message: string;
|
|
5020
|
+
}, {
|
|
5021
|
+
message: string;
|
|
5022
|
+
}>;
|
|
5023
|
+
401: zod.ZodObject<{
|
|
5024
|
+
message: zod.ZodString;
|
|
5025
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5026
|
+
message: string;
|
|
5027
|
+
}, {
|
|
5028
|
+
message: string;
|
|
5029
|
+
}>;
|
|
5030
|
+
403: zod.ZodObject<{
|
|
5031
|
+
message: zod.ZodString;
|
|
5032
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5033
|
+
message: string;
|
|
5034
|
+
}, {
|
|
5035
|
+
message: string;
|
|
5036
|
+
}>;
|
|
5037
|
+
404: zod.ZodObject<{
|
|
5038
|
+
message: zod.ZodString;
|
|
5039
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5040
|
+
message: string;
|
|
5041
|
+
}, {
|
|
5042
|
+
message: string;
|
|
5043
|
+
}>;
|
|
5044
|
+
};
|
|
2378
5045
|
};
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
5046
|
+
removeMember: {
|
|
5047
|
+
metadata: {
|
|
5048
|
+
openApiTags: string[];
|
|
5049
|
+
openApiSecurity: {
|
|
5050
|
+
bearerAuth: never[];
|
|
5051
|
+
}[];
|
|
5052
|
+
};
|
|
5053
|
+
summary: "Remove member from organisation (owner/admin only)";
|
|
5054
|
+
method: "DELETE";
|
|
5055
|
+
body: typeof _ts_rest_core.ContractNoBody;
|
|
5056
|
+
path: "/v1/organisations/:orgId/members/:memberId";
|
|
5057
|
+
responses: {
|
|
5058
|
+
204: zod.ZodUndefined;
|
|
5059
|
+
400: zod.ZodObject<{
|
|
5060
|
+
message: zod.ZodString;
|
|
5061
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5062
|
+
message: string;
|
|
5063
|
+
}, {
|
|
5064
|
+
message: string;
|
|
5065
|
+
}>;
|
|
5066
|
+
401: zod.ZodObject<{
|
|
5067
|
+
message: zod.ZodString;
|
|
5068
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5069
|
+
message: string;
|
|
5070
|
+
}, {
|
|
5071
|
+
message: string;
|
|
5072
|
+
}>;
|
|
5073
|
+
403: zod.ZodObject<{
|
|
5074
|
+
message: zod.ZodString;
|
|
5075
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5076
|
+
message: string;
|
|
5077
|
+
}, {
|
|
5078
|
+
message: string;
|
|
5079
|
+
}>;
|
|
5080
|
+
404: zod.ZodObject<{
|
|
5081
|
+
message: zod.ZodString;
|
|
5082
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5083
|
+
message: string;
|
|
5084
|
+
}, {
|
|
5085
|
+
message: string;
|
|
5086
|
+
}>;
|
|
5087
|
+
};
|
|
2388
5088
|
};
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
responses: {
|
|
2403
|
-
201: zod.ZodObject<{
|
|
2404
|
-
id: zod.ZodString;
|
|
5089
|
+
};
|
|
5090
|
+
invitations: {
|
|
5091
|
+
createInvitation: {
|
|
5092
|
+
metadata: {
|
|
5093
|
+
openApiTags: string[];
|
|
5094
|
+
openApiSecurity: {
|
|
5095
|
+
bearerAuth: never[];
|
|
5096
|
+
}[];
|
|
5097
|
+
};
|
|
5098
|
+
summary: "Create invitation (owner/admin only)";
|
|
5099
|
+
method: "POST";
|
|
5100
|
+
body: zod.ZodObject<{
|
|
5101
|
+
expiresInDays: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
2405
5102
|
}, "strip", zod.ZodTypeAny, {
|
|
2406
|
-
|
|
5103
|
+
expiresInDays?: number | undefined;
|
|
2407
5104
|
}, {
|
|
2408
|
-
|
|
5105
|
+
expiresInDays?: number | undefined;
|
|
2409
5106
|
}>;
|
|
2410
|
-
|
|
2411
|
-
|
|
5107
|
+
path: "/v1/organisations/:orgId/invitations";
|
|
5108
|
+
responses: {
|
|
5109
|
+
201: zod.ZodObject<{
|
|
5110
|
+
id: zod.ZodString;
|
|
5111
|
+
orgId: zod.ZodString;
|
|
5112
|
+
orgName: zod.ZodString;
|
|
5113
|
+
token: zod.ZodString;
|
|
5114
|
+
status: zod.ZodEnum<["PENDING", "SUBMITTED", "ACCEPTED", "DECLINED", "EXPIRED"]>;
|
|
5115
|
+
inviteeDisplayName: zod.ZodNullable<zod.ZodString>;
|
|
5116
|
+
createdAt: zod.ZodString;
|
|
5117
|
+
expiresAt: zod.ZodString;
|
|
5118
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5119
|
+
status: "PENDING" | "SUBMITTED" | "ACCEPTED" | "DECLINED" | "EXPIRED";
|
|
5120
|
+
id: string;
|
|
5121
|
+
createdAt: string;
|
|
5122
|
+
expiresAt: string;
|
|
5123
|
+
orgId: string;
|
|
5124
|
+
orgName: string;
|
|
5125
|
+
token: string;
|
|
5126
|
+
inviteeDisplayName: string | null;
|
|
5127
|
+
}, {
|
|
5128
|
+
status: "PENDING" | "SUBMITTED" | "ACCEPTED" | "DECLINED" | "EXPIRED";
|
|
5129
|
+
id: string;
|
|
5130
|
+
createdAt: string;
|
|
5131
|
+
expiresAt: string;
|
|
5132
|
+
orgId: string;
|
|
5133
|
+
orgName: string;
|
|
5134
|
+
token: string;
|
|
5135
|
+
inviteeDisplayName: string | null;
|
|
5136
|
+
}>;
|
|
5137
|
+
401: zod.ZodObject<{
|
|
5138
|
+
message: zod.ZodString;
|
|
5139
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5140
|
+
message: string;
|
|
5141
|
+
}, {
|
|
5142
|
+
message: string;
|
|
5143
|
+
}>;
|
|
5144
|
+
403: zod.ZodObject<{
|
|
5145
|
+
message: zod.ZodString;
|
|
5146
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5147
|
+
message: string;
|
|
5148
|
+
}, {
|
|
5149
|
+
message: string;
|
|
5150
|
+
}>;
|
|
5151
|
+
};
|
|
5152
|
+
};
|
|
5153
|
+
listInvitations: {
|
|
5154
|
+
metadata: {
|
|
5155
|
+
openApiTags: string[];
|
|
5156
|
+
openApiSecurity: {
|
|
5157
|
+
bearerAuth: never[];
|
|
5158
|
+
}[];
|
|
5159
|
+
};
|
|
5160
|
+
summary: "List pending invitations (owner/admin only)";
|
|
5161
|
+
method: "GET";
|
|
5162
|
+
path: "/v1/organisations/:orgId/invitations";
|
|
5163
|
+
responses: {
|
|
5164
|
+
200: zod.ZodArray<zod.ZodObject<{
|
|
5165
|
+
id: zod.ZodString;
|
|
5166
|
+
orgId: zod.ZodString;
|
|
5167
|
+
orgName: zod.ZodString;
|
|
5168
|
+
token: zod.ZodString;
|
|
5169
|
+
status: zod.ZodEnum<["PENDING", "SUBMITTED", "ACCEPTED", "DECLINED", "EXPIRED"]>;
|
|
5170
|
+
inviteeDisplayName: zod.ZodNullable<zod.ZodString>;
|
|
5171
|
+
createdAt: zod.ZodString;
|
|
5172
|
+
expiresAt: zod.ZodString;
|
|
5173
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5174
|
+
status: "PENDING" | "SUBMITTED" | "ACCEPTED" | "DECLINED" | "EXPIRED";
|
|
5175
|
+
id: string;
|
|
5176
|
+
createdAt: string;
|
|
5177
|
+
expiresAt: string;
|
|
5178
|
+
orgId: string;
|
|
5179
|
+
orgName: string;
|
|
5180
|
+
token: string;
|
|
5181
|
+
inviteeDisplayName: string | null;
|
|
5182
|
+
}, {
|
|
5183
|
+
status: "PENDING" | "SUBMITTED" | "ACCEPTED" | "DECLINED" | "EXPIRED";
|
|
5184
|
+
id: string;
|
|
5185
|
+
createdAt: string;
|
|
5186
|
+
expiresAt: string;
|
|
5187
|
+
orgId: string;
|
|
5188
|
+
orgName: string;
|
|
5189
|
+
token: string;
|
|
5190
|
+
inviteeDisplayName: string | null;
|
|
5191
|
+
}>, "many">;
|
|
5192
|
+
401: zod.ZodObject<{
|
|
5193
|
+
message: zod.ZodString;
|
|
5194
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5195
|
+
message: string;
|
|
5196
|
+
}, {
|
|
5197
|
+
message: string;
|
|
5198
|
+
}>;
|
|
5199
|
+
403: zod.ZodObject<{
|
|
5200
|
+
message: zod.ZodString;
|
|
5201
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5202
|
+
message: string;
|
|
5203
|
+
}, {
|
|
5204
|
+
message: string;
|
|
5205
|
+
}>;
|
|
5206
|
+
};
|
|
5207
|
+
};
|
|
5208
|
+
joinVpRequest: {
|
|
5209
|
+
metadata: {
|
|
5210
|
+
openApiTags: string[];
|
|
5211
|
+
openApiSecurity: {
|
|
5212
|
+
bearerAuth: never[];
|
|
5213
|
+
}[];
|
|
5214
|
+
};
|
|
5215
|
+
summary: "Get VP request for joining via invitation";
|
|
5216
|
+
method: "POST";
|
|
5217
|
+
body: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
|
|
5218
|
+
path: "/v1/organisations/invitations/:token/vp-request";
|
|
5219
|
+
responses: {
|
|
5220
|
+
200: zod.ZodObject<{
|
|
5221
|
+
vpRequest: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
5222
|
+
expiresAt: zod.ZodString;
|
|
5223
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5224
|
+
vpRequest: Record<string, unknown>;
|
|
5225
|
+
expiresAt: string;
|
|
5226
|
+
}, {
|
|
5227
|
+
vpRequest: Record<string, unknown>;
|
|
5228
|
+
expiresAt: string;
|
|
5229
|
+
}>;
|
|
5230
|
+
401: zod.ZodObject<{
|
|
5231
|
+
message: zod.ZodString;
|
|
5232
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5233
|
+
message: string;
|
|
5234
|
+
}, {
|
|
5235
|
+
message: string;
|
|
5236
|
+
}>;
|
|
5237
|
+
404: zod.ZodObject<{
|
|
5238
|
+
message: zod.ZodString;
|
|
5239
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5240
|
+
message: string;
|
|
5241
|
+
}, {
|
|
5242
|
+
message: string;
|
|
5243
|
+
}>;
|
|
5244
|
+
410: zod.ZodObject<{
|
|
5245
|
+
message: zod.ZodString;
|
|
5246
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5247
|
+
message: string;
|
|
5248
|
+
}, {
|
|
5249
|
+
message: string;
|
|
5250
|
+
}>;
|
|
5251
|
+
};
|
|
5252
|
+
};
|
|
5253
|
+
joinInvitation: {
|
|
5254
|
+
metadata: {
|
|
5255
|
+
openApiTags: string[];
|
|
5256
|
+
openApiSecurity: {
|
|
5257
|
+
bearerAuth: never[];
|
|
5258
|
+
}[];
|
|
5259
|
+
};
|
|
5260
|
+
summary: "Invitee submits CCCD VP to join";
|
|
5261
|
+
method: "POST";
|
|
5262
|
+
body: zod.ZodObject<{
|
|
5263
|
+
verifiablePresentation: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
2412
5264
|
}, "strip", zod.ZodTypeAny, {
|
|
2413
|
-
|
|
5265
|
+
verifiablePresentation: Record<string, unknown>;
|
|
2414
5266
|
}, {
|
|
2415
|
-
|
|
5267
|
+
verifiablePresentation: Record<string, unknown>;
|
|
2416
5268
|
}>;
|
|
5269
|
+
path: "/v1/organisations/invitations/:token/join";
|
|
5270
|
+
responses: {
|
|
5271
|
+
200: zod.ZodObject<{
|
|
5272
|
+
message: zod.ZodString;
|
|
5273
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5274
|
+
message: string;
|
|
5275
|
+
}, {
|
|
5276
|
+
message: string;
|
|
5277
|
+
}>;
|
|
5278
|
+
400: zod.ZodObject<{
|
|
5279
|
+
message: zod.ZodString;
|
|
5280
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5281
|
+
message: string;
|
|
5282
|
+
}, {
|
|
5283
|
+
message: string;
|
|
5284
|
+
}>;
|
|
5285
|
+
401: zod.ZodObject<{
|
|
5286
|
+
message: zod.ZodString;
|
|
5287
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5288
|
+
message: string;
|
|
5289
|
+
}, {
|
|
5290
|
+
message: string;
|
|
5291
|
+
}>;
|
|
5292
|
+
410: zod.ZodObject<{
|
|
5293
|
+
message: zod.ZodString;
|
|
5294
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5295
|
+
message: string;
|
|
5296
|
+
}, {
|
|
5297
|
+
message: string;
|
|
5298
|
+
}>;
|
|
5299
|
+
};
|
|
2417
5300
|
};
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
5301
|
+
acceptInvitation: {
|
|
5302
|
+
metadata: {
|
|
5303
|
+
openApiTags: string[];
|
|
5304
|
+
openApiSecurity: {
|
|
5305
|
+
bearerAuth: never[];
|
|
5306
|
+
}[];
|
|
5307
|
+
};
|
|
5308
|
+
summary: "Accept invitation (owner/admin only)";
|
|
5309
|
+
method: "POST";
|
|
5310
|
+
body: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
|
|
5311
|
+
path: "/v1/organisations/:orgId/invitations/:invitationId/accept";
|
|
5312
|
+
responses: {
|
|
5313
|
+
200: zod.ZodObject<{
|
|
5314
|
+
message: zod.ZodString;
|
|
5315
|
+
memberId: zod.ZodString;
|
|
5316
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5317
|
+
message: string;
|
|
5318
|
+
memberId: string;
|
|
5319
|
+
}, {
|
|
5320
|
+
message: string;
|
|
5321
|
+
memberId: string;
|
|
5322
|
+
}>;
|
|
5323
|
+
401: zod.ZodObject<{
|
|
5324
|
+
message: zod.ZodString;
|
|
5325
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5326
|
+
message: string;
|
|
5327
|
+
}, {
|
|
5328
|
+
message: string;
|
|
5329
|
+
}>;
|
|
5330
|
+
403: zod.ZodObject<{
|
|
5331
|
+
message: zod.ZodString;
|
|
5332
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5333
|
+
message: string;
|
|
5334
|
+
}, {
|
|
5335
|
+
message: string;
|
|
5336
|
+
}>;
|
|
5337
|
+
409: zod.ZodObject<{
|
|
5338
|
+
message: zod.ZodString;
|
|
5339
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5340
|
+
message: string;
|
|
5341
|
+
}, {
|
|
5342
|
+
message: string;
|
|
5343
|
+
}>;
|
|
5344
|
+
};
|
|
2425
5345
|
};
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
5346
|
+
declineInvitation: {
|
|
5347
|
+
metadata: {
|
|
5348
|
+
openApiTags: string[];
|
|
5349
|
+
openApiSecurity: {
|
|
5350
|
+
bearerAuth: never[];
|
|
5351
|
+
}[];
|
|
5352
|
+
};
|
|
5353
|
+
summary: "Decline invitation (owner/admin only)";
|
|
5354
|
+
method: "POST";
|
|
5355
|
+
body: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
|
|
5356
|
+
path: "/v1/organisations/:orgId/invitations/:invitationId/decline";
|
|
5357
|
+
responses: {
|
|
5358
|
+
200: zod.ZodObject<{
|
|
5359
|
+
message: zod.ZodString;
|
|
2433
5360
|
}, "strip", zod.ZodTypeAny, {
|
|
2434
|
-
|
|
5361
|
+
message: string;
|
|
2435
5362
|
}, {
|
|
2436
|
-
|
|
5363
|
+
message: string;
|
|
5364
|
+
}>;
|
|
5365
|
+
401: zod.ZodObject<{
|
|
5366
|
+
message: zod.ZodString;
|
|
5367
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5368
|
+
message: string;
|
|
5369
|
+
}, {
|
|
5370
|
+
message: string;
|
|
5371
|
+
}>;
|
|
5372
|
+
403: zod.ZodObject<{
|
|
5373
|
+
message: zod.ZodString;
|
|
5374
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5375
|
+
message: string;
|
|
5376
|
+
}, {
|
|
5377
|
+
message: string;
|
|
5378
|
+
}>;
|
|
5379
|
+
409: zod.ZodObject<{
|
|
5380
|
+
message: zod.ZodString;
|
|
5381
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5382
|
+
message: string;
|
|
5383
|
+
}, {
|
|
5384
|
+
message: string;
|
|
2437
5385
|
}>;
|
|
5386
|
+
};
|
|
5387
|
+
};
|
|
5388
|
+
};
|
|
5389
|
+
credentials: {
|
|
5390
|
+
issueVC: {
|
|
5391
|
+
metadata: {
|
|
5392
|
+
openApiTags: string[];
|
|
5393
|
+
openApiSecurity: {
|
|
5394
|
+
bearerAuth: never[];
|
|
5395
|
+
}[];
|
|
5396
|
+
};
|
|
5397
|
+
summary: "Issue VC on behalf of organisation (owner/admin/issuer)";
|
|
5398
|
+
method: "POST";
|
|
5399
|
+
body: zod.ZodObject<{
|
|
5400
|
+
holderDid: zod.ZodString;
|
|
5401
|
+
credentialSubject: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
5402
|
+
type: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
2438
5403
|
}, "strip", zod.ZodTypeAny, {
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
5404
|
+
holderDid: string;
|
|
5405
|
+
credentialSubject: Record<string, unknown>;
|
|
5406
|
+
type?: string[] | undefined;
|
|
2442
5407
|
}, {
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
5408
|
+
holderDid: string;
|
|
5409
|
+
credentialSubject: Record<string, unknown>;
|
|
5410
|
+
type?: string[] | undefined;
|
|
2446
5411
|
}>;
|
|
5412
|
+
path: "/v1/organisations/:orgId/credentials/issue";
|
|
5413
|
+
responses: {
|
|
5414
|
+
201: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
5415
|
+
400: zod.ZodObject<{
|
|
5416
|
+
message: zod.ZodString;
|
|
5417
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5418
|
+
message: string;
|
|
5419
|
+
}, {
|
|
5420
|
+
message: string;
|
|
5421
|
+
}>;
|
|
5422
|
+
401: zod.ZodObject<{
|
|
5423
|
+
message: zod.ZodString;
|
|
5424
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5425
|
+
message: string;
|
|
5426
|
+
}, {
|
|
5427
|
+
message: string;
|
|
5428
|
+
}>;
|
|
5429
|
+
403: zod.ZodObject<{
|
|
5430
|
+
message: zod.ZodString;
|
|
5431
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5432
|
+
message: string;
|
|
5433
|
+
}, {
|
|
5434
|
+
message: string;
|
|
5435
|
+
}>;
|
|
5436
|
+
};
|
|
5437
|
+
};
|
|
5438
|
+
listIssuedCredentials: {
|
|
5439
|
+
metadata: {
|
|
5440
|
+
openApiTags: string[];
|
|
5441
|
+
openApiSecurity: {
|
|
5442
|
+
bearerAuth: never[];
|
|
5443
|
+
}[];
|
|
5444
|
+
};
|
|
5445
|
+
summary: "List issued credentials (owner/admin only)";
|
|
5446
|
+
method: "GET";
|
|
5447
|
+
path: "/v1/organisations/:orgId/credentials";
|
|
5448
|
+
responses: {
|
|
5449
|
+
200: zod.ZodArray<zod.ZodObject<{
|
|
5450
|
+
id: zod.ZodString;
|
|
5451
|
+
holderDid: zod.ZodString;
|
|
5452
|
+
issuingMemberId: zod.ZodString;
|
|
5453
|
+
credentialJson: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
5454
|
+
issuedAt: zod.ZodString;
|
|
5455
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5456
|
+
id: string;
|
|
5457
|
+
holderDid: string;
|
|
5458
|
+
issuingMemberId: string;
|
|
5459
|
+
credentialJson: Record<string, unknown>;
|
|
5460
|
+
issuedAt: string;
|
|
5461
|
+
}, {
|
|
5462
|
+
id: string;
|
|
5463
|
+
holderDid: string;
|
|
5464
|
+
issuingMemberId: string;
|
|
5465
|
+
credentialJson: Record<string, unknown>;
|
|
5466
|
+
issuedAt: string;
|
|
5467
|
+
}>, "many">;
|
|
5468
|
+
401: zod.ZodObject<{
|
|
5469
|
+
message: zod.ZodString;
|
|
5470
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5471
|
+
message: string;
|
|
5472
|
+
}, {
|
|
5473
|
+
message: string;
|
|
5474
|
+
}>;
|
|
5475
|
+
403: zod.ZodObject<{
|
|
5476
|
+
message: zod.ZodString;
|
|
5477
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5478
|
+
message: string;
|
|
5479
|
+
}, {
|
|
5480
|
+
message: string;
|
|
5481
|
+
}>;
|
|
5482
|
+
};
|
|
2447
5483
|
};
|
|
2448
5484
|
};
|
|
2449
5485
|
};
|
|
@@ -2451,4 +5487,4 @@ declare const contract: {
|
|
|
2451
5487
|
};
|
|
2452
5488
|
type Contract = typeof contract;
|
|
2453
5489
|
|
|
2454
|
-
export { AuthScheme, CheckinInfoResponseSchema, CheckinSubmitRequestSchema, CheckinSubmitResponseSchema, type Contract, CreateEventSchema, EventDetailResponseSchema, EventDiscoverSchema, EventPublicInfoSchema, EventResponseSchema, ParticipantSchema, SUPPORTED_FIELDS, type SupportedField, TrackScanRequestSchema, TrackScanResponseSchema, TurnCredentialsResponseSchema, UpdateEventSchema, UploadPresignedUrlSchema, VerifyRequestSchema, VerifyResponseSchema, appConfigContract, authContract, buildAuthMessage, checkinContract, contract, eventsContract, trackingContract, turnContract, uploadsContract };
|
|
5490
|
+
export { AuthScheme, CheckinInfoResponseSchema, CheckinSubmitRequestSchema, CheckinSubmitResponseSchema, type Contract, CreateEventSchema, CreateInvitationSchema, CreateOrganisationSchema, EventDetailResponseSchema, EventDiscoverSchema, EventPublicInfoSchema, EventResponseSchema, InvitationResponseSchema, IssueVCSchema, JoinInvitationSchema, MemberResponseSchema, OrgDetailResponseSchema, OrgListItemSchema, OrgResponseSchema, ParticipantSchema, SUPPORTED_FIELDS, type SupportedField, TrackScanRequestSchema, TrackScanResponseSchema, TurnCredentialsResponseSchema, UpdateEventSchema, UpdateMemberRoleSchema, UpdateOrganisationSchema, UploadPresignedUrlSchema, VerifyRequestSchema, VerifyResponseSchema, appConfigContract, authContract, buildAuthMessage, checkinContract, contract, eventsContract, orgCredentialsContract, orgCrudContract, orgInvitationsContract, orgMembersContract, organisationsContract, trackingContract, turnContract, uploadsContract };
|