@chaibuilder/sdk 2.1.2 → 2.1.4

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
@@ -88,7 +88,7 @@ export declare interface ChaiBuilderEditorProps {
88
88
  name: string;
89
89
  email: string;
90
90
  avatar?: string;
91
- role: string;
91
+ role?: string;
92
92
  };
93
93
  /**
94
94
  * Permissions
@@ -191,18 +191,9 @@ export declare interface ChaiBuilderEditorProps {
191
191
  */
192
192
  getUILibraryBlock?: (library: ChaiUILibrary, uiLibBlock: ChaiUILibraryBlock) => Promise<ChaiBlock[]>;
193
193
  /**
194
- * Upsert library block
194
+ * Get partial blocks
195
+ * @returns {Record<string, { type: string; name: string; description?: string }>}
195
196
  */
196
- upsertLibraryBlock?: (params: {
197
- id?: string;
198
- description: string;
199
- group: string;
200
- library: string;
201
- name: string;
202
- preview?: string;
203
- }) => Promise<{
204
- id: string;
205
- } | Error>;
206
197
  getPartialBlocks?: () => Promise<Record<string, {
207
198
  type: string;
208
199
  name: string;