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,161 @@
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_sharing_model import NoteSharingModel
12
+ from ...types import Response
13
+
14
+
15
+ def _get_kwargs(
16
+ note_id: Literal["default"] | UUID,
17
+ ) -> dict[str, Any]:
18
+ _kwargs: dict[str, Any] = {
19
+ "method": "get",
20
+ "url": "/api/note/{note_id}/share".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 | NoteSharingModel | None:
31
+ if response.status_code == 200:
32
+ response_200 = NoteSharingModel.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 | NoteSharingModel]:
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: Literal["default"] | UUID,
60
+ *,
61
+ client: AuthenticatedClient,
62
+ ) -> Response[HTTPValidationError | NoteSharingModel]:
63
+ """Get Note Sharing
64
+
65
+ Args:
66
+ note_id (Literal['default'] | 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 | NoteSharingModel]
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: Literal["default"] | UUID,
89
+ *,
90
+ client: AuthenticatedClient,
91
+ ) -> HTTPValidationError | NoteSharingModel | None:
92
+ """Get Note Sharing
93
+
94
+ Args:
95
+ note_id (Literal['default'] | 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 | NoteSharingModel
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: Literal["default"] | UUID,
113
+ *,
114
+ client: AuthenticatedClient,
115
+ ) -> Response[HTTPValidationError | NoteSharingModel]:
116
+ """Get Note Sharing
117
+
118
+ Args:
119
+ note_id (Literal['default'] | 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 | NoteSharingModel]
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: Literal["default"] | UUID,
140
+ *,
141
+ client: AuthenticatedClient,
142
+ ) -> HTTPValidationError | NoteSharingModel | None:
143
+ """Get Note Sharing
144
+
145
+ Args:
146
+ note_id (Literal['default'] | 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 | NoteSharingModel
154
+ """
155
+
156
+ return (
157
+ await asyncio_detailed(
158
+ note_id=note_id,
159
+ client=client,
160
+ )
161
+ ).parsed
@@ -0,0 +1,172 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, cast
3
+ from urllib.parse import quote
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...models.http_validation_error import HTTPValidationError
10
+ from ...models.shared_note_model import SharedNoteModel
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ token: str,
16
+ ) -> dict[str, Any]:
17
+ _kwargs: dict[str, Any] = {
18
+ "method": "get",
19
+ "url": "/api/shared/{token}".format(
20
+ token=quote(str(token), safe=""),
21
+ ),
22
+ }
23
+
24
+ return _kwargs
25
+
26
+
27
+ def _parse_response(
28
+ *, client: AuthenticatedClient | Client, response: httpx.Response
29
+ ) -> Any | HTTPValidationError | SharedNoteModel | None:
30
+ if response.status_code == 200:
31
+ response_200 = SharedNoteModel.from_dict(response.json())
32
+
33
+ return response_200
34
+
35
+ if response.status_code == 404:
36
+ response_404 = cast(Any, None)
37
+ return response_404
38
+
39
+ if response.status_code == 422:
40
+ response_422 = HTTPValidationError.from_dict(response.json())
41
+
42
+ return response_422
43
+
44
+ if client.raise_on_unexpected_status:
45
+ raise errors.UnexpectedStatus(response.status_code, response.content)
46
+ else:
47
+ return None
48
+
49
+
50
+ def _build_response(
51
+ *, client: AuthenticatedClient | Client, response: httpx.Response
52
+ ) -> Response[Any | HTTPValidationError | SharedNoteModel]:
53
+ return Response(
54
+ status_code=HTTPStatus(response.status_code),
55
+ content=response.content,
56
+ headers=response.headers,
57
+ parsed=_parse_response(client=client, response=response),
58
+ )
59
+
60
+
61
+ def sync_detailed(
62
+ token: str,
63
+ *,
64
+ client: AuthenticatedClient | Client,
65
+ ) -> Response[Any | HTTPValidationError | SharedNoteModel]:
66
+ """Get Shared Note
67
+
68
+ The note a share link points to, as it is now
69
+
70
+ Args:
71
+ token (str):
72
+
73
+ Raises:
74
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
75
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
76
+
77
+ Returns:
78
+ Response[Any | HTTPValidationError | SharedNoteModel]
79
+ """
80
+
81
+ kwargs = _get_kwargs(
82
+ token=token,
83
+ )
84
+
85
+ response = client.get_httpx_client().request(
86
+ **kwargs,
87
+ )
88
+
89
+ return _build_response(client=client, response=response)
90
+
91
+
92
+ def sync(
93
+ token: str,
94
+ *,
95
+ client: AuthenticatedClient | Client,
96
+ ) -> Any | HTTPValidationError | SharedNoteModel | None:
97
+ """Get Shared Note
98
+
99
+ The note a share link points to, as it is now
100
+
101
+ Args:
102
+ token (str):
103
+
104
+ Raises:
105
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
106
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
107
+
108
+ Returns:
109
+ Any | HTTPValidationError | SharedNoteModel
110
+ """
111
+
112
+ return sync_detailed(
113
+ token=token,
114
+ client=client,
115
+ ).parsed
116
+
117
+
118
+ async def asyncio_detailed(
119
+ token: str,
120
+ *,
121
+ client: AuthenticatedClient | Client,
122
+ ) -> Response[Any | HTTPValidationError | SharedNoteModel]:
123
+ """Get Shared Note
124
+
125
+ The note a share link points to, as it is now
126
+
127
+ Args:
128
+ token (str):
129
+
130
+ Raises:
131
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
132
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
133
+
134
+ Returns:
135
+ Response[Any | HTTPValidationError | SharedNoteModel]
136
+ """
137
+
138
+ kwargs = _get_kwargs(
139
+ token=token,
140
+ )
141
+
142
+ response = await client.get_async_httpx_client().request(**kwargs)
143
+
144
+ return _build_response(client=client, response=response)
145
+
146
+
147
+ async def asyncio(
148
+ token: str,
149
+ *,
150
+ client: AuthenticatedClient | Client,
151
+ ) -> Any | HTTPValidationError | SharedNoteModel | None:
152
+ """Get Shared Note
153
+
154
+ The note a share link points to, as it is now
155
+
156
+ Args:
157
+ token (str):
158
+
159
+ Raises:
160
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
161
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
162
+
163
+ Returns:
164
+ Any | HTTPValidationError | SharedNoteModel
165
+ """
166
+
167
+ return (
168
+ await asyncio_detailed(
169
+ token=token,
170
+ client=client,
171
+ )
172
+ ).parsed
@@ -0,0 +1,176 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, cast
3
+ from urllib.parse import quote
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...models.http_validation_error import HTTPValidationError
10
+ from ...models.note_model import NoteModel
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ token: str,
16
+ ) -> dict[str, Any]:
17
+ _kwargs: dict[str, Any] = {
18
+ "method": "post",
19
+ "url": "/api/shared/{token}/join".format(
20
+ token=quote(str(token), safe=""),
21
+ ),
22
+ }
23
+
24
+ return _kwargs
25
+
26
+
27
+ def _parse_response(
28
+ *, client: AuthenticatedClient | Client, response: httpx.Response
29
+ ) -> Any | HTTPValidationError | NoteModel | None:
30
+ if response.status_code == 200:
31
+ response_200 = NoteModel.from_dict(response.json())
32
+
33
+ return response_200
34
+
35
+ if response.status_code == 404:
36
+ response_404 = cast(Any, None)
37
+ return response_404
38
+
39
+ if response.status_code == 422:
40
+ response_422 = HTTPValidationError.from_dict(response.json())
41
+
42
+ return response_422
43
+
44
+ if client.raise_on_unexpected_status:
45
+ raise errors.UnexpectedStatus(response.status_code, response.content)
46
+ else:
47
+ return None
48
+
49
+
50
+ def _build_response(
51
+ *, client: AuthenticatedClient | Client, response: httpx.Response
52
+ ) -> Response[Any | HTTPValidationError | NoteModel]:
53
+ return Response(
54
+ status_code=HTTPStatus(response.status_code),
55
+ content=response.content,
56
+ headers=response.headers,
57
+ parsed=_parse_response(client=client, response=response),
58
+ )
59
+
60
+
61
+ def sync_detailed(
62
+ token: str,
63
+ *,
64
+ client: AuthenticatedClient,
65
+ ) -> Response[Any | HTTPValidationError | NoteModel]:
66
+ """Join Shared Note
67
+
68
+ Adds the note of a write link to the user's notes, to edit like their
69
+ own. Joining again, or a note of the user's own, changes nothing.
70
+
71
+ Args:
72
+ token (str):
73
+
74
+ Raises:
75
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
76
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
77
+
78
+ Returns:
79
+ Response[Any | HTTPValidationError | NoteModel]
80
+ """
81
+
82
+ kwargs = _get_kwargs(
83
+ token=token,
84
+ )
85
+
86
+ response = client.get_httpx_client().request(
87
+ **kwargs,
88
+ )
89
+
90
+ return _build_response(client=client, response=response)
91
+
92
+
93
+ def sync(
94
+ token: str,
95
+ *,
96
+ client: AuthenticatedClient,
97
+ ) -> Any | HTTPValidationError | NoteModel | None:
98
+ """Join Shared Note
99
+
100
+ Adds the note of a write link to the user's notes, to edit like their
101
+ own. Joining again, or a note of the user's own, changes nothing.
102
+
103
+ Args:
104
+ token (str):
105
+
106
+ Raises:
107
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
108
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
109
+
110
+ Returns:
111
+ Any | HTTPValidationError | NoteModel
112
+ """
113
+
114
+ return sync_detailed(
115
+ token=token,
116
+ client=client,
117
+ ).parsed
118
+
119
+
120
+ async def asyncio_detailed(
121
+ token: str,
122
+ *,
123
+ client: AuthenticatedClient,
124
+ ) -> Response[Any | HTTPValidationError | NoteModel]:
125
+ """Join Shared Note
126
+
127
+ Adds the note of a write link to the user's notes, to edit like their
128
+ own. Joining again, or a note of the user's own, changes nothing.
129
+
130
+ Args:
131
+ token (str):
132
+
133
+ Raises:
134
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
135
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
136
+
137
+ Returns:
138
+ Response[Any | HTTPValidationError | NoteModel]
139
+ """
140
+
141
+ kwargs = _get_kwargs(
142
+ token=token,
143
+ )
144
+
145
+ response = await client.get_async_httpx_client().request(**kwargs)
146
+
147
+ return _build_response(client=client, response=response)
148
+
149
+
150
+ async def asyncio(
151
+ token: str,
152
+ *,
153
+ client: AuthenticatedClient,
154
+ ) -> Any | HTTPValidationError | NoteModel | None:
155
+ """Join Shared Note
156
+
157
+ Adds the note of a write link to the user's notes, to edit like their
158
+ own. Joining again, or a note of the user's own, changes nothing.
159
+
160
+ Args:
161
+ token (str):
162
+
163
+ Raises:
164
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
165
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
166
+
167
+ Returns:
168
+ Any | HTTPValidationError | NoteModel
169
+ """
170
+
171
+ return (
172
+ await asyncio_detailed(
173
+ token=token,
174
+ client=client,
175
+ )
176
+ ).parsed
@@ -0,0 +1,167 @@
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 ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ note_id: Literal["default"] | UUID,
16
+ ) -> dict[str, Any]:
17
+ _kwargs: dict[str, Any] = {
18
+ "method": "delete",
19
+ "url": "/api/note/{note_id}/share".format(
20
+ note_id=quote(str(note_id), safe=""),
21
+ ),
22
+ }
23
+
24
+ return _kwargs
25
+
26
+
27
+ def _parse_response(
28
+ *, client: AuthenticatedClient | Client, response: httpx.Response
29
+ ) -> Any | HTTPValidationError | None:
30
+ if response.status_code == 204:
31
+ response_204 = cast(Any, None)
32
+ return response_204
33
+
34
+ if response.status_code == 422:
35
+ response_422 = HTTPValidationError.from_dict(response.json())
36
+
37
+ return response_422
38
+
39
+ if client.raise_on_unexpected_status:
40
+ raise errors.UnexpectedStatus(response.status_code, response.content)
41
+ else:
42
+ return None
43
+
44
+
45
+ def _build_response(
46
+ *, client: AuthenticatedClient | Client, response: httpx.Response
47
+ ) -> Response[Any | HTTPValidationError]:
48
+ return Response(
49
+ status_code=HTTPStatus(response.status_code),
50
+ content=response.content,
51
+ headers=response.headers,
52
+ parsed=_parse_response(client=client, response=response),
53
+ )
54
+
55
+
56
+ def sync_detailed(
57
+ note_id: Literal["default"] | UUID,
58
+ *,
59
+ client: AuthenticatedClient,
60
+ ) -> Response[Any | HTTPValidationError]:
61
+ """Make Note Private
62
+
63
+ Revokes every link to the note and removes every member
64
+
65
+ Args:
66
+ note_id (Literal['default'] | 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[Any | HTTPValidationError]
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: Literal["default"] | UUID,
89
+ *,
90
+ client: AuthenticatedClient,
91
+ ) -> Any | HTTPValidationError | None:
92
+ """Make Note Private
93
+
94
+ Revokes every link to the note and removes every member
95
+
96
+ Args:
97
+ note_id (Literal['default'] | UUID):
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
+ Any | HTTPValidationError
105
+ """
106
+
107
+ return sync_detailed(
108
+ note_id=note_id,
109
+ client=client,
110
+ ).parsed
111
+
112
+
113
+ async def asyncio_detailed(
114
+ note_id: Literal["default"] | UUID,
115
+ *,
116
+ client: AuthenticatedClient,
117
+ ) -> Response[Any | HTTPValidationError]:
118
+ """Make Note Private
119
+
120
+ Revokes every link to the note and removes every member
121
+
122
+ Args:
123
+ note_id (Literal['default'] | UUID):
124
+
125
+ Raises:
126
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
127
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
128
+
129
+ Returns:
130
+ Response[Any | HTTPValidationError]
131
+ """
132
+
133
+ kwargs = _get_kwargs(
134
+ note_id=note_id,
135
+ )
136
+
137
+ response = await client.get_async_httpx_client().request(**kwargs)
138
+
139
+ return _build_response(client=client, response=response)
140
+
141
+
142
+ async def asyncio(
143
+ note_id: Literal["default"] | UUID,
144
+ *,
145
+ client: AuthenticatedClient,
146
+ ) -> Any | HTTPValidationError | None:
147
+ """Make Note Private
148
+
149
+ Revokes every link to the note and removes every member
150
+
151
+ Args:
152
+ note_id (Literal['default'] | UUID):
153
+
154
+ Raises:
155
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
156
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
157
+
158
+ Returns:
159
+ Any | HTTPValidationError
160
+ """
161
+
162
+ return (
163
+ await asyncio_detailed(
164
+ note_id=note_id,
165
+ client=client,
166
+ )
167
+ ).parsed