@genation/sdk 0.1.0 → 0.2.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/dist/index.d.ts CHANGED
@@ -226,21 +226,6 @@ export declare class GenationClient {
226
226
  * ```
227
227
  */
228
228
  handleCallback(code: string, state: string): Promise<TokenSet>;
229
- /**
230
- * Sign out and revoke tokens
231
- *
232
- * Clears local session and revokes tokens on server.
233
- * Triggers `SIGNED_OUT` event for all listeners.
234
- *
235
- * @example
236
- * ```typescript
237
- * async function handleLogout() {
238
- * await client.signOut();
239
- * // onAuthStateChange will fire with SIGNED_OUT event
240
- * }
241
- * ```
242
- */
243
- signOut(): Promise<void>;
244
229
  /**
245
230
  * Get current session
246
231
  *
@@ -381,67 +366,61 @@ declare interface License {
381
366
  * Example: 'b23f680b-968d-4db3-a1ef-1870eaa8b17e'
382
367
  */
383
368
  id: string;
384
- /**
385
- * Alphanumeric code or token that represents the ownership or grant of this license.
386
- * May be used for redeeming, activating, or looking up the license.
387
- * Example: 'ACME-56T9-PX24-2024'
388
- */
389
- code: string;
390
369
  /**
391
370
  * The foreign key referencing the license plan this license was issued under.
392
371
  * This ties the license to a specific set of plan attributes/entitlements.
393
372
  * Example: '15f24aa1-83e2-4f6c-af22-b2e159d56f98'
394
373
  */
395
- app_plan_id: string;
374
+ appPlanId: string;
396
375
  /**
397
376
  * The total duration (in calendar days) for which the license is valid after being redeemed or activated.
398
377
  * Example: 30 (for a one-month license), 365 (for annual licenses)
399
378
  */
400
- duration_days: number;
379
+ durationDays: number;
401
380
  /**
402
381
  * Optionally, the UUID of a plan term or subscription cycle associated with the license, if applicable.
403
382
  * Can be null if the license does not have distinct terms.
404
383
  * Example: 'random<uuid>', or null for perpetual/server-issued licenses.
405
384
  */
406
- plan_term_id: string | null;
385
+ planTermId: string | null;
407
386
  /**
408
387
  * The user UUID (or organization ID) of the purchaser who paid for or obtained the license.
409
388
  * This identifies the buying entity. May be a UUID string.
410
389
  * Example: 'uuid'
411
390
  */
412
- purchaser_id: string;
391
+ purchaserId: string;
413
392
  /**
414
393
  * The user UUID of the account that redeemed or is assigned this license.
415
394
  * For team or transferred licenses, this may differ from purchaser_id.
416
395
  * Example: 'uuid'
417
396
  */
418
- redeemed_by: string;
397
+ redeemedBy: string;
419
398
  /**
420
399
  * The ISO 8601 timestamp when the license was purchased, invoiced, or issued (by admin/tool).
421
400
  * Format: 'YYYY-MM-DDTHH:mm:ss.sssZ'
422
401
  * Example: '2024-06-05T14:00:13.001Z'
423
402
  */
424
- purchased_at: string;
403
+ purchasedAt: string;
425
404
  /**
426
405
  * The ISO 8601 timestamp when the license was redeemed or activated by a user for use.
427
406
  * May be equal to purchased_at for immediate use, or later if redeemed by a team member.
428
407
  * Format: 'YYYY-MM-DDTHH:mm:ss.sssZ'
429
408
  * Example: '2024-06-05T16:20:27.330Z'
430
409
  */
431
- redeemed_at: string;
410
+ redeemedAt: string;
432
411
  /**
433
412
  * Optional note from the purchaser (attached to the license at order time).
434
413
  * Could contain recipient info, business notes, or a purpose for purchase.
435
414
  * Example: 'For Emily - Happy birthday!', 'Procured by IT Services, invoice #2024-1091'
436
415
  */
437
- purchaser_note: string;
416
+ purchaserNote: string;
438
417
  /**
439
418
  * The ISO 8601 timestamp for license expiration or end of entitlement.
440
419
  * After this date, the license is considered expired and may not grant access.
441
420
  * Format: 'YYYY-MM-DDTHH:mm:ss.sssZ'
442
421
  * Example: '2025-06-05T16:20:27.000Z'
443
422
  */
444
- expires_at: string;
423
+ expiresAt: string;
445
424
  /**
446
425
  * String representing the license status in the system.
447
426
  * Common examples: 'available', 'active', 'expired'
@@ -470,7 +449,7 @@ declare interface LicensePlan {
470
449
  * Maps to the application entity in the system.
471
450
  * Example: 'app_003cd5870d'
472
451
  */
473
- app_id: string;
452
+ appId: string;
474
453
  /**
475
454
  * The public (human-readable or machine-friendly) code for the plan.
476
455
  * Used for referencing the plan in APIs, admin panels, or order forms.
@@ -488,7 +467,7 @@ declare interface LicensePlan {
488
467
  * Format: 'YYYY-MM-DDTHH:mm:ss.sssZ'
489
468
  * Example: '2024-06-05T12:34:56.789Z'
490
469
  */
491
- created_at: string;
470
+ createdAt: string;
492
471
  }
493
472
 
494
473
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genation/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "OAuth 2.1 SDK for Genation authentication",
5
5
  "type": "module",
6
6
  "main": "./dist/genation.cjs.js",