telnyx 3.1.0__py3-none-any.whl → 3.2.0__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 telnyx might be problematic. Click here for more details.
- telnyx/_client.py +32 -32
- telnyx/_version.py +1 -1
- telnyx/resources/__init__.py +24 -24
- telnyx/resources/advanced_orders.py +63 -63
- telnyx/resources/legacy/reporting/batch_detail_records/messaging.py +3 -2
- telnyx/resources/legacy/reporting/batch_detail_records/voice.py +3 -2
- telnyx/resources/oauth.py +315 -317
- telnyx/resources/oauth_grants.py +15 -15
- telnyx/types/__init__.py +20 -13
- telnyx/types/addresses/action_validate_response.py +2 -2
- telnyx/types/{advanced_order_update_params.py → advanced_order_update_requirement_group_params.py} +2 -2
- telnyx/types/legacy/reporting/__init__.py +2 -0
- telnyx/types/legacy/reporting/batch_detail_records/__init__.py +3 -0
- telnyx/types/legacy/reporting/batch_detail_records/cdr_detailed_req_response.py +63 -0
- telnyx/types/legacy/reporting/batch_detail_records/mdr_detail_report_response.py +42 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_create_params.py +4 -26
- telnyx/types/legacy/reporting/batch_detail_records/messaging_create_response.py +4 -60
- telnyx/types/legacy/reporting/batch_detail_records/messaging_delete_response.py +4 -60
- telnyx/types/legacy/reporting/batch_detail_records/messaging_list_response.py +3 -59
- telnyx/types/legacy/reporting/batch_detail_records/messaging_retrieve_response.py +4 -60
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_create_response.py +3 -22
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_delete_response.py +3 -22
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_list_response.py +3 -22
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.py +3 -22
- telnyx/types/legacy/reporting/batch_detail_records/stt_detail_report_response.py +27 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_create_params.py +4 -26
- telnyx/types/legacy/reporting/batch_detail_records/voice_create_response.py +4 -82
- telnyx/types/legacy/reporting/batch_detail_records/voice_delete_response.py +4 -82
- telnyx/types/legacy/reporting/batch_detail_records/voice_list_response.py +3 -81
- telnyx/types/legacy/reporting/batch_detail_records/voice_retrieve_response.py +4 -82
- telnyx/types/legacy/reporting/filter.py +31 -0
- telnyx/types/legacy/reporting/filter_param.py +30 -0
- telnyx/types/legacy/reporting/usage_reports/__init__.py +2 -0
- telnyx/types/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.py +43 -0
- telnyx/types/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.py +38 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_create_response.py +4 -34
- telnyx/types/legacy/reporting/usage_reports/messaging_delete_response.py +4 -34
- telnyx/types/legacy/reporting/usage_reports/messaging_list_response.py +3 -33
- telnyx/types/legacy/reporting/usage_reports/messaging_retrieve_response.py +4 -34
- telnyx/types/legacy/reporting/usage_reports/voice_create_response.py +4 -39
- telnyx/types/legacy/reporting/usage_reports/voice_delete_response.py +4 -39
- telnyx/types/legacy/reporting/usage_reports/voice_list_response.py +3 -38
- telnyx/types/legacy/reporting/usage_reports/voice_retrieve_response.py +4 -39
- telnyx/types/oauth_client.py +59 -0
- telnyx/types/oauth_client_create_response.py +4 -55
- telnyx/types/oauth_client_list_response.py +3 -54
- telnyx/types/oauth_client_retrieve_response.py +4 -55
- telnyx/types/oauth_client_update_response.py +4 -55
- telnyx/types/{oauth_grant_revoke_response.py → oauth_grant.py} +2 -6
- telnyx/types/oauth_grant_delete_response.py +12 -0
- telnyx/types/oauth_grant_list_response.py +3 -24
- telnyx/types/oauth_grant_retrieve_response.py +4 -25
- telnyx/types/{oauth_create_grant_params.py → oauth_grants_params.py} +2 -2
- telnyx/types/{oauth_create_grant_response.py → oauth_grants_response.py} +2 -2
- telnyx/types/{oauth_introspect_token_params.py → oauth_introspect_params.py} +2 -2
- telnyx/types/{oauth_introspect_token_response.py → oauth_introspect_response.py} +2 -2
- telnyx/types/{oauth_register_client_params.py → oauth_register_params.py} +2 -2
- telnyx/types/{oauth_register_client_response.py → oauth_register_response.py} +2 -2
- telnyx/types/{oauth_authorize_params.py → oauth_retrieve_authorize_params.py} +2 -2
- telnyx/types/{oauth_retrieve_consent_response.py → oauth_retrieve_response.py} +2 -2
- telnyx/types/{oauth_exchange_token_params.py → oauth_token_params.py} +2 -2
- telnyx/types/{oauth_exchange_token_response.py → oauth_token_response.py} +2 -2
- telnyx/types/shared/__init__.py +1 -0
- telnyx/types/{error.py → shared/api_error.py} +3 -3
- telnyx/types/verify_profile_create_template_response.py +3 -8
- telnyx/types/verify_profile_message_template_response.py +13 -0
- telnyx/types/verify_profile_retrieve_templates_response.py +4 -9
- telnyx/types/verify_profile_update_template_response.py +3 -8
- {telnyx-3.1.0.dist-info → telnyx-3.2.0.dist-info}/METADATA +1 -1
- {telnyx-3.1.0.dist-info → telnyx-3.2.0.dist-info}/RECORD +72 -62
- {telnyx-3.1.0.dist-info → telnyx-3.2.0.dist-info}/WHEEL +0 -0
- {telnyx-3.1.0.dist-info → telnyx-3.2.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["OAuthClient"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class OAuthClient(BaseModel):
|
|
13
|
+
client_id: str
|
|
14
|
+
"""OAuth client identifier"""
|
|
15
|
+
|
|
16
|
+
client_type: Literal["public", "confidential"]
|
|
17
|
+
"""OAuth client type"""
|
|
18
|
+
|
|
19
|
+
created_at: datetime
|
|
20
|
+
"""Timestamp when the client was created"""
|
|
21
|
+
|
|
22
|
+
name: str
|
|
23
|
+
"""Human-readable name for the OAuth client"""
|
|
24
|
+
|
|
25
|
+
org_id: str
|
|
26
|
+
"""Organization ID that owns this OAuth client"""
|
|
27
|
+
|
|
28
|
+
record_type: Literal["oauth_client"]
|
|
29
|
+
"""Record type identifier"""
|
|
30
|
+
|
|
31
|
+
require_pkce: bool
|
|
32
|
+
"""Whether PKCE (Proof Key for Code Exchange) is required for this client"""
|
|
33
|
+
|
|
34
|
+
updated_at: datetime
|
|
35
|
+
"""Timestamp when the client was last updated"""
|
|
36
|
+
|
|
37
|
+
user_id: str
|
|
38
|
+
"""User ID that created this OAuth client"""
|
|
39
|
+
|
|
40
|
+
allowed_grant_types: Optional[List[Literal["client_credentials", "authorization_code", "refresh_token"]]] = None
|
|
41
|
+
"""List of allowed OAuth grant types"""
|
|
42
|
+
|
|
43
|
+
allowed_scopes: Optional[List[str]] = None
|
|
44
|
+
"""List of allowed OAuth scopes"""
|
|
45
|
+
|
|
46
|
+
client_secret: Optional[str] = None
|
|
47
|
+
"""Client secret (only included when available, for confidential clients)"""
|
|
48
|
+
|
|
49
|
+
logo_uri: Optional[str] = None
|
|
50
|
+
"""URL of the client logo"""
|
|
51
|
+
|
|
52
|
+
policy_uri: Optional[str] = None
|
|
53
|
+
"""URL of the client's privacy policy"""
|
|
54
|
+
|
|
55
|
+
redirect_uris: Optional[List[str]] = None
|
|
56
|
+
"""List of allowed redirect URIs"""
|
|
57
|
+
|
|
58
|
+
tos_uri: Optional[str] = None
|
|
59
|
+
"""URL of the client's terms of service"""
|
|
@@ -1,63 +1,12 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import
|
|
4
|
-
from datetime import datetime
|
|
5
|
-
from typing_extensions import Literal
|
|
3
|
+
from typing import Optional
|
|
6
4
|
|
|
7
5
|
from .._models import BaseModel
|
|
6
|
+
from .oauth_client import OAuthClient
|
|
8
7
|
|
|
9
|
-
__all__ = ["OAuthClientCreateResponse"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class Data(BaseModel):
|
|
13
|
-
client_id: str
|
|
14
|
-
"""OAuth client identifier"""
|
|
15
|
-
|
|
16
|
-
client_type: Literal["public", "confidential"]
|
|
17
|
-
"""OAuth client type"""
|
|
18
|
-
|
|
19
|
-
created_at: datetime
|
|
20
|
-
"""Timestamp when the client was created"""
|
|
21
|
-
|
|
22
|
-
name: str
|
|
23
|
-
"""Human-readable name for the OAuth client"""
|
|
24
|
-
|
|
25
|
-
org_id: str
|
|
26
|
-
"""Organization ID that owns this OAuth client"""
|
|
27
|
-
|
|
28
|
-
record_type: Literal["oauth_client"]
|
|
29
|
-
"""Record type identifier"""
|
|
30
|
-
|
|
31
|
-
require_pkce: bool
|
|
32
|
-
"""Whether PKCE (Proof Key for Code Exchange) is required for this client"""
|
|
33
|
-
|
|
34
|
-
updated_at: datetime
|
|
35
|
-
"""Timestamp when the client was last updated"""
|
|
36
|
-
|
|
37
|
-
user_id: str
|
|
38
|
-
"""User ID that created this OAuth client"""
|
|
39
|
-
|
|
40
|
-
allowed_grant_types: Optional[List[Literal["client_credentials", "authorization_code", "refresh_token"]]] = None
|
|
41
|
-
"""List of allowed OAuth grant types"""
|
|
42
|
-
|
|
43
|
-
allowed_scopes: Optional[List[str]] = None
|
|
44
|
-
"""List of allowed OAuth scopes"""
|
|
45
|
-
|
|
46
|
-
client_secret: Optional[str] = None
|
|
47
|
-
"""Client secret (only included when available, for confidential clients)"""
|
|
48
|
-
|
|
49
|
-
logo_uri: Optional[str] = None
|
|
50
|
-
"""URL of the client logo"""
|
|
51
|
-
|
|
52
|
-
policy_uri: Optional[str] = None
|
|
53
|
-
"""URL of the client's privacy policy"""
|
|
54
|
-
|
|
55
|
-
redirect_uris: Optional[List[str]] = None
|
|
56
|
-
"""List of allowed redirect URIs"""
|
|
57
|
-
|
|
58
|
-
tos_uri: Optional[str] = None
|
|
59
|
-
"""URL of the client's terms of service"""
|
|
8
|
+
__all__ = ["OAuthClientCreateResponse"]
|
|
60
9
|
|
|
61
10
|
|
|
62
11
|
class OAuthClientCreateResponse(BaseModel):
|
|
63
|
-
data: Optional[
|
|
12
|
+
data: Optional[OAuthClient] = None
|
|
@@ -1,62 +1,11 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
from typing import List, Optional
|
|
4
|
-
from datetime import datetime
|
|
5
|
-
from typing_extensions import Literal
|
|
6
4
|
|
|
7
5
|
from .._models import BaseModel
|
|
6
|
+
from .oauth_client import OAuthClient
|
|
8
7
|
|
|
9
|
-
__all__ = ["OAuthClientListResponse", "
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class Data(BaseModel):
|
|
13
|
-
client_id: str
|
|
14
|
-
"""OAuth client identifier"""
|
|
15
|
-
|
|
16
|
-
client_type: Literal["public", "confidential"]
|
|
17
|
-
"""OAuth client type"""
|
|
18
|
-
|
|
19
|
-
created_at: datetime
|
|
20
|
-
"""Timestamp when the client was created"""
|
|
21
|
-
|
|
22
|
-
name: str
|
|
23
|
-
"""Human-readable name for the OAuth client"""
|
|
24
|
-
|
|
25
|
-
org_id: str
|
|
26
|
-
"""Organization ID that owns this OAuth client"""
|
|
27
|
-
|
|
28
|
-
record_type: Literal["oauth_client"]
|
|
29
|
-
"""Record type identifier"""
|
|
30
|
-
|
|
31
|
-
require_pkce: bool
|
|
32
|
-
"""Whether PKCE (Proof Key for Code Exchange) is required for this client"""
|
|
33
|
-
|
|
34
|
-
updated_at: datetime
|
|
35
|
-
"""Timestamp when the client was last updated"""
|
|
36
|
-
|
|
37
|
-
user_id: str
|
|
38
|
-
"""User ID that created this OAuth client"""
|
|
39
|
-
|
|
40
|
-
allowed_grant_types: Optional[List[Literal["client_credentials", "authorization_code", "refresh_token"]]] = None
|
|
41
|
-
"""List of allowed OAuth grant types"""
|
|
42
|
-
|
|
43
|
-
allowed_scopes: Optional[List[str]] = None
|
|
44
|
-
"""List of allowed OAuth scopes"""
|
|
45
|
-
|
|
46
|
-
client_secret: Optional[str] = None
|
|
47
|
-
"""Client secret (only included when available, for confidential clients)"""
|
|
48
|
-
|
|
49
|
-
logo_uri: Optional[str] = None
|
|
50
|
-
"""URL of the client logo"""
|
|
51
|
-
|
|
52
|
-
policy_uri: Optional[str] = None
|
|
53
|
-
"""URL of the client's privacy policy"""
|
|
54
|
-
|
|
55
|
-
redirect_uris: Optional[List[str]] = None
|
|
56
|
-
"""List of allowed redirect URIs"""
|
|
57
|
-
|
|
58
|
-
tos_uri: Optional[str] = None
|
|
59
|
-
"""URL of the client's terms of service"""
|
|
8
|
+
__all__ = ["OAuthClientListResponse", "Meta"]
|
|
60
9
|
|
|
61
10
|
|
|
62
11
|
class Meta(BaseModel):
|
|
@@ -74,6 +23,6 @@ class Meta(BaseModel):
|
|
|
74
23
|
|
|
75
24
|
|
|
76
25
|
class OAuthClientListResponse(BaseModel):
|
|
77
|
-
data: Optional[List[
|
|
26
|
+
data: Optional[List[OAuthClient]] = None
|
|
78
27
|
|
|
79
28
|
meta: Optional[Meta] = None
|
|
@@ -1,63 +1,12 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import
|
|
4
|
-
from datetime import datetime
|
|
5
|
-
from typing_extensions import Literal
|
|
3
|
+
from typing import Optional
|
|
6
4
|
|
|
7
5
|
from .._models import BaseModel
|
|
6
|
+
from .oauth_client import OAuthClient
|
|
8
7
|
|
|
9
|
-
__all__ = ["OAuthClientRetrieveResponse"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class Data(BaseModel):
|
|
13
|
-
client_id: str
|
|
14
|
-
"""OAuth client identifier"""
|
|
15
|
-
|
|
16
|
-
client_type: Literal["public", "confidential"]
|
|
17
|
-
"""OAuth client type"""
|
|
18
|
-
|
|
19
|
-
created_at: datetime
|
|
20
|
-
"""Timestamp when the client was created"""
|
|
21
|
-
|
|
22
|
-
name: str
|
|
23
|
-
"""Human-readable name for the OAuth client"""
|
|
24
|
-
|
|
25
|
-
org_id: str
|
|
26
|
-
"""Organization ID that owns this OAuth client"""
|
|
27
|
-
|
|
28
|
-
record_type: Literal["oauth_client"]
|
|
29
|
-
"""Record type identifier"""
|
|
30
|
-
|
|
31
|
-
require_pkce: bool
|
|
32
|
-
"""Whether PKCE (Proof Key for Code Exchange) is required for this client"""
|
|
33
|
-
|
|
34
|
-
updated_at: datetime
|
|
35
|
-
"""Timestamp when the client was last updated"""
|
|
36
|
-
|
|
37
|
-
user_id: str
|
|
38
|
-
"""User ID that created this OAuth client"""
|
|
39
|
-
|
|
40
|
-
allowed_grant_types: Optional[List[Literal["client_credentials", "authorization_code", "refresh_token"]]] = None
|
|
41
|
-
"""List of allowed OAuth grant types"""
|
|
42
|
-
|
|
43
|
-
allowed_scopes: Optional[List[str]] = None
|
|
44
|
-
"""List of allowed OAuth scopes"""
|
|
45
|
-
|
|
46
|
-
client_secret: Optional[str] = None
|
|
47
|
-
"""Client secret (only included when available, for confidential clients)"""
|
|
48
|
-
|
|
49
|
-
logo_uri: Optional[str] = None
|
|
50
|
-
"""URL of the client logo"""
|
|
51
|
-
|
|
52
|
-
policy_uri: Optional[str] = None
|
|
53
|
-
"""URL of the client's privacy policy"""
|
|
54
|
-
|
|
55
|
-
redirect_uris: Optional[List[str]] = None
|
|
56
|
-
"""List of allowed redirect URIs"""
|
|
57
|
-
|
|
58
|
-
tos_uri: Optional[str] = None
|
|
59
|
-
"""URL of the client's terms of service"""
|
|
8
|
+
__all__ = ["OAuthClientRetrieveResponse"]
|
|
60
9
|
|
|
61
10
|
|
|
62
11
|
class OAuthClientRetrieveResponse(BaseModel):
|
|
63
|
-
data: Optional[
|
|
12
|
+
data: Optional[OAuthClient] = None
|
|
@@ -1,63 +1,12 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import
|
|
4
|
-
from datetime import datetime
|
|
5
|
-
from typing_extensions import Literal
|
|
3
|
+
from typing import Optional
|
|
6
4
|
|
|
7
5
|
from .._models import BaseModel
|
|
6
|
+
from .oauth_client import OAuthClient
|
|
8
7
|
|
|
9
|
-
__all__ = ["OAuthClientUpdateResponse"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class Data(BaseModel):
|
|
13
|
-
client_id: str
|
|
14
|
-
"""OAuth client identifier"""
|
|
15
|
-
|
|
16
|
-
client_type: Literal["public", "confidential"]
|
|
17
|
-
"""OAuth client type"""
|
|
18
|
-
|
|
19
|
-
created_at: datetime
|
|
20
|
-
"""Timestamp when the client was created"""
|
|
21
|
-
|
|
22
|
-
name: str
|
|
23
|
-
"""Human-readable name for the OAuth client"""
|
|
24
|
-
|
|
25
|
-
org_id: str
|
|
26
|
-
"""Organization ID that owns this OAuth client"""
|
|
27
|
-
|
|
28
|
-
record_type: Literal["oauth_client"]
|
|
29
|
-
"""Record type identifier"""
|
|
30
|
-
|
|
31
|
-
require_pkce: bool
|
|
32
|
-
"""Whether PKCE (Proof Key for Code Exchange) is required for this client"""
|
|
33
|
-
|
|
34
|
-
updated_at: datetime
|
|
35
|
-
"""Timestamp when the client was last updated"""
|
|
36
|
-
|
|
37
|
-
user_id: str
|
|
38
|
-
"""User ID that created this OAuth client"""
|
|
39
|
-
|
|
40
|
-
allowed_grant_types: Optional[List[Literal["client_credentials", "authorization_code", "refresh_token"]]] = None
|
|
41
|
-
"""List of allowed OAuth grant types"""
|
|
42
|
-
|
|
43
|
-
allowed_scopes: Optional[List[str]] = None
|
|
44
|
-
"""List of allowed OAuth scopes"""
|
|
45
|
-
|
|
46
|
-
client_secret: Optional[str] = None
|
|
47
|
-
"""Client secret (only included when available, for confidential clients)"""
|
|
48
|
-
|
|
49
|
-
logo_uri: Optional[str] = None
|
|
50
|
-
"""URL of the client logo"""
|
|
51
|
-
|
|
52
|
-
policy_uri: Optional[str] = None
|
|
53
|
-
"""URL of the client's privacy policy"""
|
|
54
|
-
|
|
55
|
-
redirect_uris: Optional[List[str]] = None
|
|
56
|
-
"""List of allowed redirect URIs"""
|
|
57
|
-
|
|
58
|
-
tos_uri: Optional[str] = None
|
|
59
|
-
"""URL of the client's terms of service"""
|
|
8
|
+
__all__ = ["OAuthClientUpdateResponse"]
|
|
60
9
|
|
|
61
10
|
|
|
62
11
|
class OAuthClientUpdateResponse(BaseModel):
|
|
63
|
-
data: Optional[
|
|
12
|
+
data: Optional[OAuthClient] = None
|
|
@@ -6,10 +6,10 @@ from typing_extensions import Literal
|
|
|
6
6
|
|
|
7
7
|
from .._models import BaseModel
|
|
8
8
|
|
|
9
|
-
__all__ = ["
|
|
9
|
+
__all__ = ["OAuthGrant"]
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class
|
|
12
|
+
class OAuthGrant(BaseModel):
|
|
13
13
|
id: str
|
|
14
14
|
"""Unique identifier for the OAuth grant"""
|
|
15
15
|
|
|
@@ -27,7 +27,3 @@ class Data(BaseModel):
|
|
|
27
27
|
|
|
28
28
|
last_used_at: Optional[datetime] = None
|
|
29
29
|
"""Timestamp when the grant was last used"""
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
class OAuthGrantRevokeResponse(BaseModel):
|
|
33
|
-
data: Optional[Data] = None
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from .._models import BaseModel
|
|
6
|
+
from .oauth_grant import OAuthGrant
|
|
7
|
+
|
|
8
|
+
__all__ = ["OAuthGrantDeleteResponse"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class OAuthGrantDeleteResponse(BaseModel):
|
|
12
|
+
data: Optional[OAuthGrant] = None
|
|
@@ -1,32 +1,11 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
from typing import List, Optional
|
|
4
|
-
from datetime import datetime
|
|
5
|
-
from typing_extensions import Literal
|
|
6
4
|
|
|
7
5
|
from .._models import BaseModel
|
|
6
|
+
from .oauth_grant import OAuthGrant
|
|
8
7
|
|
|
9
|
-
__all__ = ["OAuthGrantListResponse", "
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class Data(BaseModel):
|
|
13
|
-
id: str
|
|
14
|
-
"""Unique identifier for the OAuth grant"""
|
|
15
|
-
|
|
16
|
-
client_id: str
|
|
17
|
-
"""OAuth client identifier"""
|
|
18
|
-
|
|
19
|
-
created_at: datetime
|
|
20
|
-
"""Timestamp when the grant was created"""
|
|
21
|
-
|
|
22
|
-
record_type: Literal["oauth_grant"]
|
|
23
|
-
"""Record type identifier"""
|
|
24
|
-
|
|
25
|
-
scopes: List[str]
|
|
26
|
-
"""List of granted OAuth scopes"""
|
|
27
|
-
|
|
28
|
-
last_used_at: Optional[datetime] = None
|
|
29
|
-
"""Timestamp when the grant was last used"""
|
|
8
|
+
__all__ = ["OAuthGrantListResponse", "Meta"]
|
|
30
9
|
|
|
31
10
|
|
|
32
11
|
class Meta(BaseModel):
|
|
@@ -44,6 +23,6 @@ class Meta(BaseModel):
|
|
|
44
23
|
|
|
45
24
|
|
|
46
25
|
class OAuthGrantListResponse(BaseModel):
|
|
47
|
-
data: Optional[List[
|
|
26
|
+
data: Optional[List[OAuthGrant]] = None
|
|
48
27
|
|
|
49
28
|
meta: Optional[Meta] = None
|
|
@@ -1,33 +1,12 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import
|
|
4
|
-
from datetime import datetime
|
|
5
|
-
from typing_extensions import Literal
|
|
3
|
+
from typing import Optional
|
|
6
4
|
|
|
7
5
|
from .._models import BaseModel
|
|
6
|
+
from .oauth_grant import OAuthGrant
|
|
8
7
|
|
|
9
|
-
__all__ = ["OAuthGrantRetrieveResponse"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class Data(BaseModel):
|
|
13
|
-
id: str
|
|
14
|
-
"""Unique identifier for the OAuth grant"""
|
|
15
|
-
|
|
16
|
-
client_id: str
|
|
17
|
-
"""OAuth client identifier"""
|
|
18
|
-
|
|
19
|
-
created_at: datetime
|
|
20
|
-
"""Timestamp when the grant was created"""
|
|
21
|
-
|
|
22
|
-
record_type: Literal["oauth_grant"]
|
|
23
|
-
"""Record type identifier"""
|
|
24
|
-
|
|
25
|
-
scopes: List[str]
|
|
26
|
-
"""List of granted OAuth scopes"""
|
|
27
|
-
|
|
28
|
-
last_used_at: Optional[datetime] = None
|
|
29
|
-
"""Timestamp when the grant was last used"""
|
|
8
|
+
__all__ = ["OAuthGrantRetrieveResponse"]
|
|
30
9
|
|
|
31
10
|
|
|
32
11
|
class OAuthGrantRetrieveResponse(BaseModel):
|
|
33
|
-
data: Optional[
|
|
12
|
+
data: Optional[OAuthGrant] = None
|
|
@@ -4,10 +4,10 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from typing_extensions import Required, TypedDict
|
|
6
6
|
|
|
7
|
-
__all__ = ["
|
|
7
|
+
__all__ = ["OAuthGrantsParams"]
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class OAuthGrantsParams(TypedDict, total=False):
|
|
11
11
|
allowed: Required[bool]
|
|
12
12
|
"""Whether the grant is allowed"""
|
|
13
13
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from .._models import BaseModel
|
|
4
4
|
|
|
5
|
-
__all__ = ["
|
|
5
|
+
__all__ = ["OAuthGrantsResponse"]
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class
|
|
8
|
+
class OAuthGrantsResponse(BaseModel):
|
|
9
9
|
redirect_uri: str
|
|
10
10
|
"""Redirect URI with authorization code or error"""
|
|
@@ -4,9 +4,9 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from typing_extensions import Required, TypedDict
|
|
6
6
|
|
|
7
|
-
__all__ = ["
|
|
7
|
+
__all__ = ["OAuthIntrospectParams"]
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class OAuthIntrospectParams(TypedDict, total=False):
|
|
11
11
|
token: Required[str]
|
|
12
12
|
"""The token to introspect"""
|
|
@@ -4,10 +4,10 @@ from typing import Optional
|
|
|
4
4
|
|
|
5
5
|
from .._models import BaseModel
|
|
6
6
|
|
|
7
|
-
__all__ = ["
|
|
7
|
+
__all__ = ["OAuthIntrospectResponse"]
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class OAuthIntrospectResponse(BaseModel):
|
|
11
11
|
active: bool
|
|
12
12
|
"""Whether the token is active"""
|
|
13
13
|
|
|
@@ -7,10 +7,10 @@ from typing_extensions import Literal, TypedDict
|
|
|
7
7
|
|
|
8
8
|
from .._types import SequenceNotStr
|
|
9
9
|
|
|
10
|
-
__all__ = ["
|
|
10
|
+
__all__ = ["OAuthRegisterParams"]
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class OAuthRegisterParams(TypedDict, total=False):
|
|
14
14
|
client_name: str
|
|
15
15
|
"""Human-readable string name of the client to be presented to the end-user"""
|
|
16
16
|
|
|
@@ -4,10 +4,10 @@ from typing import List, Optional
|
|
|
4
4
|
|
|
5
5
|
from .._models import BaseModel
|
|
6
6
|
|
|
7
|
-
__all__ = ["
|
|
7
|
+
__all__ = ["OAuthRegisterResponse"]
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class OAuthRegisterResponse(BaseModel):
|
|
11
11
|
client_id: str
|
|
12
12
|
"""Unique client identifier"""
|
|
13
13
|
|
|
@@ -4,10 +4,10 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from typing_extensions import Literal, Required, TypedDict
|
|
6
6
|
|
|
7
|
-
__all__ = ["
|
|
7
|
+
__all__ = ["OAuthRetrieveAuthorizeParams"]
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class OAuthRetrieveAuthorizeParams(TypedDict, total=False):
|
|
11
11
|
client_id: Required[str]
|
|
12
12
|
"""OAuth client identifier"""
|
|
13
13
|
|
|
@@ -4,7 +4,7 @@ from typing import List, Optional
|
|
|
4
4
|
|
|
5
5
|
from .._models import BaseModel
|
|
6
6
|
|
|
7
|
-
__all__ = ["
|
|
7
|
+
__all__ = ["OAuthRetrieveResponse", "Data", "DataRequestedScope"]
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class DataRequestedScope(BaseModel):
|
|
@@ -43,5 +43,5 @@ class Data(BaseModel):
|
|
|
43
43
|
"""Whether the client is verified"""
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class OAuthRetrieveResponse(BaseModel):
|
|
47
47
|
data: Optional[Data] = None
|
|
@@ -4,10 +4,10 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from typing_extensions import Literal, Required, TypedDict
|
|
6
6
|
|
|
7
|
-
__all__ = ["
|
|
7
|
+
__all__ = ["OAuthTokenParams"]
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class OAuthTokenParams(TypedDict, total=False):
|
|
11
11
|
grant_type: Required[Literal["client_credentials", "authorization_code", "refresh_token"]]
|
|
12
12
|
"""OAuth 2.0 grant type"""
|
|
13
13
|
|
|
@@ -5,10 +5,10 @@ from typing_extensions import Literal
|
|
|
5
5
|
|
|
6
6
|
from .._models import BaseModel
|
|
7
7
|
|
|
8
|
-
__all__ = ["
|
|
8
|
+
__all__ = ["OAuthTokenResponse"]
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class OAuthTokenResponse(BaseModel):
|
|
12
12
|
access_token: str
|
|
13
13
|
"""The access token"""
|
|
14
14
|
|
telnyx/types/shared/__init__.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
from .metadata import Metadata as Metadata
|
|
4
|
+
from .api_error import APIError as APIError
|
|
4
5
|
from .short_code import ShortCode as ShortCode
|
|
5
6
|
from .hosted_number import HostedNumber as HostedNumber
|
|
6
7
|
from .sim_card_status import SimCardStatus as SimCardStatus
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from typing import Dict, Optional
|
|
4
4
|
|
|
5
|
-
from
|
|
5
|
+
from ..._models import BaseModel
|
|
6
6
|
|
|
7
|
-
__all__ = ["
|
|
7
|
+
__all__ = ["APIError", "Source"]
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class Source(BaseModel):
|
|
@@ -15,7 +15,7 @@ class Source(BaseModel):
|
|
|
15
15
|
"""JSON pointer (RFC6901) to the offending entity."""
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
class
|
|
18
|
+
class APIError(BaseModel):
|
|
19
19
|
code: str
|
|
20
20
|
|
|
21
21
|
title: str
|
|
@@ -3,15 +3,10 @@
|
|
|
3
3
|
from typing import Optional
|
|
4
4
|
|
|
5
5
|
from .._models import BaseModel
|
|
6
|
+
from .verify_profile_message_template_response import VerifyProfileMessageTemplateResponse
|
|
6
7
|
|
|
7
|
-
__all__ = ["VerifyProfileCreateTemplateResponse"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class Data(BaseModel):
|
|
11
|
-
id: Optional[str] = None
|
|
12
|
-
|
|
13
|
-
text: Optional[str] = None
|
|
8
|
+
__all__ = ["VerifyProfileCreateTemplateResponse"]
|
|
14
9
|
|
|
15
10
|
|
|
16
11
|
class VerifyProfileCreateTemplateResponse(BaseModel):
|
|
17
|
-
data: Optional[
|
|
12
|
+
data: Optional[VerifyProfileMessageTemplateResponse] = None
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from .._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["VerifyProfileMessageTemplateResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class VerifyProfileMessageTemplateResponse(BaseModel):
|
|
11
|
+
id: Optional[str] = None
|
|
12
|
+
|
|
13
|
+
text: Optional[str] = None
|