minikai 0.1.2__py3-none-any.whl → 0.1.4__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.
- minikai/__init__.py +1 -1
- minikai/api/__init__.py +1 -1
- minikai/api/groups/__init__.py +1 -1
- minikai/api/groups/add_minis_to_group.py +53 -33
- minikai/api/groups/add_users_to_group.py +53 -33
- minikai/api/groups/create_group.py +45 -27
- minikai/api/groups/delete_group.py +29 -9
- minikai/api/groups/get_group.py +47 -28
- minikai/api/groups/get_group_minis.py +52 -33
- minikai/api/groups/get_group_users.py +52 -33
- minikai/api/groups/get_groups.py +56 -34
- minikai/api/groups/remove_minis_from_group.py +53 -33
- minikai/api/groups/remove_users_from_group.py +53 -33
- minikai/api/groups/update_group.py +51 -33
- minikai/api/minis/__init__.py +1 -1
- minikai/api/minis/create_mini.py +45 -27
- minikai/api/minis/delete_mini.py +29 -9
- minikai/api/minis/get_external_mini.py +52 -33
- minikai/api/minis/get_minis.py +56 -34
- minikai/api/minis/patch_mini.py +51 -33
- minikai/api/minis/update_mini.py +51 -33
- minikai/api/records/__init__.py +1 -1
- minikai/api/records/add_attachments.py +59 -38
- minikai/api/records/add_relations.py +65 -43
- minikai/api/records/create_record.py +48 -28
- minikai/api/records/delete_record.py +29 -9
- minikai/api/records/download_attachment.py +119 -0
- minikai/api/records/get_records_by_external.py +68 -45
- minikai/api/records/remove_attachments.py +33 -11
- minikai/api/records/remove_relations.py +33 -11
- minikai/api/records/update_attachments.py +59 -38
- minikai/api/records/update_record.py +53 -33
- minikai/api/records/update_relations.py +65 -43
- minikai/api/users/__init__.py +1 -1
- minikai/api/users/delete_api_users_minis.py +31 -11
- minikai/api/users/get_api_users_minis.py +52 -33
- minikai/api/users/get_users.py +56 -34
- minikai/api/users/post_api_users_minis.py +52 -33
- minikai/client.py +6 -3
- minikai/errors.py +1 -3
- minikai/models/__init__.py +5 -5
- minikai/models/add_attachments_body.py +45 -13
- minikai/models/create_group_command.py +35 -10
- minikai/models/create_mini_command.py +34 -10
- minikai/models/create_record_command.py +76 -81
- minikai/models/create_record_command_tags.py +22 -3
- minikai/models/cursor_paginated_list_of_record_dto.py +122 -0
- minikai/models/document_file_dto.py +37 -13
- minikai/models/document_file_metadata_dto.py +27 -7
- minikai/models/form_field.py +38 -12
- minikai/models/form_field_dto.py +48 -16
- minikai/models/form_field_type.py +2 -8
- minikai/models/group_dto.py +50 -19
- minikai/models/http_validation_problem_details.py +41 -16
- minikai/models/http_validation_problem_details_errors.py +26 -3
- minikai/models/mini_dto.py +62 -27
- minikai/models/mini_template_dto.py +50 -18
- minikai/models/paginated_list_of_record_dto.py +39 -16
- minikai/models/patch_mini_command.py +30 -8
- minikai/models/problem_details.py +34 -11
- minikai/models/record.py +153 -94
- minikai/models/record_attachment.py +56 -27
- minikai/models/record_attachment_dto.py +56 -27
- minikai/models/record_attachment_dto_metadata_type_0.py +22 -3
- minikai/models/record_attachment_metadata_type_0.py +22 -3
- minikai/models/record_authorization.py +41 -9
- minikai/models/record_authorization_dto.py +41 -9
- minikai/models/record_dto.py +104 -96
- minikai/models/record_dto_tags.py +22 -3
- minikai/models/record_relation.py +35 -11
- minikai/models/record_relation_dto.py +35 -11
- minikai/models/record_tag.py +40 -13
- minikai/models/record_tag_dto.py +68 -0
- minikai/models/slim_mini_dto.py +51 -22
- minikai/models/tool_dto.py +29 -10
- minikai/models/update_attachments_body.py +45 -13
- minikai/models/update_group_command.py +37 -11
- minikai/models/update_mini_command.py +35 -11
- minikai/models/update_mini_template_workspaces_command.py +30 -7
- minikai/models/update_record_command.py +76 -82
- minikai/models/update_record_command_tags.py +22 -3
- minikai/models/user_dto.py +50 -17
- minikai/models/user_to_mini_dto.py +30 -9
- minikai/models/workspace_dto.py +30 -9
- minikai/types.py +5 -6
- {minikai-0.1.2.dist-info → minikai-0.1.4.dist-info}/METADATA +1 -1
- minikai-0.1.4.dist-info/RECORD +89 -0
- minikai/models/json_node.py +0 -119
- minikai/models/json_node_options.py +0 -42
- minikai-0.1.2.dist-info/RECORD +0 -88
- {minikai-0.1.2.dist-info → minikai-0.1.4.dist-info}/WHEEL +0 -0
|
@@ -1,37 +1,51 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import
|
|
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
|
+
|
|
8
13
|
if TYPE_CHECKING:
|
|
9
|
-
|
|
14
|
+
from ..models.record_dto import RecordDto
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
10
18
|
|
|
11
19
|
|
|
12
20
|
T = TypeVar("T", bound="PaginatedListOfRecordDto")
|
|
13
21
|
|
|
14
22
|
|
|
23
|
+
|
|
15
24
|
@_attrs_define
|
|
16
25
|
class PaginatedListOfRecordDto:
|
|
17
|
-
"""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
items: Union[Unset, list[
|
|
26
|
+
"""
|
|
27
|
+
Attributes:
|
|
28
|
+
items (Union[Unset, list['RecordDto']]):
|
|
29
|
+
page_number (Union[Unset, int]):
|
|
30
|
+
total_pages (Union[Unset, int]):
|
|
31
|
+
total_count (Union[Unset, int]):
|
|
32
|
+
has_previous_page (Union[Unset, bool]):
|
|
33
|
+
has_next_page (Union[Unset, bool]):
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
items: Union[Unset, list['RecordDto']] = UNSET
|
|
28
37
|
page_number: Union[Unset, int] = UNSET
|
|
29
38
|
total_pages: Union[Unset, int] = UNSET
|
|
30
39
|
total_count: Union[Unset, int] = UNSET
|
|
31
40
|
has_previous_page: Union[Unset, bool] = UNSET
|
|
32
41
|
has_next_page: Union[Unset, bool] = UNSET
|
|
33
42
|
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
34
47
|
def to_dict(self) -> dict[str, Any]:
|
|
48
|
+
from ..models.record_dto import RecordDto
|
|
35
49
|
items: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
36
50
|
if not isinstance(self.items, Unset):
|
|
37
51
|
items = []
|
|
@@ -39,6 +53,8 @@ class PaginatedListOfRecordDto:
|
|
|
39
53
|
items_item = items_item_data.to_dict()
|
|
40
54
|
items.append(items_item)
|
|
41
55
|
|
|
56
|
+
|
|
57
|
+
|
|
42
58
|
page_number = self.page_number
|
|
43
59
|
|
|
44
60
|
total_pages = self.total_pages
|
|
@@ -49,9 +65,11 @@ class PaginatedListOfRecordDto:
|
|
|
49
65
|
|
|
50
66
|
has_next_page = self.has_next_page
|
|
51
67
|
|
|
68
|
+
|
|
52
69
|
field_dict: dict[str, Any] = {}
|
|
53
70
|
|
|
54
|
-
field_dict.update({
|
|
71
|
+
field_dict.update({
|
|
72
|
+
})
|
|
55
73
|
if items is not UNSET:
|
|
56
74
|
field_dict["items"] = items
|
|
57
75
|
if page_number is not UNSET:
|
|
@@ -67,18 +85,22 @@ class PaginatedListOfRecordDto:
|
|
|
67
85
|
|
|
68
86
|
return field_dict
|
|
69
87
|
|
|
88
|
+
|
|
89
|
+
|
|
70
90
|
@classmethod
|
|
71
91
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
72
92
|
from ..models.record_dto import RecordDto
|
|
73
|
-
|
|
74
93
|
d = dict(src_dict)
|
|
75
94
|
items = []
|
|
76
95
|
_items = d.pop("items", UNSET)
|
|
77
|
-
for items_item_data in _items or []:
|
|
96
|
+
for items_item_data in (_items or []):
|
|
78
97
|
items_item = RecordDto.from_dict(items_item_data)
|
|
79
98
|
|
|
99
|
+
|
|
100
|
+
|
|
80
101
|
items.append(items_item)
|
|
81
102
|
|
|
103
|
+
|
|
82
104
|
page_number = d.pop("pageNumber", UNSET)
|
|
83
105
|
|
|
84
106
|
total_pages = d.pop("totalPages", UNSET)
|
|
@@ -99,3 +121,4 @@ class PaginatedListOfRecordDto:
|
|
|
99
121
|
)
|
|
100
122
|
|
|
101
123
|
return paginated_list_of_record_dto
|
|
124
|
+
|
|
@@ -1,26 +1,41 @@
|
|
|
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
|
+
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="PatchMiniCommand")
|
|
9
19
|
|
|
10
20
|
|
|
21
|
+
|
|
11
22
|
@_attrs_define
|
|
12
23
|
class PatchMiniCommand:
|
|
13
|
-
"""
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
24
|
+
"""
|
|
25
|
+
Attributes:
|
|
26
|
+
id (Union[Unset, int]):
|
|
27
|
+
name (Union[None, Unset, str]):
|
|
28
|
+
description (Union[None, Unset, str]):
|
|
29
|
+
"""
|
|
19
30
|
|
|
20
31
|
id: Union[Unset, int] = UNSET
|
|
21
32
|
name: Union[None, Unset, str] = UNSET
|
|
22
33
|
description: Union[None, Unset, str] = UNSET
|
|
23
34
|
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
24
39
|
def to_dict(self) -> dict[str, Any]:
|
|
25
40
|
id = self.id
|
|
26
41
|
|
|
@@ -36,9 +51,11 @@ class PatchMiniCommand:
|
|
|
36
51
|
else:
|
|
37
52
|
description = self.description
|
|
38
53
|
|
|
54
|
+
|
|
39
55
|
field_dict: dict[str, Any] = {}
|
|
40
56
|
|
|
41
|
-
field_dict.update({
|
|
57
|
+
field_dict.update({
|
|
58
|
+
})
|
|
42
59
|
if id is not UNSET:
|
|
43
60
|
field_dict["id"] = id
|
|
44
61
|
if name is not UNSET:
|
|
@@ -48,6 +65,8 @@ class PatchMiniCommand:
|
|
|
48
65
|
|
|
49
66
|
return field_dict
|
|
50
67
|
|
|
68
|
+
|
|
69
|
+
|
|
51
70
|
@classmethod
|
|
52
71
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
53
72
|
d = dict(src_dict)
|
|
@@ -62,6 +81,7 @@ class PatchMiniCommand:
|
|
|
62
81
|
|
|
63
82
|
name = _parse_name(d.pop("name", UNSET))
|
|
64
83
|
|
|
84
|
+
|
|
65
85
|
def _parse_description(data: object) -> Union[None, Unset, str]:
|
|
66
86
|
if data is None:
|
|
67
87
|
return data
|
|
@@ -71,6 +91,7 @@ class PatchMiniCommand:
|
|
|
71
91
|
|
|
72
92
|
description = _parse_description(d.pop("description", UNSET))
|
|
73
93
|
|
|
94
|
+
|
|
74
95
|
patch_mini_command = cls(
|
|
75
96
|
id=id,
|
|
76
97
|
name=name,
|
|
@@ -78,3 +99,4 @@ class PatchMiniCommand:
|
|
|
78
99
|
)
|
|
79
100
|
|
|
80
101
|
return patch_mini_command
|
|
102
|
+
|
|
@@ -1,24 +1,34 @@
|
|
|
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
7
|
from ..types import UNSET, Unset
|
|
8
8
|
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
from typing import cast, Union
|
|
11
|
+
from typing import Union
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
9
18
|
T = TypeVar("T", bound="ProblemDetails")
|
|
10
19
|
|
|
11
20
|
|
|
21
|
+
|
|
12
22
|
@_attrs_define
|
|
13
23
|
class ProblemDetails:
|
|
14
|
-
"""
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
"""
|
|
25
|
+
Attributes:
|
|
26
|
+
type_ (Union[None, Unset, str]):
|
|
27
|
+
title (Union[None, Unset, str]):
|
|
28
|
+
status (Union[None, Unset, int]):
|
|
29
|
+
detail (Union[None, Unset, str]):
|
|
30
|
+
instance (Union[None, Unset, str]):
|
|
31
|
+
"""
|
|
22
32
|
|
|
23
33
|
type_: Union[None, Unset, str] = UNSET
|
|
24
34
|
title: Union[None, Unset, str] = UNSET
|
|
@@ -27,6 +37,10 @@ class ProblemDetails:
|
|
|
27
37
|
instance: Union[None, Unset, str] = UNSET
|
|
28
38
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
29
39
|
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
30
44
|
def to_dict(self) -> dict[str, Any]:
|
|
31
45
|
type_: Union[None, Unset, str]
|
|
32
46
|
if isinstance(self.type_, Unset):
|
|
@@ -58,9 +72,11 @@ class ProblemDetails:
|
|
|
58
72
|
else:
|
|
59
73
|
instance = self.instance
|
|
60
74
|
|
|
75
|
+
|
|
61
76
|
field_dict: dict[str, Any] = {}
|
|
62
77
|
field_dict.update(self.additional_properties)
|
|
63
|
-
field_dict.update({
|
|
78
|
+
field_dict.update({
|
|
79
|
+
})
|
|
64
80
|
if type_ is not UNSET:
|
|
65
81
|
field_dict["type"] = type_
|
|
66
82
|
if title is not UNSET:
|
|
@@ -74,10 +90,11 @@ class ProblemDetails:
|
|
|
74
90
|
|
|
75
91
|
return field_dict
|
|
76
92
|
|
|
93
|
+
|
|
94
|
+
|
|
77
95
|
@classmethod
|
|
78
96
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
79
97
|
d = dict(src_dict)
|
|
80
|
-
|
|
81
98
|
def _parse_type_(data: object) -> Union[None, Unset, str]:
|
|
82
99
|
if data is None:
|
|
83
100
|
return data
|
|
@@ -87,6 +104,7 @@ class ProblemDetails:
|
|
|
87
104
|
|
|
88
105
|
type_ = _parse_type_(d.pop("type", UNSET))
|
|
89
106
|
|
|
107
|
+
|
|
90
108
|
def _parse_title(data: object) -> Union[None, Unset, str]:
|
|
91
109
|
if data is None:
|
|
92
110
|
return data
|
|
@@ -96,6 +114,7 @@ class ProblemDetails:
|
|
|
96
114
|
|
|
97
115
|
title = _parse_title(d.pop("title", UNSET))
|
|
98
116
|
|
|
117
|
+
|
|
99
118
|
def _parse_status(data: object) -> Union[None, Unset, int]:
|
|
100
119
|
if data is None:
|
|
101
120
|
return data
|
|
@@ -105,6 +124,7 @@ class ProblemDetails:
|
|
|
105
124
|
|
|
106
125
|
status = _parse_status(d.pop("status", UNSET))
|
|
107
126
|
|
|
127
|
+
|
|
108
128
|
def _parse_detail(data: object) -> Union[None, Unset, str]:
|
|
109
129
|
if data is None:
|
|
110
130
|
return data
|
|
@@ -114,6 +134,7 @@ class ProblemDetails:
|
|
|
114
134
|
|
|
115
135
|
detail = _parse_detail(d.pop("detail", UNSET))
|
|
116
136
|
|
|
137
|
+
|
|
117
138
|
def _parse_instance(data: object) -> Union[None, Unset, str]:
|
|
118
139
|
if data is None:
|
|
119
140
|
return data
|
|
@@ -123,6 +144,7 @@ class ProblemDetails:
|
|
|
123
144
|
|
|
124
145
|
instance = _parse_instance(d.pop("instance", UNSET))
|
|
125
146
|
|
|
147
|
+
|
|
126
148
|
problem_details = cls(
|
|
127
149
|
type_=type_,
|
|
128
150
|
title=title,
|
|
@@ -131,6 +153,7 @@ class ProblemDetails:
|
|
|
131
153
|
instance=instance,
|
|
132
154
|
)
|
|
133
155
|
|
|
156
|
+
|
|
134
157
|
problem_details.additional_properties = d
|
|
135
158
|
return problem_details
|
|
136
159
|
|