pebbenote-cli 0.6.1__py3-none-any.whl

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.
Files changed (62) hide show
  1. pebbenote_cli/__init__.py +0 -0
  2. pebbenote_cli/__main__.py +3 -0
  3. pebbenote_cli/api.py +62 -0
  4. pebbenote_cli/auth.py +120 -0
  5. pebbenote_cli/cli.py +282 -0
  6. pebbenote_cli/client/__init__.py +8 -0
  7. pebbenote_cli/client/api/__init__.py +1 -0
  8. pebbenote_cli/client/api/actions/__init__.py +1 -0
  9. pebbenote_cli/client/api/actions/apply_action.py +166 -0
  10. pebbenote_cli/client/api/instructions/__init__.py +1 -0
  11. pebbenote_cli/client/api/instructions/list_instructions.py +127 -0
  12. pebbenote_cli/client/api/instructions/replace_instructions.py +204 -0
  13. pebbenote_cli/client/api/notes/__init__.py +1 -0
  14. pebbenote_cli/client/api/notes/create_note.py +173 -0
  15. pebbenote_cli/client/api/notes/delete_note.py +159 -0
  16. pebbenote_cli/client/api/notes/edit_note_by_id.py +197 -0
  17. pebbenote_cli/client/api/notes/get_note_by_id.py +184 -0
  18. pebbenote_cli/client/api/notes/list_notes.py +132 -0
  19. pebbenote_cli/client/api/notes/set_default_note.py +161 -0
  20. pebbenote_cli/client/api/sharing/__init__.py +1 -0
  21. pebbenote_cli/client/api/sharing/get_note_sharing.py +161 -0
  22. pebbenote_cli/client/api/sharing/get_shared_note.py +172 -0
  23. pebbenote_cli/client/api/sharing/join_shared_note.py +176 -0
  24. pebbenote_cli/client/api/sharing/make_note_private.py +167 -0
  25. pebbenote_cli/client/api/sharing/remove_note_member.py +173 -0
  26. pebbenote_cli/client/api/sharing/revoke_share_link.py +181 -0
  27. pebbenote_cli/client/api/sharing/share_note.py +202 -0
  28. pebbenote_cli/client/client.py +280 -0
  29. pebbenote_cli/client/errors.py +16 -0
  30. pebbenote_cli/client/models/__init__.py +47 -0
  31. pebbenote_cli/client/models/action_accepted_model.py +68 -0
  32. pebbenote_cli/client/models/action_edit_model.py +96 -0
  33. pebbenote_cli/client/models/action_model.py +105 -0
  34. pebbenote_cli/client/models/action_status.py +10 -0
  35. pebbenote_cli/client/models/http_validation_error.py +79 -0
  36. pebbenote_cli/client/models/instructions_conflict_model.py +75 -0
  37. pebbenote_cli/client/models/instructions_edit_model.py +69 -0
  38. pebbenote_cli/client/models/instructions_model.py +69 -0
  39. pebbenote_cli/client/models/note_access.py +10 -0
  40. pebbenote_cli/client/models/note_conflict_model.py +75 -0
  41. pebbenote_cli/client/models/note_member_model.py +86 -0
  42. pebbenote_cli/client/models/note_model.py +113 -0
  43. pebbenote_cli/client/models/note_sharing_model.py +94 -0
  44. pebbenote_cli/client/models/note_update_model.py +83 -0
  45. pebbenote_cli/client/models/note_view_model.py +143 -0
  46. pebbenote_cli/client/models/share_access.py +9 -0
  47. pebbenote_cli/client/models/share_create_model.py +69 -0
  48. pebbenote_cli/client/models/share_link_model.py +120 -0
  49. pebbenote_cli/client/models/shared_note_model.py +89 -0
  50. pebbenote_cli/client/models/validation_error.py +125 -0
  51. pebbenote_cli/client/models/validation_error_context.py +44 -0
  52. pebbenote_cli/client/types.py +54 -0
  53. pebbenote_cli/config.py +46 -0
  54. pebbenote_cli/editor.py +23 -0
  55. pebbenote_cli/errors.py +10 -0
  56. pebbenote_cli/http.py +36 -0
  57. pebbenote_cli/instructions.py +24 -0
  58. pebbenote_cli/merge.py +79 -0
  59. pebbenote_cli-0.6.1.dist-info/METADATA +129 -0
  60. pebbenote_cli-0.6.1.dist-info/RECORD +62 -0
  61. pebbenote_cli-0.6.1.dist-info/WHEEL +4 -0
  62. pebbenote_cli-0.6.1.dist-info/entry_points.txt +3 -0
@@ -0,0 +1,197 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Literal
3
+ from urllib.parse import quote
4
+ from uuid import UUID
5
+
6
+ import httpx
7
+
8
+ from ... import errors
9
+ from ...client import AuthenticatedClient, Client
10
+ from ...models.http_validation_error import HTTPValidationError
11
+ from ...models.note_conflict_model import NoteConflictModel
12
+ from ...models.note_model import NoteModel
13
+ from ...models.note_update_model import NoteUpdateModel
14
+ from ...types import Response
15
+
16
+
17
+ def _get_kwargs(
18
+ note_id: Literal["default"] | UUID,
19
+ *,
20
+ body: NoteUpdateModel,
21
+ ) -> dict[str, Any]:
22
+ headers: dict[str, Any] = {}
23
+
24
+ _kwargs: dict[str, Any] = {
25
+ "method": "patch",
26
+ "url": "/api/note/{note_id}".format(
27
+ note_id=quote(str(note_id), safe=""),
28
+ ),
29
+ }
30
+
31
+ _kwargs["json"] = body.to_dict()
32
+
33
+ headers["Content-Type"] = "application/json"
34
+
35
+ _kwargs["headers"] = headers
36
+ return _kwargs
37
+
38
+
39
+ def _parse_response(
40
+ *, client: AuthenticatedClient | Client, response: httpx.Response
41
+ ) -> HTTPValidationError | NoteConflictModel | NoteModel | None:
42
+ if response.status_code == 200:
43
+ response_200 = NoteModel.from_dict(response.json())
44
+
45
+ return response_200
46
+
47
+ if response.status_code == 409:
48
+ response_409 = NoteConflictModel.from_dict(response.json())
49
+
50
+ return response_409
51
+
52
+ if response.status_code == 422:
53
+ response_422 = HTTPValidationError.from_dict(response.json())
54
+
55
+ return response_422
56
+
57
+ if client.raise_on_unexpected_status:
58
+ raise errors.UnexpectedStatus(response.status_code, response.content)
59
+ else:
60
+ return None
61
+
62
+
63
+ def _build_response(
64
+ *, client: AuthenticatedClient | Client, response: httpx.Response
65
+ ) -> Response[HTTPValidationError | NoteConflictModel | NoteModel]:
66
+ return Response(
67
+ status_code=HTTPStatus(response.status_code),
68
+ content=response.content,
69
+ headers=response.headers,
70
+ parsed=_parse_response(client=client, response=response),
71
+ )
72
+
73
+
74
+ def sync_detailed(
75
+ note_id: Literal["default"] | UUID,
76
+ *,
77
+ client: AuthenticatedClient,
78
+ body: NoteUpdateModel,
79
+ ) -> Response[HTTPValidationError | NoteConflictModel | NoteModel]:
80
+ """Edit Note By Id
81
+
82
+ The note gets a new title in the background
83
+
84
+ Args:
85
+ note_id (Literal['default'] | UUID):
86
+ body (NoteUpdateModel):
87
+
88
+ Raises:
89
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
90
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
91
+
92
+ Returns:
93
+ Response[HTTPValidationError | NoteConflictModel | NoteModel]
94
+ """
95
+
96
+ kwargs = _get_kwargs(
97
+ note_id=note_id,
98
+ body=body,
99
+ )
100
+
101
+ response = client.get_httpx_client().request(
102
+ **kwargs,
103
+ )
104
+
105
+ return _build_response(client=client, response=response)
106
+
107
+
108
+ def sync(
109
+ note_id: Literal["default"] | UUID,
110
+ *,
111
+ client: AuthenticatedClient,
112
+ body: NoteUpdateModel,
113
+ ) -> HTTPValidationError | NoteConflictModel | NoteModel | None:
114
+ """Edit Note By Id
115
+
116
+ The note gets a new title in the background
117
+
118
+ Args:
119
+ note_id (Literal['default'] | UUID):
120
+ body (NoteUpdateModel):
121
+
122
+ Raises:
123
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
124
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
125
+
126
+ Returns:
127
+ HTTPValidationError | NoteConflictModel | NoteModel
128
+ """
129
+
130
+ return sync_detailed(
131
+ note_id=note_id,
132
+ client=client,
133
+ body=body,
134
+ ).parsed
135
+
136
+
137
+ async def asyncio_detailed(
138
+ note_id: Literal["default"] | UUID,
139
+ *,
140
+ client: AuthenticatedClient,
141
+ body: NoteUpdateModel,
142
+ ) -> Response[HTTPValidationError | NoteConflictModel | NoteModel]:
143
+ """Edit Note By Id
144
+
145
+ The note gets a new title in the background
146
+
147
+ Args:
148
+ note_id (Literal['default'] | UUID):
149
+ body (NoteUpdateModel):
150
+
151
+ Raises:
152
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
153
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
154
+
155
+ Returns:
156
+ Response[HTTPValidationError | NoteConflictModel | NoteModel]
157
+ """
158
+
159
+ kwargs = _get_kwargs(
160
+ note_id=note_id,
161
+ body=body,
162
+ )
163
+
164
+ response = await client.get_async_httpx_client().request(**kwargs)
165
+
166
+ return _build_response(client=client, response=response)
167
+
168
+
169
+ async def asyncio(
170
+ note_id: Literal["default"] | UUID,
171
+ *,
172
+ client: AuthenticatedClient,
173
+ body: NoteUpdateModel,
174
+ ) -> HTTPValidationError | NoteConflictModel | NoteModel | None:
175
+ """Edit Note By Id
176
+
177
+ The note gets a new title in the background
178
+
179
+ Args:
180
+ note_id (Literal['default'] | UUID):
181
+ body (NoteUpdateModel):
182
+
183
+ Raises:
184
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
185
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
186
+
187
+ Returns:
188
+ HTTPValidationError | NoteConflictModel | NoteModel
189
+ """
190
+
191
+ return (
192
+ await asyncio_detailed(
193
+ note_id=note_id,
194
+ client=client,
195
+ body=body,
196
+ )
197
+ ).parsed
@@ -0,0 +1,184 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Literal, cast
3
+ from urllib.parse import quote
4
+ from uuid import UUID
5
+
6
+ import httpx
7
+
8
+ from ... import errors
9
+ from ...client import AuthenticatedClient, Client
10
+ from ...models.http_validation_error import HTTPValidationError
11
+ from ...models.note_view_model import NoteViewModel
12
+ from ...types import UNSET, Response, Unset
13
+
14
+
15
+ def _get_kwargs(
16
+ note_id: Literal["default"] | UUID,
17
+ *,
18
+ if_modified_since: None | str | Unset = UNSET,
19
+ ) -> dict[str, Any]:
20
+ headers: dict[str, Any] = {}
21
+ if not isinstance(if_modified_since, Unset):
22
+ headers["if-modified-since"] = if_modified_since
23
+
24
+ _kwargs: dict[str, Any] = {
25
+ "method": "get",
26
+ "url": "/api/note/{note_id}".format(
27
+ note_id=quote(str(note_id), safe=""),
28
+ ),
29
+ }
30
+
31
+ _kwargs["headers"] = headers
32
+ return _kwargs
33
+
34
+
35
+ def _parse_response(
36
+ *, client: AuthenticatedClient | Client, response: httpx.Response
37
+ ) -> Any | HTTPValidationError | NoteViewModel | None:
38
+ if response.status_code == 200:
39
+ response_200 = NoteViewModel.from_dict(response.json())
40
+
41
+ return response_200
42
+
43
+ if response.status_code == 304:
44
+ response_304 = cast(Any, None)
45
+ return response_304
46
+
47
+ if response.status_code == 422:
48
+ response_422 = HTTPValidationError.from_dict(response.json())
49
+
50
+ return response_422
51
+
52
+ if client.raise_on_unexpected_status:
53
+ raise errors.UnexpectedStatus(response.status_code, response.content)
54
+ else:
55
+ return None
56
+
57
+
58
+ def _build_response(
59
+ *, client: AuthenticatedClient | Client, response: httpx.Response
60
+ ) -> Response[Any | HTTPValidationError | NoteViewModel]:
61
+ return Response(
62
+ status_code=HTTPStatus(response.status_code),
63
+ content=response.content,
64
+ headers=response.headers,
65
+ parsed=_parse_response(client=client, response=response),
66
+ )
67
+
68
+
69
+ def sync_detailed(
70
+ note_id: Literal["default"] | UUID,
71
+ *,
72
+ client: AuthenticatedClient,
73
+ if_modified_since: None | str | Unset = UNSET,
74
+ ) -> Response[Any | HTTPValidationError | NoteViewModel]:
75
+ """Get Note By Id
76
+
77
+ Args:
78
+ note_id (Literal['default'] | UUID):
79
+ if_modified_since (None | str | Unset):
80
+
81
+ Raises:
82
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
83
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
84
+
85
+ Returns:
86
+ Response[Any | HTTPValidationError | NoteViewModel]
87
+ """
88
+
89
+ kwargs = _get_kwargs(
90
+ note_id=note_id,
91
+ if_modified_since=if_modified_since,
92
+ )
93
+
94
+ response = client.get_httpx_client().request(
95
+ **kwargs,
96
+ )
97
+
98
+ return _build_response(client=client, response=response)
99
+
100
+
101
+ def sync(
102
+ note_id: Literal["default"] | UUID,
103
+ *,
104
+ client: AuthenticatedClient,
105
+ if_modified_since: None | str | Unset = UNSET,
106
+ ) -> Any | HTTPValidationError | NoteViewModel | None:
107
+ """Get Note By Id
108
+
109
+ Args:
110
+ note_id (Literal['default'] | UUID):
111
+ if_modified_since (None | str | Unset):
112
+
113
+ Raises:
114
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
115
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
116
+
117
+ Returns:
118
+ Any | HTTPValidationError | NoteViewModel
119
+ """
120
+
121
+ return sync_detailed(
122
+ note_id=note_id,
123
+ client=client,
124
+ if_modified_since=if_modified_since,
125
+ ).parsed
126
+
127
+
128
+ async def asyncio_detailed(
129
+ note_id: Literal["default"] | UUID,
130
+ *,
131
+ client: AuthenticatedClient,
132
+ if_modified_since: None | str | Unset = UNSET,
133
+ ) -> Response[Any | HTTPValidationError | NoteViewModel]:
134
+ """Get Note By Id
135
+
136
+ Args:
137
+ note_id (Literal['default'] | UUID):
138
+ if_modified_since (None | str | Unset):
139
+
140
+ Raises:
141
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
142
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
143
+
144
+ Returns:
145
+ Response[Any | HTTPValidationError | NoteViewModel]
146
+ """
147
+
148
+ kwargs = _get_kwargs(
149
+ note_id=note_id,
150
+ if_modified_since=if_modified_since,
151
+ )
152
+
153
+ response = await client.get_async_httpx_client().request(**kwargs)
154
+
155
+ return _build_response(client=client, response=response)
156
+
157
+
158
+ async def asyncio(
159
+ note_id: Literal["default"] | UUID,
160
+ *,
161
+ client: AuthenticatedClient,
162
+ if_modified_since: None | str | Unset = UNSET,
163
+ ) -> Any | HTTPValidationError | NoteViewModel | None:
164
+ """Get Note By Id
165
+
166
+ Args:
167
+ note_id (Literal['default'] | UUID):
168
+ if_modified_since (None | str | Unset):
169
+
170
+ Raises:
171
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
172
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
173
+
174
+ Returns:
175
+ Any | HTTPValidationError | NoteViewModel
176
+ """
177
+
178
+ return (
179
+ await asyncio_detailed(
180
+ note_id=note_id,
181
+ client=client,
182
+ if_modified_since=if_modified_since,
183
+ )
184
+ ).parsed
@@ -0,0 +1,132 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.note_model import NoteModel
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs() -> dict[str, Any]:
13
+ _kwargs: dict[str, Any] = {
14
+ "method": "get",
15
+ "url": "/api/note/",
16
+ }
17
+
18
+ return _kwargs
19
+
20
+
21
+ def _parse_response(
22
+ *, client: AuthenticatedClient | Client, response: httpx.Response
23
+ ) -> list[NoteModel] | None:
24
+ if response.status_code == 200:
25
+ response_200 = []
26
+ _response_200 = response.json()
27
+ for response_200_item_data in _response_200:
28
+ response_200_item = NoteModel.from_dict(response_200_item_data)
29
+
30
+ response_200.append(response_200_item)
31
+
32
+ return response_200
33
+
34
+ if client.raise_on_unexpected_status:
35
+ raise errors.UnexpectedStatus(response.status_code, response.content)
36
+ else:
37
+ return None
38
+
39
+
40
+ def _build_response(
41
+ *, client: AuthenticatedClient | Client, response: httpx.Response
42
+ ) -> Response[list[NoteModel]]:
43
+ return Response(
44
+ status_code=HTTPStatus(response.status_code),
45
+ content=response.content,
46
+ headers=response.headers,
47
+ parsed=_parse_response(client=client, response=response),
48
+ )
49
+
50
+
51
+ def sync_detailed(
52
+ *,
53
+ client: AuthenticatedClient,
54
+ ) -> Response[list[NoteModel]]:
55
+ """List Notes
56
+
57
+ Raises:
58
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
59
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
60
+
61
+ Returns:
62
+ Response[list[NoteModel]]
63
+ """
64
+
65
+ kwargs = _get_kwargs()
66
+
67
+ response = client.get_httpx_client().request(
68
+ **kwargs,
69
+ )
70
+
71
+ return _build_response(client=client, response=response)
72
+
73
+
74
+ def sync(
75
+ *,
76
+ client: AuthenticatedClient,
77
+ ) -> list[NoteModel] | None:
78
+ """List Notes
79
+
80
+ Raises:
81
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
82
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
83
+
84
+ Returns:
85
+ list[NoteModel]
86
+ """
87
+
88
+ return sync_detailed(
89
+ client=client,
90
+ ).parsed
91
+
92
+
93
+ async def asyncio_detailed(
94
+ *,
95
+ client: AuthenticatedClient,
96
+ ) -> Response[list[NoteModel]]:
97
+ """List Notes
98
+
99
+ Raises:
100
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
101
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
102
+
103
+ Returns:
104
+ Response[list[NoteModel]]
105
+ """
106
+
107
+ kwargs = _get_kwargs()
108
+
109
+ response = await client.get_async_httpx_client().request(**kwargs)
110
+
111
+ return _build_response(client=client, response=response)
112
+
113
+
114
+ async def asyncio(
115
+ *,
116
+ client: AuthenticatedClient,
117
+ ) -> list[NoteModel] | None:
118
+ """List Notes
119
+
120
+ Raises:
121
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
122
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
123
+
124
+ Returns:
125
+ list[NoteModel]
126
+ """
127
+
128
+ return (
129
+ await asyncio_detailed(
130
+ client=client,
131
+ )
132
+ ).parsed
@@ -0,0 +1,161 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+ from urllib.parse import quote
4
+ from uuid import UUID
5
+
6
+ import httpx
7
+
8
+ from ... import errors
9
+ from ...client import AuthenticatedClient, Client
10
+ from ...models.http_validation_error import HTTPValidationError
11
+ from ...models.note_model import NoteModel
12
+ from ...types import Response
13
+
14
+
15
+ def _get_kwargs(
16
+ note_id: UUID,
17
+ ) -> dict[str, Any]:
18
+ _kwargs: dict[str, Any] = {
19
+ "method": "put",
20
+ "url": "/api/note/{note_id}/default".format(
21
+ note_id=quote(str(note_id), safe=""),
22
+ ),
23
+ }
24
+
25
+ return _kwargs
26
+
27
+
28
+ def _parse_response(
29
+ *, client: AuthenticatedClient | Client, response: httpx.Response
30
+ ) -> HTTPValidationError | NoteModel | None:
31
+ if response.status_code == 200:
32
+ response_200 = NoteModel.from_dict(response.json())
33
+
34
+ return response_200
35
+
36
+ if response.status_code == 422:
37
+ response_422 = HTTPValidationError.from_dict(response.json())
38
+
39
+ return response_422
40
+
41
+ if client.raise_on_unexpected_status:
42
+ raise errors.UnexpectedStatus(response.status_code, response.content)
43
+ else:
44
+ return None
45
+
46
+
47
+ def _build_response(
48
+ *, client: AuthenticatedClient | Client, response: httpx.Response
49
+ ) -> Response[HTTPValidationError | NoteModel]:
50
+ return Response(
51
+ status_code=HTTPStatus(response.status_code),
52
+ content=response.content,
53
+ headers=response.headers,
54
+ parsed=_parse_response(client=client, response=response),
55
+ )
56
+
57
+
58
+ def sync_detailed(
59
+ note_id: UUID,
60
+ *,
61
+ client: AuthenticatedClient,
62
+ ) -> Response[HTTPValidationError | NoteModel]:
63
+ """Set Default Note
64
+
65
+ Args:
66
+ note_id (UUID):
67
+
68
+ Raises:
69
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
70
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
71
+
72
+ Returns:
73
+ Response[HTTPValidationError | NoteModel]
74
+ """
75
+
76
+ kwargs = _get_kwargs(
77
+ note_id=note_id,
78
+ )
79
+
80
+ response = client.get_httpx_client().request(
81
+ **kwargs,
82
+ )
83
+
84
+ return _build_response(client=client, response=response)
85
+
86
+
87
+ def sync(
88
+ note_id: UUID,
89
+ *,
90
+ client: AuthenticatedClient,
91
+ ) -> HTTPValidationError | NoteModel | None:
92
+ """Set Default Note
93
+
94
+ Args:
95
+ note_id (UUID):
96
+
97
+ Raises:
98
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
99
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
100
+
101
+ Returns:
102
+ HTTPValidationError | NoteModel
103
+ """
104
+
105
+ return sync_detailed(
106
+ note_id=note_id,
107
+ client=client,
108
+ ).parsed
109
+
110
+
111
+ async def asyncio_detailed(
112
+ note_id: UUID,
113
+ *,
114
+ client: AuthenticatedClient,
115
+ ) -> Response[HTTPValidationError | NoteModel]:
116
+ """Set Default Note
117
+
118
+ Args:
119
+ note_id (UUID):
120
+
121
+ Raises:
122
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
123
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
124
+
125
+ Returns:
126
+ Response[HTTPValidationError | NoteModel]
127
+ """
128
+
129
+ kwargs = _get_kwargs(
130
+ note_id=note_id,
131
+ )
132
+
133
+ response = await client.get_async_httpx_client().request(**kwargs)
134
+
135
+ return _build_response(client=client, response=response)
136
+
137
+
138
+ async def asyncio(
139
+ note_id: UUID,
140
+ *,
141
+ client: AuthenticatedClient,
142
+ ) -> HTTPValidationError | NoteModel | None:
143
+ """Set Default Note
144
+
145
+ Args:
146
+ note_id (UUID):
147
+
148
+ Raises:
149
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
150
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
151
+
152
+ Returns:
153
+ HTTPValidationError | NoteModel
154
+ """
155
+
156
+ return (
157
+ await asyncio_detailed(
158
+ note_id=note_id,
159
+ client=client,
160
+ )
161
+ ).parsed
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""