@gscdump/contracts 2.0.1 → 2.0.3

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.
@@ -751,19 +751,6 @@ declare const partnerEndpoints: {
751
751
  }, import("zod/v4/core").$loose>>;
752
752
  }, import("zod/v4/core").$loose>;
753
753
  };
754
- readonly getUserSiteIntIdCrosswalk: {
755
- method: "GET";
756
- path: (userId: string) => string;
757
- } & {
758
- readonly response: import("zod").ZodObject<{
759
- crosswalk: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodNumber>;
760
- sites: import("zod").ZodArray<import("zod").ZodObject<{
761
- siteId: import("zod").ZodString;
762
- intId: import("zod").ZodNumber;
763
- siteUrl: import("zod").ZodString;
764
- }, import("zod/v4/core").$loose>>;
765
- }, import("zod/v4/core").$loose>;
766
- };
767
754
  readonly getSyncStatus: {
768
755
  method: "GET";
769
756
  path: (siteId: string) => string;
@@ -1144,17 +1131,6 @@ declare const partnerEndpoints: {
1144
1131
  owners: import("zod").ZodArray<import("zod").ZodString>;
1145
1132
  }, import("zod/v4/core").$loose>;
1146
1133
  };
1147
- readonly deleteUser: {
1148
- method: "DELETE";
1149
- path: (userId: string) => string;
1150
- } & {
1151
- readonly response: import("zod").ZodObject<{
1152
- ok: import("zod").ZodLiteral<true>;
1153
- queued: import("zod").ZodLiteral<true>;
1154
- userId: import("zod").ZodNumber;
1155
- publicId: import("zod").ZodString;
1156
- }, import("zod/v4/core").$loose>;
1157
- };
1158
1134
  readonly deleteSite: {
1159
1135
  method: "DELETE";
1160
1136
  path: (siteId: string) => string;
@@ -1569,58 +1545,6 @@ declare const partnerEndpoints: {
1569
1545
  }, import("zod/v4/core").$loose>;
1570
1546
  }, import("zod/v4/core").$loose>;
1571
1547
  };
1572
- readonly requestIndexingInspect: {
1573
- method: "POST";
1574
- path: (siteId: string) => string;
1575
- } & {
1576
- readonly body: import("zod").ZodObject<{
1577
- urls: import("zod").ZodArray<import("zod").ZodString>;
1578
- }, import("zod/v4/core").$strip>;
1579
- readonly response: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
1580
- siteId: import("zod").ZodString;
1581
- rateLimit: import("zod").ZodObject<{
1582
- reserved: import("zod").ZodNumber;
1583
- remaining: import("zod").ZodNumber;
1584
- limit: import("zod").ZodNumber;
1585
- }, import("zod/v4/core").$loose>;
1586
- results: import("zod").ZodArray<import("zod").ZodObject<{
1587
- url: import("zod").ZodString;
1588
- verdict: import("zod").ZodNullable<import("zod").ZodString>;
1589
- coverageState: import("zod").ZodNullable<import("zod").ZodString>;
1590
- indexingState: import("zod").ZodNullable<import("zod").ZodString>;
1591
- robotsTxtState: import("zod").ZodNullable<import("zod").ZodString>;
1592
- pageFetchState: import("zod").ZodNullable<import("zod").ZodString>;
1593
- lastCrawlTime: import("zod").ZodNullable<import("zod").ZodString>;
1594
- crawlingUserAgent: import("zod").ZodNullable<import("zod").ZodString>;
1595
- userCanonical: import("zod").ZodNullable<import("zod").ZodString>;
1596
- googleCanonical: import("zod").ZodNullable<import("zod").ZodString>;
1597
- sitemaps: import("zod").ZodNullable<import("zod").ZodString>;
1598
- referringUrls: import("zod").ZodNullable<import("zod").ZodString>;
1599
- mobileVerdict: import("zod").ZodNullable<import("zod").ZodString>;
1600
- mobileIssues: import("zod").ZodNullable<import("zod").ZodString>;
1601
- richResultsVerdict: import("zod").ZodNullable<import("zod").ZodString>;
1602
- richResultsItems: import("zod").ZodNullable<import("zod").ZodString>;
1603
- inspectionResultLink: import("zod").ZodNullable<import("zod").ZodString>;
1604
- }, import("zod/v4/core").$loose>>;
1605
- errors: import("zod").ZodArray<import("zod").ZodObject<{
1606
- url: import("zod").ZodString;
1607
- error: import("zod").ZodString;
1608
- }, import("zod/v4/core").$loose>>;
1609
- skipped: import("zod").ZodArray<import("zod").ZodObject<{
1610
- url: import("zod").ZodString;
1611
- reason: import("zod").ZodString;
1612
- }, import("zod/v4/core").$loose>>;
1613
- }, import("zod/v4/core").$loose>, import("zod").ZodObject<{
1614
- error: import("zod").ZodLiteral<"rate_limited">;
1615
- message: import("zod").ZodString;
1616
- rateLimit: import("zod").ZodObject<{
1617
- reserved: import("zod").ZodLiteral<0>;
1618
- remaining: import("zod").ZodLiteral<0>;
1619
- limit: import("zod").ZodNumber;
1620
- }, import("zod/v4/core").$loose>;
1621
- retryAfterSeconds: import("zod").ZodNumber;
1622
- }, import("zod/v4/core").$loose>]>;
1623
- };
1624
1548
  readonly getUserSettings: {
1625
1549
  method: "GET";
1626
1550
  path: "/user/settings";
@@ -1640,356 +1564,5 @@ declare const partnerEndpoints: {
1640
1564
  browserAnalyzerEnabled: import("zod").ZodBoolean;
1641
1565
  }, import("zod/v4/core").$loose>;
1642
1566
  };
1643
- readonly recoverPermission: {
1644
- method: "POST";
1645
- path: (siteId: string) => string;
1646
- } & {
1647
- readonly response: import("zod").ZodObject<{
1648
- success: import("zod").ZodBoolean;
1649
- permissionLevel: import("zod").ZodNullable<import("zod").ZodString>;
1650
- jobsQueued: import("zod").ZodNumber;
1651
- message: import("zod").ZodString;
1652
- }, import("zod/v4/core").$loose>;
1653
- };
1654
- readonly getTopAssociation: {
1655
- method: "GET";
1656
- path: (siteId: string) => string;
1657
- } & {
1658
- readonly query: import("zod").ZodObject<{
1659
- type: import("zod").ZodEnum<{
1660
- topPage: "topPage";
1661
- topKeyword: "topKeyword";
1662
- }>;
1663
- identifier: import("zod").ZodString;
1664
- startDate: import("zod").ZodString;
1665
- endDate: import("zod").ZodString;
1666
- }, import("zod/v4/core").$strip>;
1667
- readonly response: import("zod").ZodObject<{
1668
- value: import("zod").ZodNullable<import("zod").ZodString>;
1669
- }, import("zod/v4/core").$loose>;
1670
- };
1671
- readonly getKeywordSparklines: {
1672
- method: "POST";
1673
- path: (siteId: string) => string;
1674
- } & {
1675
- readonly body: import("zod").ZodObject<{
1676
- keywords: import("zod").ZodArray<import("zod").ZodString>;
1677
- startDate: import("zod").ZodString;
1678
- endDate: import("zod").ZodString;
1679
- searchType: import("zod").ZodOptional<import("zod").ZodEnum<{
1680
- web: "web";
1681
- image: "image";
1682
- video: "video";
1683
- news: "news";
1684
- discover: "discover";
1685
- googleNews: "googleNews";
1686
- }>>;
1687
- }, import("zod/v4/core").$strip>;
1688
- readonly response: import("zod").ZodObject<{
1689
- sparklines: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodNumber>>;
1690
- }, import("zod/v4/core").$loose>;
1691
- };
1692
- readonly getQueryTrend: {
1693
- method: "GET";
1694
- path: (siteId: string) => string;
1695
- } & {
1696
- readonly query: import("zod").ZodObject<{
1697
- startDate: import("zod").ZodString;
1698
- endDate: import("zod").ZodString;
1699
- prevStartDate: import("zod").ZodOptional<import("zod").ZodString>;
1700
- prevEndDate: import("zod").ZodOptional<import("zod").ZodString>;
1701
- searchType: import("zod").ZodOptional<import("zod").ZodEnum<{
1702
- web: "web";
1703
- image: "image";
1704
- video: "video";
1705
- news: "news";
1706
- discover: "discover";
1707
- googleNews: "googleNews";
1708
- }>>;
1709
- }, import("zod/v4/core").$strip>;
1710
- readonly response: import("zod").ZodObject<{
1711
- daily: import("zod").ZodArray<import("zod").ZodObject<{
1712
- date: import("zod").ZodString;
1713
- queryCount: import("zod").ZodNumber;
1714
- }, import("zod/v4/core").$loose>>;
1715
- total: import("zod").ZodNumber;
1716
- previousTotal: import("zod").ZodOptional<import("zod").ZodNumber>;
1717
- meta: import("zod").ZodObject<{
1718
- siteUrl: import("zod").ZodString;
1719
- syncStatus: import("zod").ZodNullable<import("zod").ZodString>;
1720
- }, import("zod/v4/core").$loose>;
1721
- }, import("zod/v4/core").$loose>;
1722
- };
1723
- readonly getPageTrend: {
1724
- method: "GET";
1725
- path: (siteId: string) => string;
1726
- } & {
1727
- readonly query: import("zod").ZodObject<{
1728
- startDate: import("zod").ZodString;
1729
- endDate: import("zod").ZodString;
1730
- prevStartDate: import("zod").ZodOptional<import("zod").ZodString>;
1731
- prevEndDate: import("zod").ZodOptional<import("zod").ZodString>;
1732
- searchType: import("zod").ZodOptional<import("zod").ZodEnum<{
1733
- web: "web";
1734
- image: "image";
1735
- video: "video";
1736
- news: "news";
1737
- discover: "discover";
1738
- googleNews: "googleNews";
1739
- }>>;
1740
- }, import("zod/v4/core").$strip>;
1741
- readonly response: import("zod").ZodObject<{
1742
- daily: import("zod").ZodArray<import("zod").ZodObject<{
1743
- date: import("zod").ZodString;
1744
- pageCount: import("zod").ZodNumber;
1745
- }, import("zod/v4/core").$loose>>;
1746
- total: import("zod").ZodNumber;
1747
- previousTotal: import("zod").ZodOptional<import("zod").ZodNumber>;
1748
- meta: import("zod").ZodObject<{
1749
- siteUrl: import("zod").ZodString;
1750
- syncStatus: import("zod").ZodNullable<import("zod").ZodString>;
1751
- }, import("zod/v4/core").$loose>;
1752
- }, import("zod/v4/core").$loose>;
1753
- };
1754
- readonly getCanonicalMismatches: {
1755
- method: "GET";
1756
- path: (siteId: string) => string;
1757
- } & {
1758
- readonly response: import("zod").ZodObject<{
1759
- mismatches: import("zod").ZodArray<import("zod").ZodObject<{
1760
- url: import("zod").ZodString;
1761
- userCanonical: import("zod").ZodString;
1762
- googleCanonical: import("zod").ZodString;
1763
- verdict: import("zod").ZodNullable<import("zod").ZodString>;
1764
- coverageState: import("zod").ZodNullable<import("zod").ZodString>;
1765
- lastCrawlTime: import("zod").ZodNullable<import("zod").ZodString>;
1766
- lastCheckedAt: import("zod").ZodNullable<import("zod").ZodString>;
1767
- kind: import("zod").ZodEnum<{
1768
- path: "path";
1769
- cross_domain: "cross_domain";
1770
- }>;
1771
- }, import("zod/v4/core").$loose>>;
1772
- totalCount: import("zod").ZodNumber;
1773
- consolidationTargets: import("zod").ZodArray<import("zod").ZodObject<{
1774
- google_canonical: import("zod").ZodString;
1775
- count: import("zod").ZodNumber;
1776
- }, import("zod/v4/core").$loose>>;
1777
- trend: import("zod").ZodArray<import("zod").ZodObject<{
1778
- date: import("zod").ZodString;
1779
- count: import("zod").ZodNumber;
1780
- }, import("zod/v4/core").$loose>>;
1781
- meta: import("zod").ZodObject<{
1782
- siteUrl: import("zod").ZodString;
1783
- syncStatus: import("zod").ZodNullable<import("zod").ZodString>;
1784
- }, import("zod/v4/core").$loose>;
1785
- }, import("zod/v4/core").$loose>;
1786
- };
1787
- readonly getIndexPercent: {
1788
- method: "GET";
1789
- path: (siteId: string) => string;
1790
- } & {
1791
- readonly query: import("zod").ZodOptional<import("zod").ZodObject<{
1792
- invisibleLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
1793
- invisibleOffset: import("zod").ZodOptional<import("zod").ZodNumber>;
1794
- orphanLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
1795
- }, import("zod/v4/core").$strip>>;
1796
- readonly response: import("zod").ZodObject<{
1797
- trend: import("zod").ZodArray<import("zod").ZodObject<{
1798
- date: import("zod").ZodString;
1799
- percent: import("zod").ZodNumber;
1800
- total: import("zod").ZodNumber;
1801
- visible: import("zod").ZodNumber;
1802
- added: import("zod").ZodNullable<import("zod").ZodNumber>;
1803
- removed: import("zod").ZodNullable<import("zod").ZodNumber>;
1804
- }, import("zod/v4/core").$loose>>;
1805
- invisibleUrls: import("zod").ZodArray<import("zod").ZodObject<{
1806
- url: import("zod").ZodString;
1807
- firstSeen: import("zod").ZodOptional<import("zod").ZodString>;
1808
- lastmod: import("zod").ZodNullable<import("zod").ZodString>;
1809
- }, import("zod/v4/core").$loose>>;
1810
- invisibleCount: import("zod").ZodNumber;
1811
- orphanPages: import("zod").ZodArray<import("zod").ZodObject<{
1812
- url: import("zod").ZodString;
1813
- impressions: import("zod").ZodNullable<import("zod").ZodNumber>;
1814
- clicks: import("zod").ZodNullable<import("zod").ZodNumber>;
1815
- }, import("zod/v4/core").$loose>>;
1816
- orphanCount: import("zod").ZodNumber;
1817
- sitemaps: import("zod").ZodArray<import("zod").ZodObject<{
1818
- path: import("zod").ZodString;
1819
- urlCount: import("zod").ZodNumber;
1820
- isIndex: import("zod").ZodBoolean;
1821
- }, import("zod/v4/core").$loose>>;
1822
- summary: import("zod").ZodObject<{
1823
- currentPercent: import("zod").ZodNumber;
1824
- totalSitemapUrls: import("zod").ZodNumber;
1825
- visibleUrls: import("zod").ZodNumber;
1826
- change7d: import("zod").ZodNullable<import("zod").ZodNumber>;
1827
- change28d: import("zod").ZodNullable<import("zod").ZodNumber>;
1828
- dataDate: import("zod").ZodString;
1829
- }, import("zod/v4/core").$loose>;
1830
- meta: import("zod").ZodObject<{
1831
- siteUrl: import("zod").ZodString;
1832
- syncStatus: import("zod").ZodNullable<import("zod").ZodString>;
1833
- newestDateSynced: import("zod").ZodNullable<import("zod").ZodString>;
1834
- }, import("zod/v4/core").$loose>;
1835
- }, import("zod/v4/core").$loose>;
1836
- };
1837
- readonly createTeam: {
1838
- method: "POST";
1839
- path: "/partner/teams";
1840
- } & {
1841
- readonly body: import("zod").ZodObject<{
1842
- ownerUserId: import("zod").ZodString;
1843
- name: import("zod").ZodString;
1844
- personalTeam: import("zod").ZodOptional<import("zod").ZodBoolean>;
1845
- }, import("zod/v4/core").$strip>;
1846
- readonly response: import("zod").ZodObject<{
1847
- team: import("zod").ZodObject<{
1848
- id: import("zod").ZodString;
1849
- ownerId: import("zod").ZodNumber;
1850
- name: import("zod").ZodString;
1851
- personalTeam: import("zod").ZodBoolean;
1852
- createdAt: import("zod").ZodNumber;
1853
- updatedAt: import("zod").ZodNumber;
1854
- }, import("zod/v4/core").$loose>;
1855
- }, import("zod/v4/core").$loose>;
1856
- };
1857
- readonly renameTeam: {
1858
- method: "PATCH";
1859
- path: (teamId: string) => string;
1860
- } & {
1861
- readonly body: import("zod").ZodObject<{
1862
- name: import("zod").ZodString;
1863
- }, import("zod/v4/core").$strip>;
1864
- readonly response: import("zod").ZodObject<{
1865
- ok: import("zod").ZodLiteral<true>;
1866
- name: import("zod").ZodString;
1867
- }, import("zod/v4/core").$loose>;
1868
- };
1869
- readonly deleteTeam: {
1870
- method: "DELETE";
1871
- path: (teamId: string) => string;
1872
- } & {
1873
- readonly response: import("zod").ZodObject<{
1874
- ok: import("zod").ZodLiteral<true>;
1875
- }, import("zod/v4/core").$loose>;
1876
- };
1877
- readonly listTeamMembers: {
1878
- method: "GET";
1879
- path: (teamId: string) => string;
1880
- } & {
1881
- readonly response: import("zod").ZodObject<{
1882
- members: import("zod").ZodArray<import("zod").ZodObject<{
1883
- userId: import("zod").ZodNumber;
1884
- publicId: import("zod").ZodString;
1885
- name: import("zod").ZodNullable<import("zod").ZodString>;
1886
- email: import("zod").ZodEmail;
1887
- picture: import("zod").ZodNullable<import("zod").ZodString>;
1888
- role: import("zod").ZodEnum<{
1889
- admin: "admin";
1890
- editor: "editor";
1891
- viewer: "viewer";
1892
- }>;
1893
- joinedAt: import("zod").ZodNumber;
1894
- }, import("zod/v4/core").$loose>>;
1895
- }, import("zod/v4/core").$loose>;
1896
- };
1897
- readonly addTeamMember: {
1898
- method: "POST";
1899
- path: (teamId: string) => string;
1900
- } & {
1901
- readonly body: import("zod").ZodObject<{
1902
- userId: import("zod").ZodString;
1903
- role: import("zod").ZodEnum<{
1904
- admin: "admin";
1905
- editor: "editor";
1906
- viewer: "viewer";
1907
- }>;
1908
- }, import("zod/v4/core").$strip>;
1909
- readonly response: import("zod").ZodObject<{
1910
- ok: import("zod").ZodLiteral<true>;
1911
- role: import("zod").ZodEnum<{
1912
- admin: "admin";
1913
- editor: "editor";
1914
- viewer: "viewer";
1915
- }>;
1916
- alreadyExisted: import("zod").ZodOptional<import("zod").ZodBoolean>;
1917
- }, import("zod/v4/core").$loose>;
1918
- };
1919
- readonly updateTeamMemberRole: {
1920
- method: "PATCH";
1921
- path: (teamId: string, userId: string) => string;
1922
- } & {
1923
- readonly body: import("zod").ZodObject<{
1924
- role: import("zod").ZodEnum<{
1925
- admin: "admin";
1926
- editor: "editor";
1927
- viewer: "viewer";
1928
- }>;
1929
- }, import("zod/v4/core").$strip>;
1930
- readonly response: import("zod").ZodObject<{
1931
- ok: import("zod").ZodLiteral<true>;
1932
- role: import("zod").ZodEnum<{
1933
- admin: "admin";
1934
- editor: "editor";
1935
- viewer: "viewer";
1936
- }>;
1937
- }, import("zod/v4/core").$loose>;
1938
- };
1939
- readonly removeTeamMember: {
1940
- method: "DELETE";
1941
- path: (teamId: string, userId: string) => string;
1942
- } & {
1943
- readonly response: import("zod").ZodObject<{
1944
- ok: import("zod").ZodLiteral<true>;
1945
- }, import("zod/v4/core").$loose>;
1946
- };
1947
- readonly bindSiteToTeam: {
1948
- method: "PATCH";
1949
- path: (userId: string, siteId: string) => string;
1950
- } & {
1951
- readonly body: import("zod").ZodObject<{
1952
- teamId: import("zod").ZodNullable<import("zod").ZodString>;
1953
- }, import("zod/v4/core").$strip>;
1954
- readonly response: import("zod").ZodObject<{
1955
- ok: import("zod").ZodLiteral<true>;
1956
- teamId: import("zod").ZodNullable<import("zod").ZodString>;
1957
- }, import("zod/v4/core").$loose>;
1958
- };
1959
- readonly getTeamCatalog: {
1960
- method: "GET";
1961
- path: (teamId: string) => string;
1962
- } & {
1963
- readonly response: import("zod").ZodObject<{
1964
- teamId: import("zod").ZodString;
1965
- catalogUri: import("zod").ZodNullable<import("zod").ZodString>;
1966
- warehouse: import("zod").ZodNullable<import("zod").ZodString>;
1967
- bucket: import("zod").ZodNullable<import("zod").ZodString>;
1968
- namespace: import("zod").ZodNullable<import("zod").ZodString>;
1969
- provisioningState: import("zod").ZodNullable<import("zod").ZodString>;
1970
- keyEncoding: import("zod").ZodNullable<import("zod").ZodString>;
1971
- catalogTablesReady: import("zod").ZodBoolean;
1972
- readsEnabled: import("zod").ZodBoolean;
1973
- }, import("zod/v4/core").$loose>;
1974
- };
1975
- readonly bindTeamCatalog: {
1976
- method: "POST";
1977
- path: (teamId: string) => string;
1978
- } & {
1979
- readonly body: import("zod").ZodObject<{
1980
- catalogUri: import("zod").ZodString;
1981
- warehouse: import("zod").ZodString;
1982
- namespace: import("zod").ZodOptional<import("zod").ZodString>;
1983
- bucket: import("zod").ZodOptional<import("zod").ZodString>;
1984
- }, import("zod/v4/core").$strip>;
1985
- readonly response: import("zod").ZodObject<{
1986
- teamId: import("zod").ZodString;
1987
- status: import("zod").ZodLiteral<"ready">;
1988
- catalogUri: import("zod").ZodString;
1989
- warehouse: import("zod").ZodString;
1990
- bucket: import("zod").ZodString;
1991
- namespace: import("zod").ZodString;
1992
- }, import("zod/v4/core").$loose>;
1993
- };
1994
1567
  };
1995
1568
  export { analyticsEndpoints, partnerEndpoints };
@@ -31,7 +31,6 @@ const partnerEndpoints = {
31
31
  updateUserTokens: defineEndpoint("PATCH", partnerRoutes.users.tokens, partnerControlEndpointSchemas.updateUserTokens),
32
32
  getUserStatus: defineEndpoint("GET", partnerRoutes.users.status, partnerControlEndpointSchemas.getUserStatus),
33
33
  getUserLifecycle: defineEndpoint("GET", partnerRoutes.partner.users.lifecycle, partnerControlEndpointSchemas.getUserLifecycle),
34
- getUserSiteIntIdCrosswalk: defineEndpoint("GET", partnerRoutes.partner.users.siteIntIdCrosswalk, partnerControlEndpointSchemas.getUserSiteIntIdCrosswalk),
35
34
  getSyncStatus: defineEndpoint("GET", partnerRoutes.sites.syncStatus, noSchema),
36
35
  getUserSites: defineEndpoint("GET", partnerRoutes.users.sites, partnerControlEndpointSchemas.getUserSites),
37
36
  getAvailableSites: defineEndpoint("GET", partnerRoutes.users.availableSites, partnerControlEndpointSchemas.getAvailableSites),
@@ -39,7 +38,6 @@ const partnerEndpoints = {
39
38
  bulkRegisterSites: defineEndpoint("POST", partnerRoutes.partner.sites.bulkRegister, partnerControlEndpointSchemas.bulkRegisterSites),
40
39
  requestSiteVerificationToken: defineEndpoint("POST", partnerRoutes.partner.sites.verificationToken, partnerControlEndpointSchemas.requestSiteVerificationToken),
41
40
  addAndVerifySite: defineEndpoint("POST", partnerRoutes.partner.sites.addAndVerify, partnerControlEndpointSchemas.addAndVerifySite),
42
- deleteUser: defineEndpoint("DELETE", partnerRoutes.partner.users.byId, partnerControlEndpointSchemas.deleteUser),
43
41
  deleteSite: defineEndpoint("DELETE", partnerRoutes.sites.byId, noSchema),
44
42
  getAnalysisSources: defineEndpoint("GET", partnerRoutes.sites.analysisSources, partnerControlEndpointSchemas.getAnalysisSources),
45
43
  getData: defineEndpoint("GET", partnerRoutes.sites.data, partnerControlEndpointSchemas.getData),
@@ -47,25 +45,7 @@ const partnerEndpoints = {
47
45
  getIndexing: defineEndpoint("GET", partnerRoutes.sites.indexing, partnerControlEndpointSchemas.getIndexing),
48
46
  getIndexingUrls: defineEndpoint("GET", partnerRoutes.sites.indexingUrls, partnerControlEndpointSchemas.getIndexingUrls),
49
47
  getIndexingDiagnostics: defineEndpoint("GET", partnerRoutes.sites.indexingDiagnostics, partnerControlEndpointSchemas.getIndexingDiagnostics),
50
- requestIndexingInspect: defineEndpoint("POST", partnerRoutes.sites.indexingInspect, partnerControlEndpointSchemas.requestIndexingInspect),
51
48
  getUserSettings: defineEndpoint("GET", partnerRoutes.settings.user, partnerControlEndpointSchemas.getUserSettings),
52
- patchUserSettings: defineEndpoint("PATCH", partnerRoutes.settings.user, partnerControlEndpointSchemas.patchUserSettings),
53
- recoverPermission: defineEndpoint("POST", partnerRoutes.sites.recoverPermission, partnerControlEndpointSchemas.recoverPermission),
54
- getTopAssociation: defineEndpoint("GET", partnerRoutes.sites.topAssociation, partnerControlEndpointSchemas.getTopAssociation),
55
- getKeywordSparklines: defineEndpoint("POST", partnerRoutes.sites.keywordSparklines, partnerControlEndpointSchemas.getKeywordSparklines),
56
- getQueryTrend: defineEndpoint("GET", partnerRoutes.sites.queryTrend, partnerControlEndpointSchemas.getQueryTrend),
57
- getPageTrend: defineEndpoint("GET", partnerRoutes.sites.pageTrend, partnerControlEndpointSchemas.getPageTrend),
58
- getCanonicalMismatches: defineEndpoint("GET", partnerRoutes.sites.canonicalMismatches, partnerControlEndpointSchemas.getCanonicalMismatches),
59
- getIndexPercent: defineEndpoint("GET", partnerRoutes.sites.indexPercent, partnerControlEndpointSchemas.getIndexPercent),
60
- createTeam: defineEndpoint("POST", partnerRoutes.teams.create, partnerControlEndpointSchemas.createTeam),
61
- renameTeam: defineEndpoint("PATCH", partnerRoutes.teams.byId, partnerControlEndpointSchemas.renameTeam),
62
- deleteTeam: defineEndpoint("DELETE", partnerRoutes.teams.byId, partnerControlEndpointSchemas.deleteTeam),
63
- listTeamMembers: defineEndpoint("GET", partnerRoutes.teams.members, partnerControlEndpointSchemas.listTeamMembers),
64
- addTeamMember: defineEndpoint("POST", partnerRoutes.teams.members, partnerControlEndpointSchemas.addTeamMember),
65
- updateTeamMemberRole: defineEndpoint("PATCH", partnerRoutes.teams.member, partnerControlEndpointSchemas.updateTeamMemberRole),
66
- removeTeamMember: defineEndpoint("DELETE", partnerRoutes.teams.member, partnerControlEndpointSchemas.removeTeamMember),
67
- bindSiteToTeam: defineEndpoint("PATCH", partnerRoutes.partner.users.siteTeam, partnerControlEndpointSchemas.bindSiteToTeam),
68
- getTeamCatalog: defineEndpoint("GET", partnerRoutes.teams.catalog, partnerControlEndpointSchemas.getTeamCatalog),
69
- bindTeamCatalog: defineEndpoint("POST", partnerRoutes.teams.catalog, partnerControlEndpointSchemas.bindTeamCatalog)
49
+ patchUserSettings: defineEndpoint("PATCH", partnerRoutes.settings.user, partnerControlEndpointSchemas.patchUserSettings)
70
50
  };
71
51
  export { analyticsEndpoints, partnerEndpoints };
package/dist/routes.d.mts CHANGED
@@ -1,10 +1,7 @@
1
1
  declare const partnerRoutes: {
2
2
  readonly partner: {
3
3
  readonly users: {
4
- readonly byId: (userId: string) => string;
5
4
  readonly lifecycle: (userId: string) => string;
6
- readonly siteTeam: (userId: string, siteId: string) => string;
7
- readonly siteIntIdCrosswalk: (userId: string) => string;
8
5
  };
9
6
  readonly sites: {
10
7
  readonly register: "/partner/sites/register";
@@ -20,7 +17,6 @@ declare const partnerRoutes: {
20
17
  readonly lifecycle: (userId: string) => string;
21
18
  readonly sites: (userId: string) => string;
22
19
  readonly availableSites: (userId: string) => string;
23
- readonly siteTeam: (userId: string, siteId: string) => string;
24
20
  };
25
21
  readonly sites: {
26
22
  readonly register: "/sites/register";
@@ -33,25 +29,10 @@ declare const partnerRoutes: {
33
29
  readonly indexing: (siteId: string) => string;
34
30
  readonly indexingUrls: (siteId: string) => string;
35
31
  readonly indexingDiagnostics: (siteId: string) => string;
36
- readonly indexingInspect: (siteId: string) => string;
37
- readonly recoverPermission: (siteId: string) => string;
38
- readonly canonicalMismatches: (siteId: string) => string;
39
- readonly topAssociation: (siteId: string) => string;
40
- readonly keywordSparklines: (siteId: string) => string;
41
- readonly queryTrend: (siteId: string) => string;
42
- readonly pageTrend: (siteId: string) => string;
43
- readonly indexPercent: (siteId: string) => string;
44
32
  };
45
33
  readonly settings: {
46
34
  readonly user: "/user/settings";
47
35
  };
48
- readonly teams: {
49
- readonly create: "/partner/teams";
50
- readonly byId: (teamId: string) => string;
51
- readonly catalog: (teamId: string) => string;
52
- readonly members: (teamId: string) => string;
53
- readonly member: (teamId: string, userId: string) => string;
54
- };
55
36
  };
56
37
  declare const analyticsRoutes: {
57
38
  readonly whoami: "/api/__gsc/whoami";
package/dist/routes.mjs CHANGED
@@ -1,11 +1,6 @@
1
1
  const partnerRoutes = {
2
2
  partner: {
3
- users: {
4
- byId: (userId) => `/partner/users/${encodeURIComponent(userId)}`,
5
- lifecycle: (userId) => `/partner/users/${encodeURIComponent(userId)}/lifecycle`,
6
- siteTeam: (userId, siteId) => `/partner/users/${encodeURIComponent(userId)}/sites/${encodeURIComponent(siteId)}`,
7
- siteIntIdCrosswalk: (userId) => `/partner/users/${encodeURIComponent(userId)}/sites/crosswalk`
8
- },
3
+ users: { lifecycle: (userId) => `/partner/users/${encodeURIComponent(userId)}/lifecycle` },
9
4
  sites: {
10
5
  register: "/partner/sites/register",
11
6
  bulkRegister: "/partner/sites/bulk-register",
@@ -19,8 +14,7 @@ const partnerRoutes = {
19
14
  status: (userId) => `/users/${encodeURIComponent(userId)}/status`,
20
15
  lifecycle: (userId) => `/users/${encodeURIComponent(userId)}/lifecycle`,
21
16
  sites: (userId) => `/users/${encodeURIComponent(userId)}/sites`,
22
- availableSites: (userId) => `/users/${encodeURIComponent(userId)}/available-sites`,
23
- siteTeam: (userId, siteId) => `/partner/users/${encodeURIComponent(userId)}/sites/${encodeURIComponent(siteId)}`
17
+ availableSites: (userId) => `/users/${encodeURIComponent(userId)}/available-sites`
24
18
  },
25
19
  sites: {
26
20
  register: "/sites/register",
@@ -32,24 +26,9 @@ const partnerRoutes = {
32
26
  dataDetail: (siteId) => `/sites/${encodeURIComponent(siteId)}/data/detail`,
33
27
  indexing: (siteId) => `/sites/${encodeURIComponent(siteId)}/indexing`,
34
28
  indexingUrls: (siteId) => `/sites/${encodeURIComponent(siteId)}/indexing/urls`,
35
- indexingDiagnostics: (siteId) => `/sites/${encodeURIComponent(siteId)}/indexing/diagnostics`,
36
- indexingInspect: (siteId) => `/sites/${encodeURIComponent(siteId)}/indexing/inspect`,
37
- recoverPermission: (siteId) => `/sites/${encodeURIComponent(siteId)}/recover-permission`,
38
- canonicalMismatches: (siteId) => `/sites/${encodeURIComponent(siteId)}/canonical-mismatches`,
39
- topAssociation: (siteId) => `/sites/${encodeURIComponent(siteId)}/data/top-association`,
40
- keywordSparklines: (siteId) => `/sites/${encodeURIComponent(siteId)}/data/keyword-sparklines`,
41
- queryTrend: (siteId) => `/sites/${encodeURIComponent(siteId)}/data/query-trend`,
42
- pageTrend: (siteId) => `/sites/${encodeURIComponent(siteId)}/data/page-trend`,
43
- indexPercent: (siteId) => `/sites/${encodeURIComponent(siteId)}/index-percent`
29
+ indexingDiagnostics: (siteId) => `/sites/${encodeURIComponent(siteId)}/indexing/diagnostics`
44
30
  },
45
- settings: { user: "/user/settings" },
46
- teams: {
47
- create: "/partner/teams",
48
- byId: (teamId) => `/partner/teams/${encodeURIComponent(teamId)}`,
49
- catalog: (teamId) => `/partner/teams/${encodeURIComponent(teamId)}/catalog`,
50
- members: (teamId) => `/partner/teams/${encodeURIComponent(teamId)}/members`,
51
- member: (teamId, userId) => `/partner/teams/${encodeURIComponent(teamId)}/members/${encodeURIComponent(userId)}`
52
- }
31
+ settings: { user: "/user/settings" }
53
32
  };
54
33
  const analyticsRoutes = {
55
34
  whoami: "/api/__gsc/whoami",
@@ -15,12 +15,12 @@ declare const GSCDUMP_V1_ANALYTICS_DIMENSIONS: readonly ["page", "query", "query
15
15
  declare function createGscdumpV1BrowserSchemas(realtimeSchemas?: RealtimeV1Schemas): {
16
16
  analyticsRowsRequest: z.ZodObject<{
17
17
  dimensions: z.ZodArray<z.ZodEnum<{
18
+ date: "date";
18
19
  page: "page";
19
20
  query: "query";
20
21
  queryCanonical: "queryCanonical";
21
22
  country: "country";
22
23
  device: "device";
23
- date: "date";
24
24
  searchAppearance: "searchAppearance";
25
25
  hour: "hour";
26
26
  }>>;
@@ -736,12 +736,12 @@ declare function createGscdumpV1Protocol(): {
736
736
  googleNews: "googleNews";
737
737
  }>>;
738
738
  dimensions: z.ZodArray<z.ZodEnum<{
739
+ date: "date";
739
740
  page: "page";
740
741
  query: "query";
741
742
  queryCanonical: "queryCanonical";
742
743
  country: "country";
743
744
  device: "device";
744
- date: "date";
745
745
  searchAppearance: "searchAppearance";
746
746
  hour: "hour";
747
747
  }>>;
@@ -756,12 +756,12 @@ declare function createGscdumpV1Protocol(): {
756
756
  googleNews: "googleNews";
757
757
  }>>;
758
758
  dimensions: z.ZodArray<z.ZodEnum<{
759
+ date: "date";
759
760
  page: "page";
760
761
  query: "query";
761
762
  queryCanonical: "queryCanonical";
762
763
  country: "country";
763
764
  device: "device";
764
- date: "date";
765
765
  searchAppearance: "searchAppearance";
766
766
  hour: "hour";
767
767
  }>>;
@@ -893,12 +893,12 @@ declare function createGscdumpV1Protocol(): {
893
893
  googleNews: "googleNews";
894
894
  }>>;
895
895
  dimensions: z.ZodArray<z.ZodEnum<{
896
+ date: "date";
896
897
  page: "page";
897
898
  query: "query";
898
899
  queryCanonical: "queryCanonical";
899
900
  country: "country";
900
901
  device: "device";
901
- date: "date";
902
902
  searchAppearance: "searchAppearance";
903
903
  hour: "hour";
904
904
  }>>;
@@ -913,12 +913,12 @@ declare function createGscdumpV1Protocol(): {
913
913
  googleNews: "googleNews";
914
914
  }>>;
915
915
  dimensions: z.ZodArray<z.ZodEnum<{
916
+ date: "date";
916
917
  page: "page";
917
918
  query: "query";
918
919
  queryCanonical: "queryCanonical";
919
920
  country: "country";
920
921
  device: "device";
921
- date: "date";
922
922
  searchAppearance: "searchAppearance";
923
923
  hour: "hour";
924
924
  }>>;
@@ -1021,12 +1021,12 @@ declare function createGscdumpV1Protocol(): {
1021
1021
  }, z.core.$strip>>;
1022
1022
  analyticsRowsRequest: z.ZodObject<{
1023
1023
  dimensions: z.ZodArray<z.ZodEnum<{
1024
+ date: "date";
1024
1025
  page: "page";
1025
1026
  query: "query";
1026
1027
  queryCanonical: "queryCanonical";
1027
1028
  country: "country";
1028
1029
  device: "device";
1029
- date: "date";
1030
1030
  searchAppearance: "searchAppearance";
1031
1031
  hour: "hour";
1032
1032
  }>>;
@@ -11882,12 +11882,12 @@ declare function createGscdumpV1Protocol(): {
11882
11882
  }, z.core.$strict>;
11883
11883
  readonly body: z.ZodObject<{
11884
11884
  dimensions: z.ZodArray<z.ZodEnum<{
11885
+ date: "date";
11885
11886
  page: "page";
11886
11887
  query: "query";
11887
11888
  queryCanonical: "queryCanonical";
11888
11889
  country: "country";
11889
11890
  device: "device";
11890
- date: "date";
11891
11891
  searchAppearance: "searchAppearance";
11892
11892
  hour: "hour";
11893
11893
  }>>;
@@ -12085,12 +12085,12 @@ declare function createGscdumpV1Protocol(): {
12085
12085
  googleNews: "googleNews";
12086
12086
  }>>;
12087
12087
  dimensions: z.ZodArray<z.ZodEnum<{
12088
+ date: "date";
12088
12089
  page: "page";
12089
12090
  query: "query";
12090
12091
  queryCanonical: "queryCanonical";
12091
12092
  country: "country";
12092
12093
  device: "device";
12093
- date: "date";
12094
12094
  searchAppearance: "searchAppearance";
12095
12095
  hour: "hour";
12096
12096
  }>>;
@@ -12105,12 +12105,12 @@ declare function createGscdumpV1Protocol(): {
12105
12105
  googleNews: "googleNews";
12106
12106
  }>>;
12107
12107
  dimensions: z.ZodArray<z.ZodEnum<{
12108
+ date: "date";
12108
12109
  page: "page";
12109
12110
  query: "query";
12110
12111
  queryCanonical: "queryCanonical";
12111
12112
  country: "country";
12112
12113
  device: "device";
12113
- date: "date";
12114
12114
  searchAppearance: "searchAppearance";
12115
12115
  hour: "hour";
12116
12116
  }>>;
@@ -12346,12 +12346,12 @@ declare function createGscdumpV1Protocol(): {
12346
12346
  googleNews: "googleNews";
12347
12347
  }>>;
12348
12348
  dimensions: z.ZodArray<z.ZodEnum<{
12349
+ date: "date";
12349
12350
  page: "page";
12350
12351
  query: "query";
12351
12352
  queryCanonical: "queryCanonical";
12352
12353
  country: "country";
12353
12354
  device: "device";
12354
- date: "date";
12355
12355
  searchAppearance: "searchAppearance";
12356
12356
  hour: "hour";
12357
12357
  }>>;
@@ -12366,12 +12366,12 @@ declare function createGscdumpV1Protocol(): {
12366
12366
  googleNews: "googleNews";
12367
12367
  }>>;
12368
12368
  dimensions: z.ZodArray<z.ZodEnum<{
12369
+ date: "date";
12369
12370
  page: "page";
12370
12371
  query: "query";
12371
12372
  queryCanonical: "queryCanonical";
12372
12373
  country: "country";
12373
12374
  device: "device";
12374
- date: "date";
12375
12375
  searchAppearance: "searchAppearance";
12376
12376
  hour: "hour";
12377
12377
  }>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gscdump/contracts",
3
3
  "type": "module",
4
- "version": "2.0.1",
4
+ "version": "2.0.3",
5
5
  "description": "Shared gscdump.com API, webhook, realtime, and lifecycle contracts.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",