@zyphr-dev/node-sdk 0.1.47 → 0.1.48

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/dist/index.d.cts CHANGED
@@ -26914,7 +26914,7 @@ interface AuthSessionsApiInterface {
26914
26914
  */
26915
26915
  listEndUserSessions(initOverrides?: RequestInit | InitOverrideFunction): Promise<SessionListResponse>;
26916
26916
  /**
26917
- * Refresh access token using a refresh token. Accepts optional custom_claims to update JWT claims (if not provided, preserves existing claims).
26917
+ * Refresh an end-user access token using a refresh token. Authenticated with the publishable application key (`X-Application-Key`) — no application secret is required, so client-side apps (browser / mobile) can refresh directly. The refresh token is the credential: it must be valid, unexpired, unrevoked, and issued for this application. Refresh tokens are single-use — each refresh returns a NEW refresh token and invalidates the one you presented, so persist the new token before the next refresh. Accepts optional custom_claims to update JWT claims (if not provided, current stored claims are preserved).
26918
26918
  * @summary Refresh access token
26919
26919
  * @param {RefreshSessionRequest} refreshSessionRequest
26920
26920
  * @param {*} [options] Override http request option.
@@ -26923,7 +26923,7 @@ interface AuthSessionsApiInterface {
26923
26923
  */
26924
26924
  refreshEndUserTokenRaw(requestParameters: AuthSessionsApiRefreshEndUserTokenRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<RefreshTokenResponse>>;
26925
26925
  /**
26926
- * Refresh access token using a refresh token. Accepts optional custom_claims to update JWT claims (if not provided, preserves existing claims).
26926
+ * Refresh an end-user access token using a refresh token. Authenticated with the publishable application key (`X-Application-Key`) — no application secret is required, so client-side apps (browser / mobile) can refresh directly. The refresh token is the credential: it must be valid, unexpired, unrevoked, and issued for this application. Refresh tokens are single-use — each refresh returns a NEW refresh token and invalidates the one you presented, so persist the new token before the next refresh. Accepts optional custom_claims to update JWT claims (if not provided, current stored claims are preserved).
26927
26927
  * Refresh access token
26928
26928
  */
26929
26929
  refreshEndUserToken(refreshSessionRequest: RefreshSessionRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<RefreshTokenResponse>;
@@ -26970,12 +26970,12 @@ declare class AuthSessionsApi extends BaseAPI implements AuthSessionsApiInterfac
26970
26970
  */
26971
26971
  listEndUserSessions(initOverrides?: RequestInit | InitOverrideFunction): Promise<SessionListResponse>;
26972
26972
  /**
26973
- * Refresh access token using a refresh token. Accepts optional custom_claims to update JWT claims (if not provided, preserves existing claims).
26973
+ * Refresh an end-user access token using a refresh token. Authenticated with the publishable application key (`X-Application-Key`) — no application secret is required, so client-side apps (browser / mobile) can refresh directly. The refresh token is the credential: it must be valid, unexpired, unrevoked, and issued for this application. Refresh tokens are single-use — each refresh returns a NEW refresh token and invalidates the one you presented, so persist the new token before the next refresh. Accepts optional custom_claims to update JWT claims (if not provided, current stored claims are preserved).
26974
26974
  * Refresh access token
26975
26975
  */
26976
26976
  refreshEndUserTokenRaw(requestParameters: AuthSessionsApiRefreshEndUserTokenRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<RefreshTokenResponse>>;
26977
26977
  /**
26978
- * Refresh access token using a refresh token. Accepts optional custom_claims to update JWT claims (if not provided, preserves existing claims).
26978
+ * Refresh an end-user access token using a refresh token. Authenticated with the publishable application key (`X-Application-Key`) — no application secret is required, so client-side apps (browser / mobile) can refresh directly. The refresh token is the credential: it must be valid, unexpired, unrevoked, and issued for this application. Refresh tokens are single-use — each refresh returns a NEW refresh token and invalidates the one you presented, so persist the new token before the next refresh. Accepts optional custom_claims to update JWT claims (if not provided, current stored claims are preserved).
26979
26979
  * Refresh access token
26980
26980
  */
26981
26981
  refreshEndUserToken(refreshSessionRequest: RefreshSessionRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<RefreshTokenResponse>;
package/dist/index.d.ts CHANGED
@@ -26914,7 +26914,7 @@ interface AuthSessionsApiInterface {
26914
26914
  */
26915
26915
  listEndUserSessions(initOverrides?: RequestInit | InitOverrideFunction): Promise<SessionListResponse>;
26916
26916
  /**
26917
- * Refresh access token using a refresh token. Accepts optional custom_claims to update JWT claims (if not provided, preserves existing claims).
26917
+ * Refresh an end-user access token using a refresh token. Authenticated with the publishable application key (`X-Application-Key`) — no application secret is required, so client-side apps (browser / mobile) can refresh directly. The refresh token is the credential: it must be valid, unexpired, unrevoked, and issued for this application. Refresh tokens are single-use — each refresh returns a NEW refresh token and invalidates the one you presented, so persist the new token before the next refresh. Accepts optional custom_claims to update JWT claims (if not provided, current stored claims are preserved).
26918
26918
  * @summary Refresh access token
26919
26919
  * @param {RefreshSessionRequest} refreshSessionRequest
26920
26920
  * @param {*} [options] Override http request option.
@@ -26923,7 +26923,7 @@ interface AuthSessionsApiInterface {
26923
26923
  */
26924
26924
  refreshEndUserTokenRaw(requestParameters: AuthSessionsApiRefreshEndUserTokenRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<RefreshTokenResponse>>;
26925
26925
  /**
26926
- * Refresh access token using a refresh token. Accepts optional custom_claims to update JWT claims (if not provided, preserves existing claims).
26926
+ * Refresh an end-user access token using a refresh token. Authenticated with the publishable application key (`X-Application-Key`) — no application secret is required, so client-side apps (browser / mobile) can refresh directly. The refresh token is the credential: it must be valid, unexpired, unrevoked, and issued for this application. Refresh tokens are single-use — each refresh returns a NEW refresh token and invalidates the one you presented, so persist the new token before the next refresh. Accepts optional custom_claims to update JWT claims (if not provided, current stored claims are preserved).
26927
26927
  * Refresh access token
26928
26928
  */
26929
26929
  refreshEndUserToken(refreshSessionRequest: RefreshSessionRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<RefreshTokenResponse>;
@@ -26970,12 +26970,12 @@ declare class AuthSessionsApi extends BaseAPI implements AuthSessionsApiInterfac
26970
26970
  */
26971
26971
  listEndUserSessions(initOverrides?: RequestInit | InitOverrideFunction): Promise<SessionListResponse>;
26972
26972
  /**
26973
- * Refresh access token using a refresh token. Accepts optional custom_claims to update JWT claims (if not provided, preserves existing claims).
26973
+ * Refresh an end-user access token using a refresh token. Authenticated with the publishable application key (`X-Application-Key`) — no application secret is required, so client-side apps (browser / mobile) can refresh directly. The refresh token is the credential: it must be valid, unexpired, unrevoked, and issued for this application. Refresh tokens are single-use — each refresh returns a NEW refresh token and invalidates the one you presented, so persist the new token before the next refresh. Accepts optional custom_claims to update JWT claims (if not provided, current stored claims are preserved).
26974
26974
  * Refresh access token
26975
26975
  */
26976
26976
  refreshEndUserTokenRaw(requestParameters: AuthSessionsApiRefreshEndUserTokenRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<RefreshTokenResponse>>;
26977
26977
  /**
26978
- * Refresh access token using a refresh token. Accepts optional custom_claims to update JWT claims (if not provided, preserves existing claims).
26978
+ * Refresh an end-user access token using a refresh token. Authenticated with the publishable application key (`X-Application-Key`) — no application secret is required, so client-side apps (browser / mobile) can refresh directly. The refresh token is the credential: it must be valid, unexpired, unrevoked, and issued for this application. Refresh tokens are single-use — each refresh returns a NEW refresh token and invalidates the one you presented, so persist the new token before the next refresh. Accepts optional custom_claims to update JWT claims (if not provided, current stored claims are preserved).
26979
26979
  * Refresh access token
26980
26980
  */
26981
26981
  refreshEndUserToken(refreshSessionRequest: RefreshSessionRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<RefreshTokenResponse>;
package/dist/index.js CHANGED
@@ -19177,7 +19177,7 @@ var AuthSessionsApi = class extends BaseAPI {
19177
19177
  return await response.value();
19178
19178
  }
19179
19179
  /**
19180
- * Refresh access token using a refresh token. Accepts optional custom_claims to update JWT claims (if not provided, preserves existing claims).
19180
+ * Refresh an end-user access token using a refresh token. Authenticated with the publishable application key (`X-Application-Key`) — no application secret is required, so client-side apps (browser / mobile) can refresh directly. The refresh token is the credential: it must be valid, unexpired, unrevoked, and issued for this application. Refresh tokens are single-use — each refresh returns a NEW refresh token and invalidates the one you presented, so persist the new token before the next refresh. Accepts optional custom_claims to update JWT claims (if not provided, current stored claims are preserved).
19181
19181
  * Refresh access token
19182
19182
  */
19183
19183
  async refreshEndUserTokenRaw(requestParameters, initOverrides) {
@@ -19206,7 +19206,7 @@ var AuthSessionsApi = class extends BaseAPI {
19206
19206
  return new JSONApiResponse(response, (jsonValue) => RefreshTokenResponseFromJSON(jsonValue));
19207
19207
  }
19208
19208
  /**
19209
- * Refresh access token using a refresh token. Accepts optional custom_claims to update JWT claims (if not provided, preserves existing claims).
19209
+ * Refresh an end-user access token using a refresh token. Authenticated with the publishable application key (`X-Application-Key`) — no application secret is required, so client-side apps (browser / mobile) can refresh directly. The refresh token is the credential: it must be valid, unexpired, unrevoked, and issued for this application. Refresh tokens are single-use — each refresh returns a NEW refresh token and invalidates the one you presented, so persist the new token before the next refresh. Accepts optional custom_claims to update JWT claims (if not provided, current stored claims are preserved).
19210
19210
  * Refresh access token
19211
19211
  */
19212
19212
  async refreshEndUserToken(refreshSessionRequest, initOverrides) {