scope-client 1.4.927__py3-none-any.whl → 1.4.928__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.
- scope_client/api_bindings/api/users_v1_api.py +252 -0
- {scope_client-1.4.927.dist-info → scope_client-1.4.928.dist-info}/METADATA +1 -1
- {scope_client-1.4.927.dist-info → scope_client-1.4.928.dist-info}/RECORD +5 -5
- {scope_client-1.4.927.dist-info → scope_client-1.4.928.dist-info}/WHEEL +0 -0
- {scope_client-1.4.927.dist-info → scope_client-1.4.928.dist-info}/top_level.txt +0 -0
|
@@ -49,6 +49,258 @@ class UsersV1Api:
|
|
|
49
49
|
self.api_client = api_client
|
|
50
50
|
|
|
51
51
|
|
|
52
|
+
@validate_call
|
|
53
|
+
def accept_my_invites(
|
|
54
|
+
self,
|
|
55
|
+
_request_timeout: Union[
|
|
56
|
+
None,
|
|
57
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
58
|
+
Tuple[
|
|
59
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
60
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
61
|
+
]
|
|
62
|
+
] = None,
|
|
63
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
64
|
+
_content_type: Optional[StrictStr] = None,
|
|
65
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
66
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
67
|
+
) -> None:
|
|
68
|
+
"""Accept User Invitations
|
|
69
|
+
|
|
70
|
+
Accepts pending invitations for the user.
|
|
71
|
+
|
|
72
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
73
|
+
number provided, it will be total request
|
|
74
|
+
timeout. It can also be a pair (tuple) of
|
|
75
|
+
(connection, read) timeouts.
|
|
76
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
77
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
78
|
+
request; this effectively ignores the
|
|
79
|
+
authentication in the spec for a single request.
|
|
80
|
+
:type _request_auth: dict, optional
|
|
81
|
+
:param _content_type: force content-type for the request.
|
|
82
|
+
:type _content_type: str, Optional
|
|
83
|
+
:param _headers: set to override the headers for a single
|
|
84
|
+
request; this effectively ignores the headers
|
|
85
|
+
in the spec for a single request.
|
|
86
|
+
:type _headers: dict, optional
|
|
87
|
+
:param _host_index: set to override the host_index for a single
|
|
88
|
+
request; this effectively ignores the host_index
|
|
89
|
+
in the spec for a single request.
|
|
90
|
+
:type _host_index: int, optional
|
|
91
|
+
:return: Returns the result object.
|
|
92
|
+
""" # noqa: E501
|
|
93
|
+
|
|
94
|
+
_param = self._accept_my_invites_serialize(
|
|
95
|
+
_request_auth=_request_auth,
|
|
96
|
+
_content_type=_content_type,
|
|
97
|
+
_headers=_headers,
|
|
98
|
+
_host_index=_host_index
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
102
|
+
'204': None,
|
|
103
|
+
'500': "InternalServerError",
|
|
104
|
+
'400': "BadRequestError",
|
|
105
|
+
}
|
|
106
|
+
response_data = self.api_client.call_api(
|
|
107
|
+
*_param,
|
|
108
|
+
_request_timeout=_request_timeout
|
|
109
|
+
)
|
|
110
|
+
response_data.read()
|
|
111
|
+
return self.api_client.response_deserialize(
|
|
112
|
+
response_data=response_data,
|
|
113
|
+
response_types_map=_response_types_map,
|
|
114
|
+
).data
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
@validate_call
|
|
118
|
+
def accept_my_invites_with_http_info(
|
|
119
|
+
self,
|
|
120
|
+
_request_timeout: Union[
|
|
121
|
+
None,
|
|
122
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
123
|
+
Tuple[
|
|
124
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
125
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
126
|
+
]
|
|
127
|
+
] = None,
|
|
128
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
129
|
+
_content_type: Optional[StrictStr] = None,
|
|
130
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
131
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
132
|
+
) -> ApiResponse[None]:
|
|
133
|
+
"""Accept User Invitations
|
|
134
|
+
|
|
135
|
+
Accepts pending invitations for the user.
|
|
136
|
+
|
|
137
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
138
|
+
number provided, it will be total request
|
|
139
|
+
timeout. It can also be a pair (tuple) of
|
|
140
|
+
(connection, read) timeouts.
|
|
141
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
142
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
143
|
+
request; this effectively ignores the
|
|
144
|
+
authentication in the spec for a single request.
|
|
145
|
+
:type _request_auth: dict, optional
|
|
146
|
+
:param _content_type: force content-type for the request.
|
|
147
|
+
:type _content_type: str, Optional
|
|
148
|
+
:param _headers: set to override the headers for a single
|
|
149
|
+
request; this effectively ignores the headers
|
|
150
|
+
in the spec for a single request.
|
|
151
|
+
:type _headers: dict, optional
|
|
152
|
+
:param _host_index: set to override the host_index for a single
|
|
153
|
+
request; this effectively ignores the host_index
|
|
154
|
+
in the spec for a single request.
|
|
155
|
+
:type _host_index: int, optional
|
|
156
|
+
:return: Returns the result object.
|
|
157
|
+
""" # noqa: E501
|
|
158
|
+
|
|
159
|
+
_param = self._accept_my_invites_serialize(
|
|
160
|
+
_request_auth=_request_auth,
|
|
161
|
+
_content_type=_content_type,
|
|
162
|
+
_headers=_headers,
|
|
163
|
+
_host_index=_host_index
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
167
|
+
'204': None,
|
|
168
|
+
'500': "InternalServerError",
|
|
169
|
+
'400': "BadRequestError",
|
|
170
|
+
}
|
|
171
|
+
response_data = self.api_client.call_api(
|
|
172
|
+
*_param,
|
|
173
|
+
_request_timeout=_request_timeout
|
|
174
|
+
)
|
|
175
|
+
response_data.read()
|
|
176
|
+
return self.api_client.response_deserialize(
|
|
177
|
+
response_data=response_data,
|
|
178
|
+
response_types_map=_response_types_map,
|
|
179
|
+
)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
@validate_call
|
|
183
|
+
def accept_my_invites_without_preload_content(
|
|
184
|
+
self,
|
|
185
|
+
_request_timeout: Union[
|
|
186
|
+
None,
|
|
187
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
188
|
+
Tuple[
|
|
189
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
190
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
191
|
+
]
|
|
192
|
+
] = None,
|
|
193
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
194
|
+
_content_type: Optional[StrictStr] = None,
|
|
195
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
196
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
197
|
+
) -> RESTResponseType:
|
|
198
|
+
"""Accept User Invitations
|
|
199
|
+
|
|
200
|
+
Accepts pending invitations for the user.
|
|
201
|
+
|
|
202
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
203
|
+
number provided, it will be total request
|
|
204
|
+
timeout. It can also be a pair (tuple) of
|
|
205
|
+
(connection, read) timeouts.
|
|
206
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
207
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
208
|
+
request; this effectively ignores the
|
|
209
|
+
authentication in the spec for a single request.
|
|
210
|
+
:type _request_auth: dict, optional
|
|
211
|
+
:param _content_type: force content-type for the request.
|
|
212
|
+
:type _content_type: str, Optional
|
|
213
|
+
:param _headers: set to override the headers for a single
|
|
214
|
+
request; this effectively ignores the headers
|
|
215
|
+
in the spec for a single request.
|
|
216
|
+
:type _headers: dict, optional
|
|
217
|
+
:param _host_index: set to override the host_index for a single
|
|
218
|
+
request; this effectively ignores the host_index
|
|
219
|
+
in the spec for a single request.
|
|
220
|
+
:type _host_index: int, optional
|
|
221
|
+
:return: Returns the result object.
|
|
222
|
+
""" # noqa: E501
|
|
223
|
+
|
|
224
|
+
_param = self._accept_my_invites_serialize(
|
|
225
|
+
_request_auth=_request_auth,
|
|
226
|
+
_content_type=_content_type,
|
|
227
|
+
_headers=_headers,
|
|
228
|
+
_host_index=_host_index
|
|
229
|
+
)
|
|
230
|
+
|
|
231
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
232
|
+
'204': None,
|
|
233
|
+
'500': "InternalServerError",
|
|
234
|
+
'400': "BadRequestError",
|
|
235
|
+
}
|
|
236
|
+
response_data = self.api_client.call_api(
|
|
237
|
+
*_param,
|
|
238
|
+
_request_timeout=_request_timeout
|
|
239
|
+
)
|
|
240
|
+
return response_data.response
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
def _accept_my_invites_serialize(
|
|
244
|
+
self,
|
|
245
|
+
_request_auth,
|
|
246
|
+
_content_type,
|
|
247
|
+
_headers,
|
|
248
|
+
_host_index,
|
|
249
|
+
) -> RequestSerialized:
|
|
250
|
+
|
|
251
|
+
_host = None
|
|
252
|
+
|
|
253
|
+
_collection_formats: Dict[str, str] = {
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
_path_params: Dict[str, str] = {}
|
|
257
|
+
_query_params: List[Tuple[str, str]] = []
|
|
258
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
259
|
+
_form_params: List[Tuple[str, str]] = []
|
|
260
|
+
_files: Dict[
|
|
261
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
262
|
+
] = {}
|
|
263
|
+
_body_params: Optional[bytes] = None
|
|
264
|
+
|
|
265
|
+
# process the path parameters
|
|
266
|
+
# process the query parameters
|
|
267
|
+
# process the header parameters
|
|
268
|
+
# process the form parameters
|
|
269
|
+
# process the body parameter
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
# set the HTTP header `Accept`
|
|
273
|
+
if 'Accept' not in _header_params:
|
|
274
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
275
|
+
[
|
|
276
|
+
'application/json'
|
|
277
|
+
]
|
|
278
|
+
)
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
# authentication setting
|
|
282
|
+
_auth_settings: List[str] = [
|
|
283
|
+
'OAuth2AuthorizationCode'
|
|
284
|
+
]
|
|
285
|
+
|
|
286
|
+
return self.api_client.param_serialize(
|
|
287
|
+
method='POST',
|
|
288
|
+
resource_path='/api/v1/users/me/accept-invite',
|
|
289
|
+
path_params=_path_params,
|
|
290
|
+
query_params=_query_params,
|
|
291
|
+
header_params=_header_params,
|
|
292
|
+
body=_body_params,
|
|
293
|
+
post_params=_form_params,
|
|
294
|
+
files=_files,
|
|
295
|
+
auth_settings=_auth_settings,
|
|
296
|
+
collection_formats=_collection_formats,
|
|
297
|
+
_host=_host,
|
|
298
|
+
_request_auth=_request_auth
|
|
299
|
+
)
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
52
304
|
@validate_call
|
|
53
305
|
def delete_user(
|
|
54
306
|
self,
|
|
@@ -28,7 +28,7 @@ scope_client/api_bindings/api/registration_v1_api.py,sha256=cPmagSOgnne2cZNgYDKm
|
|
|
28
28
|
scope_client/api_bindings/api/roles_v1_api.py,sha256=LnlGL0BhhNAsXpIIkCyoBV765rw2bcIwWPz3EsyQi18,11234
|
|
29
29
|
scope_client/api_bindings/api/tasks_v1_api.py,sha256=9G2YNDXlV0f05yCJPM8aCinmDkDtz_o7Rbn5sQzSl54,68732
|
|
30
30
|
scope_client/api_bindings/api/upsolve_v1_api.py,sha256=Vdep9x-_lIJq_kOwtsGqYqkssgSaCEy45_WDupKwrgA,12230
|
|
31
|
-
scope_client/api_bindings/api/users_v1_api.py,sha256=
|
|
31
|
+
scope_client/api_bindings/api/users_v1_api.py,sha256=6fPQbwuRVen_HGBf7vhAedacg8sAugrTDxb8CuqLoU8,102391
|
|
32
32
|
scope_client/api_bindings/api/webhooks_v1_api.py,sha256=86tRi7pgwICshf8WVyYA1WrJggThpnsTaON9Mx8R-0M,71286
|
|
33
33
|
scope_client/api_bindings/api/workspaces_v1_api.py,sha256=OjMc-pJe2JAGgv5ZGTD8_TkQxw82vz2e381-5m37vJ4,58653
|
|
34
34
|
scope_client/api_bindings/models/__init__.py,sha256=xdpJhSaMLcINA4t0FuS4fAHjId1YEecafToPSs9ZbFY,21398
|
|
@@ -297,7 +297,7 @@ scope_client/auth/device_authorizer.py,sha256=bJMIZRjkwQwoSWTLEp7OoXM2MytO3ADSD9
|
|
|
297
297
|
scope_client/auth/discovery.py,sha256=hR0MglzRWHdwyi72If5hTnjO50fDJhquP_DD7OzjIQQ,1188
|
|
298
298
|
scope_client/auth/oauth_api_config.py,sha256=wcEslusOFKr0oTzW0Ku2MhM1mvc-nm4BEJU8LHo1uXA,1347
|
|
299
299
|
scope_client/auth/session.py,sha256=wCriib5ajfm1e1WTL_QXVCJmEOrGwQg_0v91e5qrC6g,2649
|
|
300
|
-
scope_client-1.4.
|
|
301
|
-
scope_client-1.4.
|
|
302
|
-
scope_client-1.4.
|
|
303
|
-
scope_client-1.4.
|
|
300
|
+
scope_client-1.4.928.dist-info/METADATA,sha256=2mYevs6gMJlECTJh4z9p1sGSYb1Nrx1C282P7FoHl_Y,1776
|
|
301
|
+
scope_client-1.4.928.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
302
|
+
scope_client-1.4.928.dist-info/top_level.txt,sha256=x6MngS09hi-TUDoUGb3SLzmnf8_cf8IVAVNPSqtTzAY,13
|
|
303
|
+
scope_client-1.4.928.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|