@arke-institute/sdk 2.1.0 → 2.3.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.
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * Source: Arke v1 API
8
8
  * Version: 1.0.0
9
- * Generated: 2025-12-30T18:35:49.017Z
9
+ * Generated: 2026-01-01T18:48:14.305Z
10
10
  */
11
11
  type paths = {
12
12
  "/auth/register": {
@@ -2069,9 +2069,9 @@ type paths = {
2069
2069
  *
2070
2070
  * ## Flow
2071
2071
  * 1. Call this endpoint with file metadata (key, filename, content_type, size)
2072
- * 2. Receive entity data + presigned S3 upload URL
2072
+ * 2. Receive entity data + presigned S3 upload URL (uploaded: false)
2073
2073
  * 3. PUT the file content to the upload URL
2074
- * 4. File is now stored and accessible
2074
+ * 4. Call POST /{id}/confirm-upload to verify and set uploaded: true
2075
2075
  *
2076
2076
  * ## Key Best Practice
2077
2077
  * Use the file's CID as the key for content-addressable storage.
@@ -2454,9 +2454,10 @@ type paths = {
2454
2454
  *
2455
2455
  * ## Flow
2456
2456
  * 1. Call this endpoint with new key and file metadata
2457
- * 2. Receive updated entity + presigned upload URL
2457
+ * 2. Receive updated entity + presigned upload URL (uploaded: false)
2458
2458
  * 3. PUT the new file content to the upload URL
2459
- * 4. Old file versions remain accessible via manifest history
2459
+ * 4. Call POST /{id}/confirm-upload to verify and set uploaded: true
2460
+ * 5. Old file versions remain accessible via manifest history
2460
2461
  *
2461
2462
  * ## Key Requirement
2462
2463
  * The new key must NOT already exist in S3 (no overwrites).
@@ -2580,6 +2581,149 @@ type paths = {
2580
2581
  patch?: never;
2581
2582
  trace?: never;
2582
2583
  };
2584
+ "/files/{id}/confirm-upload": {
2585
+ parameters: {
2586
+ query?: never;
2587
+ header?: never;
2588
+ path?: never;
2589
+ cookie?: never;
2590
+ };
2591
+ get?: never;
2592
+ put?: never;
2593
+ /**
2594
+ * Confirm upload completed
2595
+ * @description Confirms that file content has been uploaded to S3.
2596
+ *
2597
+ * ## Flow
2598
+ * 1. Create file entity (POST /files) - sets uploaded: false
2599
+ * 2. PUT file content to the presigned upload URL
2600
+ * 3. Call this endpoint to confirm - verifies file exists in S3, sets uploaded: true
2601
+ *
2602
+ * ## Verification
2603
+ * The server verifies the file exists in S3 before setting uploaded: true.
2604
+ * If the file doesn't exist, returns 400 error.
2605
+ *
2606
+ * ## Idempotency
2607
+ * If already uploaded: true, returns success without modification.
2608
+ */
2609
+ post: {
2610
+ parameters: {
2611
+ query?: never;
2612
+ header?: never;
2613
+ path: {
2614
+ /** @description Entity ID (ULID) */
2615
+ id: string;
2616
+ };
2617
+ cookie?: never;
2618
+ };
2619
+ requestBody?: {
2620
+ content: {
2621
+ "application/json": components["schemas"]["ConfirmUploadRequest"];
2622
+ };
2623
+ };
2624
+ responses: {
2625
+ /** @description Upload confirmed */
2626
+ 200: {
2627
+ headers: {
2628
+ [name: string]: unknown;
2629
+ };
2630
+ content: {
2631
+ "application/json": components["schemas"]["ConfirmUploadResponse"];
2632
+ };
2633
+ };
2634
+ /** @description Bad Request - Invalid input */
2635
+ 400: {
2636
+ headers: {
2637
+ [name: string]: unknown;
2638
+ };
2639
+ content: {
2640
+ /**
2641
+ * @example {
2642
+ * "error": "Validation failed",
2643
+ * "details": {
2644
+ * "issues": [
2645
+ * {
2646
+ * "path": [
2647
+ * "properties",
2648
+ * "label"
2649
+ * ],
2650
+ * "message": "Required"
2651
+ * }
2652
+ * ]
2653
+ * }
2654
+ * }
2655
+ */
2656
+ "application/json": components["schemas"]["ValidationErrorResponse"];
2657
+ };
2658
+ };
2659
+ /** @description Unauthorized - Missing or invalid authentication */
2660
+ 401: {
2661
+ headers: {
2662
+ [name: string]: unknown;
2663
+ };
2664
+ content: {
2665
+ /**
2666
+ * @example {
2667
+ * "error": "Unauthorized: Missing or invalid authentication token"
2668
+ * }
2669
+ */
2670
+ "application/json": components["schemas"]["ErrorResponse"];
2671
+ };
2672
+ };
2673
+ /** @description Forbidden - Insufficient permissions */
2674
+ 403: {
2675
+ headers: {
2676
+ [name: string]: unknown;
2677
+ };
2678
+ content: {
2679
+ /**
2680
+ * @example {
2681
+ * "error": "Forbidden: You do not have permission to perform this action"
2682
+ * }
2683
+ */
2684
+ "application/json": components["schemas"]["ErrorResponse"];
2685
+ };
2686
+ };
2687
+ /** @description Not Found - Resource does not exist */
2688
+ 404: {
2689
+ headers: {
2690
+ [name: string]: unknown;
2691
+ };
2692
+ content: {
2693
+ /**
2694
+ * @example {
2695
+ * "error": "Entity not found"
2696
+ * }
2697
+ */
2698
+ "application/json": components["schemas"]["ErrorResponse"];
2699
+ };
2700
+ };
2701
+ /** @description Conflict - CAS validation failed (entity was modified) */
2702
+ 409: {
2703
+ headers: {
2704
+ [name: string]: unknown;
2705
+ };
2706
+ content: {
2707
+ /**
2708
+ * @example {
2709
+ * "error": "Conflict: entity was modified",
2710
+ * "details": {
2711
+ * "expected": "bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy",
2712
+ * "actual": "bafyreinewabc123456789defghijklmnopqrstuvwxyz"
2713
+ * }
2714
+ * }
2715
+ */
2716
+ "application/json": components["schemas"]["CASErrorResponse"];
2717
+ };
2718
+ };
2719
+ };
2720
+ };
2721
+ delete?: never;
2722
+ options?: never;
2723
+ head?: never;
2724
+ patch?: never;
2725
+ trace?: never;
2726
+ };
2583
2727
  "/folders": {
2584
2728
  parameters: {
2585
2729
  query?: never;
@@ -3148,6 +3292,9 @@ type paths = {
3148
3292
  * Bulk add children to folder
3149
3293
  * @description Efficiently adds multiple children to a folder.
3150
3294
  *
3295
+ * **Limit**: Maximum 50 children per request. For larger batches, make multiple
3296
+ * requests, refetching the folder's CID between each to satisfy the CAS guard.
3297
+ *
3151
3298
  * **Strategy**:
3152
3299
  * 1. Updates folder once with all 'contains' relationships
3153
3300
  * 2. Updates each child in parallel with 'in' back-link
@@ -4446,6 +4593,59 @@ type paths = {
4446
4593
  patch?: never;
4447
4594
  trace?: never;
4448
4595
  };
4596
+ "/events": {
4597
+ parameters: {
4598
+ query?: never;
4599
+ header?: never;
4600
+ path?: never;
4601
+ cookie?: never;
4602
+ };
4603
+ /**
4604
+ * List events
4605
+ * @description Returns entity change events in reverse chronological order (newest first).
4606
+ *
4607
+ * Each event represents a create or update operation on an entity. Use cursor-based pagination to walk through the event history.
4608
+ *
4609
+ * **Use cases:**
4610
+ * - Syncing entity changes to external systems
4611
+ * - Building search indexes
4612
+ * - Change tracking and audit logs
4613
+ *
4614
+ * **Note:** This endpoint is public. Access control is enforced at the entity level - if you don't have permission to view an entity, you won't be able to fetch its manifest even if you see an event for it.
4615
+ */
4616
+ get: {
4617
+ parameters: {
4618
+ query?: {
4619
+ /** @description Maximum events to return (1-100, default 50) */
4620
+ limit?: number;
4621
+ /** @description Event CID to continue from (for pagination) */
4622
+ cursor?: string;
4623
+ };
4624
+ header?: never;
4625
+ path?: never;
4626
+ cookie?: never;
4627
+ };
4628
+ requestBody?: never;
4629
+ responses: {
4630
+ /** @description Event list */
4631
+ 200: {
4632
+ headers: {
4633
+ [name: string]: unknown;
4634
+ };
4635
+ content: {
4636
+ "application/json": components["schemas"]["EventsListResponse"];
4637
+ };
4638
+ };
4639
+ };
4640
+ };
4641
+ put?: never;
4642
+ post?: never;
4643
+ delete?: never;
4644
+ options?: never;
4645
+ head?: never;
4646
+ patch?: never;
4647
+ trace?: never;
4648
+ };
4449
4649
  };
4450
4650
  type components = {
4451
4651
  schemas: {
@@ -4586,21 +4786,15 @@ type components = {
4586
4786
  * @example Added Chapter 42: The Whiteness of the Whale
4587
4787
  */
4588
4788
  note?: string;
4589
- /**
4590
- * @description Updated display name
4591
- * @example Captain Ahab
4592
- */
4593
- label?: string;
4594
- /**
4595
- * @description Properties to merge with existing (partial update)
4596
- * @example {
4597
- * "bio": "Commander of the Pequod, hunter of the white whale"
4598
- * }
4599
- */
4789
+ /** @description Properties to add or update (deep merged) */
4600
4790
  properties?: {
4601
4791
  [key: string]: unknown;
4602
4792
  };
4603
- /** @description Relationships to add or update */
4793
+ /** @description Properties to remove */
4794
+ properties_remove?: string[] | {
4795
+ [key: string]: unknown;
4796
+ };
4797
+ /** @description Relationships to add or update (upsert semantics) */
4604
4798
  relationships_add?: {
4605
4799
  /**
4606
4800
  * @description Relationship predicate (e.g., "admin", "contains", "collection")
@@ -4649,6 +4843,11 @@ type components = {
4649
4843
  */
4650
4844
  peer?: string;
4651
4845
  }[];
4846
+ /**
4847
+ * @description Updated display name
4848
+ * @example Captain Ahab
4849
+ */
4850
+ label?: string;
4652
4851
  };
4653
4852
  CreateApiKeyResponse: {
4654
4853
  /**
@@ -4801,20 +5000,15 @@ type components = {
4801
5000
  * @example Added Chapter 42: The Whiteness of the Whale
4802
5001
  */
4803
5002
  note?: string;
4804
- /** @description Updated collection display name */
4805
- label?: string;
4806
- /** @description Updated collection description */
4807
- description?: string;
4808
- /**
4809
- * Format: uri
4810
- * @description Updated display image URL
4811
- */
4812
- display_image_url?: string;
4813
- /** @description Additional properties to merge */
5003
+ /** @description Properties to add or update (deep merged) */
4814
5004
  properties?: {
4815
5005
  [key: string]: unknown;
4816
5006
  };
4817
- /** @description Relationships to add or update */
5007
+ /** @description Properties to remove */
5008
+ properties_remove?: string[] | {
5009
+ [key: string]: unknown;
5010
+ };
5011
+ /** @description Relationships to add or update (upsert semantics) */
4818
5012
  relationships_add?: {
4819
5013
  /**
4820
5014
  * @description Relationship predicate (e.g., "admin", "contains", "collection")
@@ -4863,6 +5057,15 @@ type components = {
4863
5057
  */
4864
5058
  peer?: string;
4865
5059
  }[];
5060
+ /** @description Updated collection display name */
5061
+ label?: string;
5062
+ /** @description Updated collection description */
5063
+ description?: string;
5064
+ /**
5065
+ * Format: uri
5066
+ * @description Updated display image URL
5067
+ */
5068
+ display_image_url?: string;
4866
5069
  };
4867
5070
  RoleResponse: {
4868
5071
  /**
@@ -5186,24 +5389,11 @@ type components = {
5186
5389
  * @example Added Chapter 42: The Whiteness of the Whale
5187
5390
  */
5188
5391
  note?: string;
5189
- /**
5190
- * @description Properties to add or update (deep merged with existing)
5191
- * @example {
5192
- * "label": "Chapter 1: Loomings (Revised)",
5193
- * "metadata": {
5194
- * "status": "reviewed"
5195
- * }
5196
- * }
5197
- */
5392
+ /** @description Properties to add or update (deep merged) */
5198
5393
  properties?: {
5199
5394
  [key: string]: unknown;
5200
5395
  };
5201
- /**
5202
- * @description Properties to remove (string array or nested object)
5203
- * @example [
5204
- * "deprecated_field"
5205
- * ]
5206
- */
5396
+ /** @description Properties to remove */
5207
5397
  properties_remove?: string[] | {
5208
5398
  [key: string]: unknown;
5209
5399
  };
@@ -5256,22 +5446,6 @@ type components = {
5256
5446
  */
5257
5447
  peer?: string;
5258
5448
  }[];
5259
- /**
5260
- * @description Components to add or update (key → CID)
5261
- * @example {
5262
- * "transcript.txt": "bafyrei..."
5263
- * }
5264
- */
5265
- components?: {
5266
- [key: string]: string;
5267
- };
5268
- /**
5269
- * @description Component keys to remove
5270
- * @example [
5271
- * "old_version.txt"
5272
- * ]
5273
- */
5274
- components_remove?: string[];
5275
5449
  };
5276
5450
  AddRelationshipResponse: {
5277
5451
  source: components["schemas"]["EntityResponse"] & unknown;
@@ -5523,31 +5697,15 @@ type components = {
5523
5697
  * @example Added Chapter 42: The Whiteness of the Whale
5524
5698
  */
5525
5699
  note?: string;
5526
- /** @description New storage key. Must already exist in S3 (for regression to old version). */
5527
- key?: string;
5528
- /** @description New filename */
5529
- filename?: string;
5530
- /** @description New MIME type */
5531
- content_type?: string;
5532
- /** @description New file size in bytes */
5533
- size?: number;
5534
- /** @description New content identifier */
5535
- cid?: string;
5536
- /** @description New description */
5537
- description?: string;
5538
- /**
5539
- * @description Additional properties to merge into the file metadata
5540
- * @example {
5541
- * "log_data": {
5542
- * "status": "done",
5543
- * "entries": []
5544
- * }
5545
- * }
5546
- */
5700
+ /** @description Properties to add or update (deep merged) */
5547
5701
  properties?: {
5548
5702
  [key: string]: unknown;
5549
5703
  };
5550
- /** @description Relationships to add or update */
5704
+ /** @description Properties to remove */
5705
+ properties_remove?: string[] | {
5706
+ [key: string]: unknown;
5707
+ };
5708
+ /** @description Relationships to add or update (upsert semantics) */
5551
5709
  relationships_add?: {
5552
5710
  /**
5553
5711
  * @description Relationship predicate (e.g., "admin", "contains", "collection")
@@ -5596,6 +5754,18 @@ type components = {
5596
5754
  */
5597
5755
  peer?: string;
5598
5756
  }[];
5757
+ /** @description New storage key. Must already exist in S3 (for regression to old version). */
5758
+ key?: string;
5759
+ /** @description New filename */
5760
+ filename?: string;
5761
+ /** @description New MIME type */
5762
+ content_type?: string;
5763
+ /** @description New file size in bytes */
5764
+ size?: number;
5765
+ /** @description New content identifier */
5766
+ cid?: string;
5767
+ /** @description New description */
5768
+ description?: string;
5599
5769
  };
5600
5770
  ReuploadFileResponse: components["schemas"]["UpdateFileResponse"] & {
5601
5771
  /**
@@ -5643,6 +5813,30 @@ type components = {
5643
5813
  /** @description New description */
5644
5814
  description?: string;
5645
5815
  };
5816
+ ConfirmUploadResponse: components["schemas"]["FileResponse"] & {
5817
+ /**
5818
+ * @description Previous version CID. Not present if upload was already confirmed.
5819
+ * @example bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy
5820
+ */
5821
+ prev_cid?: string;
5822
+ /**
5823
+ * @description True if upload was already confirmed. Entity was not modified.
5824
+ * @example false
5825
+ */
5826
+ already_confirmed: boolean;
5827
+ };
5828
+ ConfirmUploadRequest: {
5829
+ /**
5830
+ * @description Current tip CID for CAS validation. Request fails with 409 if this does not match.
5831
+ * @example bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy
5832
+ */
5833
+ expect_tip: string;
5834
+ /**
5835
+ * @description Optional note describing this change
5836
+ * @example Added Chapter 42: The Whiteness of the Whale
5837
+ */
5838
+ note?: string;
5839
+ };
5646
5840
  CreateFolderResponse: {
5647
5841
  /**
5648
5842
  * @description Entity ID (ULID format)
@@ -5757,21 +5951,15 @@ type components = {
5757
5951
  * @example Added Chapter 42: The Whiteness of the Whale
5758
5952
  */
5759
5953
  note?: string;
5760
- /** @description New display name */
5761
- label?: string;
5762
- /** @description New description */
5763
- description?: string;
5764
- /** @description New rich description */
5765
- rich_description?: string;
5766
- /** @description New metadata (deep merged) */
5767
- metadata?: {
5954
+ /** @description Properties to add or update (deep merged) */
5955
+ properties?: {
5768
5956
  [key: string]: unknown;
5769
5957
  };
5770
- /** @description Additional properties to merge */
5771
- properties?: {
5958
+ /** @description Properties to remove */
5959
+ properties_remove?: string[] | {
5772
5960
  [key: string]: unknown;
5773
5961
  };
5774
- /** @description Relationships to add or update */
5962
+ /** @description Relationships to add or update (upsert semantics) */
5775
5963
  relationships_add?: {
5776
5964
  /**
5777
5965
  * @description Relationship predicate (e.g., "admin", "contains", "collection")
@@ -5820,6 +6008,16 @@ type components = {
5820
6008
  */
5821
6009
  peer?: string;
5822
6010
  }[];
6011
+ /** @description New display name */
6012
+ label?: string;
6013
+ /** @description New description */
6014
+ description?: string;
6015
+ /** @description New rich description */
6016
+ rich_description?: string;
6017
+ /** @description New metadata (deep merged) */
6018
+ metadata?: {
6019
+ [key: string]: unknown;
6020
+ };
5823
6021
  };
5824
6022
  AddChildResponse: {
5825
6023
  folder: components["schemas"]["FolderResponse"] & unknown;
@@ -5922,7 +6120,7 @@ type components = {
5922
6120
  */
5923
6121
  note?: string;
5924
6122
  /**
5925
- * @description Children to add
6123
+ * @description Children to add (max 50 per request)
5926
6124
  * @example [
5927
6125
  * {
5928
6126
  * "id": "01JFILE123ABCDEFGHJKMNPQRS"
@@ -6094,12 +6292,6 @@ type components = {
6094
6292
  [key: string]: unknown;
6095
6293
  };
6096
6294
  }[];
6097
- /** @description IPLD links to components (files, chunks, etc.) */
6098
- components?: {
6099
- [key: string]: {
6100
- "/": string;
6101
- };
6102
- };
6103
6295
  /**
6104
6296
  * @description Audit trail for edits
6105
6297
  * @example {
@@ -6303,45 +6495,15 @@ type components = {
6303
6495
  * @example Added Chapter 42: The Whiteness of the Whale
6304
6496
  */
6305
6497
  note?: string;
6306
- /** @description Updated agent display name */
6307
- label?: string;
6308
- /** @description Updated agent description */
6309
- description?: string;
6310
- /**
6311
- * Format: uri
6312
- * @description Updated agent service URL
6313
- */
6314
- endpoint?: string;
6315
- /**
6316
- * @description Actions this agent requires on target collections
6317
- * @example [
6318
- * "entity:view",
6319
- * "entity:update",
6320
- * "file:create"
6321
- * ]
6322
- */
6323
- actions_required?: string[];
6324
- /**
6325
- * @description Agent status
6326
- * @example development
6327
- * @enum {string}
6328
- */
6329
- status?: "development" | "active" | "disabled";
6330
- /** @description Updated sub-agents */
6331
- uses_agents?: components["schemas"]["SubAgentRef"][];
6332
- /** @description Updated input schema */
6333
- input_schema?: {
6334
- [key: string]: unknown;
6335
- };
6336
- /** @description Updated output schema */
6337
- output_schema?: {
6498
+ /** @description Properties to add or update (deep merged) */
6499
+ properties?: {
6338
6500
  [key: string]: unknown;
6339
6501
  };
6340
- /** @description Additional properties to merge */
6341
- properties?: {
6502
+ /** @description Properties to remove */
6503
+ properties_remove?: string[] | {
6342
6504
  [key: string]: unknown;
6343
6505
  };
6344
- /** @description Relationships to add or update */
6506
+ /** @description Relationships to add or update (upsert semantics) */
6345
6507
  relationships_add?: {
6346
6508
  /**
6347
6509
  * @description Relationship predicate (e.g., "admin", "contains", "collection")
@@ -6390,6 +6552,40 @@ type components = {
6390
6552
  */
6391
6553
  peer?: string;
6392
6554
  }[];
6555
+ /** @description Updated agent display name */
6556
+ label?: string;
6557
+ /** @description Updated agent description */
6558
+ description?: string;
6559
+ /**
6560
+ * Format: uri
6561
+ * @description Updated agent service URL
6562
+ */
6563
+ endpoint?: string;
6564
+ /**
6565
+ * @description Actions this agent requires on target collections
6566
+ * @example [
6567
+ * "entity:view",
6568
+ * "entity:update",
6569
+ * "file:create"
6570
+ * ]
6571
+ */
6572
+ actions_required?: string[];
6573
+ /**
6574
+ * @description Agent status
6575
+ * @example development
6576
+ * @enum {string}
6577
+ */
6578
+ status?: "development" | "active" | "disabled";
6579
+ /** @description Updated sub-agents */
6580
+ uses_agents?: components["schemas"]["SubAgentRef"][];
6581
+ /** @description Updated input schema */
6582
+ input_schema?: {
6583
+ [key: string]: unknown;
6584
+ };
6585
+ /** @description Updated output schema */
6586
+ output_schema?: {
6587
+ [key: string]: unknown;
6588
+ };
6393
6589
  };
6394
6590
  InvokeGrant: {
6395
6591
  agent: {
@@ -6419,11 +6615,6 @@ type components = {
6419
6615
  /** @description True if some agents need permission grants */
6420
6616
  grants_needed: boolean;
6421
6617
  };
6422
- AgentLogRef: {
6423
- pi: string;
6424
- /** @enum {string} */
6425
- type: "file";
6426
- };
6427
6618
  InvokeGrantResult: {
6428
6619
  agent_id: string;
6429
6620
  role: string;
@@ -6439,7 +6630,8 @@ type components = {
6439
6630
  * @example job_01JEXAMPLEID12345678901
6440
6631
  */
6441
6632
  job_id: string;
6442
- log: components["schemas"]["AgentLogRef"];
6633
+ /** @description The job collection where agent writes logs */
6634
+ job_collection: string;
6443
6635
  grants: components["schemas"]["InvokeGrantResult"][];
6444
6636
  /**
6445
6637
  * @description IPFS Content Identifier (CID)
@@ -6469,6 +6661,8 @@ type components = {
6469
6661
  InvokeAgentRequest: {
6470
6662
  /** @description Target collection ID to operate on */
6471
6663
  target: string;
6664
+ /** @description Job collection where agent should write logs. If not provided, creates new root collection. */
6665
+ job_collection?: string;
6472
6666
  /** @description Input data for the agent (validated against agent input_schema) */
6473
6667
  input?: {
6474
6668
  [key: string]: unknown;
@@ -6533,6 +6727,61 @@ type components = {
6533
6727
  ListAgentApiKeysResponse: {
6534
6728
  keys: components["schemas"]["AgentApiKeyInfo"][];
6535
6729
  };
6730
+ EventItem: {
6731
+ /**
6732
+ * @description CID of this event in the event chain
6733
+ * @example bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy
6734
+ */
6735
+ event_cid: string;
6736
+ /**
6737
+ * @description Type of entity change event
6738
+ * @example create
6739
+ * @enum {string}
6740
+ */
6741
+ type: "create" | "update";
6742
+ /**
6743
+ * @description Entity ID that was created or updated
6744
+ * @example 01KDETYWYWM0MJVKM8DK3AEXPY
6745
+ */
6746
+ pi: string;
6747
+ /**
6748
+ * @description Entity version number
6749
+ * @example 1
6750
+ */
6751
+ ver: number;
6752
+ /**
6753
+ * @description CID of the entity manifest at this version
6754
+ * @example bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy
6755
+ */
6756
+ tip_cid: string;
6757
+ /**
6758
+ * Format: date-time
6759
+ * @description When the event was recorded
6760
+ * @example 2025-12-26T12:00:00.000Z
6761
+ */
6762
+ ts: string;
6763
+ };
6764
+ EventsListResponse: {
6765
+ /** @description Events in reverse chronological order */
6766
+ items: components["schemas"]["EventItem"][];
6767
+ /**
6768
+ * @description Total events in the event chain
6769
+ * @example 1542
6770
+ */
6771
+ total_events: number;
6772
+ /**
6773
+ * @description Total unique entity IDs across all events
6774
+ * @example 987
6775
+ */
6776
+ total_pis: number;
6777
+ /** @description Whether more events exist beyond this page */
6778
+ has_more: boolean;
6779
+ /**
6780
+ * @description CID to use as "cursor" parameter for next page
6781
+ * @example bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy
6782
+ */
6783
+ next_cursor: string | null;
6784
+ };
6536
6785
  };
6537
6786
  responses: never;
6538
6787
  parameters: never;