minikai 0.1.1__py3-none-any.whl → 0.1.3__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.

Potentially problematic release.


This version of minikai might be problematic. Click here for more details.

Files changed (92) hide show
  1. minikai/__init__.py +1 -1
  2. minikai/api/__init__.py +1 -1
  3. minikai/api/groups/__init__.py +1 -1
  4. minikai/api/groups/add_minis_to_group.py +53 -33
  5. minikai/api/groups/add_users_to_group.py +53 -33
  6. minikai/api/groups/create_group.py +45 -27
  7. minikai/api/groups/delete_group.py +29 -9
  8. minikai/api/groups/get_group.py +47 -28
  9. minikai/api/groups/get_group_minis.py +52 -33
  10. minikai/api/groups/get_group_users.py +52 -33
  11. minikai/api/groups/get_groups.py +56 -34
  12. minikai/api/groups/remove_minis_from_group.py +53 -33
  13. minikai/api/groups/remove_users_from_group.py +53 -33
  14. minikai/api/groups/update_group.py +51 -33
  15. minikai/api/minis/__init__.py +1 -1
  16. minikai/api/minis/create_mini.py +45 -27
  17. minikai/api/minis/delete_mini.py +29 -9
  18. minikai/api/minis/get_external_mini.py +52 -33
  19. minikai/api/minis/get_minis.py +56 -34
  20. minikai/api/minis/patch_mini.py +51 -33
  21. minikai/api/minis/update_mini.py +51 -33
  22. minikai/api/records/__init__.py +1 -1
  23. minikai/api/records/add_attachments.py +59 -38
  24. minikai/api/records/add_relations.py +65 -43
  25. minikai/api/records/create_record.py +48 -28
  26. minikai/api/records/delete_record.py +29 -9
  27. minikai/api/records/download_attachment.py +119 -0
  28. minikai/api/records/get_records_by_external.py +68 -45
  29. minikai/api/records/remove_attachments.py +33 -11
  30. minikai/api/records/remove_relations.py +33 -11
  31. minikai/api/records/update_attachments.py +59 -38
  32. minikai/api/records/update_record.py +53 -33
  33. minikai/api/records/update_relations.py +65 -43
  34. minikai/api/users/__init__.py +1 -1
  35. minikai/api/users/delete_api_users_minis.py +31 -11
  36. minikai/api/users/get_api_users_minis.py +52 -33
  37. minikai/api/users/get_users.py +56 -34
  38. minikai/api/users/post_api_users_minis.py +52 -33
  39. minikai/client.py +6 -3
  40. minikai/errors.py +1 -3
  41. minikai/models/__init__.py +7 -3
  42. minikai/models/add_attachments_body.py +45 -13
  43. minikai/models/create_group_command.py +35 -10
  44. minikai/models/create_mini_command.py +34 -10
  45. minikai/models/create_record_command.py +87 -41
  46. minikai/models/create_record_command_tags.py +22 -3
  47. minikai/models/cursor_paginated_list_of_record_dto.py +122 -0
  48. minikai/models/document_file_dto.py +37 -13
  49. minikai/models/document_file_metadata_dto.py +27 -7
  50. minikai/models/form_field.py +38 -12
  51. minikai/models/form_field_dto.py +48 -16
  52. minikai/models/form_field_type.py +2 -8
  53. minikai/models/group_dto.py +50 -19
  54. minikai/models/http_validation_problem_details.py +41 -16
  55. minikai/models/http_validation_problem_details_errors.py +26 -3
  56. minikai/models/json_node.py +49 -24
  57. minikai/models/json_node_options.py +26 -7
  58. minikai/models/mini_dto.py +62 -27
  59. minikai/models/mini_template_dto.py +50 -18
  60. minikai/models/paginated_list_of_record_dto.py +39 -16
  61. minikai/models/patch_mini_command.py +30 -8
  62. minikai/models/problem_details.py +34 -11
  63. minikai/models/record.py +143 -61
  64. minikai/models/record_attachment.py +56 -27
  65. minikai/models/record_attachment_dto.py +56 -27
  66. minikai/models/record_attachment_dto_metadata_type_0.py +22 -3
  67. minikai/models/record_attachment_metadata_type_0.py +22 -3
  68. minikai/models/record_authorization.py +41 -9
  69. minikai/models/record_authorization_dto.py +41 -9
  70. minikai/models/record_dto.py +113 -54
  71. minikai/models/record_dto_tags.py +22 -3
  72. minikai/models/record_relation.py +35 -11
  73. minikai/models/record_relation_dto.py +35 -11
  74. minikai/models/record_tag.py +159 -0
  75. minikai/models/record_tag_dto.py +68 -0
  76. minikai/models/slim_mini_dto.py +51 -22
  77. minikai/models/tool_dto.py +29 -10
  78. minikai/models/update_attachments_body.py +45 -13
  79. minikai/models/update_group_command.py +37 -11
  80. minikai/models/update_mini_command.py +35 -11
  81. minikai/models/update_mini_template_workspaces_command.py +30 -7
  82. minikai/models/update_record_command.py +87 -42
  83. minikai/models/update_record_command_tags.py +22 -3
  84. minikai/models/user_dto.py +50 -17
  85. minikai/models/user_to_mini_dto.py +30 -9
  86. minikai/models/workspace_dto.py +30 -9
  87. minikai/types.py +5 -6
  88. {minikai-0.1.1.dist-info → minikai-0.1.3.dist-info}/METADATA +1 -1
  89. minikai-0.1.3.dist-info/RECORD +91 -0
  90. minikai/models/record_tags.py +0 -44
  91. minikai-0.1.1.dist-info/RECORD +0 -88
  92. {minikai-0.1.1.dist-info → minikai-0.1.3.dist-info}/WHEEL +0 -0
@@ -1,28 +1,44 @@
1
1
  from collections.abc import Mapping
2
- from typing import Any, TypeVar, Union, cast
2
+ from typing import Any, TypeVar, Optional, BinaryIO, TextIO, TYPE_CHECKING, Generator
3
3
 
4
4
  from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
5
6
 
6
7
  from ..types import UNSET, Unset
7
8
 
9
+ from ..types import UNSET, Unset
10
+ from typing import cast
11
+ from typing import cast, Union
12
+ from typing import Union
13
+
14
+
15
+
16
+
17
+
18
+
8
19
  T = TypeVar("T", bound="UpdateGroupCommand")
9
20
 
10
21
 
22
+
11
23
  @_attrs_define
12
24
  class UpdateGroupCommand:
13
- """
14
- Attributes:
15
- group_id (Union[Unset, str]):
16
- name (Union[None, Unset, str]):
17
- user_ids (Union[None, Unset, list[str]]):
18
- mini_ids (Union[None, Unset, list[int]]):
19
- """
25
+ """
26
+ Attributes:
27
+ group_id (Union[Unset, str]):
28
+ name (Union[None, Unset, str]):
29
+ user_ids (Union[None, Unset, list[str]]):
30
+ mini_ids (Union[None, Unset, list[int]]):
31
+ """
20
32
 
21
33
  group_id: Union[Unset, str] = UNSET
22
34
  name: Union[None, Unset, str] = UNSET
23
35
  user_ids: Union[None, Unset, list[str]] = UNSET
24
36
  mini_ids: Union[None, Unset, list[int]] = UNSET
25
37
 
38
+
39
+
40
+
41
+
26
42
  def to_dict(self) -> dict[str, Any]:
27
43
  group_id = self.group_id
28
44
 
@@ -38,6 +54,7 @@ class UpdateGroupCommand:
38
54
  elif isinstance(self.user_ids, list):
39
55
  user_ids = self.user_ids
40
56
 
57
+
41
58
  else:
42
59
  user_ids = self.user_ids
43
60
 
@@ -47,12 +64,15 @@ class UpdateGroupCommand:
47
64
  elif isinstance(self.mini_ids, list):
48
65
  mini_ids = self.mini_ids
49
66
 
67
+
50
68
  else:
51
69
  mini_ids = self.mini_ids
52
70
 
71
+
53
72
  field_dict: dict[str, Any] = {}
54
73
 
55
- field_dict.update({})
74
+ field_dict.update({
75
+ })
56
76
  if group_id is not UNSET:
57
77
  field_dict["groupId"] = group_id
58
78
  if name is not UNSET:
@@ -64,6 +84,8 @@ class UpdateGroupCommand:
64
84
 
65
85
  return field_dict
66
86
 
87
+
88
+
67
89
  @classmethod
68
90
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
69
91
  d = dict(src_dict)
@@ -78,6 +100,7 @@ class UpdateGroupCommand:
78
100
 
79
101
  name = _parse_name(d.pop("name", UNSET))
80
102
 
103
+
81
104
  def _parse_user_ids(data: object) -> Union[None, Unset, list[str]]:
82
105
  if data is None:
83
106
  return data
@@ -89,12 +112,13 @@ class UpdateGroupCommand:
89
112
  user_ids_type_0 = cast(list[str], data)
90
113
 
91
114
  return user_ids_type_0
92
- except: # noqa: E722
115
+ except: # noqa: E722
93
116
  pass
94
117
  return cast(Union[None, Unset, list[str]], data)
95
118
 
96
119
  user_ids = _parse_user_ids(d.pop("userIds", UNSET))
97
120
 
121
+
98
122
  def _parse_mini_ids(data: object) -> Union[None, Unset, list[int]]:
99
123
  if data is None:
100
124
  return data
@@ -106,12 +130,13 @@ class UpdateGroupCommand:
106
130
  mini_ids_type_0 = cast(list[int], data)
107
131
 
108
132
  return mini_ids_type_0
109
- except: # noqa: E722
133
+ except: # noqa: E722
110
134
  pass
111
135
  return cast(Union[None, Unset, list[int]], data)
112
136
 
113
137
  mini_ids = _parse_mini_ids(d.pop("miniIds", UNSET))
114
138
 
139
+
115
140
  update_group_command = cls(
116
141
  group_id=group_id,
117
142
  name=name,
@@ -120,3 +145,4 @@ class UpdateGroupCommand:
120
145
  )
121
146
 
122
147
  return update_group_command
148
+
@@ -1,24 +1,35 @@
1
1
  from collections.abc import Mapping
2
- from typing import Any, TypeVar, Union, cast
2
+ from typing import Any, TypeVar, Optional, BinaryIO, TextIO, TYPE_CHECKING, Generator
3
3
 
4
4
  from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
5
6
 
6
7
  from ..types import UNSET, Unset
7
8
 
9
+ from ..types import UNSET, Unset
10
+ from typing import cast, Union
11
+ from typing import Union
12
+
13
+
14
+
15
+
16
+
17
+
8
18
  T = TypeVar("T", bound="UpdateMiniCommand")
9
19
 
10
20
 
21
+
11
22
  @_attrs_define
12
23
  class UpdateMiniCommand:
13
- """
14
- Attributes:
15
- id (Union[Unset, int]):
16
- name (Union[Unset, str]):
17
- description (Union[None, Unset, str]):
18
- template_id (Union[None, Unset, str]):
19
- external_id (Union[None, Unset, str]):
20
- external_source (Union[None, Unset, str]):
21
- """
24
+ """
25
+ Attributes:
26
+ id (Union[Unset, int]):
27
+ name (Union[Unset, str]):
28
+ description (Union[None, Unset, str]):
29
+ template_id (Union[None, Unset, str]):
30
+ external_id (Union[None, Unset, str]):
31
+ external_source (Union[None, Unset, str]):
32
+ """
22
33
 
23
34
  id: Union[Unset, int] = UNSET
24
35
  name: Union[Unset, str] = UNSET
@@ -27,6 +38,10 @@ class UpdateMiniCommand:
27
38
  external_id: Union[None, Unset, str] = UNSET
28
39
  external_source: Union[None, Unset, str] = UNSET
29
40
 
41
+
42
+
43
+
44
+
30
45
  def to_dict(self) -> dict[str, Any]:
31
46
  id = self.id
32
47
 
@@ -56,9 +71,11 @@ class UpdateMiniCommand:
56
71
  else:
57
72
  external_source = self.external_source
58
73
 
74
+
59
75
  field_dict: dict[str, Any] = {}
60
76
 
61
- field_dict.update({})
77
+ field_dict.update({
78
+ })
62
79
  if id is not UNSET:
63
80
  field_dict["id"] = id
64
81
  if name is not UNSET:
@@ -74,6 +91,8 @@ class UpdateMiniCommand:
74
91
 
75
92
  return field_dict
76
93
 
94
+
95
+
77
96
  @classmethod
78
97
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
79
98
  d = dict(src_dict)
@@ -90,6 +109,7 @@ class UpdateMiniCommand:
90
109
 
91
110
  description = _parse_description(d.pop("description", UNSET))
92
111
 
112
+
93
113
  def _parse_template_id(data: object) -> Union[None, Unset, str]:
94
114
  if data is None:
95
115
  return data
@@ -99,6 +119,7 @@ class UpdateMiniCommand:
99
119
 
100
120
  template_id = _parse_template_id(d.pop("templateId", UNSET))
101
121
 
122
+
102
123
  def _parse_external_id(data: object) -> Union[None, Unset, str]:
103
124
  if data is None:
104
125
  return data
@@ -108,6 +129,7 @@ class UpdateMiniCommand:
108
129
 
109
130
  external_id = _parse_external_id(d.pop("externalId", UNSET))
110
131
 
132
+
111
133
  def _parse_external_source(data: object) -> Union[None, Unset, str]:
112
134
  if data is None:
113
135
  return data
@@ -117,6 +139,7 @@ class UpdateMiniCommand:
117
139
 
118
140
  external_source = _parse_external_source(d.pop("externalSource", UNSET))
119
141
 
142
+
120
143
  update_mini_command = cls(
121
144
  id=id,
122
145
  name=name,
@@ -127,3 +150,4 @@ class UpdateMiniCommand:
127
150
  )
128
151
 
129
152
  return update_mini_command
153
+
@@ -1,24 +1,39 @@
1
1
  from collections.abc import Mapping
2
- from typing import Any, TypeVar, Union, cast
2
+ from typing import Any, TypeVar, Optional, BinaryIO, TextIO, TYPE_CHECKING, Generator
3
3
 
4
4
  from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
5
6
 
6
7
  from ..types import UNSET, Unset
7
8
 
9
+ from ..types import UNSET, Unset
10
+ from typing import cast
11
+ from typing import Union
12
+
13
+
14
+
15
+
16
+
17
+
8
18
  T = TypeVar("T", bound="UpdateMiniTemplateWorkspacesCommand")
9
19
 
10
20
 
21
+
11
22
  @_attrs_define
12
23
  class UpdateMiniTemplateWorkspacesCommand:
13
- """
14
- Attributes:
15
- mini_template_id (Union[Unset, str]):
16
- workspace_ids (Union[Unset, list[str]]):
17
- """
24
+ """
25
+ Attributes:
26
+ mini_template_id (Union[Unset, str]):
27
+ workspace_ids (Union[Unset, list[str]]):
28
+ """
18
29
 
19
30
  mini_template_id: Union[Unset, str] = UNSET
20
31
  workspace_ids: Union[Unset, list[str]] = UNSET
21
32
 
33
+
34
+
35
+
36
+
22
37
  def to_dict(self) -> dict[str, Any]:
23
38
  mini_template_id = self.mini_template_id
24
39
 
@@ -26,9 +41,13 @@ class UpdateMiniTemplateWorkspacesCommand:
26
41
  if not isinstance(self.workspace_ids, Unset):
27
42
  workspace_ids = self.workspace_ids
28
43
 
44
+
45
+
46
+
29
47
  field_dict: dict[str, Any] = {}
30
48
 
31
- field_dict.update({})
49
+ field_dict.update({
50
+ })
32
51
  if mini_template_id is not UNSET:
33
52
  field_dict["miniTemplateId"] = mini_template_id
34
53
  if workspace_ids is not UNSET:
@@ -36,6 +55,8 @@ class UpdateMiniTemplateWorkspacesCommand:
36
55
 
37
56
  return field_dict
38
57
 
58
+
59
+
39
60
  @classmethod
40
61
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
41
62
  d = dict(src_dict)
@@ -43,9 +64,11 @@ class UpdateMiniTemplateWorkspacesCommand:
43
64
 
44
65
  workspace_ids = cast(list[str], d.pop("workspaceIds", UNSET))
45
66
 
67
+
46
68
  update_mini_template_workspaces_command = cls(
47
69
  mini_template_id=mini_template_id,
48
70
  workspace_ids=workspace_ids,
49
71
  )
50
72
 
51
73
  return update_mini_template_workspaces_command
74
+
@@ -1,56 +1,72 @@
1
- import datetime
2
1
  from collections.abc import Mapping
3
- from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
2
+ from typing import Any, TypeVar, Optional, BinaryIO, TextIO, TYPE_CHECKING, Generator
4
3
 
5
4
  from attrs import define as _attrs_define
6
- from dateutil.parser import isoparse
5
+ from attrs import field as _attrs_field
7
6
 
8
7
  from ..types import UNSET, Unset
9
8
 
9
+ from ..types import UNSET, Unset
10
+ from dateutil.parser import isoparse
11
+ from typing import cast
12
+ from typing import cast, Union
13
+ from typing import Union
14
+ import datetime
15
+
10
16
  if TYPE_CHECKING:
11
- from ..models.json_node import JsonNode
12
- from ..models.record_authorization_dto import RecordAuthorizationDto
13
- from ..models.record_relation_dto import RecordRelationDto
14
- from ..models.update_record_command_tags import UpdateRecordCommandTags
17
+ from ..models.record_relation_dto import RecordRelationDto
18
+ from ..models.json_node import JsonNode
19
+ from ..models.update_record_command_tags import UpdateRecordCommandTags
20
+ from ..models.record_authorization_dto import RecordAuthorizationDto
21
+
22
+
23
+
15
24
 
16
25
 
17
26
  T = TypeVar("T", bound="UpdateRecordCommand")
18
27
 
19
28
 
29
+
20
30
  @_attrs_define
21
31
  class UpdateRecordCommand:
22
- """
23
- Attributes:
24
- id (Union[Unset, str]):
25
- title (Union[Unset, str]):
26
- description (Union[None, Unset, str]):
27
- event_date (Union[None, Unset, datetime.datetime]):
28
- schema (Union['JsonNode', None, Unset]):
29
- content (Union['JsonNode', None, Unset]):
30
- relations (Union[Unset, list['RecordRelationDto']]):
31
- external_uri (Union[None, Unset, str]):
32
- labels (Union[Unset, list[str]]):
33
- tags (Union[Unset, UpdateRecordCommandTags]):
34
- authorization (Union[Unset, RecordAuthorizationDto]):
35
- archived (Union[Unset, bool]):
36
- """
32
+ """
33
+ Attributes:
34
+ id (Union[Unset, str]):
35
+ title (Union[Unset, str]):
36
+ description (Union[None, Unset, str]):
37
+ event_date (Union[None, Unset, datetime.datetime]):
38
+ schema (Union['JsonNode', None, Unset]):
39
+ content (Union['JsonNode', None, Unset]):
40
+ relations (Union[Unset, list['RecordRelationDto']]):
41
+ external_uri (Union[None, Unset, str]):
42
+ labels (Union[Unset, list[str]]):
43
+ tags (Union[Unset, UpdateRecordCommandTags]):
44
+ authorization (Union[Unset, RecordAuthorizationDto]):
45
+ archived (Union[Unset, bool]):
46
+ """
37
47
 
38
48
  id: Union[Unset, str] = UNSET
39
49
  title: Union[Unset, str] = UNSET
40
50
  description: Union[None, Unset, str] = UNSET
41
51
  event_date: Union[None, Unset, datetime.datetime] = UNSET
42
- schema: Union["JsonNode", None, Unset] = UNSET
43
- content: Union["JsonNode", None, Unset] = UNSET
44
- relations: Union[Unset, list["RecordRelationDto"]] = UNSET
52
+ schema: Union['JsonNode', None, Unset] = UNSET
53
+ content: Union['JsonNode', None, Unset] = UNSET
54
+ relations: Union[Unset, list['RecordRelationDto']] = UNSET
45
55
  external_uri: Union[None, Unset, str] = UNSET
46
56
  labels: Union[Unset, list[str]] = UNSET
47
- tags: Union[Unset, "UpdateRecordCommandTags"] = UNSET
48
- authorization: Union[Unset, "RecordAuthorizationDto"] = UNSET
57
+ tags: Union[Unset, 'UpdateRecordCommandTags'] = UNSET
58
+ authorization: Union[Unset, 'RecordAuthorizationDto'] = UNSET
49
59
  archived: Union[Unset, bool] = UNSET
50
60
 
61
+
62
+
63
+
64
+
51
65
  def to_dict(self) -> dict[str, Any]:
66
+ from ..models.record_relation_dto import RecordRelationDto
52
67
  from ..models.json_node import JsonNode
53
-
68
+ from ..models.update_record_command_tags import UpdateRecordCommandTags
69
+ from ..models.record_authorization_dto import RecordAuthorizationDto
54
70
  id = self.id
55
71
 
56
72
  title = self.title
@@ -92,6 +108,8 @@ class UpdateRecordCommand:
92
108
  relations_item = relations_item_data.to_dict()
93
109
  relations.append(relations_item)
94
110
 
111
+
112
+
95
113
  external_uri: Union[None, Unset, str]
96
114
  if isinstance(self.external_uri, Unset):
97
115
  external_uri = UNSET
@@ -102,6 +120,8 @@ class UpdateRecordCommand:
102
120
  if not isinstance(self.labels, Unset):
103
121
  labels = self.labels
104
122
 
123
+
124
+
105
125
  tags: Union[Unset, dict[str, Any]] = UNSET
106
126
  if not isinstance(self.tags, Unset):
107
127
  tags = self.tags.to_dict()
@@ -112,9 +132,11 @@ class UpdateRecordCommand:
112
132
 
113
133
  archived = self.archived
114
134
 
135
+
115
136
  field_dict: dict[str, Any] = {}
116
137
 
117
- field_dict.update({})
138
+ field_dict.update({
139
+ })
118
140
  if id is not UNSET:
119
141
  field_dict["id"] = id
120
142
  if title is not UNSET:
@@ -142,13 +164,14 @@ class UpdateRecordCommand:
142
164
 
143
165
  return field_dict
144
166
 
167
+
168
+
145
169
  @classmethod
146
170
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
147
- from ..models.json_node import JsonNode
148
- from ..models.record_authorization_dto import RecordAuthorizationDto
149
171
  from ..models.record_relation_dto import RecordRelationDto
172
+ from ..models.json_node import JsonNode
150
173
  from ..models.update_record_command_tags import UpdateRecordCommandTags
151
-
174
+ from ..models.record_authorization_dto import RecordAuthorizationDto
152
175
  d = dict(src_dict)
153
176
  id = d.pop("id", UNSET)
154
177
 
@@ -163,6 +186,7 @@ class UpdateRecordCommand:
163
186
 
164
187
  description = _parse_description(d.pop("description", UNSET))
165
188
 
189
+
166
190
  def _parse_event_date(data: object) -> Union[None, Unset, datetime.datetime]:
167
191
  if data is None:
168
192
  return data
@@ -173,14 +197,17 @@ class UpdateRecordCommand:
173
197
  raise TypeError()
174
198
  event_date_type_0 = isoparse(data)
175
199
 
200
+
201
+
176
202
  return event_date_type_0
177
- except: # noqa: E722
203
+ except: # noqa: E722
178
204
  pass
179
205
  return cast(Union[None, Unset, datetime.datetime], data)
180
206
 
181
207
  event_date = _parse_event_date(d.pop("eventDate", UNSET))
182
208
 
183
- def _parse_schema(data: object) -> Union["JsonNode", None, Unset]:
209
+
210
+ def _parse_schema(data: object) -> Union['JsonNode', None, Unset]:
184
211
  if data is None:
185
212
  return data
186
213
  if isinstance(data, Unset):
@@ -190,14 +217,17 @@ class UpdateRecordCommand:
190
217
  raise TypeError()
191
218
  schema_type_0 = JsonNode.from_dict(data)
192
219
 
220
+
221
+
193
222
  return schema_type_0
194
- except: # noqa: E722
223
+ except: # noqa: E722
195
224
  pass
196
- return cast(Union["JsonNode", None, Unset], data)
225
+ return cast(Union['JsonNode', None, Unset], data)
197
226
 
198
227
  schema = _parse_schema(d.pop("schema", UNSET))
199
228
 
200
- def _parse_content(data: object) -> Union["JsonNode", None, Unset]:
229
+
230
+ def _parse_content(data: object) -> Union['JsonNode', None, Unset]:
201
231
  if data is None:
202
232
  return data
203
233
  if isinstance(data, Unset):
@@ -207,20 +237,26 @@ class UpdateRecordCommand:
207
237
  raise TypeError()
208
238
  content_type_0 = JsonNode.from_dict(data)
209
239
 
240
+
241
+
210
242
  return content_type_0
211
- except: # noqa: E722
243
+ except: # noqa: E722
212
244
  pass
213
- return cast(Union["JsonNode", None, Unset], data)
245
+ return cast(Union['JsonNode', None, Unset], data)
214
246
 
215
247
  content = _parse_content(d.pop("content", UNSET))
216
248
 
249
+
217
250
  relations = []
218
251
  _relations = d.pop("relations", UNSET)
219
- for relations_item_data in _relations or []:
252
+ for relations_item_data in (_relations or []):
220
253
  relations_item = RecordRelationDto.from_dict(relations_item_data)
221
254
 
255
+
256
+
222
257
  relations.append(relations_item)
223
258
 
259
+
224
260
  def _parse_external_uri(data: object) -> Union[None, Unset, str]:
225
261
  if data is None:
226
262
  return data
@@ -230,22 +266,30 @@ class UpdateRecordCommand:
230
266
 
231
267
  external_uri = _parse_external_uri(d.pop("externalUri", UNSET))
232
268
 
269
+
233
270
  labels = cast(list[str], d.pop("labels", UNSET))
234
271
 
272
+
235
273
  _tags = d.pop("tags", UNSET)
236
274
  tags: Union[Unset, UpdateRecordCommandTags]
237
- if isinstance(_tags, Unset):
275
+ if isinstance(_tags, Unset):
238
276
  tags = UNSET
239
277
  else:
240
278
  tags = UpdateRecordCommandTags.from_dict(_tags)
241
279
 
280
+
281
+
282
+
242
283
  _authorization = d.pop("authorization", UNSET)
243
284
  authorization: Union[Unset, RecordAuthorizationDto]
244
- if isinstance(_authorization, Unset):
285
+ if isinstance(_authorization, Unset):
245
286
  authorization = UNSET
246
287
  else:
247
288
  authorization = RecordAuthorizationDto.from_dict(_authorization)
248
289
 
290
+
291
+
292
+
249
293
  archived = d.pop("archived", UNSET)
250
294
 
251
295
  update_record_command = cls(
@@ -264,3 +308,4 @@ class UpdateRecordCommand:
264
308
  )
265
309
 
266
310
  return update_record_command
311
+
@@ -1,28 +1,47 @@
1
1
  from collections.abc import Mapping
2
- from typing import Any, TypeVar
2
+ from typing import Any, TypeVar, Optional, BinaryIO, TextIO, TYPE_CHECKING, Generator
3
3
 
4
4
  from attrs import define as _attrs_define
5
5
  from attrs import field as _attrs_field
6
6
 
7
+ from ..types import UNSET, Unset
8
+
9
+
10
+
11
+
12
+
13
+
14
+
7
15
  T = TypeVar("T", bound="UpdateRecordCommandTags")
8
16
 
9
17
 
18
+
10
19
  @_attrs_define
11
20
  class UpdateRecordCommandTags:
12
- """ """
21
+ """
22
+ """
13
23
 
14
24
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
15
25
 
26
+
27
+
28
+
29
+
16
30
  def to_dict(self) -> dict[str, Any]:
31
+
17
32
  field_dict: dict[str, Any] = {}
18
33
  field_dict.update(self.additional_properties)
19
34
 
20
35
  return field_dict
21
36
 
37
+
38
+
22
39
  @classmethod
23
40
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
24
41
  d = dict(src_dict)
25
- update_record_command_tags = cls()
42
+ update_record_command_tags = cls(
43
+ )
44
+
26
45
 
27
46
  update_record_command_tags.additional_properties = d
28
47
  return update_record_command_tags