From 09aed19c56f3d6be287e2834fc6feab91271460f Mon Sep 17 00:00:00 2001 From: Jingles Date: Tue, 10 Feb 2026 22:13:42 +0800 Subject: [PATCH 1/2] add team members --- package.json | 2 +- src/sdk/tokenization/spark.ts | 4 ++-- src/types/core/index.ts | 38 +++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e0226d2..3ae49ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@utxos/sdk", - "version": "0.1.3", + "version": "0.1.4", "description": "UTXOS SDK - Web3 infrastructure platform for UTXO blockchains", "main": "./dist/index.cjs", "module": "./dist/index.js", diff --git a/src/sdk/tokenization/spark.ts b/src/sdk/tokenization/spark.ts index 219cc88..e135243 100644 --- a/src/sdk/tokenization/spark.ts +++ b/src/sdk/tokenization/spark.ts @@ -435,7 +435,7 @@ export class TokenizationSpark { } return { - impactedOutputIds: result.impactedOutputIds, + impactedOutputIds: (result as any).impactedOutputIds ?? result.impactedTokenOutputs?.map((o: any) => o.id) ?? [], impactedTokenAmount: result.impactedTokenAmount.toString(), }; } @@ -493,7 +493,7 @@ export class TokenizationSpark { } return { - impactedOutputIds: result.impactedOutputIds, + impactedOutputIds: (result as any).impactedOutputIds ?? result.impactedTokenOutputs?.map((o: any) => o.id) ?? [], impactedTokenAmount: result.impactedTokenAmount.toString(), }; } diff --git a/src/types/core/index.ts b/src/types/core/index.ts index 4deec2b..7de1876 100644 --- a/src/types/core/index.ts +++ b/src/types/core/index.ts @@ -60,6 +60,44 @@ export type Web3JWTBody = { export type Web3AuthProvider = "google" | "discord" | "twitter" | "apple" | "email"; +/** Role a user can have within a project */ +export type Web3ProjectRole = "owner" | "admin" | "developer" | "billing"; + +/** Status of a project invitation */ +export type Web3InvitationStatus = "pending" | "accepted" | "revoked"; + +/** A project invitation (invite link) */ +export type Web3ProjectInvitation = { + id: string; + projectId: string; + token: string; + role: Web3ProjectRole; + status: Web3InvitationStatus; + expiresAt: string; + createdBy: string; + usedBy: string | null; + usedAt: string | null; + createdAt: string; +}; + +/** Public info shown to someone viewing an invite link before accepting */ +export type Web3InvitationInfo = { + id: string; + role: Web3ProjectRole; + projectName: string; + projectId: string; +}; + +/** A project member with user details */ +export type Web3ProjectMember = { + userId: string; + role: Web3ProjectRole; + createdAt: string; + email: string | null; + username: string | null; + avatarUrl: string | null; +}; + export type SponsorshipTxParserPostRequestBody = { txHex: string; utxos: string; From 98f9f6972a6c87c4af8e51bc979f6f3d6cef3661 Mon Sep 17 00:00:00 2001 From: Jingles Date: Tue, 10 Feb 2026 22:37:57 +0800 Subject: [PATCH 2/2] fix build error --- package.json | 2 +- src/sdk/tokenization/spark.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3ae49ed..decd12d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@utxos/sdk", - "version": "0.1.4", + "version": "0.1.5", "description": "UTXOS SDK - Web3 infrastructure platform for UTXO blockchains", "main": "./dist/index.cjs", "module": "./dist/index.js", diff --git a/src/sdk/tokenization/spark.ts b/src/sdk/tokenization/spark.ts index e135243..ea3906c 100644 --- a/src/sdk/tokenization/spark.ts +++ b/src/sdk/tokenization/spark.ts @@ -435,7 +435,7 @@ export class TokenizationSpark { } return { - impactedOutputIds: (result as any).impactedOutputIds ?? result.impactedTokenOutputs?.map((o: any) => o.id) ?? [], + impactedOutputIds: result.impactedTokenOutputs?.map((o: any) => o.id) ?? [], impactedTokenAmount: result.impactedTokenAmount.toString(), }; } @@ -493,7 +493,7 @@ export class TokenizationSpark { } return { - impactedOutputIds: (result as any).impactedOutputIds ?? result.impactedTokenOutputs?.map((o: any) => o.id) ?? [], + impactedOutputIds: result.impactedTokenOutputs?.map((o: any) => o.id) ?? [], impactedTokenAmount: result.impactedTokenAmount.toString(), }; }