@caido/sdk-frontend 0.48.0 → 0.48.1-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caido/sdk-frontend",
3
- "version": "v0.48.0",
3
+ "version": "0.48.1-beta.0",
4
4
  "description": "Typing for the Caido Frontend SDK",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "license": "MIT",
@@ -65,11 +65,6 @@ export type ReplaySDK = {
65
65
  * @returns The list of all open replay tabs.
66
66
  */
67
67
  getTabs: () => ReplayTab[];
68
- /**
69
- * Get the list of all replay collections.
70
- * @returns The list of all replay collections.
71
- */
72
- getCollections: () => ReplayCollection[];
73
68
  /**
74
69
  * Get the list of all replay sessions.
75
70
  * @returns The list of all replay sessions.
@@ -82,4 +77,39 @@ export type ReplaySDK = {
82
77
  * @returns The updated session.
83
78
  */
84
79
  renameSession: (id: ID, name: string) => Promise<ReplaySession>;
80
+ /**
81
+ * Move a session to a different collection.
82
+ * @param sessionId The ID of the session to move.
83
+ * @param collectionId The ID of the collection to move the session to.
84
+ * @returns The updated session.
85
+ */
86
+ moveSession: (sessionId: ID, collectionId: ID) => Promise<ReplaySession>;
87
+ /**
88
+ * Delete a session.
89
+ * @param sessionIds The IDs of the sessions to delete.
90
+ */
91
+ deleteSessions: (sessionIds: ID[]) => Promise<ID[]>;
92
+ /**
93
+ * Get the list of all replay collections.
94
+ * @returns The list of all replay collections.
95
+ */
96
+ getCollections: () => ReplayCollection[];
97
+ /**
98
+ * Create a new collection.
99
+ * @param name The name of the collection to create.
100
+ */
101
+ createCollection: (name: string) => Promise<ReplayCollection>;
102
+ /**
103
+ * Rename a collection.
104
+ * @param id The ID of the collection to rename.
105
+ * @param name The new name of the collection.
106
+ * @returns The updated collection.
107
+ */
108
+ renameCollection: (id: ID, name: string) => Promise<ReplayCollection>;
109
+ /**
110
+ * Delete a collection.
111
+ * @param id The ID of the collection to delete.
112
+ * @returns Whether the collection was deleted.
113
+ */
114
+ deleteCollection: (id: ID) => Promise<boolean>;
85
115
  };