@campnetwork/origin 1.2.0 → 1.2.1

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/core.d.ts CHANGED
@@ -175,15 +175,6 @@ declare function hasAccess(this: Origin, user: Address, tokenId: bigint): Promis
175
175
 
176
176
  declare function subscriptionExpiry(this: Origin, tokenId: bigint, user: Address): Promise<bigint>;
177
177
 
178
- interface OriginUsageReturnType {
179
- user: {
180
- multiplier: number;
181
- points: number;
182
- active: boolean;
183
- };
184
- teams: Array<any>;
185
- dataSources: Array<any>;
186
- }
187
178
  interface RoyaltyInfo {
188
179
  tokenBoundAccount: Address;
189
180
  balance: bigint;
@@ -226,26 +217,10 @@ declare class Origin {
226
217
  constructor(jwt: string, environment: Environment, viemClient?: WalletClient, baseParentId?: bigint);
227
218
  getJwt(): string;
228
219
  setViemClient(client: WalletClient): void;
229
- uploadFile(file: File, options?: {
230
- progressCallback?: (percent: number) => void;
231
- }): Promise<any>;
232
220
  mintFile(file: File, metadata: Record<string, unknown>, license: LicenseTerms, parents?: bigint[], options?: {
233
221
  progressCallback?: (percent: number) => void;
234
222
  }): Promise<string | null>;
235
223
  mintSocial(source: "spotify" | "twitter" | "tiktok", metadata: Record<string, unknown>, license: LicenseTerms): Promise<string | null>;
236
- getOriginUploads(): Promise<any[] | null>;
237
- /**
238
- * Get the user's Origin stats (multiplier, consent, usage, etc.).
239
- * @returns {Promise<OriginUsageReturnType>} A promise that resolves with the user's Origin stats.
240
- */
241
- getOriginUsage(): Promise<OriginUsageReturnType>;
242
- /**
243
- * Set the user's consent for Origin usage.
244
- * @param {boolean} consent The user's consent.
245
- * @returns {Promise<void>}
246
- * @throws {Error|APIError} - Throws an error if the user is not authenticated. Also throws an error if the consent is not provided.
247
- */
248
- setOriginConsent(consent: boolean): Promise<void>;
249
224
  /**
250
225
  * Call a contract method.
251
226
  * @param {string} contractAddress The contract address.
@@ -175,15 +175,6 @@ declare function hasAccess(this: Origin, user: Address, tokenId: bigint): Promis
175
175
 
176
176
  declare function subscriptionExpiry(this: Origin, tokenId: bigint, user: Address): Promise<bigint>;
177
177
 
178
- interface OriginUsageReturnType {
179
- user: {
180
- multiplier: number;
181
- points: number;
182
- active: boolean;
183
- };
184
- teams: Array<any>;
185
- dataSources: Array<any>;
186
- }
187
178
  interface RoyaltyInfo {
188
179
  tokenBoundAccount: Address;
189
180
  balance: bigint;
@@ -226,26 +217,10 @@ declare class Origin {
226
217
  constructor(jwt: string, environment: Environment, viemClient?: WalletClient, baseParentId?: bigint);
227
218
  getJwt(): string;
228
219
  setViemClient(client: WalletClient): void;
229
- uploadFile(file: File, options?: {
230
- progressCallback?: (percent: number) => void;
231
- }): Promise<any>;
232
220
  mintFile(file: File, metadata: Record<string, unknown>, license: LicenseTerms, parents?: bigint[], options?: {
233
221
  progressCallback?: (percent: number) => void;
234
222
  }): Promise<string | null>;
235
223
  mintSocial(source: "spotify" | "twitter" | "tiktok", metadata: Record<string, unknown>, license: LicenseTerms): Promise<string | null>;
236
- getOriginUploads(): Promise<any[] | null>;
237
- /**
238
- * Get the user's Origin stats (multiplier, consent, usage, etc.).
239
- * @returns {Promise<OriginUsageReturnType>} A promise that resolves with the user's Origin stats.
240
- */
241
- getOriginUsage(): Promise<OriginUsageReturnType>;
242
- /**
243
- * Set the user's consent for Origin usage.
244
- * @param {boolean} consent The user's consent.
245
- * @returns {Promise<void>}
246
- * @throws {Error|APIError} - Throws an error if the user is not authenticated. Also throws an error if the consent is not provided.
247
- */
248
- setOriginConsent(consent: boolean): Promise<void>;
249
224
  /**
250
225
  * Call a contract method.
251
226
  * @param {string} contractAddress The contract address.