@@ -140,108 +140,6 @@ class GeneratePasswordResponse(BaseModel):
140140 """
141141
142142
143- class GroupType (str , Enum ):
144- OWNERS = "owners"
145- """
146- The owners group, which gives the following permissions:
147- - Do everything the Admin group can do
148- - See every vault other than the personal vaults
149- - Change people's names
150- - See billing
151- - Change billing
152- - Make other people owners
153- - Delete a person
154- """
155- ADMINISTRATORS = "administrators"
156- """
157- The administrators group, which gives the following permissions:
158- - Perform recovery
159- - Create new vaults
160- - Invite new members
161- - See vault metadata, including the vault name and who has access.
162- - Make other people admins
163- """
164- RECOVERY = "recovery"
165- """
166- The recovery group. It contains recovery keysets, and is added to every vault to allow for recovery.
167-
168- No one is added to this.
169- """
170- EXTERNALACCOUNTMANAGERS = "externalAccountManagers"
171- """
172- The external account managers group or EAM is a mandatory group for managed accounts that has
173- same permissions as the owners.
174- """
175- TEAMMEMBERS = "teamMembers"
176- """
177- Members of a team that a user is on.
178- """
179- USERDEFINED = "userDefined"
180- """
181- A custom, user defined group.
182- """
183- UNSUPPORTED = "unsupported"
184- """
185- Support for new or renamed group types
186- """
187-
188-
189- class GroupState (str , Enum ):
190- ACTIVE = "active"
191- """
192- This group is active
193- """
194- DELETED = "deleted"
195- """
196- This group has been deleted
197- """
198- UNSUPPORTED = "unsupported"
199- """
200- This group is in an unknown state
201- """
202-
203-
204- class VaultAccessorType (str , Enum ):
205- USER = "user"
206- GROUP = "group"
207-
208-
209- class VaultAccess (BaseModel ):
210- """
211- Represents the vault access information.
212- """
213-
214- model_config = ConfigDict (populate_by_name = True )
215-
216- vault_uuid : str = Field (alias = "vaultUuid" )
217- """
218- The vault's UUID.
219- """
220- accessor_type : VaultAccessorType = Field (alias = "accessorType" )
221- """
222- The vault's accessor type.
223- """
224- accessor_uuid : str = Field (alias = "accessorUuid" )
225- """
226- The vault's accessor UUID.
227- """
228- permissions : int
229- """
230- The permissions granted to this vault
231- """
232-
233-
234- class Group (BaseModel ):
235- model_config = ConfigDict (populate_by_name = True )
236-
237- id : str
238- title : str
239- description : str
240- group_type : GroupType = Field (alias = "groupType" )
241- state : GroupState
242- vault_access : Optional [List [VaultAccess ]] = Field (alias = "vaultAccess" , default = None )
243-
244-
245143class GroupAccess (BaseModel ):
246144 """
247145 Represents a group's access to a 1Password vault.
@@ -258,12 +156,6 @@ class GroupAccess(BaseModel):
258156 """
259157
260158
261- class GroupGetParams (BaseModel ):
262- model_config = ConfigDict (populate_by_name = True )
263-
264- vault_permissions : Optional [bool ] = Field (alias = "vaultPermissions" , default = None )
265-
266-
267159class GroupVaultAccess (BaseModel ):
268160 """
269161 Represents a group's access to a 1Password vault.
@@ -1262,6 +1154,36 @@ class VaultType(str, Enum):
12621154 UNSUPPORTED = "unsupported"
12631155
12641156
1157+ class VaultAccessorType (str , Enum ):
1158+ USER = "user"
1159+ GROUP = "group"
1160+
1161+
1162+ class VaultAccess (BaseModel ):
1163+ """
1164+ Represents the vault access information.
1165+ """
1166+
1167+ model_config = ConfigDict (populate_by_name = True )
1168+
1169+ vault_uuid : str = Field (alias = "vaultUuid" )
1170+ """
1171+ The vault's UUID.
1172+ """
1173+ accessor_type : VaultAccessorType = Field (alias = "accessorType" )
1174+ """
1175+ The vault's accessor type.
1176+ """
1177+ accessor_uuid : str = Field (alias = "accessorUuid" )
1178+ """
1179+ The vault's accessor UUID.
1180+ """
1181+ permissions : int
1182+ """
1183+ The permissions granted to this vault
1184+ """
1185+
1186+
12651187class Vault (BaseModel ):
12661188 """
12671189 Represents regular vault information together with the vault's access information.
@@ -1528,19 +1450,3 @@ class WordListType(str, Enum):
15281450 """
15291451 Three (random) letter "words"
15301452 """
1531-
1532-
1533- ARCHIVE_ITEMS : int = 256
1534- CREATE_ITEMS : int = 128
1535- DELETE_ITEMS : int = 512
1536- EXPORT_ITEMS : int = 4194304
1537- IMPORT_ITEMS : int = 2097152
1538- MANAGE_VAULT : int = 2
1539- NO_ACCESS : int = 0
1540- PRINT_ITEMS : int = 8388608
1541- READ_ITEMS : int = 32
1542- RECOVER_VAULT : int = 1
1543- REVEAL_ITEM_PASSWORD : int = 16
1544- SEND_ITEMS : int = 1048576
1545- UPDATE_ITEMS : int = 64
1546- UPDATE_ITEM_HISTORY : int = 1024
0 commit comments