Skip to content

Commit d42c240

Browse files
authored
Update generated code (#29)
1 parent 513207e commit d42c240

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

deno.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@userhub/sdk",
3-
"version": "0.6.3",
3+
"version": "0.6.4",
44
"exports": "./src/mod.ts",
55
"lint": {
66
"include": ["src/", "test/deno"],

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@userhub/sdk",
3-
"version": "0.6.3",
3+
"version": "0.6.4",
44
"description": "UserHub JavaScript SDK",
55
"license": "MIT",
66
"author": "UserHub (https://userhub.com/)",

src/adminapi.ts

+22-1
Original file line numberDiff line numberDiff line change
@@ -1603,15 +1603,36 @@ interface UserCreatePortalSessionInput extends RequestOptions {
16031603
// The portal URL, this is the target URL on the portal site.
16041604
//
16051605
// If not defined the root URL for the portal will be used.
1606+
//
1607+
// This does not need to be the full URL, you have the option
1608+
// of passing in a path instead (e.g. `/`).
1609+
//
1610+
// You also have the option of including the `{accountId}`
1611+
// string in the path/URL which will be replaced with either the
1612+
// UserHub user ID (if `organizationId` is not specified)
1613+
// or the UserHub organization ID (if specified).
1614+
//
1615+
// Examples:
1616+
// * `/{accountId}` - the billing dashboard
1617+
// * `/{accountId}/plans` - select a plan to checkout
1618+
// * `/{accountId}/checkout/<some-plan-id>` - checkout specified plan
1619+
// * `/{accountId}/members` - manage organization members
1620+
// * `/{accountId}/invite` - invite a user to an organization
16061621
portalUrl?: string;
16071622
// The URL the user should be sent to when they want to return to
16081623
// the app (e.g. cancel checkout).
16091624
//
16101625
// If not defined the app URL will be used.
16111626
returnUrl?: string;
1612-
// The URl the user should be sent after they successfully complete
1627+
// The URL the user should be sent after they successfully complete
16131628
// an action (e.g. checkout).
16141629
//
16151630
// If not defined the return URL will be used.
16161631
successUrl?: string;
1632+
// The organization ID.
1633+
//
1634+
// When specified the `{accountId}` in the `portalUrl` will be
1635+
// replaced with the organization ID, otherwise the user ID
1636+
// will be used.
1637+
organizationId?: string;
16171638
}

src/internal/constants.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Code generated. DO NOT EDIT.
22

33
export const API_BASE_URL = "https://api.userhub.com";
4-
export const USER_AGENT = "UserHub-JavaScript/0.6.3";
5-
export const VERSION = "0.6.3";
4+
export const USER_AGENT = "UserHub-JavaScript/0.6.4";
5+
export const VERSION = "0.6.4";
66

77
export const AUTH_HEADER = "Authorization";
88
export const API_KEY_HEADER = "UserHub-Api-Key";

0 commit comments

Comments
 (0)