@microcosmmoney/auth-core 1.2.1 → 1.4.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
@@ -4,4 +4,5 @@ export { Storage, STORAGE_KEYS } from './storage';
4
4
  export { ApiClient } from './api-client';
5
5
  export { MicrocosmAPI } from './open-api';
6
6
  export type { MicrocosmAPIConfig } from './open-api';
7
- export type { MicrocosmAuthConfig, ResolvedConfig, User, TokenData, AuthState, LoginOptions, TokenExchangeResponse, UserProfileResponse, ApiResponse, MCDBalance, MCCBalance, MCCWalletBalance, MCCPrice, Wallet, TokenPortfolio, MCCLock, MiningRatio, MiningDistribution, BuybackQuote, BuybackRecord, Territory, TerritorySummary, TerritoryStats, TerritoryMember, Proposal, ProposalDetail, VoteResult, VotePower, AuctionBid, MCDTransaction, MCDReward, MiningRequest, MiningConfirmData, MiningRequestResult, MiningConfig, BuybackRecordInput, ReincarnationConfig, MCCHistoryRecord, CycleHistory, AuctionHistory, PaginatedResult, MCCStats, MiningStats, TechTreeNode, TechTree, TechTreeBonus, UserStats, Organization, OrganizationTreeNode, MiningRecord, MiningHistoryItem, PriceHistoryPoint, Auction, AuctionDetail, AuctionCreateInput, TerritoryIncome, TerritoryKPI, UserLevel, DashboardMarketSummary, DashboardUserSummary, PublicMiningRequest, UnitType, } from './types';
7
+ export { UserRank } from './types';
8
+ export type { MicrocosmAuthConfig, ResolvedConfig, User, TokenData, AuthState, LoginOptions, TokenExchangeResponse, UserProfileResponse, ApiResponse, MCDBalance, MCCBalance, MCCWalletBalance, MCCPrice, Wallet, TokenPortfolio, MCCLock, MiningRatio, MiningDistribution, BuybackQuote, BuybackRecord, Territory, TerritorySummary, TerritoryStats, TerritoryMember, Proposal, ProposalDetail, VoteResult, VotePower, AuctionBid, MCDTransaction, MCDReward, MiningRequest, MiningConfirmData, MiningRequestResult, MiningConfig, BuybackRecordInput, ReincarnationConfig, MCCHistoryRecord, CycleHistory, AuctionHistory, PaginatedResult, MCCStats, MiningStats, TechTreeNode, TechTree, TechTreeBonus, UserStats, Organization, OrganizationTreeNode, MiningRecord, MiningHistoryItem, PriceHistoryPoint, Auction, AuctionDetail, AuctionCreateInput, TerritoryIncome, TerritoryKPI, UserLevel, DashboardMarketSummary, DashboardUserSummary, PublicMiningRequest, UnitType, Notification, OrganizationSummary, TerritoryDetailedStats, ManagerIncomeRecord, TeamCustodySummary, } from './types';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MicrocosmAPI = exports.ApiClient = exports.STORAGE_KEYS = exports.Storage = exports.TokenManager = exports.MicrocosmAuthClient = void 0;
3
+ exports.UserRank = exports.MicrocosmAPI = exports.ApiClient = exports.STORAGE_KEYS = exports.Storage = exports.TokenManager = exports.MicrocosmAuthClient = void 0;
4
4
  // AI-generated · AI-managed · AI-maintained
5
5
  var client_1 = require("./client");
6
6
  Object.defineProperty(exports, "MicrocosmAuthClient", { enumerable: true, get: function () { return client_1.MicrocosmAuthClient; } });
@@ -13,3 +13,5 @@ var api_client_1 = require("./api-client");
13
13
  Object.defineProperty(exports, "ApiClient", { enumerable: true, get: function () { return api_client_1.ApiClient; } });
14
14
  var open_api_1 = require("./open-api");
15
15
  Object.defineProperty(exports, "MicrocosmAPI", { enumerable: true, get: function () { return open_api_1.MicrocosmAPI; } });
16
+ var types_1 = require("./types");
17
+ Object.defineProperty(exports, "UserRank", { enumerable: true, get: function () { return types_1.UserRank; } });
package/dist/types.d.ts CHANGED
@@ -1,4 +1,13 @@
1
1
  export type UnitType = 'station' | 'matrix' | 'sector' | 'system';
2
+ export declare enum UserRank {
3
+ RECRUIT = "Recruit",
4
+ PROSPECT = "Prospect",
5
+ MINER = "Miner",
6
+ COMMANDER = "Commander",
7
+ PIONEER = "Pioneer",
8
+ WARDEN = "Warden",
9
+ ADMIRAL = "Admiral"
10
+ }
2
11
  export interface MicrocosmAuthConfig {
3
12
  clientId: string;
4
13
  redirectUri: string;
@@ -480,3 +489,45 @@ export interface PublicMiningRequest {
480
489
  mcc_amount: number;
481
490
  stablecoin?: string;
482
491
  }
492
+ export interface Notification {
493
+ id: string;
494
+ type: string;
495
+ title?: string;
496
+ message: string;
497
+ status: 'unread' | 'read';
498
+ created_at: string;
499
+ data?: Record<string, any>;
500
+ }
501
+ export interface OrganizationSummary {
502
+ total_stations: number;
503
+ total_matrices: number;
504
+ total_sectors: number;
505
+ total_systems: number;
506
+ total_units: number;
507
+ total_members: number;
508
+ }
509
+ export interface TerritoryDetailedStats {
510
+ territory_id: string;
511
+ member_count: number;
512
+ max_capacity: number;
513
+ vault_mcd: number;
514
+ occupancy_rate: number;
515
+ total_mined: number;
516
+ mining_count: number;
517
+ daily_distribution: number;
518
+ kpi_score?: number;
519
+ }
520
+ export interface ManagerIncomeRecord {
521
+ date: string;
522
+ amount: number;
523
+ source: string;
524
+ territory_id?: string;
525
+ }
526
+ export interface TeamCustodySummary {
527
+ total_balance: number;
528
+ wallets: {
529
+ wallet_type: string;
530
+ balance: number;
531
+ address: string;
532
+ }[];
533
+ }
package/dist/types.js CHANGED
@@ -1,2 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserRank = void 0;
4
+ var UserRank;
5
+ (function (UserRank) {
6
+ UserRank["RECRUIT"] = "Recruit";
7
+ UserRank["PROSPECT"] = "Prospect";
8
+ UserRank["MINER"] = "Miner";
9
+ UserRank["COMMANDER"] = "Commander";
10
+ UserRank["PIONEER"] = "Pioneer";
11
+ UserRank["WARDEN"] = "Warden";
12
+ UserRank["ADMIRAL"] = "Admiral";
13
+ })(UserRank || (exports.UserRank = UserRank = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microcosmmoney/auth-core",
3
- "version": "1.2.1",
3
+ "version": "1.4.0",
4
4
  "description": "Microcosm OAuth 2.0 authentication core library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",