NoteDetailsResponse

pydantic model openapi_client.models.note_details_response.NoteDetailsResponse

GET /ai/playground/notes/{note_id} response. Full note record plus NoteContent loaded from S3 and AccessType for the caller.

Fields:
field note_id: Optional[StrictStr] = None (alias 'NoteId')

Note identifier

field title: Optional[StrictStr] = None (alias 'Title')

Note title

field note_content: Optional[StrictStr] = None (alias 'NoteContent')

Full markdown content of the note (from S3)

field creation_time: Optional[StrictStr] = None (alias 'CreationTime')

When the note was created

field created_by: Optional[StrictStr] = None (alias 'CreatedBy')

Who created the note

field last_modified_time: Optional[StrictStr] = None (alias 'LastModifiedTime')

When the note was last modified

field last_modified_by: Optional[StrictStr] = None (alias 'LastModifiedBy')

Who last modified the note

field chat_id: Optional[StrictStr] = None (alias 'ChatId')

Associated chat ID when present (otherwise may be N/A)

field project_id: Optional[StrictStr] = None (alias 'ProjectId')

Associated project ID when present (otherwise may be N/A)

field client_id: Optional[StrictStr] = None (alias 'ClientId')

Present for project-linked notes (e.g. project#{ProjectId})

field sources: Optional[List[Dict[str, Any]]] = None (alias 'Sources')

Sources metadata when present

field access_type: Optional[StrictStr] = None (alias 'AccessType')

Caller’s access level on the note

field project_level_access: Optional[StrictStr] = None (alias 'ProjectLevelAccess')

Project-wide access level stored on the note (none, read-only, editor, or owner). Defaults to none on create.

field note_type: Optional[StrictStr] = None (alias 'NoteType')

Note type (note or prompt). Backfilled to note when missing.

field expiration_time: Optional[StrictStr] = None (alias 'ExpirationTime')

Note expiration time in ISO format when present

to_str()

Returns the string representation of the model using alias

Return type:

str

to_json()

Returns the JSON representation of the model using alias

Return type:

str

classmethod from_json(json_str)

Create an instance of NoteDetailsResponse from a JSON string

Return type:

Optional[Self]

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True):

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

Return type:

Dict[str, Any]

classmethod from_dict(obj)

Create an instance of NoteDetailsResponse from a dict

Return type:

Optional[Self]