@ownkeyhq/sdk 0.0.0-stage → 0.3.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 +34 -0
- package/LICENSE +21 -0
- package/dist/openapi.json +20640 -0
- package/dist/src/client.d.ts +63 -0
- package/dist/src/client.js +153 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/openapi.d.ts +8457 -0
- package/package.json +35 -3
- package/README.md +0 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
- Breaking: `overview.summary` reports `valid_licenses.tier` on the eight-tier hosted ladder, `start`, `indie`, `grow`, `studio`, `pro`, `business`, `scale` and `scale_100k`. Above 100,000 valid licenses it reports `custom`, which replaces `above_scale`.
|
|
6
|
+
- `releases.storageUsage` reports the new `indie`, `studio`, `business` and `scale_100k` tiers in `tier`.
|
|
7
|
+
- Upload or remove a product logo with `products.uploadLogo` and `products.removeLogo`. Products and `account.get` licenses return it in `logo_url`.
|
|
8
|
+
- Read what a connection supports in `capabilities`: new payments, renewals, and whether prices map by product or by price.
|
|
9
|
+
- List differences from a Lemon Squeezy reconciliation with `lemonReconciliation.list`.
|
|
10
|
+
- Count the records to check before switching from Lemon Squeezy with `imports.lemonsqueezy.readiness`, and link Ownkey customers to a Polar organization with `imports.polar.linkCustomers`.
|
|
11
|
+
- Apply a Polar discount with `discount_id` and pass up to 5 attribution values in `metadata` to `checkouts.createForPlan`.
|
|
12
|
+
- `account.get` lists a subscription's `manage_pages` and its `renew_page`, and `account.manageSubscription` opens one of them with `page`.
|
|
13
|
+
- `releases.removeAsset` removes a file from a yanked release without a replacement. A release that is not yanked still needs a newer stable release with a verified equivalent file.
|
|
14
|
+
- A repeated `licenses.activate` on a site returns the site's current `instance_id`.
|
|
15
|
+
|
|
16
|
+
## 0.2.0
|
|
17
|
+
|
|
18
|
+
- Install the Ownkey SDK from npm as `@ownkeyhq/sdk`.
|
|
19
|
+
- Products now have an optional `install_instructions` field. The `kind` and `wp_slug` fields were removed.
|
|
20
|
+
- Use `licenses.list`, `payments.list`, `payments.get` and `customers.search` for seller support, and read the license state and renewal eligibility in the `state` and `renewal` fields of `licenses.get`.
|
|
21
|
+
- Read `periods[].origin` in `licenses.get` to see whether a payment, a person, or an EDD or Lemon Squeezy import created the period.
|
|
22
|
+
- Bundle download responses include `bundle_downloads[].source` to distinguish the bundle's own ZIP files from those of included products.
|
|
23
|
+
- Read one provider event with `providerEvents.get`.
|
|
24
|
+
- Link a match queue item to a license with `matchQueue.resolve`.
|
|
25
|
+
- Read a revenue and license summary with `overview.summary` and the items that need attention with `overview.attention`.
|
|
26
|
+
- Sort customers by their latest payment or renewal with `customers.list` and `sort=activity`. Customers without payments use their registration date.
|
|
27
|
+
- List saved EDD import jobs by source with `imports.edd.listJobs`. Lemon Squeezy import responses report progress and distinguish a skipped phase from a failure.
|
|
28
|
+
- Correct provider product and price IDs, replace the mapped plan, or remove a provider price mapping.
|
|
29
|
+
- Upload or remove a brand logo with `brands.uploadLogo` and `brands.removeLogo`.
|
|
30
|
+
|
|
31
|
+
## 0.1.0
|
|
32
|
+
|
|
33
|
+
- Use a typed client for the Ownkey API and import the OpenAPI document from `@ownkeyhq/sdk/openapi.json`.
|
|
34
|
+
- Check for a product update with `releases.checkUpdate` without a seller API key.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Devoice LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|