@codeqr/ts 0.9.0 → 0.19.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.
Files changed (141) hide show
  1. package/CHANGELOG.md +231 -0
  2. package/LICENSE +1 -1
  3. package/README.md +12 -1
  4. package/client.d.mts +6 -5
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +6 -5
  7. package/client.d.ts.map +1 -1
  8. package/client.js +23 -9
  9. package/client.js.map +1 -1
  10. package/client.mjs +23 -9
  11. package/client.mjs.map +1 -1
  12. package/internal/parse.d.mts.map +1 -1
  13. package/internal/parse.d.ts.map +1 -1
  14. package/internal/parse.js +5 -0
  15. package/internal/parse.js.map +1 -1
  16. package/internal/parse.mjs +5 -0
  17. package/internal/parse.mjs.map +1 -1
  18. package/internal/utils/query.d.mts +2 -0
  19. package/internal/utils/query.d.mts.map +1 -0
  20. package/internal/utils/query.d.ts +2 -0
  21. package/internal/utils/query.d.ts.map +1 -0
  22. package/internal/utils/query.js +10 -0
  23. package/internal/utils/query.js.map +1 -0
  24. package/internal/utils/query.mjs +6 -0
  25. package/internal/utils/query.mjs.map +1 -0
  26. package/internal/utils.d.mts +1 -0
  27. package/internal/utils.d.ts +1 -0
  28. package/internal/utils.js +1 -0
  29. package/internal/utils.js.map +1 -1
  30. package/internal/utils.mjs +1 -0
  31. package/package.json +12 -1
  32. package/resources/analytics.d.mts +1 -1
  33. package/resources/analytics.d.ts +1 -1
  34. package/resources/domains.d.mts +2 -2
  35. package/resources/domains.d.mts.map +1 -1
  36. package/resources/domains.d.ts +2 -2
  37. package/resources/domains.d.ts.map +1 -1
  38. package/resources/domains.js +2 -2
  39. package/resources/domains.js.map +1 -1
  40. package/resources/domains.mjs +2 -2
  41. package/resources/domains.mjs.map +1 -1
  42. package/resources/events.d.mts +8 -138
  43. package/resources/events.d.mts.map +1 -1
  44. package/resources/events.d.ts +8 -138
  45. package/resources/events.d.ts.map +1 -1
  46. package/resources/index.d.mts +2 -2
  47. package/resources/index.d.mts.map +1 -1
  48. package/resources/index.d.ts +2 -2
  49. package/resources/index.d.ts.map +1 -1
  50. package/resources/index.js.map +1 -1
  51. package/resources/index.mjs.map +1 -1
  52. package/resources/links/bulk.d.mts +6 -26
  53. package/resources/links/bulk.d.mts.map +1 -1
  54. package/resources/links/bulk.d.ts +6 -26
  55. package/resources/links/bulk.d.ts.map +1 -1
  56. package/resources/links/bulk.js +0 -14
  57. package/resources/links/bulk.js.map +1 -1
  58. package/resources/links/bulk.mjs +0 -14
  59. package/resources/links/bulk.mjs.map +1 -1
  60. package/resources/links/index.d.mts +2 -2
  61. package/resources/links/index.d.mts.map +1 -1
  62. package/resources/links/index.d.ts +2 -2
  63. package/resources/links/index.d.ts.map +1 -1
  64. package/resources/links/index.js.map +1 -1
  65. package/resources/links/index.mjs +1 -1
  66. package/resources/links/index.mjs.map +1 -1
  67. package/resources/links/links.d.mts +27 -839
  68. package/resources/links/links.d.mts.map +1 -1
  69. package/resources/links/links.d.ts +27 -839
  70. package/resources/links/links.d.ts.map +1 -1
  71. package/resources/links/links.js +0 -26
  72. package/resources/links/links.js.map +1 -1
  73. package/resources/links/links.mjs +0 -26
  74. package/resources/links/links.mjs.map +1 -1
  75. package/resources/projects.d.mts +0 -4
  76. package/resources/projects.d.mts.map +1 -1
  77. package/resources/projects.d.ts +0 -4
  78. package/resources/projects.d.ts.map +1 -1
  79. package/resources/projects.js +0 -7
  80. package/resources/projects.js.map +1 -1
  81. package/resources/projects.mjs +0 -7
  82. package/resources/projects.mjs.map +1 -1
  83. package/resources/qrcodes/bulk.d.mts +31 -34
  84. package/resources/qrcodes/bulk.d.mts.map +1 -1
  85. package/resources/qrcodes/bulk.d.ts +31 -34
  86. package/resources/qrcodes/bulk.d.ts.map +1 -1
  87. package/resources/qrcodes/bulk.js +0 -14
  88. package/resources/qrcodes/bulk.js.map +1 -1
  89. package/resources/qrcodes/bulk.mjs +0 -14
  90. package/resources/qrcodes/bulk.mjs.map +1 -1
  91. package/resources/qrcodes/index.d.mts +2 -2
  92. package/resources/qrcodes/index.d.mts.map +1 -1
  93. package/resources/qrcodes/index.d.ts +2 -2
  94. package/resources/qrcodes/index.d.ts.map +1 -1
  95. package/resources/qrcodes/index.js.map +1 -1
  96. package/resources/qrcodes/index.mjs +1 -1
  97. package/resources/qrcodes/index.mjs.map +1 -1
  98. package/resources/qrcodes/qrcodes.d.mts +67 -696
  99. package/resources/qrcodes/qrcodes.d.mts.map +1 -1
  100. package/resources/qrcodes/qrcodes.d.ts +67 -696
  101. package/resources/qrcodes/qrcodes.d.ts.map +1 -1
  102. package/resources/qrcodes/qrcodes.js +1 -31
  103. package/resources/qrcodes/qrcodes.js.map +1 -1
  104. package/resources/qrcodes/qrcodes.mjs +1 -31
  105. package/resources/qrcodes/qrcodes.mjs.map +1 -1
  106. package/resources/tags.d.mts +9 -5
  107. package/resources/tags.d.mts.map +1 -1
  108. package/resources/tags.d.ts +9 -5
  109. package/resources/tags.d.ts.map +1 -1
  110. package/resources/tags.js +1 -1
  111. package/resources/tags.js.map +1 -1
  112. package/resources/tags.mjs +1 -1
  113. package/resources/tags.mjs.map +1 -1
  114. package/resources/track.d.mts +2 -2
  115. package/resources/track.d.ts +2 -2
  116. package/src/client.ts +28 -24
  117. package/src/internal/parse.ts +6 -0
  118. package/src/internal/utils/query.ts +7 -0
  119. package/src/internal/utils.ts +1 -0
  120. package/src/resources/analytics.ts +1 -1
  121. package/src/resources/domains.ts +3 -3
  122. package/src/resources/events.ts +14 -144
  123. package/src/resources/index.ts +0 -6
  124. package/src/resources/links/bulk.ts +8 -37
  125. package/src/resources/links/index.ts +1 -10
  126. package/src/resources/links/links.ts +29 -1417
  127. package/src/resources/projects.ts +0 -8
  128. package/src/resources/qrcodes/bulk.ts +36 -46
  129. package/src/resources/qrcodes/index.ts +1 -10
  130. package/src/resources/qrcodes/qrcodes.ts +73 -1045
  131. package/src/resources/tags.ts +10 -5
  132. package/src/resources/track.ts +2 -2
  133. package/src/version.ts +1 -1
  134. package/version.d.mts +1 -1
  135. package/version.d.mts.map +1 -1
  136. package/version.d.ts +1 -1
  137. package/version.d.ts.map +1 -1
  138. package/version.js +1 -1
  139. package/version.js.map +1 -1
  140. package/version.mjs +1 -1
  141. package/version.mjs.map +1 -1
@@ -1,7 +1,7 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
2
  import * as TagsAPI from "../tags.mjs";
3
3
  import * as BulkAPI from "./bulk.mjs";
4
- import { Bulk, BulkCreateParams, BulkCreateResponse, BulkDeleteParams, BulkDeleteResponse } from "./bulk.mjs";
4
+ import { Bulk, BulkCreateParams, BulkCreateResponse } from "./bulk.mjs";
5
5
  import { APIPromise } from "../../core/api-promise.mjs";
6
6
  import { RequestOptions } from "../../internal/request-options.mjs";
7
7
  export declare class Links extends APIResource {
@@ -45,15 +45,6 @@ export declare class Links extends APIResource {
45
45
  * ```
46
46
  */
47
47
  delete(linkID: string, options?: RequestOptions): APIPromise<LinkDeleteResponse>;
48
- /**
49
- * Retrieve the number of links for the authenticated workspace.
50
- *
51
- * @example
52
- * ```ts
53
- * const response = await client.links.count();
54
- * ```
55
- */
56
- count(query?: LinkCountParams | null | undefined, options?: RequestOptions): APIPromise<LinkCountResponse>;
57
48
  /**
58
49
  * Retrieve the info for a link.
59
50
  *
@@ -67,19 +58,6 @@ export declare class Links extends APIResource {
67
58
  * ```
68
59
  */
69
60
  retrieveInfo(query: LinkRetrieveInfoParams, options?: RequestOptions): APIPromise<Link>;
70
- /**
71
- * Upsert a link for the authenticated workspace by its URL. If a link with the
72
- * same URL already exists, return it (or update it if there are any changes).
73
- * Otherwise, a new link will be created.
74
- *
75
- * @example
76
- * ```ts
77
- * const link = await client.links.upsert({
78
- * url: 'https://google.com',
79
- * });
80
- * ```
81
- */
82
- upsert(body: LinkUpsertParams, options?: RequestOptions): APIPromise<Link>;
83
61
  }
84
62
  export interface Link {
85
63
  /**
@@ -294,10 +272,6 @@ export interface LinkDeleteResponse {
294
272
  */
295
273
  id: string;
296
274
  }
297
- /**
298
- * The number of links matching the query.
299
- */
300
- export type LinkCountResponse = number;
301
275
  export interface LinkCreateParams {
302
276
  /**
303
277
  * The destination URL of the short link.
@@ -432,6 +406,10 @@ export interface LinkCreateParams {
432
406
  * Whether to track conversions for the short link.
433
407
  */
434
408
  trackConversion?: boolean;
409
+ /**
410
+ * Whether this link should be used as a reusable template.
411
+ */
412
+ useAsTemplate?: boolean;
435
413
  /**
436
414
  * The video of the short link.
437
415
  */
@@ -834,6 +812,10 @@ export interface LinkUpdateParams {
834
812
  * The destination URL of the short link.
835
813
  */
836
814
  url?: string;
815
+ /**
816
+ * Whether this link should be used as a reusable template.
817
+ */
818
+ useAsTemplate?: boolean;
837
819
  /**
838
820
  * The video of the short link.
839
821
  */
@@ -1244,6 +1226,10 @@ export interface LinkListParams {
1244
1226
  * if not provided.
1245
1227
  */
1246
1228
  trackConversion?: boolean;
1229
+ /**
1230
+ * Filter links marked as templates.
1231
+ */
1232
+ useAsTemplate?: boolean;
1247
1233
  /**
1248
1234
  * The ID of the user to filter by.
1249
1235
  */
@@ -1511,832 +1497,34 @@ export declare namespace LinkListParams {
1511
1497
  ZW?: string;
1512
1498
  }
1513
1499
  }
1514
- export interface LinkCountParams {
1515
- /**
1516
- * The Android device to filter by.
1517
- */
1518
- android?: string;
1519
- /**
1520
- * Maximum number of clicks
1521
- */
1522
- clicksMax?: number;
1523
- /**
1524
- * Minimum number of clicks
1525
- */
1526
- clicksMin?: number;
1527
- /**
1528
- * The comments to filter by.
1529
- */
1530
- comments?: string;
1531
- /**
1532
- * Created after date (ISO string)
1533
- */
1534
- createdAfter?: string;
1535
- /**
1536
- * Created before date (ISO string)
1537
- */
1538
- createdBefore?: string;
1539
- /**
1540
- * The domain to filter the links. For example, `ac.me`. If not provided, all links
1541
- * of the project will be returned.
1542
- */
1543
- domain?: string;
1544
- /**
1545
- * Expires after date (ISO string)
1546
- */
1547
- expiresAfter?: string;
1548
- /**
1549
- * The date and time the short link will expire in ISO-8601 format. Must be in the
1550
- * future.
1551
- */
1552
- expiresAt?: string | null;
1553
- /**
1554
- * Expires before date (ISO string)
1555
- */
1556
- expiresBefore?: string;
1557
- /**
1558
- * The folder ID to filter the links by.
1559
- */
1560
- folderId?: string;
1561
- /**
1562
- * Geographic segmentation information for the short link in JSON format
1563
- * `{[COUNTRY]: https://example.com }`.
1564
- */
1565
- geo?: LinkCountParams.Geo | null;
1566
- /**
1567
- * The field to group the links by.
1568
- */
1569
- groupBy?: 'domain' | 'tagId' | 'userId' | 'folderId';
1570
- /**
1571
- * Filter links that have comments (any comments)
1572
- */
1573
- hasComments?: boolean;
1574
- /**
1575
- * Filter links that have custom social media cards
1576
- */
1577
- hasCustomSocial?: boolean;
1578
- /**
1579
- * Filter links that have device targeting
1580
- */
1581
- hasDevice?: boolean;
1582
- /**
1583
- * Filter links that have expiration date (any expiration)
1584
- */
1585
- hasExpiration?: boolean;
1586
- /**
1587
- * Filter links that have geo-targeting
1588
- */
1589
- hasGeo?: boolean;
1590
- /**
1591
- * Filter links that have password protection (any password)
1592
- */
1593
- hasPassword?: boolean;
1594
- /**
1595
- * Filter links that have tags (any tags)
1596
- */
1597
- hasTags?: boolean;
1598
- /**
1599
- * Filter links that have UTM parameters
1600
- */
1601
- hasUTM?: boolean;
1500
+ export interface LinkRetrieveInfoParams {
1602
1501
  /**
1603
- * The iOS device to filter by.
1502
+ * The domain of the link to be retrieved. For example, for `codeqr.link/github`,
1503
+ * the domain is `codeqr.link`.
1604
1504
  */
1605
- ios?: string;
1505
+ domain: string;
1606
1506
  /**
1607
- * The password to filter by.
1507
+ * The key of the link to be retrieved. For example, for `codeqr.link/github`, the
1508
+ * key is `github`.
1608
1509
  */
1609
- password?: string;
1510
+ key: string;
1610
1511
  /**
1611
1512
  * The slug of the project to which the link belongs. For example, for
1612
1513
  * `app.codeqr.io/acme`, the projectSlug is `acme`.
1613
1514
  */
1614
- projectSlug?: string;
1615
- /**
1616
- * The search term to filter the links. The search term will be matched against the
1617
- * short link slug and the destination URL.
1618
- */
1619
- search?: string;
1620
- /**
1621
- * If should include archived links in the response. The default is `false` if not
1622
- * provided.
1623
- */
1624
- showArchived?: boolean;
1625
- /**
1626
- * @deprecated [OBSOLETO (use tagIds em vez disso)]: The unique ID of the tag
1627
- * assigned to the short link.
1628
- */
1629
- tagId?: string;
1630
- /**
1631
- * The IDs of the tags to filter the links.
1632
- */
1633
- tagIds?: string | Array<string>;
1634
- /**
1635
- * The unique name of the tags assigned to the short link (case insensitive).
1636
- */
1637
- tagNames?: string | Array<string>;
1638
- /**
1639
- * If should include links with conversion tracking enabled. The default is `false`
1640
- * if not provided.
1641
- */
1642
- trackConversion?: boolean;
1643
- /**
1644
- * The ID of the user to filter by.
1645
- */
1646
- userId?: string;
1515
+ projectSlug: string;
1647
1516
  /**
1648
- * If should include tags in the response. The default is `false` if not provided.
1517
+ * This is the ID of the link in your database. Must be prefixed with `ext_` when
1518
+ * passed as a query parameter.
1649
1519
  */
1650
- withTags?: boolean;
1651
- }
1652
- export declare namespace LinkCountParams {
1520
+ externalId?: string;
1653
1521
  /**
1654
- * Geographic segmentation information for the short link in JSON format
1655
- * `{[COUNTRY]: https://example.com }`.
1656
- */
1657
- interface Geo {
1658
- AD?: string;
1659
- AE?: string;
1660
- AF?: string;
1661
- AG?: string;
1662
- AI?: string;
1663
- AL?: string;
1664
- AM?: string;
1665
- AO?: string;
1666
- AQ?: string;
1667
- AR?: string;
1668
- AS?: string;
1669
- AT?: string;
1670
- AU?: string;
1671
- AW?: string;
1672
- AX?: string;
1673
- AZ?: string;
1674
- BA?: string;
1675
- BB?: string;
1676
- BD?: string;
1677
- BE?: string;
1678
- BF?: string;
1679
- BG?: string;
1680
- BH?: string;
1681
- BI?: string;
1682
- BJ?: string;
1683
- BL?: string;
1684
- BM?: string;
1685
- BN?: string;
1686
- BO?: string;
1687
- BQ?: string;
1688
- BR?: string;
1689
- BS?: string;
1690
- BT?: string;
1691
- BV?: string;
1692
- BW?: string;
1693
- BY?: string;
1694
- BZ?: string;
1695
- CA?: string;
1696
- CC?: string;
1697
- CD?: string;
1698
- CF?: string;
1699
- CG?: string;
1700
- CH?: string;
1701
- CI?: string;
1702
- CK?: string;
1703
- CL?: string;
1704
- CM?: string;
1705
- CN?: string;
1706
- CO?: string;
1707
- CR?: string;
1708
- CU?: string;
1709
- CV?: string;
1710
- CW?: string;
1711
- CX?: string;
1712
- CY?: string;
1713
- CZ?: string;
1714
- DE?: string;
1715
- DJ?: string;
1716
- DK?: string;
1717
- DM?: string;
1718
- DO?: string;
1719
- DZ?: string;
1720
- EC?: string;
1721
- EE?: string;
1722
- EG?: string;
1723
- EH?: string;
1724
- ER?: string;
1725
- ES?: string;
1726
- ET?: string;
1727
- FI?: string;
1728
- FJ?: string;
1729
- FK?: string;
1730
- FM?: string;
1731
- FO?: string;
1732
- FR?: string;
1733
- GA?: string;
1734
- GB?: string;
1735
- GD?: string;
1736
- GE?: string;
1737
- GF?: string;
1738
- GG?: string;
1739
- GH?: string;
1740
- GI?: string;
1741
- GL?: string;
1742
- GM?: string;
1743
- GN?: string;
1744
- GP?: string;
1745
- GQ?: string;
1746
- GR?: string;
1747
- GS?: string;
1748
- GT?: string;
1749
- GU?: string;
1750
- GW?: string;
1751
- GY?: string;
1752
- HK?: string;
1753
- HM?: string;
1754
- HN?: string;
1755
- HR?: string;
1756
- HT?: string;
1757
- HU?: string;
1758
- ID?: string;
1759
- IE?: string;
1760
- IL?: string;
1761
- IM?: string;
1762
- IN?: string;
1763
- IO?: string;
1764
- IQ?: string;
1765
- IR?: string;
1766
- IS?: string;
1767
- IT?: string;
1768
- JE?: string;
1769
- JM?: string;
1770
- JO?: string;
1771
- JP?: string;
1772
- KE?: string;
1773
- KG?: string;
1774
- KH?: string;
1775
- KI?: string;
1776
- KM?: string;
1777
- KN?: string;
1778
- KP?: string;
1779
- KR?: string;
1780
- KW?: string;
1781
- KY?: string;
1782
- KZ?: string;
1783
- LA?: string;
1784
- LB?: string;
1785
- LC?: string;
1786
- LI?: string;
1787
- LK?: string;
1788
- LR?: string;
1789
- LS?: string;
1790
- LT?: string;
1791
- LU?: string;
1792
- LV?: string;
1793
- LY?: string;
1794
- MA?: string;
1795
- MC?: string;
1796
- MD?: string;
1797
- ME?: string;
1798
- MF?: string;
1799
- MG?: string;
1800
- MH?: string;
1801
- MK?: string;
1802
- ML?: string;
1803
- MM?: string;
1804
- MN?: string;
1805
- MO?: string;
1806
- MP?: string;
1807
- MQ?: string;
1808
- MR?: string;
1809
- MS?: string;
1810
- MT?: string;
1811
- MU?: string;
1812
- MV?: string;
1813
- MW?: string;
1814
- MX?: string;
1815
- MY?: string;
1816
- MZ?: string;
1817
- NA?: string;
1818
- NC?: string;
1819
- NE?: string;
1820
- NF?: string;
1821
- NG?: string;
1822
- NI?: string;
1823
- NL?: string;
1824
- NO?: string;
1825
- NP?: string;
1826
- NR?: string;
1827
- NU?: string;
1828
- NZ?: string;
1829
- OM?: string;
1830
- PA?: string;
1831
- PE?: string;
1832
- PF?: string;
1833
- PG?: string;
1834
- PH?: string;
1835
- PK?: string;
1836
- PL?: string;
1837
- PM?: string;
1838
- PN?: string;
1839
- PR?: string;
1840
- PS?: string;
1841
- PT?: string;
1842
- PW?: string;
1843
- PY?: string;
1844
- QA?: string;
1845
- RE?: string;
1846
- RO?: string;
1847
- RS?: string;
1848
- RU?: string;
1849
- RW?: string;
1850
- SA?: string;
1851
- SB?: string;
1852
- SC?: string;
1853
- SD?: string;
1854
- SE?: string;
1855
- SG?: string;
1856
- SH?: string;
1857
- SI?: string;
1858
- SJ?: string;
1859
- SK?: string;
1860
- SL?: string;
1861
- SM?: string;
1862
- SN?: string;
1863
- SO?: string;
1864
- SR?: string;
1865
- SS?: string;
1866
- ST?: string;
1867
- SV?: string;
1868
- SX?: string;
1869
- SY?: string;
1870
- SZ?: string;
1871
- TC?: string;
1872
- TD?: string;
1873
- TF?: string;
1874
- TG?: string;
1875
- TH?: string;
1876
- TJ?: string;
1877
- TK?: string;
1878
- TL?: string;
1879
- TM?: string;
1880
- TN?: string;
1881
- TO?: string;
1882
- TR?: string;
1883
- TT?: string;
1884
- TV?: string;
1885
- TW?: string;
1886
- TZ?: string;
1887
- UA?: string;
1888
- UG?: string;
1889
- UM?: string;
1890
- US?: string;
1891
- UY?: string;
1892
- UZ?: string;
1893
- VA?: string;
1894
- VC?: string;
1895
- VE?: string;
1896
- VG?: string;
1897
- VI?: string;
1898
- VN?: string;
1899
- VU?: string;
1900
- WF?: string;
1901
- WS?: string;
1902
- XK?: string;
1903
- YE?: string;
1904
- YT?: string;
1905
- ZA?: string;
1906
- ZM?: string;
1907
- ZW?: string;
1908
- }
1909
- }
1910
- export interface LinkRetrieveInfoParams {
1911
- /**
1912
- * The domain of the link to be retrieved. For example, for `codeqr.link/github`,
1913
- * the domain is `codeqr.link`.
1914
- */
1915
- domain: string;
1916
- /**
1917
- * The key of the link to be retrieved. For example, for `codeqr.link/github`, the
1918
- * key is `github`.
1919
- */
1920
- key: string;
1921
- /**
1922
- * The slug of the project to which the link belongs. For example, for
1923
- * `app.codeqr.io/acme`, the projectSlug is `acme`.
1924
- */
1925
- projectSlug: string;
1926
- /**
1927
- * This is the ID of the link in your database. Must be prefixed with `ext_` when
1928
- * passed as a query parameter.
1929
- */
1930
- externalId?: string;
1931
- /**
1932
- * The unique ID of the short link.
1522
+ * The unique ID of the short link.
1933
1523
  */
1934
1524
  linkId?: string;
1935
1525
  }
1936
- export interface LinkUpsertParams {
1937
- /**
1938
- * The destination URL of the short link.
1939
- */
1940
- url: string;
1941
- /**
1942
- * The Android destination URL for the short link for Android device targeting.
1943
- */
1944
- android?: string | null;
1945
- /**
1946
- * Whether the short link is archived.
1947
- */
1948
- archived?: boolean;
1949
- /**
1950
- * The comments for the short link.
1951
- */
1952
- comments?: string | null;
1953
- /**
1954
- * The description of the short link generated via `api.codeqr.io/metatags`. Will
1955
- * be used for custom link preview if `proxy` is true.
1956
- */
1957
- description?: string | null;
1958
- /**
1959
- * Allow search engines to index your short link. Default is `false` if not
1960
- * provided. Learn more: https://codeqr.link/noindex
1961
- */
1962
- doIndex?: boolean;
1963
- /**
1964
- * The domain of the short link. If not provided, the main domain of the project
1965
- * will be used (or `codeqr.link` if the project has no domains).
1966
- */
1967
- domain?: string;
1968
- /**
1969
- * The URL to redirect to when the short link expires.
1970
- */
1971
- expiredUrl?: string | null;
1972
- /**
1973
- * The date and time when the short link will expire in ISO-8601 format. Must be in
1974
- * the future.
1975
- */
1976
- expiresAt?: string | null;
1977
- /**
1978
- * This is the ID of the link in your database. If set, it can be used to identify
1979
- * the link in the future. Must be prefixed with `ext_` when passed as a query
1980
- * parameter.
1981
- */
1982
- externalId?: string | null;
1983
- /**
1984
- * Whether the short link is flexible.
1985
- */
1986
- flexible?: boolean;
1987
- /**
1988
- * The unique ID existing folder to assign the short link to.
1989
- */
1990
- folderId?: string | null;
1991
- /**
1992
- * Geographic targeting information for the short link in JSON format
1993
- * `{[COUNTRY]: https://example.com }`.
1994
- */
1995
- geo?: LinkUpsertParams.Geo | null;
1996
- /**
1997
- * The image of the short link generated via `api.codeqr.io/metatags`. Will be used
1998
- * for custom link preview if `proxy` is true.
1999
- */
2000
- image?: string | null;
2001
- /**
2002
- * The iOS destination URL for the short link for iOS device targeting.
2003
- */
2004
- ios?: string | null;
2005
- /**
2006
- * If the form is mandatory for the page.
2007
- */
2008
- isFormMandatory?: boolean;
2009
- /**
2010
- * The slug of the short link. If not provided, a random 7-character slug will be
2011
- * generated.
2012
- */
2013
- key?: string;
2014
- /**
2015
- * The ID of the page to redirect to before the link destination.
2016
- */
2017
- pageId?: string | null;
2018
- /**
2019
- * The URL of the page to redirect to before the link destination.
2020
- */
2021
- pageUrl?: string | null;
2022
- /**
2023
- * The password required to access the short link destination URL.
2024
- */
2025
- password?: string | null;
2026
- /**
2027
- * The prefix of the short link slug for randomly generated keys (for example, if
2028
- * the prefix is `/c/`, the generated keys will be in the format `/c/:key`). Will
2029
- * be ignored if `key` is provided.
2030
- */
2031
- prefix?: string;
2032
- /**
2033
- * Whether the short link has pre-redirection.
2034
- */
2035
- preRedirection?: boolean;
2036
- /**
2037
- * Whether the short link uses the custom link preview feature.
2038
- */
2039
- proxy?: boolean;
2040
- /**
2041
- * Whether the short link statistics are publicly accessible.
2042
- */
2043
- publicStats?: boolean;
2044
- /**
2045
- * Whether the short link uses link cloaking.
2046
- */
2047
- rewrite?: boolean;
2048
- /**
2049
- * @deprecated The unique ID of the tag assigned to the short link. This field is
2050
- * deprecated – use `tagIds` instead.
2051
- */
2052
- tagId?: string | null;
2053
- /**
2054
- * The unique IDs of the tags assigned to the short link.
2055
- */
2056
- tagIds?: string | Array<string>;
2057
- /**
2058
- * The unique name of the tags assigned to the short link (case insensitive).
2059
- */
2060
- tagNames?: string | Array<string>;
2061
- /**
2062
- * The title of the short link generated via `api.codeqr.io/metatags`. Will be used
2063
- * for custom link preview if `proxy` is true.
2064
- */
2065
- title?: string | null;
2066
- /**
2067
- * Whether to track conversions for the short link.
2068
- */
2069
- trackConversion?: boolean;
2070
- /**
2071
- * The video of the short link.
2072
- */
2073
- video?: string | null;
2074
- /**
2075
- * An array of webhook IDs to trigger when the link is clicked. These webhooks will
2076
- * receive click event data.
2077
- */
2078
- webhookIds?: Array<string> | null;
2079
- }
2080
- export declare namespace LinkUpsertParams {
2081
- /**
2082
- * Geographic targeting information for the short link in JSON format
2083
- * `{[COUNTRY]: https://example.com }`.
2084
- */
2085
- interface Geo {
2086
- AD?: string;
2087
- AE?: string;
2088
- AF?: string;
2089
- AG?: string;
2090
- AI?: string;
2091
- AL?: string;
2092
- AM?: string;
2093
- AO?: string;
2094
- AQ?: string;
2095
- AR?: string;
2096
- AS?: string;
2097
- AT?: string;
2098
- AU?: string;
2099
- AW?: string;
2100
- AX?: string;
2101
- AZ?: string;
2102
- BA?: string;
2103
- BB?: string;
2104
- BD?: string;
2105
- BE?: string;
2106
- BF?: string;
2107
- BG?: string;
2108
- BH?: string;
2109
- BI?: string;
2110
- BJ?: string;
2111
- BL?: string;
2112
- BM?: string;
2113
- BN?: string;
2114
- BO?: string;
2115
- BQ?: string;
2116
- BR?: string;
2117
- BS?: string;
2118
- BT?: string;
2119
- BV?: string;
2120
- BW?: string;
2121
- BY?: string;
2122
- BZ?: string;
2123
- CA?: string;
2124
- CC?: string;
2125
- CD?: string;
2126
- CF?: string;
2127
- CG?: string;
2128
- CH?: string;
2129
- CI?: string;
2130
- CK?: string;
2131
- CL?: string;
2132
- CM?: string;
2133
- CN?: string;
2134
- CO?: string;
2135
- CR?: string;
2136
- CU?: string;
2137
- CV?: string;
2138
- CW?: string;
2139
- CX?: string;
2140
- CY?: string;
2141
- CZ?: string;
2142
- DE?: string;
2143
- DJ?: string;
2144
- DK?: string;
2145
- DM?: string;
2146
- DO?: string;
2147
- DZ?: string;
2148
- EC?: string;
2149
- EE?: string;
2150
- EG?: string;
2151
- EH?: string;
2152
- ER?: string;
2153
- ES?: string;
2154
- ET?: string;
2155
- FI?: string;
2156
- FJ?: string;
2157
- FK?: string;
2158
- FM?: string;
2159
- FO?: string;
2160
- FR?: string;
2161
- GA?: string;
2162
- GB?: string;
2163
- GD?: string;
2164
- GE?: string;
2165
- GF?: string;
2166
- GG?: string;
2167
- GH?: string;
2168
- GI?: string;
2169
- GL?: string;
2170
- GM?: string;
2171
- GN?: string;
2172
- GP?: string;
2173
- GQ?: string;
2174
- GR?: string;
2175
- GS?: string;
2176
- GT?: string;
2177
- GU?: string;
2178
- GW?: string;
2179
- GY?: string;
2180
- HK?: string;
2181
- HM?: string;
2182
- HN?: string;
2183
- HR?: string;
2184
- HT?: string;
2185
- HU?: string;
2186
- ID?: string;
2187
- IE?: string;
2188
- IL?: string;
2189
- IM?: string;
2190
- IN?: string;
2191
- IO?: string;
2192
- IQ?: string;
2193
- IR?: string;
2194
- IS?: string;
2195
- IT?: string;
2196
- JE?: string;
2197
- JM?: string;
2198
- JO?: string;
2199
- JP?: string;
2200
- KE?: string;
2201
- KG?: string;
2202
- KH?: string;
2203
- KI?: string;
2204
- KM?: string;
2205
- KN?: string;
2206
- KP?: string;
2207
- KR?: string;
2208
- KW?: string;
2209
- KY?: string;
2210
- KZ?: string;
2211
- LA?: string;
2212
- LB?: string;
2213
- LC?: string;
2214
- LI?: string;
2215
- LK?: string;
2216
- LR?: string;
2217
- LS?: string;
2218
- LT?: string;
2219
- LU?: string;
2220
- LV?: string;
2221
- LY?: string;
2222
- MA?: string;
2223
- MC?: string;
2224
- MD?: string;
2225
- ME?: string;
2226
- MF?: string;
2227
- MG?: string;
2228
- MH?: string;
2229
- MK?: string;
2230
- ML?: string;
2231
- MM?: string;
2232
- MN?: string;
2233
- MO?: string;
2234
- MP?: string;
2235
- MQ?: string;
2236
- MR?: string;
2237
- MS?: string;
2238
- MT?: string;
2239
- MU?: string;
2240
- MV?: string;
2241
- MW?: string;
2242
- MX?: string;
2243
- MY?: string;
2244
- MZ?: string;
2245
- NA?: string;
2246
- NC?: string;
2247
- NE?: string;
2248
- NF?: string;
2249
- NG?: string;
2250
- NI?: string;
2251
- NL?: string;
2252
- NO?: string;
2253
- NP?: string;
2254
- NR?: string;
2255
- NU?: string;
2256
- NZ?: string;
2257
- OM?: string;
2258
- PA?: string;
2259
- PE?: string;
2260
- PF?: string;
2261
- PG?: string;
2262
- PH?: string;
2263
- PK?: string;
2264
- PL?: string;
2265
- PM?: string;
2266
- PN?: string;
2267
- PR?: string;
2268
- PS?: string;
2269
- PT?: string;
2270
- PW?: string;
2271
- PY?: string;
2272
- QA?: string;
2273
- RE?: string;
2274
- RO?: string;
2275
- RS?: string;
2276
- RU?: string;
2277
- RW?: string;
2278
- SA?: string;
2279
- SB?: string;
2280
- SC?: string;
2281
- SD?: string;
2282
- SE?: string;
2283
- SG?: string;
2284
- SH?: string;
2285
- SI?: string;
2286
- SJ?: string;
2287
- SK?: string;
2288
- SL?: string;
2289
- SM?: string;
2290
- SN?: string;
2291
- SO?: string;
2292
- SR?: string;
2293
- SS?: string;
2294
- ST?: string;
2295
- SV?: string;
2296
- SX?: string;
2297
- SY?: string;
2298
- SZ?: string;
2299
- TC?: string;
2300
- TD?: string;
2301
- TF?: string;
2302
- TG?: string;
2303
- TH?: string;
2304
- TJ?: string;
2305
- TK?: string;
2306
- TL?: string;
2307
- TM?: string;
2308
- TN?: string;
2309
- TO?: string;
2310
- TR?: string;
2311
- TT?: string;
2312
- TV?: string;
2313
- TW?: string;
2314
- TZ?: string;
2315
- UA?: string;
2316
- UG?: string;
2317
- UM?: string;
2318
- US?: string;
2319
- UY?: string;
2320
- UZ?: string;
2321
- VA?: string;
2322
- VC?: string;
2323
- VE?: string;
2324
- VG?: string;
2325
- VI?: string;
2326
- VN?: string;
2327
- VU?: string;
2328
- WF?: string;
2329
- WS?: string;
2330
- XK?: string;
2331
- YE?: string;
2332
- YT?: string;
2333
- ZA?: string;
2334
- ZM?: string;
2335
- ZW?: string;
2336
- }
2337
- }
2338
1526
  export declare namespace Links {
2339
- export { type Link as Link, type LinkListResponse as LinkListResponse, type LinkDeleteResponse as LinkDeleteResponse, type LinkCountResponse as LinkCountResponse, type LinkCreateParams as LinkCreateParams, type LinkUpdateParams as LinkUpdateParams, type LinkListParams as LinkListParams, type LinkCountParams as LinkCountParams, type LinkRetrieveInfoParams as LinkRetrieveInfoParams, type LinkUpsertParams as LinkUpsertParams, };
2340
- export { Bulk as Bulk, type BulkCreateResponse as BulkCreateResponse, type BulkDeleteResponse as BulkDeleteResponse, type BulkCreateParams as BulkCreateParams, type BulkDeleteParams as BulkDeleteParams, };
1527
+ export { type Link as Link, type LinkListResponse as LinkListResponse, type LinkDeleteResponse as LinkDeleteResponse, type LinkCreateParams as LinkCreateParams, type LinkUpdateParams as LinkUpdateParams, type LinkListParams as LinkListParams, type LinkRetrieveInfoParams as LinkRetrieveInfoParams, };
1528
+ export { Bulk as Bulk, type BulkCreateResponse as BulkCreateResponse, type BulkCreateParams as BulkCreateParams, };
2341
1529
  }
2342
1530
  //# sourceMappingURL=links.d.mts.map