@rerout/sdk 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,17 @@ All notable changes to `@rerout/sdk` are documented in this file. The format is
4
4
  based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this
5
5
  project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.2.0] - 2026-06-02
8
+
9
+ ### Added
10
+
11
+ - Read-only `tags` field on `Link` (`{ id, name, color }`), returned by
12
+ `links.get`, `links.list`, and `links.update`.
13
+
14
+ ### Changed
15
+
16
+ - `project.stats()` is now backed by a live `/v1/projects/me/stats` endpoint.
17
+
7
18
  ## [0.1.0] - 2026-05-20
8
19
 
9
20
  ### Added
@@ -19,4 +30,5 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
19
30
  `isServerError` convenience flags.
20
31
  - ESM + CJS dual build with bundled `.d.ts` declarations.
21
32
 
33
+ [0.2.0]: https://github.com/ModestNerds-Co/rerout-sdks/releases/tag/typescript-v0.2.0
22
34
  [0.1.0]: https://github.com/ModestNerds-Co/rerout-sdks/releases/tag/typescript-v0.1.0
package/README.md CHANGED
@@ -62,6 +62,10 @@ rerout.links.delete(code)
62
62
  rerout.links.stats(code, days = 30)
63
63
  ```
64
64
 
65
+ Every returned `Link` includes a read-only `tags` array of `{ id, name, color }`
66
+ objects (empty on create; populated on get/list/update). Tag writes aren't
67
+ supported for API-key clients.
68
+
65
69
  ### Project
66
70
 
67
71
  ```ts
package/dist/index.d.cts CHANGED
@@ -3,6 +3,11 @@
3
3
  * `LinkResponse` / `ProjectStatsResponse` etc. shapes so JSON is parsed
4
4
  * without transformation.
5
5
  */
6
+ interface Tag {
7
+ id: string;
8
+ name: string;
9
+ color: string;
10
+ }
6
11
  interface Link {
7
12
  code: string;
8
13
  short_url: string;
@@ -17,6 +22,8 @@ interface Link {
17
22
  seo_canonical_url: string | null;
18
23
  seo_noindex: boolean;
19
24
  seo_updated_at: number | null;
25
+ /** Read-only. Tags attached to this link. Empty on create; populated on get/list/update. */
26
+ tags: Tag[];
20
27
  created_at: number;
21
28
  updated_at: number;
22
29
  }
@@ -306,4 +313,4 @@ declare function buildQrUrl(args: {
306
313
  options?: QrUrlOptions;
307
314
  }): string;
308
315
 
309
- export { type CreateLinkInput, DEFAULT_BASE_URL, DEFAULT_SIGNATURE_TOLERANCE_SECONDS, type DailyClicksPoint, type Link, type LinkStats, Links, type ListLinksParams, type ListLinksResult, Project, type ProjectStats, Qr, type QrUrlOptions, Rerout, type ReroutClientOptions, ReroutError, type StatsBreakdown, type UpdateLinkInput, type VerifyOptions, buildQrUrl, verifyReroutSignature };
316
+ export { type CreateLinkInput, DEFAULT_BASE_URL, DEFAULT_SIGNATURE_TOLERANCE_SECONDS, type DailyClicksPoint, type Link, type LinkStats, Links, type ListLinksParams, type ListLinksResult, Project, type ProjectStats, Qr, type QrUrlOptions, Rerout, type ReroutClientOptions, ReroutError, type StatsBreakdown, type Tag, type UpdateLinkInput, type VerifyOptions, buildQrUrl, verifyReroutSignature };
package/dist/index.d.ts CHANGED
@@ -3,6 +3,11 @@
3
3
  * `LinkResponse` / `ProjectStatsResponse` etc. shapes so JSON is parsed
4
4
  * without transformation.
5
5
  */
6
+ interface Tag {
7
+ id: string;
8
+ name: string;
9
+ color: string;
10
+ }
6
11
  interface Link {
7
12
  code: string;
8
13
  short_url: string;
@@ -17,6 +22,8 @@ interface Link {
17
22
  seo_canonical_url: string | null;
18
23
  seo_noindex: boolean;
19
24
  seo_updated_at: number | null;
25
+ /** Read-only. Tags attached to this link. Empty on create; populated on get/list/update. */
26
+ tags: Tag[];
20
27
  created_at: number;
21
28
  updated_at: number;
22
29
  }
@@ -306,4 +313,4 @@ declare function buildQrUrl(args: {
306
313
  options?: QrUrlOptions;
307
314
  }): string;
308
315
 
309
- export { type CreateLinkInput, DEFAULT_BASE_URL, DEFAULT_SIGNATURE_TOLERANCE_SECONDS, type DailyClicksPoint, type Link, type LinkStats, Links, type ListLinksParams, type ListLinksResult, Project, type ProjectStats, Qr, type QrUrlOptions, Rerout, type ReroutClientOptions, ReroutError, type StatsBreakdown, type UpdateLinkInput, type VerifyOptions, buildQrUrl, verifyReroutSignature };
316
+ export { type CreateLinkInput, DEFAULT_BASE_URL, DEFAULT_SIGNATURE_TOLERANCE_SECONDS, type DailyClicksPoint, type Link, type LinkStats, Links, type ListLinksParams, type ListLinksResult, Project, type ProjectStats, Qr, type QrUrlOptions, Rerout, type ReroutClientOptions, ReroutError, type StatsBreakdown, type Tag, type UpdateLinkInput, type VerifyOptions, buildQrUrl, verifyReroutSignature };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rerout/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Official TypeScript / JavaScript SDK for the Rerout branded-link API.",
5
5
  "type": "module",
6
6
  "license": "MIT",