@hypelabs-llc/ts-sdk 0.2.4 → 0.2.6

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.
@@ -11,5 +11,6 @@
11
11
  * the generated Kiota plumbing directly.
12
12
  *
13
13
  * @param apiKey A Connect API key (e.g. `hl_live_…`).
14
+ * @param baseUrl Optional API base URL; leave empty to use the SDK default.
14
15
  */
15
- export declare function createConnectClient(apiKey: string): any;
16
+ export declare function createConnectClient(apiKey: string, baseUrl?: string): any;
@@ -14,11 +14,15 @@ import { ApiKeyAuthenticationProvider } from "./apiKeyAuthenticationProvider.js"
14
14
  * the generated Kiota plumbing directly.
15
15
  *
16
16
  * @param apiKey A Connect API key (e.g. `hl_live_…`).
17
+ * @param baseUrl Optional API base URL; leave empty to use the SDK default.
17
18
  */
18
- export function createConnectClient(apiKey) {
19
+ export function createConnectClient(apiKey, baseUrl) {
19
20
  if (!apiKey || !apiKey.trim()) {
20
21
  throw new Error("An API key is required.");
21
22
  }
22
23
  const adapter = new DefaultRequestAdapter(new ApiKeyAuthenticationProvider(apiKey));
24
+ if (baseUrl?.trim()) {
25
+ adapter.baseUrl = baseUrl;
26
+ }
23
27
  return createConnectApiClient(adapter);
24
28
  }
@@ -885,9 +885,9 @@ export interface CustomerAuthResponse extends AdditionalDataHolder, Parsable {
885
885
  */
886
886
  expiresAt?: Date | null;
887
887
  /**
888
- * Whether the customer is banned (suspended). False for an active account.
888
+ * Whether the customer's account is active. False when the account has been suspended.
889
889
  */
890
- isBanned?: boolean | null;
890
+ isActive?: boolean | null;
891
891
  /**
892
892
  * The customer's preferred locale (e.g. `en-US`), when set.
893
893
  */
@@ -928,7 +928,7 @@ export function deserializeIntoCustomerAuthResponse(customerAuthResponse = {}) {
928
928
  "avatar": n => { customerAuthResponse.avatar = n.getStringValue(); },
929
929
  "email": n => { customerAuthResponse.email = n.getStringValue(); },
930
930
  "expiresAt": n => { customerAuthResponse.expiresAt = n.getDateValue(); },
931
- "isBanned": n => { customerAuthResponse.isBanned = n.getBooleanValue(); },
931
+ "isActive": n => { customerAuthResponse.isActive = n.getBooleanValue(); },
932
932
  "locale": n => { customerAuthResponse.locale = n.getStringValue(); },
933
933
  "name": n => { customerAuthResponse.name = n.getStringValue(); },
934
934
  "userId": n => { customerAuthResponse.userId = n.getGuidValue(); },
@@ -2029,7 +2029,7 @@ export function serializeCustomerAuthResponse(writer, customerAuthResponse = {},
2029
2029
  writer.writeStringValue("avatar", customerAuthResponse.avatar);
2030
2030
  writer.writeStringValue("email", customerAuthResponse.email);
2031
2031
  writer.writeDateValue("expiresAt", customerAuthResponse.expiresAt);
2032
- writer.writeBooleanValue("isBanned", customerAuthResponse.isBanned);
2032
+ writer.writeBooleanValue("isActive", customerAuthResponse.isActive);
2033
2033
  writer.writeStringValue("locale", customerAuthResponse.locale);
2034
2034
  writer.writeStringValue("name", customerAuthResponse.name);
2035
2035
  writer.writeGuidValue("userId", customerAuthResponse.userId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypelabs-llc/ts-sdk",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "The TypeScript client for the HypeLabs Connect API, for internal services.",
5
5
  "license": "MIT",
6
6
  "repository": {