Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/superwall-api-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@v6

Expand All @@ -43,7 +43,7 @@ jobs:
timeout-minutes: 5
name: build
runs-on: ${{ github.repository == 'stainless-sdks/superwall-api-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
permissions:
contents: read
id-token: write
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.prism.log
.stdy.log
node_modules
yarn-error.log
codegen.log
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.3.0"
".": "0.4.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 69
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/superwall-Makisuo%2Fsuperwall-api-cf8b91e02da0ef29a715489a87e5aa43ebece4919bad09cc5cff2da1a9c91064.yml
openapi_spec_hash: 24fbfaf86db5cf138223595effa796e4
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/superwall-Makisuo%2Fsuperwall-api-50140d6dc2d029578bac93ec163d331dcf969369c495e8a161ef25db8fdaff28.yml
openapi_spec_hash: 1c1d65319fc3270a2c3ec97f507d4418
config_hash: dfc8fae1943177a610a7d4985af30c54
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Changelog

## 0.4.0 (2026-04-15)

Full Changelog: [v0.3.0...v0.4.0](https://github.com/superwall/superwall-sdk-typescript/compare/v0.3.0...v0.4.0)

### Features

* **api:** api update ([d2194c5](https://github.com/superwall/superwall-sdk-typescript/commit/d2194c57fad5d00a6ccdecc1a5382e0e3ccabbc5))
* **api:** api update ([7e1c460](https://github.com/superwall/superwall-sdk-typescript/commit/7e1c4606938a6d959f86e371771744287e028619))
* **api:** api update ([4a22fbf](https://github.com/superwall/superwall-sdk-typescript/commit/4a22fbf0e305a352d50c703cb9ef0d63d05e62f8))


### Chores

* **ci:** skip lint on metadata-only changes ([be93869](https://github.com/superwall/superwall-sdk-typescript/commit/be93869d4fc6fdaa81a0f80d6f2a76dcb4634273))
* **internal:** codegen related update ([9f0ffa0](https://github.com/superwall/superwall-sdk-typescript/commit/9f0ffa05a31e5ebf667efccc17f6cd6a6450a434))
* **internal:** update gitignore ([9450ea4](https://github.com/superwall/superwall-sdk-typescript/commit/9450ea469048b4d0a0dd858076e98b8f2ab638e5))

## 0.3.0 (2026-03-17)

Full Changelog: [v0.2.0...v0.3.0](https://github.com/superwall/superwall-sdk-typescript/compare/v0.2.0...v0.3.0)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "superwall-api",
"version": "0.3.0",
"version": "0.4.0",
"description": "The official TypeScript library for the Superwall API",
"author": "Superwall API <>",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/internal/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
*/
export const readEnv = (env: string): string | undefined => {
if (typeof (globalThis as any).process !== 'undefined') {
return (globalThis as any).process.env?.[env]?.trim() ?? undefined;
return (globalThis as any).process.env?.[env]?.trim() || undefined;
}
if (typeof (globalThis as any).Deno !== 'undefined') {
return (globalThis as any).Deno.env?.get?.(env)?.trim();
return (globalThis as any).Deno.env?.get?.(env)?.trim() || undefined;
}
return undefined;
};
6 changes: 6 additions & 0 deletions src/resources/entitlements/grants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ export interface GrantCreateParams {
}

export interface GrantListParams {
/**
* a string to be decoded into a number
*/
ending_before?: string;

/**
Expand All @@ -237,6 +240,9 @@ export interface GrantListParams {
*/
limit?: string;

/**
* a string to be decoded into a number
*/
starting_after?: string;
}

Expand Down
6 changes: 6 additions & 0 deletions src/resources/grants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ export interface GrantListParams {

device_id?: string;

/**
* a string to be decoded into a number
*/
ending_before?: string;

/**
Expand All @@ -124,6 +127,9 @@ export interface GrantListParams {
*/
limit?: string;

/**
* a string to be decoded into a number
*/
starting_after?: string;

user_id?: string;
Expand Down
10 changes: 8 additions & 2 deletions src/resources/me/organizations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ export class Organizations extends APIResource {
}

export interface OrganizationCreateResponse {
id: string;
/**
* an integer
*/
id: number;

created_at: string;

Expand All @@ -44,7 +47,10 @@ export interface OrganizationListResponse {

export namespace OrganizationListResponse {
export interface Data {
id: string;
/**
* an integer
*/
id: number;

name: string;

Expand Down
12 changes: 6 additions & 6 deletions src/resources/paywalls/paywalls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export namespace PaywallCreateResponse {
/**
* Store this product belongs to
*/
store: 'app-store' | 'play-store' | 'stripe' | 'paddle';
store: 'app-store' | 'play-store' | 'stripe' | 'paddle' | 'custom';
}
}

Expand Down Expand Up @@ -288,7 +288,7 @@ export namespace PaywallRetrieveResponse {
/**
* Store this product belongs to
*/
store: 'app-store' | 'play-store' | 'stripe' | 'paddle';
store: 'app-store' | 'play-store' | 'stripe' | 'paddle' | 'custom';
}
}

Expand Down Expand Up @@ -399,7 +399,7 @@ export namespace PaywallUpdateResponse {
/**
* Store this product belongs to
*/
store: 'app-store' | 'play-store' | 'stripe' | 'paddle';
store: 'app-store' | 'play-store' | 'stripe' | 'paddle' | 'custom';
}
}

Expand Down Expand Up @@ -533,7 +533,7 @@ export namespace PaywallListResponse {
/**
* Store this product belongs to
*/
store: 'app-store' | 'play-store' | 'stripe' | 'paddle';
store: 'app-store' | 'play-store' | 'stripe' | 'paddle' | 'custom';
}
}
}
Expand Down Expand Up @@ -660,7 +660,7 @@ export namespace PaywallCreateParams {
/**
* Store this product belongs to
*/
store: 'app-store' | 'play-store' | 'stripe' | 'paddle';
store: 'app-store' | 'play-store' | 'stripe' | 'paddle' | 'custom';
}
}

Expand Down Expand Up @@ -714,7 +714,7 @@ export namespace PaywallUpdateParams {
/**
* Store this product belongs to
*/
store: 'app-store' | 'play-store' | 'stripe' | 'paddle';
store: 'app-store' | 'play-store' | 'stripe' | 'paddle' | 'custom';
}
}

Expand Down
10 changes: 5 additions & 5 deletions src/resources/products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export interface ProductCreateResponse {
/**
* Platform the product belongs to
*/
platform: 'ios' | 'android' | 'stripe' | 'paddle' | 'promotional';
platform: 'ios' | 'android' | 'stripe' | 'paddle' | 'promotional' | 'custom';

/**
* Price of the product, or null
Expand Down Expand Up @@ -203,7 +203,7 @@ export interface ProductRetrieveResponse {
/**
* Platform the product belongs to
*/
platform: 'ios' | 'android' | 'stripe' | 'paddle' | 'promotional';
platform: 'ios' | 'android' | 'stripe' | 'paddle' | 'promotional' | 'custom';

/**
* Price of the product, or null
Expand Down Expand Up @@ -321,7 +321,7 @@ export interface ProductUpdateResponse {
/**
* Platform the product belongs to
*/
platform: 'ios' | 'android' | 'stripe' | 'paddle' | 'promotional';
platform: 'ios' | 'android' | 'stripe' | 'paddle' | 'promotional' | 'custom';

/**
* Price of the product, or null
Expand Down Expand Up @@ -462,7 +462,7 @@ export namespace ProductListResponse {
/**
* Platform the product belongs to
*/
platform: 'ios' | 'android' | 'stripe' | 'paddle' | 'promotional';
platform: 'ios' | 'android' | 'stripe' | 'paddle' | 'promotional' | 'custom';

/**
* Price of the product, or null
Expand Down Expand Up @@ -666,7 +666,7 @@ export interface ProductListParams {
/**
* Platform the product belongs to
*/
platform?: 'ios' | 'android' | 'stripe' | 'paddle' | 'promotional';
platform?: 'ios' | 'android' | 'stripe' | 'paddle' | 'promotional' | 'custom';

/**
* a string to be decoded into a number
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.3.0'; // x-release-please-version
export const VERSION = '0.4.0'; // x-release-please-version
Loading