gumnut-sdk 0.37.1 → 0.52.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/CHANGELOG.md +271 -0
- package/LICENSE +1 -1
- package/client.d.mts +15 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -2
- package/client.d.ts.map +1 -1
- package/client.js +24 -4
- package/client.js.map +1 -1
- package/client.mjs +24 -4
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/album-assets.d.mts +63 -0
- package/resources/album-assets.d.mts.map +1 -0
- package/resources/album-assets.d.ts +63 -0
- package/resources/album-assets.d.ts.map +1 -0
- package/resources/album-assets.js +27 -0
- package/resources/album-assets.js.map +1 -0
- package/resources/album-assets.mjs +23 -0
- package/resources/album-assets.mjs.map +1 -0
- package/resources/albums/albums.d.mts +21 -5
- package/resources/albums/albums.d.mts.map +1 -1
- package/resources/albums/albums.d.ts +21 -5
- package/resources/albums/albums.d.ts.map +1 -1
- package/resources/albums/albums.js +5 -5
- package/resources/albums/albums.js.map +1 -1
- package/resources/albums/albums.mjs +5 -5
- package/resources/albums/albums.mjs.map +1 -1
- package/resources/albums/{assets.d.mts → assets-associations.d.mts} +11 -11
- package/resources/albums/assets-associations.d.mts.map +1 -0
- package/resources/albums/{assets.d.ts → assets-associations.d.ts} +11 -11
- package/resources/albums/assets-associations.d.ts.map +1 -0
- package/resources/albums/{assets.js → assets-associations.js} +4 -4
- package/resources/albums/assets-associations.js.map +1 -0
- package/resources/albums/{assets.mjs → assets-associations.mjs} +2 -2
- package/resources/albums/assets-associations.mjs.map +1 -0
- package/resources/albums/index.d.mts +1 -1
- package/resources/albums/index.d.mts.map +1 -1
- package/resources/albums/index.d.ts +1 -1
- package/resources/albums/index.d.ts.map +1 -1
- package/resources/albums/index.js +3 -3
- package/resources/albums/index.js.map +1 -1
- package/resources/albums/index.mjs +1 -1
- package/resources/albums/index.mjs.map +1 -1
- package/resources/assets.d.mts +9 -112
- package/resources/assets.d.mts.map +1 -1
- package/resources/assets.d.ts +9 -112
- package/resources/assets.d.ts.map +1 -1
- package/resources/assets.js +3 -2
- package/resources/assets.js.map +1 -1
- package/resources/assets.mjs +3 -2
- package/resources/assets.mjs.map +1 -1
- package/resources/events-v2.d.mts +113 -0
- package/resources/events-v2.d.mts.map +1 -0
- package/resources/events-v2.d.ts +113 -0
- package/resources/events-v2.d.ts.map +1 -0
- package/resources/events-v2.js +45 -0
- package/resources/events-v2.js.map +1 -0
- package/resources/events-v2.mjs +41 -0
- package/resources/events-v2.mjs.map +1 -0
- package/resources/events.d.mts +265 -0
- package/resources/events.d.mts.map +1 -0
- package/resources/events.d.ts +265 -0
- package/resources/events.d.ts.map +1 -0
- package/resources/events.js +44 -0
- package/resources/events.js.map +1 -0
- package/resources/events.mjs +40 -0
- package/resources/events.mjs.map +1 -0
- package/resources/faces.d.mts +7 -3
- package/resources/faces.d.mts.map +1 -1
- package/resources/faces.d.ts +7 -3
- package/resources/faces.d.ts.map +1 -1
- package/resources/faces.js +2 -2
- package/resources/faces.mjs +2 -2
- package/resources/index.d.mts +4 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -0
- package/resources/index.mjs.map +1 -1
- package/resources/people.d.mts +10 -1
- package/resources/people.d.mts.map +1 -1
- package/resources/people.d.ts +10 -1
- package/resources/people.d.ts.map +1 -1
- package/resources/people.js +2 -1
- package/resources/people.js.map +1 -1
- package/resources/people.mjs +2 -1
- package/resources/people.mjs.map +1 -1
- package/resources/ping.d.mts +14 -0
- package/resources/ping.d.mts.map +1 -0
- package/resources/ping.d.ts +14 -0
- package/resources/ping.d.ts.map +1 -0
- package/resources/ping.js +19 -0
- package/resources/ping.js.map +1 -0
- package/resources/ping.mjs +15 -0
- package/resources/ping.mjs.map +1 -0
- package/resources/search.d.mts +0 -2
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +0 -2
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +0 -2
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +0 -2
- package/resources/search.mjs.map +1 -1
- package/src/client.ts +75 -7
- package/src/internal/parse.ts +6 -0
- package/src/resources/album-assets.ts +92 -0
- package/src/resources/albums/albums.ts +37 -15
- package/src/resources/albums/{assets.ts → assets-associations.ts} +17 -13
- package/src/resources/albums/index.ts +6 -6
- package/src/resources/assets.ts +10 -137
- package/src/resources/events-v2.ts +134 -0
- package/src/resources/events.ts +334 -0
- package/src/resources/faces.ts +8 -3
- package/src/resources/index.ts +20 -0
- package/src/resources/people.ts +12 -1
- package/src/resources/ping.ts +24 -0
- package/src/resources/search.ts +0 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/albums/assets.d.mts.map +0 -1
- package/resources/albums/assets.d.ts.map +0 -1
- package/resources/albums/assets.js.map +0 -1
- package/resources/albums/assets.mjs.map +0 -1
- package/src/internal/polyfill/file.node.d.ts +0 -14
- package/src/internal/polyfill/file.node.mjs +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,276 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.52.1 (2026-02-17)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.52.0...v0.52.1](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.52.0...v0.52.1)
|
|
6
|
+
|
|
7
|
+
### Chores
|
|
8
|
+
|
|
9
|
+
* update SDK settings ([894010e](https://github.com/gumnut-ai/photos-sdk-typescript/commit/894010e8000f5e1867803d892c509426e60d0d60))
|
|
10
|
+
|
|
11
|
+
## 0.52.0 (2026-02-17)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.51.0...v0.52.0](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.51.0...v0.52.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** manual updates ([eca8f5b](https://github.com/gumnut-ai/photos-sdk-typescript/commit/eca8f5b55c26085a668c7853204cf5ef98d885a8))
|
|
18
|
+
|
|
19
|
+
## 0.51.0 (2026-02-17)
|
|
20
|
+
|
|
21
|
+
Full Changelog: [v0.50.0...v0.51.0](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.50.0...v0.51.0)
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* **api:** dedicated album_assets endpoint with pagination ([92138b5](https://github.com/gumnut-ai/photos-sdk-typescript/commit/92138b5fd0242cc079dc95f429a35ca5d400aee6))
|
|
26
|
+
|
|
27
|
+
## 0.50.0 (2026-02-12)
|
|
28
|
+
|
|
29
|
+
Full Changelog: [v0.49.0...v0.50.0](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.49.0...v0.50.0)
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* **api:** manual updates ([6d42732](https://github.com/gumnut-ai/photos-sdk-typescript/commit/6d42732a523450634342b23cbc89851c3b8feab7))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Chores
|
|
37
|
+
|
|
38
|
+
* **internal:** avoid type checking errors with ts-reset ([8a8ec32](https://github.com/gumnut-ai/photos-sdk-typescript/commit/8a8ec32d659fb917cf28b603f9030bf7fe24548e))
|
|
39
|
+
|
|
40
|
+
## 0.49.0 (2026-02-11)
|
|
41
|
+
|
|
42
|
+
Full Changelog: [v0.48.0...v0.49.0](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.48.0...v0.49.0)
|
|
43
|
+
|
|
44
|
+
### Features
|
|
45
|
+
|
|
46
|
+
* **api:** api update ([66b6845](https://github.com/gumnut-ai/photos-sdk-typescript/commit/66b6845fc7eabf9066011c7cd11cc62811955d0e))
|
|
47
|
+
|
|
48
|
+
## 0.48.0 (2026-02-11)
|
|
49
|
+
|
|
50
|
+
Full Changelog: [v0.47.0...v0.48.0](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.47.0...v0.48.0)
|
|
51
|
+
|
|
52
|
+
### Features
|
|
53
|
+
|
|
54
|
+
* **api:** manual updates ([d1ab216](https://github.com/gumnut-ai/photos-sdk-typescript/commit/d1ab216f41f9c99731d09fca99021df9524ce89f))
|
|
55
|
+
|
|
56
|
+
## 0.47.0 (2026-02-11)
|
|
57
|
+
|
|
58
|
+
Full Changelog: [v0.46.0...v0.47.0](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.46.0...v0.47.0)
|
|
59
|
+
|
|
60
|
+
### Features
|
|
61
|
+
|
|
62
|
+
* **api:** manual updates ([cd567fd](https://github.com/gumnut-ai/photos-sdk-typescript/commit/cd567fd409636a7eb14c48f979edd033a237838f))
|
|
63
|
+
|
|
64
|
+
## 0.46.0 (2026-02-11)
|
|
65
|
+
|
|
66
|
+
Full Changelog: [v0.45.2...v0.46.0](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.45.2...v0.46.0)
|
|
67
|
+
|
|
68
|
+
### Features
|
|
69
|
+
|
|
70
|
+
* **api:** api update ([9ad859a](https://github.com/gumnut-ai/photos-sdk-typescript/commit/9ad859a4b494cd754a1b6aa678f2791f5595a1d0))
|
|
71
|
+
* **api:** api update ([9c17b1f](https://github.com/gumnut-ai/photos-sdk-typescript/commit/9c17b1f668f6bb54092d8005a60bc4ed955486f6))
|
|
72
|
+
* **api:** remove mcp server ([a4535dd](https://github.com/gumnut-ai/photos-sdk-typescript/commit/a4535dd981e8b3e1c6a90f7ebee37d85da0fc071))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Bug Fixes
|
|
76
|
+
|
|
77
|
+
* **client:** avoid memory leak with abort signals ([765d5eb](https://github.com/gumnut-ai/photos-sdk-typescript/commit/765d5eb3a44186e01d303848f4b0669f0b5dbd3c))
|
|
78
|
+
* **client:** avoid removing abort listener too early ([a5b8a5a](https://github.com/gumnut-ai/photos-sdk-typescript/commit/a5b8a5a6ff038bcf397a4f66ab5847e1f2870c3b))
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Chores
|
|
82
|
+
|
|
83
|
+
* **client:** do not parse responses with empty content-length ([97247b4](https://github.com/gumnut-ai/photos-sdk-typescript/commit/97247b49b0df7cf0e288f705b0236f78b5f275b1))
|
|
84
|
+
* **client:** restructure abort controller binding ([29a0d13](https://github.com/gumnut-ai/photos-sdk-typescript/commit/29a0d1343dc5e099a69bc7054caf733009d6d517))
|
|
85
|
+
* **internal:** fix pagination internals not accepting option promises ([7242f89](https://github.com/gumnut-ai/photos-sdk-typescript/commit/7242f894fb8cb512c599097f7dc81f9c63579d76))
|
|
86
|
+
* **mcp:** up tsconfig lib version to es2022 ([9f14bf0](https://github.com/gumnut-ai/photos-sdk-typescript/commit/9f14bf0f9aed7668fe2947b095fa0580a33dcc74))
|
|
87
|
+
|
|
88
|
+
## 0.45.2 (2026-01-29)
|
|
89
|
+
|
|
90
|
+
Full Changelog: [v0.45.1...v0.45.2](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.45.1...v0.45.2)
|
|
91
|
+
|
|
92
|
+
### Bug Fixes
|
|
93
|
+
|
|
94
|
+
* **docs:** fix mcp installation instructions for remote servers ([5d44087](https://github.com/gumnut-ai/photos-sdk-typescript/commit/5d4408775c7f0b76496e16f70b3cfc88661fc35c))
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Chores
|
|
98
|
+
|
|
99
|
+
* **internal:** upgrade wrangler version ([89872b9](https://github.com/gumnut-ai/photos-sdk-typescript/commit/89872b94b0a147738c1510c564f897b24772b3b0))
|
|
100
|
+
|
|
101
|
+
## 0.45.1 (2026-01-28)
|
|
102
|
+
|
|
103
|
+
Full Changelog: [v0.45.0...v0.45.1](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.45.0...v0.45.1)
|
|
104
|
+
|
|
105
|
+
### Bug Fixes
|
|
106
|
+
|
|
107
|
+
* **mcp:** allow falling back for required env variables ([7e752e2](https://github.com/gumnut-ai/photos-sdk-typescript/commit/7e752e2e58689d10a1b07f7c86093aedc193a001))
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Chores
|
|
111
|
+
|
|
112
|
+
* **internal:** codegen related update ([c4877d8](https://github.com/gumnut-ai/photos-sdk-typescript/commit/c4877d82db2e75c3338bf11a1656dc329d83a949))
|
|
113
|
+
|
|
114
|
+
## 0.45.0 (2026-01-28)
|
|
115
|
+
|
|
116
|
+
Full Changelog: [v0.44.3...v0.45.0](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.44.3...v0.45.0)
|
|
117
|
+
|
|
118
|
+
### Features
|
|
119
|
+
|
|
120
|
+
* **api:** api update ([7f89ae5](https://github.com/gumnut-ai/photos-sdk-typescript/commit/7f89ae516c65fcf87da9ac7d9218c64047c582f5))
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
### Chores
|
|
124
|
+
|
|
125
|
+
* **ci:** upgrade `actions/github-script` ([81aecd1](https://github.com/gumnut-ai/photos-sdk-typescript/commit/81aecd1e7119a5dc81ecae0ffedeae5239227171))
|
|
126
|
+
* fix typo in descriptions ([fa91b4a](https://github.com/gumnut-ai/photos-sdk-typescript/commit/fa91b4a8ace848bf2ed7e147263e3155dd9a4535))
|
|
127
|
+
* **internal:** bump MCP dependencies ([0deb299](https://github.com/gumnut-ai/photos-sdk-typescript/commit/0deb299823f9cd43e9d416b5fc6c91f00473a850))
|
|
128
|
+
* **internal:** codegen related update ([2a614c6](https://github.com/gumnut-ai/photos-sdk-typescript/commit/2a614c6533cb9a56855f9d778d5695eeb0444527))
|
|
129
|
+
* **internal:** codegen related update ([eb2cf02](https://github.com/gumnut-ai/photos-sdk-typescript/commit/eb2cf02f15929df343280ff1ee88a1741be85c13))
|
|
130
|
+
* **internal:** codegen related update ([88223d1](https://github.com/gumnut-ai/photos-sdk-typescript/commit/88223d1eff624369ab98943fe882cf2bdb903218))
|
|
131
|
+
* **internal:** codegen related update ([28031bc](https://github.com/gumnut-ai/photos-sdk-typescript/commit/28031bc2f7b441cb327c5d63963c261cfd767d47))
|
|
132
|
+
* **internal:** update `actions/checkout` version ([6b032fb](https://github.com/gumnut-ai/photos-sdk-typescript/commit/6b032fb20183f65896f009c02062bf5ebfd0a0c8))
|
|
133
|
+
* **internal:** update lock file ([b9ec80c](https://github.com/gumnut-ai/photos-sdk-typescript/commit/b9ec80c2f0daf1039b2b283190f5a53faa48fb93))
|
|
134
|
+
* **internal:** upgrade babel, qs, js-yaml ([d106484](https://github.com/gumnut-ai/photos-sdk-typescript/commit/d1064846fed13c747c917f283d97c685059a844e))
|
|
135
|
+
* **mcp:** add intent param to execute tool ([70701f3](https://github.com/gumnut-ai/photos-sdk-typescript/commit/70701f38643d50e8912468586a91cacffe1b5818))
|
|
136
|
+
* **mcp:** pass intent param to execute handler ([b155555](https://github.com/gumnut-ai/photos-sdk-typescript/commit/b155555a3cf6e9670e56caea7bbc7a3034e86dc7))
|
|
137
|
+
* **mcp:** upgrade dependencies ([2d5c0e2](https://github.com/gumnut-ai/photos-sdk-typescript/commit/2d5c0e2f8d21646aa187169c7c44f89b8d19d458))
|
|
138
|
+
|
|
139
|
+
## 0.44.3 (2026-01-09)
|
|
140
|
+
|
|
141
|
+
Full Changelog: [v0.44.2...v0.44.3](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.44.2...v0.44.3)
|
|
142
|
+
|
|
143
|
+
### Bug Fixes
|
|
144
|
+
|
|
145
|
+
* **mcp:** update code tool prompt ([7769ec2](https://github.com/gumnut-ai/photos-sdk-typescript/commit/7769ec24229eda58578ad9466677cad6b083f4f8))
|
|
146
|
+
|
|
147
|
+
## 0.44.2 (2026-01-07)
|
|
148
|
+
|
|
149
|
+
Full Changelog: [v0.44.1...v0.44.2](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.44.1...v0.44.2)
|
|
150
|
+
|
|
151
|
+
### Bug Fixes
|
|
152
|
+
|
|
153
|
+
* **mcp:** fix options parsing ([58c57ce](https://github.com/gumnut-ai/photos-sdk-typescript/commit/58c57ce23d90fc76495975ee0cb6b75ae2c2d0a3))
|
|
154
|
+
|
|
155
|
+
## 0.44.1 (2026-01-07)
|
|
156
|
+
|
|
157
|
+
Full Changelog: [v0.44.0...v0.44.1](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.44.0...v0.44.1)
|
|
158
|
+
|
|
159
|
+
### Bug Fixes
|
|
160
|
+
|
|
161
|
+
* **mcp:** update cloudflare worker host page ([e625cf5](https://github.com/gumnut-ai/photos-sdk-typescript/commit/e625cf5aa38fd671de36bc526507a079c96866d5))
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### Chores
|
|
165
|
+
|
|
166
|
+
* break long lines in snippets into multiline ([d00440c](https://github.com/gumnut-ai/photos-sdk-typescript/commit/d00440c8d997eabed35102f322c292aa0793b139))
|
|
167
|
+
|
|
168
|
+
## 0.44.0 (2026-01-06)
|
|
169
|
+
|
|
170
|
+
Full Changelog: [v0.43.1...v0.44.0](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.43.1...v0.44.0)
|
|
171
|
+
|
|
172
|
+
### Features
|
|
173
|
+
|
|
174
|
+
* **api:** api update ([ad8e0b4](https://github.com/gumnut-ai/photos-sdk-typescript/commit/ad8e0b496533feebde962a5ed4689bf33003ec7d))
|
|
175
|
+
|
|
176
|
+
## 0.43.1 (2026-01-06)
|
|
177
|
+
|
|
178
|
+
Full Changelog: [v0.43.0...v0.43.1](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.43.0...v0.43.1)
|
|
179
|
+
|
|
180
|
+
### Bug Fixes
|
|
181
|
+
|
|
182
|
+
* **mcp:** correct code tool api output types ([2a26905](https://github.com/gumnut-ai/photos-sdk-typescript/commit/2a269053e27c8e2743088706c92be110a520c2a6))
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
### Chores
|
|
186
|
+
|
|
187
|
+
* **internal:** codegen related update ([f371ba0](https://github.com/gumnut-ai/photos-sdk-typescript/commit/f371ba0008d9047a3b5539e416cdee3f04048a27))
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
### Documentation
|
|
191
|
+
|
|
192
|
+
* prominently feature MCP server setup in root SDK readmes ([457eae8](https://github.com/gumnut-ai/photos-sdk-typescript/commit/457eae857115126c0e5774641c896f263ef9b07b))
|
|
193
|
+
|
|
194
|
+
## 0.43.0 (2025-12-24)
|
|
195
|
+
|
|
196
|
+
Full Changelog: [v0.42.0...v0.43.0](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.42.0...v0.43.0)
|
|
197
|
+
|
|
198
|
+
### Features
|
|
199
|
+
|
|
200
|
+
* **api:** manual updates ([1a5d89a](https://github.com/gumnut-ai/photos-sdk-typescript/commit/1a5d89a556a10aebfdc1700c704cdc8183777afa))
|
|
201
|
+
|
|
202
|
+
## 0.42.0 (2025-12-24)
|
|
203
|
+
|
|
204
|
+
Full Changelog: [v0.41.0...v0.42.0](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.41.0...v0.42.0)
|
|
205
|
+
|
|
206
|
+
### Features
|
|
207
|
+
|
|
208
|
+
* **api:** manual updates ([8b8d3f7](https://github.com/gumnut-ai/photos-sdk-typescript/commit/8b8d3f76addaf27bd4df19b993d513866a1d0df7))
|
|
209
|
+
|
|
210
|
+
## 0.41.0 (2025-12-24)
|
|
211
|
+
|
|
212
|
+
Full Changelog: [v0.40.0...v0.41.0](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.40.0...v0.41.0)
|
|
213
|
+
|
|
214
|
+
### Features
|
|
215
|
+
|
|
216
|
+
* **api:** manual updates ([cd3f0be](https://github.com/gumnut-ai/photos-sdk-typescript/commit/cd3f0be8dbc50169131e129fe64e6c899b446987))
|
|
217
|
+
|
|
218
|
+
## 0.40.0 (2025-12-23)
|
|
219
|
+
|
|
220
|
+
Full Changelog: [v0.39.0...v0.40.0](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.39.0...v0.40.0)
|
|
221
|
+
|
|
222
|
+
### Features
|
|
223
|
+
|
|
224
|
+
* **api:** add events endpoint ([c301a10](https://github.com/gumnut-ai/photos-sdk-typescript/commit/c301a10ccab772a7dc1fcd8d0d9e5d29bd46ff2d))
|
|
225
|
+
|
|
226
|
+
## 0.39.0 (2025-12-23)
|
|
227
|
+
|
|
228
|
+
Full Changelog: [v0.38.0...v0.39.0](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.38.0...v0.39.0)
|
|
229
|
+
|
|
230
|
+
### Features
|
|
231
|
+
|
|
232
|
+
* **api:** api update ([fef4341](https://github.com/gumnut-ai/photos-sdk-typescript/commit/fef4341cf0fdb29a6d7e8b6ff6fe0eec5af8eb0a))
|
|
233
|
+
|
|
234
|
+
## 0.38.0 (2025-12-19)
|
|
235
|
+
|
|
236
|
+
Full Changelog: [v0.37.3...v0.38.0](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.37.3...v0.38.0)
|
|
237
|
+
|
|
238
|
+
### ⚠ BREAKING CHANGES
|
|
239
|
+
|
|
240
|
+
* **mcp:** remove deprecated tool schemes
|
|
241
|
+
* **mcp:** **Migration:** To migrate, simply modify the command used to invoke the MCP server. Currently, the only supported tool scheme is code mode. Now, starting the server with just `node /path/to/mcp/server` or `npx package-name` will invoke code tools: changing your command to one of these is likely all you will need to do.
|
|
242
|
+
|
|
243
|
+
### Features
|
|
244
|
+
|
|
245
|
+
* **api:** api update ([bdb0c6b](https://github.com/gumnut-ai/photos-sdk-typescript/commit/bdb0c6b308e43a89c9e27a992397cf1007b5c473))
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
### Chores
|
|
249
|
+
|
|
250
|
+
* **mcp:** remove deprecated tool schemes ([ddc129d](https://github.com/gumnut-ai/photos-sdk-typescript/commit/ddc129d3010389c951d93907d43427d076170b9a))
|
|
251
|
+
|
|
252
|
+
## 0.37.3 (2025-12-18)
|
|
253
|
+
|
|
254
|
+
Full Changelog: [v0.37.2...v0.37.3](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.37.2...v0.37.3)
|
|
255
|
+
|
|
256
|
+
### Bug Fixes
|
|
257
|
+
|
|
258
|
+
* **mcp:** pass base url to code tool ([0b51181](https://github.com/gumnut-ai/photos-sdk-typescript/commit/0b511817da61ebe28c38b8623c486398425e179c))
|
|
259
|
+
|
|
260
|
+
## 0.37.2 (2025-12-11)
|
|
261
|
+
|
|
262
|
+
Full Changelog: [v0.37.1...v0.37.2](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.37.1...v0.37.2)
|
|
263
|
+
|
|
264
|
+
### Bug Fixes
|
|
265
|
+
|
|
266
|
+
* **mcp:** add client instantiation options to code tool ([bc5996a](https://github.com/gumnut-ai/photos-sdk-typescript/commit/bc5996a6e46823e71e35d1990e5b1ca0f417205f))
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
### Chores
|
|
270
|
+
|
|
271
|
+
* **internal:** codegen related update ([1d56c4c](https://github.com/gumnut-ai/photos-sdk-typescript/commit/1d56c4c9d67d62dded446813396c698f462082b7))
|
|
272
|
+
* **mcp:** update lockfile ([129c47d](https://github.com/gumnut-ai/photos-sdk-typescript/commit/129c47d4725c6c06ddaf80c0da3531e0b71b7bcd))
|
|
273
|
+
|
|
3
274
|
## 0.37.1 (2025-12-06)
|
|
4
275
|
|
|
5
276
|
Full Changelog: [v0.37.0...v0.37.1](https://github.com/gumnut-ai/photos-sdk-typescript/compare/v0.37.0...v0.37.1)
|
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright 2026 Gumnut
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/client.d.mts
CHANGED
|
@@ -8,12 +8,16 @@ import { type CursorPageParams, CursorPageResponse } from "./core/pagination.mjs
|
|
|
8
8
|
import * as Uploads from "./core/uploads.mjs";
|
|
9
9
|
import * as API from "./resources/index.mjs";
|
|
10
10
|
import { APIPromise } from "./core/api-promise.mjs";
|
|
11
|
+
import { AlbumAssetListParams, AlbumAssetResponse, AlbumAssetResponsesCursorPage, AlbumAssets } from "./resources/album-assets.mjs";
|
|
11
12
|
import { APIKeyCreateParams, APIKeyCreateResponse, APIKeyListResponse, APIKeyResponse, APIKeyUpdateParams, APIKeys } from "./resources/api-keys.mjs";
|
|
12
13
|
import { AssetCheckExistenceParams, AssetCreateParams, AssetDownloadThumbnailParams, AssetExistenceResponse, AssetListParams, AssetLiteResponse, AssetResponse, AssetResponsesCursorPage, Assets } from "./resources/assets.mjs";
|
|
14
|
+
import { AlbumAssetEventPayload, AlbumEventPayload, AssetEventPayload, EventGetParams, Events, EventsResponse, ExifEventPayload, ExifResponse, FaceEventPayload, PersonEventPayload } from "./resources/events.mjs";
|
|
15
|
+
import { EventsV2, EventsV2GetParams, EventsV2Response } from "./resources/events-v2.mjs";
|
|
13
16
|
import { FaceDeleteParams, FaceListParams, FaceResponse, FaceResponsesCursorPage, FaceRetrieveParams, FaceUpdateParams, Faces } from "./resources/faces.mjs";
|
|
14
17
|
import { Libraries, LibraryCreateParams, LibraryListResponse, LibraryResponse, LibraryUpdateParams } from "./resources/libraries.mjs";
|
|
15
18
|
import { AuthURLResponse, ExchangeResponse, LogoutEndpointResponse, OAuth, OAuthAuthURLParams, OAuthExchangeParams } from "./resources/oauth.mjs";
|
|
16
19
|
import { People, PersonCreateParams, PersonListParams, PersonResponse, PersonResponsesCursorPage, PersonUpdateParams } from "./resources/people.mjs";
|
|
20
|
+
import { Ping, PingGetResponse } from "./resources/ping.mjs";
|
|
17
21
|
import { Search, SearchResponse, SearchSearchAssetsParams, SearchSearchParams } from "./resources/search.mjs";
|
|
18
22
|
import { UserResponse, Users } from "./resources/users.mjs";
|
|
19
23
|
import { AlbumCreateParams, AlbumListParams, AlbumResponse, AlbumResponsesCursorPage, AlbumUpdateParams, Albums } from "./resources/albums/albums.mjs";
|
|
@@ -149,8 +153,8 @@ export declare class Gumnut {
|
|
|
149
153
|
private methodRequest;
|
|
150
154
|
request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
|
|
151
155
|
private makeRequest;
|
|
152
|
-
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: RequestOptions): Pagination.PagePromise<PageClass, Item>;
|
|
153
|
-
requestAPIList<Item = unknown, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass, options: FinalRequestOptions): Pagination.PagePromise<PageClass, Item>;
|
|
156
|
+
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: PromiseOrValue<RequestOptions>): Pagination.PagePromise<PageClass, Item>;
|
|
157
|
+
requestAPIList<Item = unknown, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass, options: PromiseOrValue<FinalRequestOptions>): Pagination.PagePromise<PageClass, Item>;
|
|
154
158
|
fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
|
|
155
159
|
private shouldRetry;
|
|
156
160
|
private retryRequest;
|
|
@@ -163,6 +167,7 @@ export declare class Gumnut {
|
|
|
163
167
|
timeout: number;
|
|
164
168
|
}>;
|
|
165
169
|
private buildHeaders;
|
|
170
|
+
private _makeAbort;
|
|
166
171
|
private buildBody;
|
|
167
172
|
static Gumnut: typeof Gumnut;
|
|
168
173
|
static DEFAULT_TIMEOUT: number;
|
|
@@ -183,10 +188,14 @@ export declare class Gumnut {
|
|
|
183
188
|
apiKeys: API.APIKeys;
|
|
184
189
|
assets: API.Assets;
|
|
185
190
|
albums: API.Albums;
|
|
191
|
+
albumAssets: API.AlbumAssets;
|
|
192
|
+
events: API.Events;
|
|
193
|
+
eventsV2: API.EventsV2;
|
|
186
194
|
faces: API.Faces;
|
|
187
195
|
libraries: API.Libraries;
|
|
188
196
|
oauth: API.OAuth;
|
|
189
197
|
people: API.People;
|
|
198
|
+
ping: API.Ping;
|
|
190
199
|
search: API.Search;
|
|
191
200
|
users: API.Users;
|
|
192
201
|
}
|
|
@@ -197,10 +206,14 @@ export declare namespace Gumnut {
|
|
|
197
206
|
export { APIKeys as APIKeys, type APIKeyResponse as APIKeyResponse, type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyUpdateParams as APIKeyUpdateParams, };
|
|
198
207
|
export { Assets as Assets, type AssetExistenceResponse as AssetExistenceResponse, type AssetLiteResponse as AssetLiteResponse, type AssetResponse as AssetResponse, type AssetResponsesCursorPage as AssetResponsesCursorPage, type AssetCreateParams as AssetCreateParams, type AssetListParams as AssetListParams, type AssetCheckExistenceParams as AssetCheckExistenceParams, type AssetDownloadThumbnailParams as AssetDownloadThumbnailParams, };
|
|
199
208
|
export { Albums as Albums, type AlbumResponse as AlbumResponse, type AlbumResponsesCursorPage as AlbumResponsesCursorPage, type AlbumCreateParams as AlbumCreateParams, type AlbumUpdateParams as AlbumUpdateParams, type AlbumListParams as AlbumListParams, };
|
|
209
|
+
export { AlbumAssets as AlbumAssets, type AlbumAssetResponse as AlbumAssetResponse, type AlbumAssetResponsesCursorPage as AlbumAssetResponsesCursorPage, type AlbumAssetListParams as AlbumAssetListParams, };
|
|
210
|
+
export { Events as Events, type AlbumAssetEventPayload as AlbumAssetEventPayload, type AlbumEventPayload as AlbumEventPayload, type AssetEventPayload as AssetEventPayload, type EventsResponse as EventsResponse, type ExifEventPayload as ExifEventPayload, type ExifResponse as ExifResponse, type FaceEventPayload as FaceEventPayload, type PersonEventPayload as PersonEventPayload, type EventGetParams as EventGetParams, };
|
|
211
|
+
export { EventsV2 as EventsV2, type EventsV2Response as EventsV2Response, type EventsV2GetParams as EventsV2GetParams, };
|
|
200
212
|
export { Faces as Faces, type FaceResponse as FaceResponse, type FaceResponsesCursorPage as FaceResponsesCursorPage, type FaceRetrieveParams as FaceRetrieveParams, type FaceUpdateParams as FaceUpdateParams, type FaceListParams as FaceListParams, type FaceDeleteParams as FaceDeleteParams, };
|
|
201
213
|
export { Libraries as Libraries, type LibraryResponse as LibraryResponse, type LibraryListResponse as LibraryListResponse, type LibraryCreateParams as LibraryCreateParams, type LibraryUpdateParams as LibraryUpdateParams, };
|
|
202
214
|
export { OAuth as OAuth, type AuthURLResponse as AuthURLResponse, type ExchangeResponse as ExchangeResponse, type LogoutEndpointResponse as LogoutEndpointResponse, type OAuthAuthURLParams as OAuthAuthURLParams, type OAuthExchangeParams as OAuthExchangeParams, };
|
|
203
215
|
export { People as People, type PersonResponse as PersonResponse, type PersonResponsesCursorPage as PersonResponsesCursorPage, type PersonCreateParams as PersonCreateParams, type PersonUpdateParams as PersonUpdateParams, type PersonListParams as PersonListParams, };
|
|
216
|
+
export { Ping as Ping, type PingGetResponse as PingGetResponse };
|
|
204
217
|
export { Search as Search, type SearchResponse as SearchResponse, type SearchSearchParams as SearchSearchParams, type SearchSearchAssetsParams as SearchSearchAssetsParams, };
|
|
205
218
|
export { Users as Users, type UserResponse as UserResponse };
|
|
206
219
|
}
|
package/client.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBA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C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;IAEjE,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,KAAK,YAAY,IAAI,YAAY,EAAE,CAAC;CAC9D"}
|
package/client.d.ts
CHANGED
|
@@ -8,12 +8,16 @@ import { type CursorPageParams, CursorPageResponse } from "./core/pagination.js"
|
|
|
8
8
|
import * as Uploads from "./core/uploads.js";
|
|
9
9
|
import * as API from "./resources/index.js";
|
|
10
10
|
import { APIPromise } from "./core/api-promise.js";
|
|
11
|
+
import { AlbumAssetListParams, AlbumAssetResponse, AlbumAssetResponsesCursorPage, AlbumAssets } from "./resources/album-assets.js";
|
|
11
12
|
import { APIKeyCreateParams, APIKeyCreateResponse, APIKeyListResponse, APIKeyResponse, APIKeyUpdateParams, APIKeys } from "./resources/api-keys.js";
|
|
12
13
|
import { AssetCheckExistenceParams, AssetCreateParams, AssetDownloadThumbnailParams, AssetExistenceResponse, AssetListParams, AssetLiteResponse, AssetResponse, AssetResponsesCursorPage, Assets } from "./resources/assets.js";
|
|
14
|
+
import { AlbumAssetEventPayload, AlbumEventPayload, AssetEventPayload, EventGetParams, Events, EventsResponse, ExifEventPayload, ExifResponse, FaceEventPayload, PersonEventPayload } from "./resources/events.js";
|
|
15
|
+
import { EventsV2, EventsV2GetParams, EventsV2Response } from "./resources/events-v2.js";
|
|
13
16
|
import { FaceDeleteParams, FaceListParams, FaceResponse, FaceResponsesCursorPage, FaceRetrieveParams, FaceUpdateParams, Faces } from "./resources/faces.js";
|
|
14
17
|
import { Libraries, LibraryCreateParams, LibraryListResponse, LibraryResponse, LibraryUpdateParams } from "./resources/libraries.js";
|
|
15
18
|
import { AuthURLResponse, ExchangeResponse, LogoutEndpointResponse, OAuth, OAuthAuthURLParams, OAuthExchangeParams } from "./resources/oauth.js";
|
|
16
19
|
import { People, PersonCreateParams, PersonListParams, PersonResponse, PersonResponsesCursorPage, PersonUpdateParams } from "./resources/people.js";
|
|
20
|
+
import { Ping, PingGetResponse } from "./resources/ping.js";
|
|
17
21
|
import { Search, SearchResponse, SearchSearchAssetsParams, SearchSearchParams } from "./resources/search.js";
|
|
18
22
|
import { UserResponse, Users } from "./resources/users.js";
|
|
19
23
|
import { AlbumCreateParams, AlbumListParams, AlbumResponse, AlbumResponsesCursorPage, AlbumUpdateParams, Albums } from "./resources/albums/albums.js";
|
|
@@ -149,8 +153,8 @@ export declare class Gumnut {
|
|
|
149
153
|
private methodRequest;
|
|
150
154
|
request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
|
|
151
155
|
private makeRequest;
|
|
152
|
-
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: RequestOptions): Pagination.PagePromise<PageClass, Item>;
|
|
153
|
-
requestAPIList<Item = unknown, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass, options: FinalRequestOptions): Pagination.PagePromise<PageClass, Item>;
|
|
156
|
+
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: PromiseOrValue<RequestOptions>): Pagination.PagePromise<PageClass, Item>;
|
|
157
|
+
requestAPIList<Item = unknown, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass, options: PromiseOrValue<FinalRequestOptions>): Pagination.PagePromise<PageClass, Item>;
|
|
154
158
|
fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
|
|
155
159
|
private shouldRetry;
|
|
156
160
|
private retryRequest;
|
|
@@ -163,6 +167,7 @@ export declare class Gumnut {
|
|
|
163
167
|
timeout: number;
|
|
164
168
|
}>;
|
|
165
169
|
private buildHeaders;
|
|
170
|
+
private _makeAbort;
|
|
166
171
|
private buildBody;
|
|
167
172
|
static Gumnut: typeof Gumnut;
|
|
168
173
|
static DEFAULT_TIMEOUT: number;
|
|
@@ -183,10 +188,14 @@ export declare class Gumnut {
|
|
|
183
188
|
apiKeys: API.APIKeys;
|
|
184
189
|
assets: API.Assets;
|
|
185
190
|
albums: API.Albums;
|
|
191
|
+
albumAssets: API.AlbumAssets;
|
|
192
|
+
events: API.Events;
|
|
193
|
+
eventsV2: API.EventsV2;
|
|
186
194
|
faces: API.Faces;
|
|
187
195
|
libraries: API.Libraries;
|
|
188
196
|
oauth: API.OAuth;
|
|
189
197
|
people: API.People;
|
|
198
|
+
ping: API.Ping;
|
|
190
199
|
search: API.Search;
|
|
191
200
|
users: API.Users;
|
|
192
201
|
}
|
|
@@ -197,10 +206,14 @@ export declare namespace Gumnut {
|
|
|
197
206
|
export { APIKeys as APIKeys, type APIKeyResponse as APIKeyResponse, type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyUpdateParams as APIKeyUpdateParams, };
|
|
198
207
|
export { Assets as Assets, type AssetExistenceResponse as AssetExistenceResponse, type AssetLiteResponse as AssetLiteResponse, type AssetResponse as AssetResponse, type AssetResponsesCursorPage as AssetResponsesCursorPage, type AssetCreateParams as AssetCreateParams, type AssetListParams as AssetListParams, type AssetCheckExistenceParams as AssetCheckExistenceParams, type AssetDownloadThumbnailParams as AssetDownloadThumbnailParams, };
|
|
199
208
|
export { Albums as Albums, type AlbumResponse as AlbumResponse, type AlbumResponsesCursorPage as AlbumResponsesCursorPage, type AlbumCreateParams as AlbumCreateParams, type AlbumUpdateParams as AlbumUpdateParams, type AlbumListParams as AlbumListParams, };
|
|
209
|
+
export { AlbumAssets as AlbumAssets, type AlbumAssetResponse as AlbumAssetResponse, type AlbumAssetResponsesCursorPage as AlbumAssetResponsesCursorPage, type AlbumAssetListParams as AlbumAssetListParams, };
|
|
210
|
+
export { Events as Events, type AlbumAssetEventPayload as AlbumAssetEventPayload, type AlbumEventPayload as AlbumEventPayload, type AssetEventPayload as AssetEventPayload, type EventsResponse as EventsResponse, type ExifEventPayload as ExifEventPayload, type ExifResponse as ExifResponse, type FaceEventPayload as FaceEventPayload, type PersonEventPayload as PersonEventPayload, type EventGetParams as EventGetParams, };
|
|
211
|
+
export { EventsV2 as EventsV2, type EventsV2Response as EventsV2Response, type EventsV2GetParams as EventsV2GetParams, };
|
|
200
212
|
export { Faces as Faces, type FaceResponse as FaceResponse, type FaceResponsesCursorPage as FaceResponsesCursorPage, type FaceRetrieveParams as FaceRetrieveParams, type FaceUpdateParams as FaceUpdateParams, type FaceListParams as FaceListParams, type FaceDeleteParams as FaceDeleteParams, };
|
|
201
213
|
export { Libraries as Libraries, type LibraryResponse as LibraryResponse, type LibraryListResponse as LibraryListResponse, type LibraryCreateParams as LibraryCreateParams, type LibraryUpdateParams as LibraryUpdateParams, };
|
|
202
214
|
export { OAuth as OAuth, type AuthURLResponse as AuthURLResponse, type ExchangeResponse as ExchangeResponse, type LogoutEndpointResponse as LogoutEndpointResponse, type OAuthAuthURLParams as OAuthAuthURLParams, type OAuthExchangeParams as OAuthExchangeParams, };
|
|
203
215
|
export { People as People, type PersonResponse as PersonResponse, type PersonResponsesCursorPage as PersonResponsesCursorPage, type PersonCreateParams as PersonCreateParams, type PersonUpdateParams as PersonUpdateParams, type PersonListParams as PersonListParams, };
|
|
216
|
+
export { Ping as Ping, type PingGetResponse as PingGetResponse };
|
|
204
217
|
export { Search as Search, type SearchResponse as SearchResponse, type SearchSearchParams as SearchSearchParams, type SearchSearchAssetsParams as SearchSearchAssetsParams, };
|
|
205
218
|
export { Users as Users, type UserResponse as UserResponse };
|
|
206
219
|
}
|
package/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAGT,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAgB,KAAK,gBAAgB,EAAE,kBAAkB,EAAE;OAC3D,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EACL,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,OAAO,EACR;OACM,EACL,yBAAyB,EACzB,iBAAiB,EACjB,4BAA4B,EAC5B,sBAAsB,EACtB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,wBAAwB,EACxB,MAAM,EACP;OACM,EACL,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,uBAAuB,EACvB,kBAAkB,EAClB,gBA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KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;IAEjE,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,KAAK,YAAY,IAAI,YAAY,EAAE,CAAC;CAC9D"}
|
package/client.js
CHANGED
|
@@ -18,12 +18,16 @@ const Pagination = tslib_1.__importStar(require("./core/pagination.js"));
|
|
|
18
18
|
const Uploads = tslib_1.__importStar(require("./core/uploads.js"));
|
|
19
19
|
const API = tslib_1.__importStar(require("./resources/index.js"));
|
|
20
20
|
const api_promise_1 = require("./core/api-promise.js");
|
|
21
|
+
const album_assets_1 = require("./resources/album-assets.js");
|
|
21
22
|
const api_keys_1 = require("./resources/api-keys.js");
|
|
22
23
|
const assets_1 = require("./resources/assets.js");
|
|
24
|
+
const events_1 = require("./resources/events.js");
|
|
25
|
+
const events_v2_1 = require("./resources/events-v2.js");
|
|
23
26
|
const faces_1 = require("./resources/faces.js");
|
|
24
27
|
const libraries_1 = require("./resources/libraries.js");
|
|
25
28
|
const oauth_1 = require("./resources/oauth.js");
|
|
26
29
|
const people_1 = require("./resources/people.js");
|
|
30
|
+
const ping_1 = require("./resources/ping.js");
|
|
27
31
|
const search_1 = require("./resources/search.js");
|
|
28
32
|
const users_1 = require("./resources/users.js");
|
|
29
33
|
const albums_1 = require("./resources/albums/albums.js");
|
|
@@ -53,10 +57,14 @@ class Gumnut {
|
|
|
53
57
|
this.apiKeys = new API.APIKeys(this);
|
|
54
58
|
this.assets = new API.Assets(this);
|
|
55
59
|
this.albums = new API.Albums(this);
|
|
60
|
+
this.albumAssets = new API.AlbumAssets(this);
|
|
61
|
+
this.events = new API.Events(this);
|
|
62
|
+
this.eventsV2 = new API.EventsV2(this);
|
|
56
63
|
this.faces = new API.Faces(this);
|
|
57
64
|
this.libraries = new API.Libraries(this);
|
|
58
65
|
this.oauth = new API.OAuth(this);
|
|
59
66
|
this.people = new API.People(this);
|
|
67
|
+
this.ping = new API.Ping(this);
|
|
60
68
|
this.search = new API.Search(this);
|
|
61
69
|
this.users = new API.Users(this);
|
|
62
70
|
const options = {
|
|
@@ -118,7 +126,7 @@ class Gumnut {
|
|
|
118
126
|
return (0, headers_1.buildHeaders)([{ Authorization: `Bearer ${this.apiKey}` }]);
|
|
119
127
|
}
|
|
120
128
|
stringifyQuery(query) {
|
|
121
|
-
return qs.stringify(query, { arrayFormat: '
|
|
129
|
+
return qs.stringify(query, { arrayFormat: 'repeat' });
|
|
122
130
|
}
|
|
123
131
|
getUserAgent() {
|
|
124
132
|
return `${this.constructor.name}/JS ${version_1.VERSION}`;
|
|
@@ -282,7 +290,9 @@ class Gumnut {
|
|
|
282
290
|
return { response, options, controller, requestLogID, retryOfRequestLogID, startTime };
|
|
283
291
|
}
|
|
284
292
|
getAPIList(path, Page, opts) {
|
|
285
|
-
return this.requestAPIList(Page,
|
|
293
|
+
return this.requestAPIList(Page, opts && 'then' in opts ?
|
|
294
|
+
opts.then((opts) => ({ method: 'get', path, ...opts }))
|
|
295
|
+
: { method: 'get', path, ...opts });
|
|
286
296
|
}
|
|
287
297
|
requestAPIList(Page, options) {
|
|
288
298
|
const request = this.makeRequest(options, null, undefined);
|
|
@@ -290,9 +300,10 @@ class Gumnut {
|
|
|
290
300
|
}
|
|
291
301
|
async fetchWithTimeout(url, init, ms, controller) {
|
|
292
302
|
const { signal, method, ...options } = init || {};
|
|
303
|
+
const abort = this._makeAbort(controller);
|
|
293
304
|
if (signal)
|
|
294
|
-
signal.addEventListener('abort',
|
|
295
|
-
const timeout = setTimeout(
|
|
305
|
+
signal.addEventListener('abort', abort, { once: true });
|
|
306
|
+
const timeout = setTimeout(abort, ms);
|
|
296
307
|
const isReadableBody = (globalThis.ReadableStream && options.body instanceof globalThis.ReadableStream) ||
|
|
297
308
|
(typeof options.body === 'object' && options.body !== null && Symbol.asyncIterator in options.body);
|
|
298
309
|
const fetchOptions = {
|
|
@@ -421,6 +432,11 @@ class Gumnut {
|
|
|
421
432
|
this.validateHeaders(headers);
|
|
422
433
|
return headers.values;
|
|
423
434
|
}
|
|
435
|
+
_makeAbort(controller) {
|
|
436
|
+
// note: we can't just inline this method inside `fetchWithTimeout()` because then the closure
|
|
437
|
+
// would capture all request options, and cause a memory leak.
|
|
438
|
+
return () => controller.abort();
|
|
439
|
+
}
|
|
424
440
|
buildBody({ options: { body, headers: rawHeaders } }) {
|
|
425
441
|
if (!body) {
|
|
426
442
|
return { bodyHeaders: undefined, body: undefined };
|
|
@@ -477,10 +493,14 @@ Gumnut.toFile = Uploads.toFile;
|
|
|
477
493
|
Gumnut.APIKeys = api_keys_1.APIKeys;
|
|
478
494
|
Gumnut.Assets = assets_1.Assets;
|
|
479
495
|
Gumnut.Albums = albums_1.Albums;
|
|
496
|
+
Gumnut.AlbumAssets = album_assets_1.AlbumAssets;
|
|
497
|
+
Gumnut.Events = events_1.Events;
|
|
498
|
+
Gumnut.EventsV2 = events_v2_1.EventsV2;
|
|
480
499
|
Gumnut.Faces = faces_1.Faces;
|
|
481
500
|
Gumnut.Libraries = libraries_1.Libraries;
|
|
482
501
|
Gumnut.OAuth = oauth_1.OAuth;
|
|
483
502
|
Gumnut.People = people_1.People;
|
|
503
|
+
Gumnut.Ping = ping_1.Ping;
|
|
484
504
|
Gumnut.Search = search_1.Search;
|
|
485
505
|
Gumnut.Users = users_1.Users;
|
|
486
506
|
//# sourceMappingURL=client.js.map
|