pubky-app-specs 0.3.2 → 0.3.3

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "pubky-app-specs",
3
3
  "type": "module",
4
4
  "description": "Pubky.app Data Model Specifications",
5
- "version": "0.3.2",
5
+ "version": "0.3.3",
6
6
  "license": "MIT",
7
7
  "collaborators": [
8
8
  "SHAcollision"
@@ -258,7 +258,7 @@ export class PubkyAppFile {
258
258
  static fromJson(js_value: any): PubkyAppFile;
259
259
  toJson(): any;
260
260
  created_at: bigint;
261
- size: bigint;
261
+ size: number;
262
262
  readonly name: string;
263
263
  readonly src: string;
264
264
  readonly content_type: string;
@@ -414,7 +414,7 @@ export class PubkySpecsBuilder {
414
414
  constructor(pubky_id: string);
415
415
  createUser(name: string, bio: string | null | undefined, image: string | null | undefined, links: any, status?: string | null): UserResult;
416
416
  createFeed(tags: any, reach: string, layout: string, sort: string, content: string | null | undefined, name: string): FeedResult;
417
- createFile(name: string, src: string, content_type: string, size: bigint): FileResult;
417
+ createFile(name: string, src: string, content_type: string, size: number): FileResult;
418
418
  createPost(content: string, kind: PubkyAppPostKind, parent?: string | null, embed?: PubkyAppPostEmbed | null, attachments?: string[] | null): PostResult;
419
419
  /**
420
420
  * Edits an existing post by updating its content while preserving its original ID and timestamp.
@@ -470,8 +470,8 @@ export interface InitOutput {
470
470
  readonly pubkyappfeed_feed: (a: number) => number;
471
471
  readonly pubkyappfeed_name: (a: number) => [number, number];
472
472
  readonly __wbg_pubkyappfile_free: (a: number, b: number) => void;
473
- readonly __wbg_get_pubkyappfile_size: (a: number) => bigint;
474
- readonly __wbg_set_pubkyappfile_size: (a: number, b: bigint) => void;
473
+ readonly __wbg_get_pubkyappfile_size: (a: number) => number;
474
+ readonly __wbg_set_pubkyappfile_size: (a: number, b: number) => void;
475
475
  readonly pubkyappfile_name: (a: number) => [number, number];
476
476
  readonly pubkyappfile_src: (a: number) => [number, number];
477
477
  readonly pubkyappfile_content_type: (a: number) => [number, number];
@@ -550,7 +550,7 @@ export interface InitOutput {
550
550
  readonly pubkyspecsbuilder_new: (a: number, b: number) => [number, number, number];
551
551
  readonly pubkyspecsbuilder_createUser: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number, j: number) => [number, number, number];
552
552
  readonly pubkyspecsbuilder_createFeed: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => [number, number, number];
553
- readonly pubkyspecsbuilder_createFile: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint) => [number, number, number];
553
+ readonly pubkyspecsbuilder_createFile: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number];
554
554
  readonly pubkyspecsbuilder_createPost: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
555
555
  readonly pubkyspecsbuilder_editPost: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
556
556
  readonly pubkyspecsbuilder_createTag: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
@@ -570,10 +570,10 @@ export interface InitOutput {
570
570
  readonly __wbg_set_pubkyappmute_created_at: (a: number, b: bigint) => void;
571
571
  readonly __wbg_set_pubkyapptag_created_at: (a: number, b: bigint) => void;
572
572
  readonly __wbg_get_pubkyapplastread_timestamp: (a: number) => bigint;
573
- readonly __wbg_get_pubkyapptag_created_at: (a: number) => bigint;
574
- readonly __wbg_get_pubkyappfollow_created_at: (a: number) => bigint;
575
573
  readonly __wbg_get_pubkyappmute_created_at: (a: number) => bigint;
574
+ readonly __wbg_get_pubkyappfollow_created_at: (a: number) => bigint;
576
575
  readonly __wbg_get_pubkyappfile_created_at: (a: number) => bigint;
576
+ readonly __wbg_get_pubkyapptag_created_at: (a: number) => bigint;
577
577
  readonly __wbg_pubkyappmute_free: (a: number, b: number) => void;
578
578
  readonly __wbg_muteresult_free: (a: number, b: number) => void;
579
579
  readonly __wbg_lastreadresult_free: (a: number, b: number) => void;
@@ -1202,14 +1202,14 @@ export class PubkyAppFile {
1202
1202
  wasm.__wbg_set_pubkyappbookmark_created_at(this.__wbg_ptr, arg0);
1203
1203
  }
1204
1204
  /**
1205
- * @returns {bigint}
1205
+ * @returns {number}
1206
1206
  */
1207
1207
  get size() {
1208
1208
  const ret = wasm.__wbg_get_pubkyappfile_size(this.__wbg_ptr);
1209
- return ret;
1209
+ return ret >>> 0;
1210
1210
  }
1211
1211
  /**
1212
- * @param {bigint} arg0
1212
+ * @param {number} arg0
1213
1213
  */
1214
1214
  set size(arg0) {
1215
1215
  wasm.__wbg_set_pubkyappfile_size(this.__wbg_ptr, arg0);
@@ -2111,7 +2111,7 @@ export class PubkySpecsBuilder {
2111
2111
  * @param {string} name
2112
2112
  * @param {string} src
2113
2113
  * @param {string} content_type
2114
- * @param {bigint} size
2114
+ * @param {number} size
2115
2115
  * @returns {FileResult}
2116
2116
  */
2117
2117
  createFile(name, src, content_type, size) {
@@ -2499,6 +2499,10 @@ function __wbg_get_imports() {
2499
2499
  const ret = arg0;
2500
2500
  return ret;
2501
2501
  };
2502
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2503
+ const ret = BigInt.asUintN(64, arg0);
2504
+ return ret;
2505
+ };
2502
2506
  imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
2503
2507
  const v = arg1;
2504
2508
  const ret = typeof(v) === 'bigint' ? v : undefined;
Binary file