Notebooks
albert.resources.notebooks
Attributes:
Name | Type | Description |
---|---|---|
ListContent |
|
|
NotebookBlock |
|
|
NotebookContent |
|
|
allowed_notebook_contents |
|
ListContent
ListContent = Annotated[
NumberedListContent | BulletedListContent,
Field(discriminator="style"),
]
NotebookContent
NotebookContent = (
HeaderContent
| ParagraphContent
| ChecklistContent
| AttachesContent
| ImageContent
| KetcherContent
| TableContent
| BulletedListContent
| NumberedListContent
)
allowed_notebook_contents
allowed_notebook_contents = {
HEADER: HeaderContent,
PARAGRAPH: ParagraphContent,
CHECKLIST: ChecklistContent,
ATTACHES: AttachesContent,
IMAGE: ImageContent,
KETCHER: KetcherContent,
TABLE: TableContent,
LIST: (BulletedListContent, NumberedListContent),
}
ListBlockStyle
BlockType
NotebookCopyType
Attributes:
Name | Type | Description |
---|---|---|
TEMPLATE |
|
|
TASK |
|
|
PROJECT |
|
|
RESTORE_TEMPLATE |
|
|
GEN_TASK_TEMPLATE |
|
BaseBlock
Bases: BaseAlbertModel
Show JSON schema:
Fields:
HeaderContent
Bases: BaseAlbertModel
Show JSON schema:
Fields:
HeaderBlock
Bases: BaseBlock
Show JSON schema:
{
"$defs": {
"HeaderContent": {
"properties": {
"level": {
"enum": [
1,
2,
3
],
"title": "Level",
"type": "integer"
},
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Text"
}
},
"required": [
"level",
"text"
],
"title": "HeaderContent",
"type": "object"
}
},
"properties": {
"albertId": {
"title": "Albertid",
"type": "string"
},
"version": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Version"
},
"blockType": {
"const": "header",
"default": "header",
"title": "Blocktype",
"type": "string"
},
"content": {
"$ref": "#/$defs/HeaderContent"
}
},
"required": [
"content"
],
"title": "HeaderBlock",
"type": "object"
}
Fields:
ParagraphContent
ParagraphBlock
Bases: BaseBlock
Show JSON schema:
{
"$defs": {
"ParagraphContent": {
"properties": {
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Text"
}
},
"required": [
"text"
],
"title": "ParagraphContent",
"type": "object"
}
},
"properties": {
"albertId": {
"title": "Albertid",
"type": "string"
},
"version": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Version"
},
"blockType": {
"const": "paragraph",
"default": "paragraph",
"title": "Blocktype",
"type": "string"
},
"content": {
"$ref": "#/$defs/ParagraphContent"
}
},
"required": [
"content"
],
"title": "ParagraphBlock",
"type": "object"
}
Fields:
ChecklistItem
Bases: BaseAlbertModel
Show JSON schema:
Fields:
ChecklistContent
Bases: BaseAlbertModel
Show JSON schema:
{
"$defs": {
"ChecklistItem": {
"properties": {
"checked": {
"title": "Checked",
"type": "boolean"
},
"text": {
"title": "Text",
"type": "string"
}
},
"required": [
"checked",
"text"
],
"title": "ChecklistItem",
"type": "object"
}
},
"properties": {
"items": {
"items": {
"$ref": "#/$defs/ChecklistItem"
},
"title": "Items",
"type": "array"
}
},
"required": [
"items"
],
"title": "ChecklistContent",
"type": "object"
}
Fields:
ChecklistBlock
Bases: BaseBlock
Show JSON schema:
{
"$defs": {
"ChecklistContent": {
"properties": {
"items": {
"items": {
"$ref": "#/$defs/ChecklistItem"
},
"title": "Items",
"type": "array"
}
},
"required": [
"items"
],
"title": "ChecklistContent",
"type": "object"
},
"ChecklistItem": {
"properties": {
"checked": {
"title": "Checked",
"type": "boolean"
},
"text": {
"title": "Text",
"type": "string"
}
},
"required": [
"checked",
"text"
],
"title": "ChecklistItem",
"type": "object"
}
},
"properties": {
"albertId": {
"title": "Albertid",
"type": "string"
},
"version": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Version"
},
"blockType": {
"const": "checklist",
"default": "checklist",
"title": "Blocktype",
"type": "string"
},
"content": {
"$ref": "#/$defs/ChecklistContent"
}
},
"required": [
"content"
],
"title": "ChecklistBlock",
"type": "object"
}
Fields:
is_checked
Get checked state of a checklist item
Parameters
target_text : str The value/text of a checklist entry.
Returns:
Type | Description |
---|---|
bool | None
|
The checked state of the target entry identified by name. |
Source code in src/albert/resources/notebooks.py
AttachesContent
Bases: BaseAlbertModel
Show JSON schema:
{
"properties": {
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
},
"namespace": {
"default": "result",
"title": "Namespace",
"type": "string"
},
"fileKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Filekey"
},
"mimeType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Mimetype"
},
"signedURL": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Signedurl"
}
},
"title": "AttachesContent",
"type": "object"
}
Fields:
AttachesBlock
Bases: BaseBlock
Show JSON schema:
{
"$defs": {
"AttachesContent": {
"properties": {
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
},
"namespace": {
"default": "result",
"title": "Namespace",
"type": "string"
},
"fileKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Filekey"
},
"mimeType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Mimetype"
},
"signedURL": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Signedurl"
}
},
"title": "AttachesContent",
"type": "object"
}
},
"properties": {
"albertId": {
"title": "Albertid",
"type": "string"
},
"version": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Version"
},
"blockType": {
"const": "attaches",
"default": "attaches",
"title": "Blocktype",
"type": "string"
},
"content": {
"$ref": "#/$defs/AttachesContent"
}
},
"required": [
"content"
],
"title": "AttachesBlock",
"type": "object"
}
Fields:
ImageContent
Bases: BaseAlbertModel
Show JSON schema:
{
"properties": {
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
},
"namespace": {
"default": "result",
"title": "Namespace",
"type": "string"
},
"stretched": {
"default": false,
"title": "Stretched",
"type": "boolean"
},
"withBackground": {
"default": false,
"title": "Withbackground",
"type": "boolean"
},
"withBorder": {
"default": false,
"title": "Withborder",
"type": "boolean"
},
"fileKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Filekey"
},
"signedURL": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Signedurl"
}
},
"title": "ImageContent",
"type": "object"
}
Fields:
-
title
(str | None
) -
namespace
(str
) -
stretched
(bool
) -
with_background
(bool
) -
with_border
(bool
) -
file_key
(str | None
) -
signed_url
(str | None
)
ImageBlock
Bases: BaseBlock
Show JSON schema:
{
"$defs": {
"ImageContent": {
"properties": {
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
},
"namespace": {
"default": "result",
"title": "Namespace",
"type": "string"
},
"stretched": {
"default": false,
"title": "Stretched",
"type": "boolean"
},
"withBackground": {
"default": false,
"title": "Withbackground",
"type": "boolean"
},
"withBorder": {
"default": false,
"title": "Withborder",
"type": "boolean"
},
"fileKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Filekey"
},
"signedURL": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Signedurl"
}
},
"title": "ImageContent",
"type": "object"
}
},
"properties": {
"albertId": {
"title": "Albertid",
"type": "string"
},
"version": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Version"
},
"blockType": {
"const": "image",
"default": "image",
"title": "Blocktype",
"type": "string"
},
"content": {
"$ref": "#/$defs/ImageContent"
}
},
"required": [
"content"
],
"title": "ImageBlock",
"type": "object"
}
Fields:
KetcherContent
Bases: BaseAlbertModel
Show JSON schema:
{
"properties": {
"synthesisId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Synthesisid"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"blockId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Blockid"
},
"data": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Data"
},
"fileKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Filekey"
},
"s3Key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "S3Key"
},
"png": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Png"
},
"ketcherUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Ketcherurl"
}
},
"title": "KetcherContent",
"type": "object"
}
Fields:
-
synthesis_id
(SynthesisId | None
) -
name
(str | None
) -
id
(str | None
) -
block_id
(str | None
) -
data
(str | None
) -
file_key
(str | None
) -
s3_key
(str | None
) -
png
(str | None
) -
ketcher_url
(str | None
)
KetcherBlock
Bases: BaseBlock
Show JSON schema:
{
"$defs": {
"KetcherContent": {
"properties": {
"synthesisId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Synthesisid"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"blockId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Blockid"
},
"data": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Data"
},
"fileKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Filekey"
},
"s3Key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "S3Key"
},
"png": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Png"
},
"ketcherUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Ketcherurl"
}
},
"title": "KetcherContent",
"type": "object"
}
},
"properties": {
"albertId": {
"title": "Albertid",
"type": "string"
},
"version": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Version"
},
"blockType": {
"const": "ketcher",
"default": "ketcher",
"title": "Blocktype",
"type": "string"
},
"content": {
"$ref": "#/$defs/KetcherContent"
}
},
"required": [
"content"
],
"title": "KetcherBlock",
"type": "object"
}
Fields:
TableContent
Bases: BaseAlbertModel
Show JSON schema:
{
"properties": {
"content": {
"items": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"type": "array"
},
"title": "Content",
"type": "array"
},
"withHeadings": {
"default": false,
"title": "Withheadings",
"type": "boolean"
}
},
"required": [
"content"
],
"title": "TableContent",
"type": "object"
}
Fields:
TableBlock
Bases: BaseBlock
Show JSON schema:
{
"$defs": {
"TableContent": {
"properties": {
"content": {
"items": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"type": "array"
},
"title": "Content",
"type": "array"
},
"withHeadings": {
"default": false,
"title": "Withheadings",
"type": "boolean"
}
},
"required": [
"content"
],
"title": "TableContent",
"type": "object"
}
},
"properties": {
"albertId": {
"title": "Albertid",
"type": "string"
},
"version": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Version"
},
"blockType": {
"const": "table",
"default": "table",
"title": "Blocktype",
"type": "string"
},
"content": {
"$ref": "#/$defs/TableContent"
}
},
"required": [
"content"
],
"title": "TableBlock",
"type": "object"
}
Fields:
to_df
to_df(*, infer_header: bool = True) -> DataFrame
Convert the TableBlock's content to a pd.DataFrame.
Returns:
Type | Description |
---|---|
DataFrame
|
The block's content as a pd.DataFrame. |
Source code in src/albert/resources/notebooks.py
NotebookListItem
Bases: BaseModel
Show JSON schema:
{
"$defs": {
"NotebookListItem": {
"properties": {
"content": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Content"
},
"items": {
"items": {
"$ref": "#/$defs/NotebookListItem"
},
"title": "Items",
"type": "array"
}
},
"required": [
"content"
],
"title": "NotebookListItem",
"type": "object"
}
},
"$ref": "#/$defs/NotebookListItem"
}
Fields:
-
content
(str | None
) -
items
(list[NotebookListItem]
)
BulletedListContent
Bases: BaseAlbertModel
Show JSON schema:
{
"$defs": {
"NotebookListItem": {
"properties": {
"content": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Content"
},
"items": {
"items": {
"$ref": "#/$defs/NotebookListItem"
},
"title": "Items",
"type": "array"
}
},
"required": [
"content"
],
"title": "NotebookListItem",
"type": "object"
}
},
"properties": {
"items": {
"items": {
"$ref": "#/$defs/NotebookListItem"
},
"title": "Items",
"type": "array"
},
"style": {
"const": "unordered",
"default": "unordered",
"title": "Style",
"type": "string"
}
},
"required": [
"items"
],
"title": "BulletedListContent",
"type": "object"
}
Fields:
NumberedListContent
Bases: BaseAlbertModel
Show JSON schema:
{
"$defs": {
"NotebookListItem": {
"properties": {
"content": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Content"
},
"items": {
"items": {
"$ref": "#/$defs/NotebookListItem"
},
"title": "Items",
"type": "array"
}
},
"required": [
"content"
],
"title": "NotebookListItem",
"type": "object"
}
},
"properties": {
"items": {
"items": {
"$ref": "#/$defs/NotebookListItem"
},
"title": "Items",
"type": "array"
},
"style": {
"const": "ordered",
"default": "ordered",
"title": "Style",
"type": "string"
}
},
"required": [
"items"
],
"title": "NumberedListContent",
"type": "object"
}
Fields:
ListBlock
Bases: BaseBlock
Show JSON schema:
{
"$defs": {
"BulletedListContent": {
"properties": {
"items": {
"items": {
"$ref": "#/$defs/NotebookListItem"
},
"title": "Items",
"type": "array"
},
"style": {
"const": "unordered",
"default": "unordered",
"title": "Style",
"type": "string"
}
},
"required": [
"items"
],
"title": "BulletedListContent",
"type": "object"
},
"NotebookListItem": {
"properties": {
"content": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Content"
},
"items": {
"items": {
"$ref": "#/$defs/NotebookListItem"
},
"title": "Items",
"type": "array"
}
},
"required": [
"content"
],
"title": "NotebookListItem",
"type": "object"
},
"NumberedListContent": {
"properties": {
"items": {
"items": {
"$ref": "#/$defs/NotebookListItem"
},
"title": "Items",
"type": "array"
},
"style": {
"const": "ordered",
"default": "ordered",
"title": "Style",
"type": "string"
}
},
"required": [
"items"
],
"title": "NumberedListContent",
"type": "object"
}
},
"properties": {
"albertId": {
"title": "Albertid",
"type": "string"
},
"version": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Version"
},
"blockType": {
"const": "list",
"default": "list",
"title": "Blocktype",
"type": "string"
},
"content": {
"discriminator": {
"mapping": {
"ordered": "#/$defs/NumberedListContent",
"unordered": "#/$defs/BulletedListContent"
},
"propertyName": "style"
},
"oneOf": [
{
"$ref": "#/$defs/NumberedListContent"
},
{
"$ref": "#/$defs/BulletedListContent"
}
],
"title": "Content"
}
},
"required": [
"content"
],
"title": "ListBlock",
"type": "object"
}
Fields:
NotebookLink
Bases: BaseAlbertModel
Show JSON schema:
{
"$defs": {
"EntityLink": {
"properties": {
"id": {
"title": "Id",
"type": "string"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
}
},
"required": [
"id"
],
"title": "EntityLink",
"type": "object"
}
},
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"Child": {
"$ref": "#/$defs/EntityLink"
}
},
"required": [
"Child"
],
"title": "NotebookLink",
"type": "object"
}
Fields:
Notebook
Bases: BaseResource
Show JSON schema:
{
"$defs": {
"AttachesBlock": {
"properties": {
"albertId": {
"title": "Albertid",
"type": "string"
},
"version": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Version"
},
"blockType": {
"const": "attaches",
"default": "attaches",
"title": "Blocktype",
"type": "string"
},
"content": {
"$ref": "#/$defs/AttachesContent"
}
},
"required": [
"content"
],
"title": "AttachesBlock",
"type": "object"
},
"AttachesContent": {
"properties": {
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
},
"namespace": {
"default": "result",
"title": "Namespace",
"type": "string"
},
"fileKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Filekey"
},
"mimeType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Mimetype"
},
"signedURL": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Signedurl"
}
},
"title": "AttachesContent",
"type": "object"
},
"AuditFields": {
"description": "The audit fields for a resource",
"properties": {
"by": {
"default": null,
"title": "By",
"type": "string"
},
"byName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Byname"
},
"at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "At"
}
},
"title": "AuditFields",
"type": "object"
},
"BulletedListContent": {
"properties": {
"items": {
"items": {
"$ref": "#/$defs/NotebookListItem"
},
"title": "Items",
"type": "array"
},
"style": {
"const": "unordered",
"default": "unordered",
"title": "Style",
"type": "string"
}
},
"required": [
"items"
],
"title": "BulletedListContent",
"type": "object"
},
"ChecklistBlock": {
"properties": {
"albertId": {
"title": "Albertid",
"type": "string"
},
"version": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Version"
},
"blockType": {
"const": "checklist",
"default": "checklist",
"title": "Blocktype",
"type": "string"
},
"content": {
"$ref": "#/$defs/ChecklistContent"
}
},
"required": [
"content"
],
"title": "ChecklistBlock",
"type": "object"
},
"ChecklistContent": {
"properties": {
"items": {
"items": {
"$ref": "#/$defs/ChecklistItem"
},
"title": "Items",
"type": "array"
}
},
"required": [
"items"
],
"title": "ChecklistContent",
"type": "object"
},
"ChecklistItem": {
"properties": {
"checked": {
"title": "Checked",
"type": "boolean"
},
"text": {
"title": "Text",
"type": "string"
}
},
"required": [
"checked",
"text"
],
"title": "ChecklistItem",
"type": "object"
},
"EntityLink": {
"properties": {
"id": {
"title": "Id",
"type": "string"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
}
},
"required": [
"id"
],
"title": "EntityLink",
"type": "object"
},
"HeaderBlock": {
"properties": {
"albertId": {
"title": "Albertid",
"type": "string"
},
"version": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Version"
},
"blockType": {
"const": "header",
"default": "header",
"title": "Blocktype",
"type": "string"
},
"content": {
"$ref": "#/$defs/HeaderContent"
}
},
"required": [
"content"
],
"title": "HeaderBlock",
"type": "object"
},
"HeaderContent": {
"properties": {
"level": {
"enum": [
1,
2,
3
],
"title": "Level",
"type": "integer"
},
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Text"
}
},
"required": [
"level",
"text"
],
"title": "HeaderContent",
"type": "object"
},
"ImageBlock": {
"properties": {
"albertId": {
"title": "Albertid",
"type": "string"
},
"version": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Version"
},
"blockType": {
"const": "image",
"default": "image",
"title": "Blocktype",
"type": "string"
},
"content": {
"$ref": "#/$defs/ImageContent"
}
},
"required": [
"content"
],
"title": "ImageBlock",
"type": "object"
},
"ImageContent": {
"properties": {
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
},
"namespace": {
"default": "result",
"title": "Namespace",
"type": "string"
},
"stretched": {
"default": false,
"title": "Stretched",
"type": "boolean"
},
"withBackground": {
"default": false,
"title": "Withbackground",
"type": "boolean"
},
"withBorder": {
"default": false,
"title": "Withborder",
"type": "boolean"
},
"fileKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Filekey"
},
"signedURL": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Signedurl"
}
},
"title": "ImageContent",
"type": "object"
},
"KetcherBlock": {
"properties": {
"albertId": {
"title": "Albertid",
"type": "string"
},
"version": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Version"
},
"blockType": {
"const": "ketcher",
"default": "ketcher",
"title": "Blocktype",
"type": "string"
},
"content": {
"$ref": "#/$defs/KetcherContent"
}
},
"required": [
"content"
],
"title": "KetcherBlock",
"type": "object"
},
"KetcherContent": {
"properties": {
"synthesisId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Synthesisid"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"blockId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Blockid"
},
"data": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Data"
},
"fileKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Filekey"
},
"s3Key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "S3Key"
},
"png": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Png"
},
"ketcherUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Ketcherurl"
}
},
"title": "KetcherContent",
"type": "object"
},
"ListBlock": {
"properties": {
"albertId": {
"title": "Albertid",
"type": "string"
},
"version": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Version"
},
"blockType": {
"const": "list",
"default": "list",
"title": "Blocktype",
"type": "string"
},
"content": {
"discriminator": {
"mapping": {
"ordered": "#/$defs/NumberedListContent",
"unordered": "#/$defs/BulletedListContent"
},
"propertyName": "style"
},
"oneOf": [
{
"$ref": "#/$defs/NumberedListContent"
},
{
"$ref": "#/$defs/BulletedListContent"
}
],
"title": "Content"
}
},
"required": [
"content"
],
"title": "ListBlock",
"type": "object"
},
"NotebookLink": {
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"Child": {
"$ref": "#/$defs/EntityLink"
}
},
"required": [
"Child"
],
"title": "NotebookLink",
"type": "object"
},
"NotebookListItem": {
"properties": {
"content": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Content"
},
"items": {
"items": {
"$ref": "#/$defs/NotebookListItem"
},
"title": "Items",
"type": "array"
}
},
"required": [
"content"
],
"title": "NotebookListItem",
"type": "object"
},
"NumberedListContent": {
"properties": {
"items": {
"items": {
"$ref": "#/$defs/NotebookListItem"
},
"title": "Items",
"type": "array"
},
"style": {
"const": "ordered",
"default": "ordered",
"title": "Style",
"type": "string"
}
},
"required": [
"items"
],
"title": "NumberedListContent",
"type": "object"
},
"ParagraphBlock": {
"properties": {
"albertId": {
"title": "Albertid",
"type": "string"
},
"version": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Version"
},
"blockType": {
"const": "paragraph",
"default": "paragraph",
"title": "Blocktype",
"type": "string"
},
"content": {
"$ref": "#/$defs/ParagraphContent"
}
},
"required": [
"content"
],
"title": "ParagraphBlock",
"type": "object"
},
"ParagraphContent": {
"properties": {
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Text"
}
},
"required": [
"text"
],
"title": "ParagraphContent",
"type": "object"
},
"Status": {
"description": "The status of a resource",
"enum": [
"active",
"inactive"
],
"title": "Status",
"type": "string"
},
"TableBlock": {
"properties": {
"albertId": {
"title": "Albertid",
"type": "string"
},
"version": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Version"
},
"blockType": {
"const": "table",
"default": "table",
"title": "Blocktype",
"type": "string"
},
"content": {
"$ref": "#/$defs/TableContent"
}
},
"required": [
"content"
],
"title": "TableBlock",
"type": "object"
},
"TableContent": {
"properties": {
"content": {
"items": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"type": "array"
},
"title": "Content",
"type": "array"
},
"withHeadings": {
"default": false,
"title": "Withheadings",
"type": "boolean"
}
},
"required": [
"content"
],
"title": "TableContent",
"type": "object"
}
},
"properties": {
"status": {
"anyOf": [
{
"$ref": "#/$defs/Status"
},
{
"type": "null"
}
],
"default": null
},
"Created": {
"anyOf": [
{
"$ref": "#/$defs/AuditFields"
},
{
"type": "null"
}
],
"default": null
},
"Updated": {
"anyOf": [
{
"$ref": "#/$defs/AuditFields"
},
{
"type": "null"
}
],
"default": null
},
"albertId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Albertid"
},
"name": {
"default": "Untitled Notebook",
"title": "Name",
"type": "string"
},
"parentId": {
"title": "Parentid",
"type": "string"
},
"version": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Version"
},
"blocks": {
"items": {
"discriminator": {
"mapping": {
"attaches": "#/$defs/AttachesBlock",
"checklist": "#/$defs/ChecklistBlock",
"header": "#/$defs/HeaderBlock",
"image": "#/$defs/ImageBlock",
"ketcher": "#/$defs/KetcherBlock",
"list": "#/$defs/ListBlock",
"paragraph": "#/$defs/ParagraphBlock",
"table": "#/$defs/TableBlock"
},
"propertyName": "blockType"
},
"oneOf": [
{
"$ref": "#/$defs/HeaderBlock"
},
{
"$ref": "#/$defs/ParagraphBlock"
},
{
"$ref": "#/$defs/ChecklistBlock"
},
{
"$ref": "#/$defs/AttachesBlock"
},
{
"$ref": "#/$defs/ImageBlock"
},
{
"$ref": "#/$defs/KetcherBlock"
},
{
"$ref": "#/$defs/TableBlock"
},
{
"$ref": "#/$defs/ListBlock"
}
]
},
"title": "Blocks",
"type": "array"
},
"links": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/NotebookLink"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Links"
}
},
"required": [
"parentId"
],
"title": "Notebook",
"type": "object"
}
Fields:
-
status
(Status | None
) -
created
(AuditFields | None
) -
updated
(AuditFields | None
) -
id
(NotebookId | None
) -
name
(str
) -
parent_id
(ProjectId | TaskId
) -
version
(datetime | None
) -
blocks
(list[NotebookBlock]
) -
links
(list[NotebookLink] | None
)
PutOperation
PutBlockDatum
Bases: BaseAlbertModel
Show JSON schema:
{
"$defs": {
"AttachesContent": {
"properties": {
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
},
"namespace": {
"default": "result",
"title": "Namespace",
"type": "string"
},
"fileKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Filekey"
},
"mimeType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Mimetype"
},
"signedURL": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Signedurl"
}
},
"title": "AttachesContent",
"type": "object"
},
"BlockType": {
"enum": [
"paragraph",
"list",
"header",
"checklist",
"image",
"attaches",
"ketcher",
"table"
],
"title": "BlockType",
"type": "string"
},
"BulletedListContent": {
"properties": {
"items": {
"items": {
"$ref": "#/$defs/NotebookListItem"
},
"title": "Items",
"type": "array"
},
"style": {
"const": "unordered",
"default": "unordered",
"title": "Style",
"type": "string"
}
},
"required": [
"items"
],
"title": "BulletedListContent",
"type": "object"
},
"ChecklistContent": {
"properties": {
"items": {
"items": {
"$ref": "#/$defs/ChecklistItem"
},
"title": "Items",
"type": "array"
}
},
"required": [
"items"
],
"title": "ChecklistContent",
"type": "object"
},
"ChecklistItem": {
"properties": {
"checked": {
"title": "Checked",
"type": "boolean"
},
"text": {
"title": "Text",
"type": "string"
}
},
"required": [
"checked",
"text"
],
"title": "ChecklistItem",
"type": "object"
},
"HeaderContent": {
"properties": {
"level": {
"enum": [
1,
2,
3
],
"title": "Level",
"type": "integer"
},
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Text"
}
},
"required": [
"level",
"text"
],
"title": "HeaderContent",
"type": "object"
},
"ImageContent": {
"properties": {
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
},
"namespace": {
"default": "result",
"title": "Namespace",
"type": "string"
},
"stretched": {
"default": false,
"title": "Stretched",
"type": "boolean"
},
"withBackground": {
"default": false,
"title": "Withbackground",
"type": "boolean"
},
"withBorder": {
"default": false,
"title": "Withborder",
"type": "boolean"
},
"fileKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Filekey"
},
"signedURL": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Signedurl"
}
},
"title": "ImageContent",
"type": "object"
},
"KetcherContent": {
"properties": {
"synthesisId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Synthesisid"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"blockId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Blockid"
},
"data": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Data"
},
"fileKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Filekey"
},
"s3Key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "S3Key"
},
"png": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Png"
},
"ketcherUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Ketcherurl"
}
},
"title": "KetcherContent",
"type": "object"
},
"NotebookListItem": {
"properties": {
"content": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Content"
},
"items": {
"items": {
"$ref": "#/$defs/NotebookListItem"
},
"title": "Items",
"type": "array"
}
},
"required": [
"content"
],
"title": "NotebookListItem",
"type": "object"
},
"NumberedListContent": {
"properties": {
"items": {
"items": {
"$ref": "#/$defs/NotebookListItem"
},
"title": "Items",
"type": "array"
},
"style": {
"const": "ordered",
"default": "ordered",
"title": "Style",
"type": "string"
}
},
"required": [
"items"
],
"title": "NumberedListContent",
"type": "object"
},
"ParagraphContent": {
"properties": {
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Text"
}
},
"required": [
"text"
],
"title": "ParagraphContent",
"type": "object"
},
"PutOperation": {
"enum": [
"update",
"delete"
],
"title": "PutOperation",
"type": "string"
},
"TableContent": {
"properties": {
"content": {
"items": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"type": "array"
},
"title": "Content",
"type": "array"
},
"withHeadings": {
"default": false,
"title": "Withheadings",
"type": "boolean"
}
},
"required": [
"content"
],
"title": "TableContent",
"type": "object"
}
},
"properties": {
"id": {
"title": "Id",
"type": "string"
},
"operation": {
"$ref": "#/$defs/PutOperation"
},
"blockType": {
"anyOf": [
{
"$ref": "#/$defs/BlockType"
},
{
"type": "null"
}
],
"default": null
},
"content": {
"anyOf": [
{
"$ref": "#/$defs/HeaderContent"
},
{
"$ref": "#/$defs/ParagraphContent"
},
{
"$ref": "#/$defs/ChecklistContent"
},
{
"$ref": "#/$defs/AttachesContent"
},
{
"$ref": "#/$defs/ImageContent"
},
{
"$ref": "#/$defs/KetcherContent"
},
{
"$ref": "#/$defs/TableContent"
},
{
"$ref": "#/$defs/BulletedListContent"
},
{
"$ref": "#/$defs/NumberedListContent"
},
{
"type": "null"
}
],
"default": null,
"title": "Content"
},
"previousBlockId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Previousblockid"
}
},
"required": [
"id",
"operation"
],
"title": "PutBlockDatum",
"type": "object"
}
Fields:
-
id
(str
) -
operation
(PutOperation
) -
type
(BlockType | None
) -
content
(NotebookContent | None
) -
previous_block_id
(str | None
)
Validators:
content_matches_type
content_matches_type() -> PutBlockDatum
Source code in src/albert/resources/notebooks.py
model_dump
Shallow model_dump to exclude None values (None only removed from top level). This ensures required attrs are not removed.
Source code in src/albert/resources/notebooks.py
PutBlockPayload
Bases: BaseAlbertModel
Show JSON schema:
{
"$defs": {
"AttachesContent": {
"properties": {
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
},
"namespace": {
"default": "result",
"title": "Namespace",
"type": "string"
},
"fileKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Filekey"
},
"mimeType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Mimetype"
},
"signedURL": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Signedurl"
}
},
"title": "AttachesContent",
"type": "object"
},
"BlockType": {
"enum": [
"paragraph",
"list",
"header",
"checklist",
"image",
"attaches",
"ketcher",
"table"
],
"title": "BlockType",
"type": "string"
},
"BulletedListContent": {
"properties": {
"items": {
"items": {
"$ref": "#/$defs/NotebookListItem"
},
"title": "Items",
"type": "array"
},
"style": {
"const": "unordered",
"default": "unordered",
"title": "Style",
"type": "string"
}
},
"required": [
"items"
],
"title": "BulletedListContent",
"type": "object"
},
"ChecklistContent": {
"properties": {
"items": {
"items": {
"$ref": "#/$defs/ChecklistItem"
},
"title": "Items",
"type": "array"
}
},
"required": [
"items"
],
"title": "ChecklistContent",
"type": "object"
},
"ChecklistItem": {
"properties": {
"checked": {
"title": "Checked",
"type": "boolean"
},
"text": {
"title": "Text",
"type": "string"
}
},
"required": [
"checked",
"text"
],
"title": "ChecklistItem",
"type": "object"
},
"HeaderContent": {
"properties": {
"level": {
"enum": [
1,
2,
3
],
"title": "Level",
"type": "integer"
},
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Text"
}
},
"required": [
"level",
"text"
],
"title": "HeaderContent",
"type": "object"
},
"ImageContent": {
"properties": {
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
},
"namespace": {
"default": "result",
"title": "Namespace",
"type": "string"
},
"stretched": {
"default": false,
"title": "Stretched",
"type": "boolean"
},
"withBackground": {
"default": false,
"title": "Withbackground",
"type": "boolean"
},
"withBorder": {
"default": false,
"title": "Withborder",
"type": "boolean"
},
"fileKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Filekey"
},
"signedURL": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Signedurl"
}
},
"title": "ImageContent",
"type": "object"
},
"KetcherContent": {
"properties": {
"synthesisId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Synthesisid"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"blockId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Blockid"
},
"data": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Data"
},
"fileKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Filekey"
},
"s3Key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "S3Key"
},
"png": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Png"
},
"ketcherUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Ketcherurl"
}
},
"title": "KetcherContent",
"type": "object"
},
"NotebookListItem": {
"properties": {
"content": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Content"
},
"items": {
"items": {
"$ref": "#/$defs/NotebookListItem"
},
"title": "Items",
"type": "array"
}
},
"required": [
"content"
],
"title": "NotebookListItem",
"type": "object"
},
"NumberedListContent": {
"properties": {
"items": {
"items": {
"$ref": "#/$defs/NotebookListItem"
},
"title": "Items",
"type": "array"
},
"style": {
"const": "ordered",
"default": "ordered",
"title": "Style",
"type": "string"
}
},
"required": [
"items"
],
"title": "NumberedListContent",
"type": "object"
},
"ParagraphContent": {
"properties": {
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Text"
}
},
"required": [
"text"
],
"title": "ParagraphContent",
"type": "object"
},
"PutBlockDatum": {
"properties": {
"id": {
"title": "Id",
"type": "string"
},
"operation": {
"$ref": "#/$defs/PutOperation"
},
"blockType": {
"anyOf": [
{
"$ref": "#/$defs/BlockType"
},
{
"type": "null"
}
],
"default": null
},
"content": {
"anyOf": [
{
"$ref": "#/$defs/HeaderContent"
},
{
"$ref": "#/$defs/ParagraphContent"
},
{
"$ref": "#/$defs/ChecklistContent"
},
{
"$ref": "#/$defs/AttachesContent"
},
{
"$ref": "#/$defs/ImageContent"
},
{
"$ref": "#/$defs/KetcherContent"
},
{
"$ref": "#/$defs/TableContent"
},
{
"$ref": "#/$defs/BulletedListContent"
},
{
"$ref": "#/$defs/NumberedListContent"
},
{
"type": "null"
}
],
"default": null,
"title": "Content"
},
"previousBlockId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Previousblockid"
}
},
"required": [
"id",
"operation"
],
"title": "PutBlockDatum",
"type": "object"
},
"PutOperation": {
"enum": [
"update",
"delete"
],
"title": "PutOperation",
"type": "string"
},
"TableContent": {
"properties": {
"content": {
"items": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"type": "array"
},
"title": "Content",
"type": "array"
},
"withHeadings": {
"default": false,
"title": "Withheadings",
"type": "boolean"
}
},
"required": [
"content"
],
"title": "TableContent",
"type": "object"
}
},
"properties": {
"data": {
"items": {
"$ref": "#/$defs/PutBlockDatum"
},
"title": "Data",
"type": "array"
}
},
"required": [
"data"
],
"title": "PutBlockPayload",
"type": "object"
}
Fields:
model_dump
model_dump to ensure only top-level None attrs are removed on PutBlockDatum.
NotebookCopyACL
Bases: BaseResource
Show JSON schema:
{
"$defs": {
"ACL": {
"description": "The Access Control List (ACL) for a user",
"properties": {
"id": {
"description": "The id of the user for which this ACL applies",
"title": "Id",
"type": "string"
},
"fgc": {
"anyOf": [
{
"$ref": "#/$defs/AccessControlLevel"
},
{
"type": "null"
}
],
"default": null,
"description": "The Fine-Grain Control Level"
}
},
"required": [
"id"
],
"title": "ACL",
"type": "object"
},
"AccessControlLevel": {
"description": "The fine grain control",
"enum": [
"ProjectOwner",
"ProjectEditor",
"ProjectViewer",
"ProjectAllTask",
"ProjectPropertyTask",
"InventoryOwner",
"InventoryViewer",
"CustomTemplateOwner"
],
"title": "AccessControlLevel",
"type": "string"
},
"AuditFields": {
"description": "The audit fields for a resource",
"properties": {
"by": {
"default": null,
"title": "By",
"type": "string"
},
"byName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Byname"
},
"at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "At"
}
},
"title": "AuditFields",
"type": "object"
},
"Status": {
"description": "The status of a resource",
"enum": [
"active",
"inactive"
],
"title": "Status",
"type": "string"
}
},
"properties": {
"status": {
"anyOf": [
{
"$ref": "#/$defs/Status"
},
{
"type": "null"
}
],
"default": null
},
"Created": {
"anyOf": [
{
"$ref": "#/$defs/AuditFields"
},
{
"type": "null"
}
],
"default": null
},
"Updated": {
"anyOf": [
{
"$ref": "#/$defs/AuditFields"
},
{
"type": "null"
}
],
"default": null
},
"fgclist": {
"default": null,
"items": {
"$ref": "#/$defs/ACL"
},
"title": "Fgclist",
"type": "array"
},
"class": {
"title": "Class",
"type": "string"
}
},
"required": [
"class"
],
"title": "NotebookCopyACL",
"type": "object"
}
Fields:
NotebookCopyInfo
Bases: BaseAlbertModel
Show JSON schema:
{
"$defs": {
"ACL": {
"description": "The Access Control List (ACL) for a user",
"properties": {
"id": {
"description": "The id of the user for which this ACL applies",
"title": "Id",
"type": "string"
},
"fgc": {
"anyOf": [
{
"$ref": "#/$defs/AccessControlLevel"
},
{
"type": "null"
}
],
"default": null,
"description": "The Fine-Grain Control Level"
}
},
"required": [
"id"
],
"title": "ACL",
"type": "object"
},
"AccessControlLevel": {
"description": "The fine grain control",
"enum": [
"ProjectOwner",
"ProjectEditor",
"ProjectViewer",
"ProjectAllTask",
"ProjectPropertyTask",
"InventoryOwner",
"InventoryViewer",
"CustomTemplateOwner"
],
"title": "AccessControlLevel",
"type": "string"
},
"AuditFields": {
"description": "The audit fields for a resource",
"properties": {
"by": {
"default": null,
"title": "By",
"type": "string"
},
"byName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Byname"
},
"at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "At"
}
},
"title": "AuditFields",
"type": "object"
},
"NotebookCopyACL": {
"properties": {
"status": {
"anyOf": [
{
"$ref": "#/$defs/Status"
},
{
"type": "null"
}
],
"default": null
},
"Created": {
"anyOf": [
{
"$ref": "#/$defs/AuditFields"
},
{
"type": "null"
}
],
"default": null
},
"Updated": {
"anyOf": [
{
"$ref": "#/$defs/AuditFields"
},
{
"type": "null"
}
],
"default": null
},
"fgclist": {
"default": null,
"items": {
"$ref": "#/$defs/ACL"
},
"title": "Fgclist",
"type": "array"
},
"class": {
"title": "Class",
"type": "string"
}
},
"required": [
"class"
],
"title": "NotebookCopyACL",
"type": "object"
},
"Status": {
"description": "The status of a resource",
"enum": [
"active",
"inactive"
],
"title": "Status",
"type": "string"
}
},
"properties": {
"id": {
"title": "Id",
"type": "string"
},
"parentId": {
"title": "Parentid",
"type": "string"
},
"notebookName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Notebookname"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"acl": {
"anyOf": [
{
"$ref": "#/$defs/NotebookCopyACL"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"id",
"parentId"
],
"title": "NotebookCopyInfo",
"type": "object"
}
Fields:
-
id
(NotebookId
) -
parent_id
(str
) -
notebook_name
(str | None
) -
name
(str | None
) -
acl
(NotebookCopyACL | None
)