Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Commit b1f164b

Browse files
feat(codegen): create magic link request fields are now optional (#115)
Co-authored-by: ctran88 <10686030+ctran88@users.noreply.github.com>
1 parent 9246e3c commit b1f164b

File tree

112 files changed

+1675
-1191
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+1675
-1191
lines changed

docs/generated/AppInfo.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44
## Properties
5+
56
Name | Type | Description | Notes
67
------------ | ------------- | ------------- | -------------
78
**additional_auth_origins** | **List[str]** | |
@@ -13,6 +14,7 @@ Name | Type | Description | Notes
1314
**auth_fallback_method_ttl** | **int** | Deprecated Property. Please refer to &#x60;auth_methods&#x60; to view settings for individual authentication methods. |
1415
**auth_methods** | [**AuthMethods**](AuthMethods.md) | |
1516
**auth_origin** | **str** | |
17+
**auto_theme_enabled** | **bool** | Deprecated Property. Please use &#x60;hosted_theme&#x60; to set hosted page theming instead. |
1618
**created_at** | **datetime** | |
1719
**default_language** | **str** | |
1820
**id** | **str** | |
@@ -21,8 +23,9 @@ Name | Type | Description | Notes
2123
**light_logo_url** | **str** | | [optional]
2224
**dark_logo_url** | **str** | | [optional]
2325
**name** | **str** | |
24-
**hosted** | **bool** | whether or not the app&#39;s login page hosted by passage |
26+
**hosted** | **bool** | whether or not the app&#39;s login page is hosted by Passage |
2527
**hosted_subdomain** | **str** | the subdomain of the app&#39;s hosted login page |
28+
**hosted_theme** | [**ThemeType**](ThemeType.md) | |
2629
**id_token_lifetime** | **int** | | [optional]
2730
**passage_branding** | **bool** | |
2831
**profile_management** | **bool** | |
@@ -54,12 +57,12 @@ json = "{}"
5457
# create an instance of AppInfo from a JSON string
5558
app_info_instance = AppInfo.from_json(json)
5659
# print the JSON string representation of the object
57-
print AppInfo.to_json()
60+
print(AppInfo.to_json())
5861

5962
# convert the object into a dict
6063
app_info_dict = app_info_instance.to_dict()
6164
# create an instance of AppInfo from a dict
62-
app_info_form_dict = app_info.from_dict(app_info_dict)
65+
app_info_from_dict = AppInfo.from_dict(app_info_dict)
6366
```
6467
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
6568

docs/generated/AppResponse.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44
## Properties
5+
56
Name | Type | Description | Notes
67
------------ | ------------- | ------------- | -------------
78
**app** | [**AppInfo**](AppInfo.md) | |
@@ -16,12 +17,12 @@ json = "{}"
1617
# create an instance of AppResponse from a JSON string
1718
app_response_instance = AppResponse.from_json(json)
1819
# print the JSON string representation of the object
19-
print AppResponse.to_json()
20+
print(AppResponse.to_json())
2021

2122
# convert the object into a dict
2223
app_response_dict = app_response_instance.to_dict()
2324
# create an instance of AppResponse from a dict
24-
app_response_form_dict = app_response.from_dict(app_response_dict)
25+
app_response_from_dict = AppResponse.from_dict(app_response_dict)
2526
```
2627
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2728

docs/generated/AppleUserSocialConnection.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44
## Properties
5+
56
Name | Type | Description | Notes
67
------------ | ------------- | ------------- | -------------
78
**provider_id** | **str** | The external ID of the Social Connection. |
@@ -19,12 +20,12 @@ json = "{}"
1920
# create an instance of AppleUserSocialConnection from a JSON string
2021
apple_user_social_connection_instance = AppleUserSocialConnection.from_json(json)
2122
# print the JSON string representation of the object
22-
print AppleUserSocialConnection.to_json()
23+
print(AppleUserSocialConnection.to_json())
2324

2425
# convert the object into a dict
2526
apple_user_social_connection_dict = apple_user_social_connection_instance.to_dict()
2627
# create an instance of AppleUserSocialConnection from a dict
27-
apple_user_social_connection_form_dict = apple_user_social_connection.from_dict(apple_user_social_connection_dict)
28+
apple_user_social_connection_from_dict = AppleUserSocialConnection.from_dict(apple_user_social_connection_dict)
2829
```
2930
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
3031

docs/generated/AppsApi.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ Get app information.
1717
### Example
1818

1919
* Bearer (JWT) Authentication (bearerAuth):
20+
2021
```python
21-
import time
22-
import os
2322
import passageidentity.openapi_client
2423
from passageidentity.openapi_client.models.app_response import AppResponse
2524
from passageidentity.openapi_client.rest import ApiException
@@ -60,6 +59,7 @@ with passageidentity.openapi_client.ApiClient(configuration) as api_client:
6059

6160
### Parameters
6261

62+
6363
Name | Type | Description | Notes
6464
------------- | ------------- | ------------- | -------------
6565
**app_id** | **str**| App ID |
@@ -78,6 +78,7 @@ Name | Type | Description | Notes
7878
- **Accept**: application/json
7979

8080
### HTTP response details
81+
8182
| Status code | Description | Response headers |
8283
|-------------|-------------|------------------|
8384
**200** | OK | - |

docs/generated/AuthMethods.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Denotes what methods this app is allowed to use for authentication with configurations
44

55
## Properties
6+
67
Name | Type | Description | Notes
78
------------ | ------------- | ------------- | -------------
89
**passkeys** | [**PasskeysAuthMethod**](PasskeysAuthMethod.md) | |
@@ -19,12 +20,12 @@ json = "{}"
1920
# create an instance of AuthMethods from a JSON string
2021
auth_methods_instance = AuthMethods.from_json(json)
2122
# print the JSON string representation of the object
22-
print AuthMethods.to_json()
23+
print(AuthMethods.to_json())
2324

2425
# convert the object into a dict
2526
auth_methods_dict = auth_methods_instance.to_dict()
2627
# create an instance of AuthMethods from a dict
27-
auth_methods_form_dict = auth_methods.from_dict(auth_methods_dict)
28+
auth_methods_from_dict = AuthMethods.from_dict(auth_methods_dict)
2829
```
2930
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
3031

docs/generated/CreateMagicLinkRequest.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@
22

33

44
## Properties
5+
56
Name | Type | Description | Notes
67
------------ | ------------- | ------------- | -------------
7-
**channel** | [**MagicLinkChannel**](MagicLinkChannel.md) | |
8-
**email** | **str** | |
8+
**channel** | [**MagicLinkChannel**](MagicLinkChannel.md) | | [optional]
9+
**email** | **str** | | [optional]
910
**language** | **str** | language of the email to send (optional) | [optional]
10-
**magic_link_path** | **str** | |
11-
**phone** | **str** | |
12-
**redirect_url** | **str** | |
13-
**send** | **bool** | |
14-
**ttl** | **int** | |
11+
**magic_link_path** | **str** | must be a relative url | [optional]
12+
**phone** | **str** | | [optional]
13+
**redirect_url** | **str** | | [optional]
14+
**send** | **bool** | | [optional]
15+
**ttl** | **int** | | [optional]
1516
**type** | [**MagicLinkType**](MagicLinkType.md) | | [optional]
16-
**user_id** | **str** | |
17+
**user_id** | **str** | | [optional]
1718

1819
## Example
1920

@@ -25,12 +26,12 @@ json = "{}"
2526
# create an instance of CreateMagicLinkRequest from a JSON string
2627
create_magic_link_request_instance = CreateMagicLinkRequest.from_json(json)
2728
# print the JSON string representation of the object
28-
print CreateMagicLinkRequest.to_json()
29+
print(CreateMagicLinkRequest.to_json())
2930

3031
# convert the object into a dict
3132
create_magic_link_request_dict = create_magic_link_request_instance.to_dict()
3233
# create an instance of CreateMagicLinkRequest from a dict
33-
create_magic_link_request_form_dict = create_magic_link_request.from_dict(create_magic_link_request_dict)
34+
create_magic_link_request_from_dict = CreateMagicLinkRequest.from_dict(create_magic_link_request_dict)
3435
```
3536
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
3637

docs/generated/CreateUserRequest.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44
## Properties
5+
56
Name | Type | Description | Notes
67
------------ | ------------- | ------------- | -------------
78
**email** | **str** | Email of the new user. Either this or &#x60;phone&#x60; is required; both may be provided. | [optional]
@@ -18,12 +19,12 @@ json = "{}"
1819
# create an instance of CreateUserRequest from a JSON string
1920
create_user_request_instance = CreateUserRequest.from_json(json)
2021
# print the JSON string representation of the object
21-
print CreateUserRequest.to_json()
22+
print(CreateUserRequest.to_json())
2223

2324
# convert the object into a dict
2425
create_user_request_dict = create_user_request_instance.to_dict()
2526
# create an instance of CreateUserRequest from a dict
26-
create_user_request_form_dict = create_user_request.from_dict(create_user_request_dict)
27+
create_user_request_from_dict = CreateUserRequest.from_dict(create_user_request_dict)
2728
```
2829
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2930

docs/generated/ElementCustomization.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33

44
## Properties
5+
56
Name | Type | Description | Notes
67
------------ | ------------- | ------------- | -------------
78
**passage_container_background_color** | **str** | Container background color in hex. Default is &#x60;#ffffff&#x60; in light mode &amp; &#x60;#383838&#x60; in dark mode. | [optional]
89
**passage_container_max_width** | **int** | Maximum width of container (px) | [optional] [default to 300]
910
**passage_input_box_background_color** | **str** | Input box background color in hex. Default is &#x60;#ffffff&#x60; in light mode &amp; &#x60;#4b4b4b&#x60; in dark mode. | [optional]
1011
**passage_input_box_border_radius** | **int** | Input box border radius (px) | [optional] [default to 5]
11-
**passage_header_font_family** | [**FontFamily**](FontFamily.md) | | [optional]
12-
**passage_body_font_family** | [**FontFamily**](FontFamily.md) | | [optional]
12+
**passage_header_font_family** | [**FontFamily**](FontFamily.md) | | [optional] [default to FontFamily.HELVETICA]
13+
**passage_body_font_family** | [**FontFamily**](FontFamily.md) | | [optional] [default to FontFamily.HELVETICA]
1314
**passage_header_text_color** | **str** | Header text color in hex. Default is &#x60;#222222&#x60; in light mode &amp; &#x60;#f3f3f3&#x60; in dark mode. | [optional]
1415
**passage_body_text_color** | **str** | Body text color in hex. Default is &#x60;#222222&#x60; in light mode &amp; &#x60;#f3f3f3&#x60; in dark mode. | [optional]
1516
**passage_primary_button_background_color** | **str** | Primary button background colour (hex) | [optional] [default to '#121212']
@@ -35,12 +36,12 @@ json = "{}"
3536
# create an instance of ElementCustomization from a JSON string
3637
element_customization_instance = ElementCustomization.from_json(json)
3738
# print the JSON string representation of the object
38-
print ElementCustomization.to_json()
39+
print(ElementCustomization.to_json())
3940

4041
# convert the object into a dict
4142
element_customization_dict = element_customization_instance.to_dict()
4243
# create an instance of ElementCustomization from a dict
43-
element_customization_form_dict = element_customization.from_dict(element_customization_dict)
44+
element_customization_from_dict = ElementCustomization.from_dict(element_customization_dict)
4445
```
4546
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
4647

docs/generated/FontFamily.md

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,47 @@
22

33
Body font family
44

5-
## Properties
6-
Name | Type | Description | Notes
7-
------------ | ------------- | ------------- | -------------
5+
## Enum
6+
7+
* `HELVETICA` (value: `'Helvetica'`)
8+
9+
* `ARIAL` (value: `'Arial'`)
10+
11+
* `ARIAL_BLACK` (value: `'Arial Black'`)
12+
13+
* `VERDANA` (value: `'Verdana'`)
14+
15+
* `TAHOMA` (value: `'Tahoma'`)
16+
17+
* `TREBUCHET_MS` (value: `'Trebuchet MS'`)
18+
19+
* `IMPACT` (value: `'Impact'`)
20+
21+
* `GILL_SANS` (value: `'Gill Sans'`)
22+
23+
* `TIMES_NEW_ROMAN` (value: `'Times New Roman'`)
24+
25+
* `GEORGIA` (value: `'Georgia'`)
26+
27+
* `PALATINO` (value: `'Palatino'`)
28+
29+
* `BASKERVILLE` (value: `'Baskerville'`)
30+
31+
* `ANDALÉ_MONO` (value: `'Andalé Mono'`)
32+
33+
* `COURIER` (value: `'Courier'`)
34+
35+
* `LUCIDA` (value: `'Lucida'`)
36+
37+
* `MONACO` (value: `'Monaco'`)
38+
39+
* `BRADLEY_HAND` (value: `'Bradley Hand'`)
40+
41+
* `BRUSH_SCRIPT_MT` (value: `'Brush Script MT'`)
42+
43+
* `LUMINARI` (value: `'Luminari'`)
44+
45+
* `COMIC_SANS_MS` (value: `'Comic Sans MS'`)
846

947
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1048

docs/generated/GithubUserSocialConnection.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44
## Properties
5+
56
Name | Type | Description | Notes
67
------------ | ------------- | ------------- | -------------
78
**provider_id** | **str** | The external ID of the Social Connection. |
@@ -19,12 +20,12 @@ json = "{}"
1920
# create an instance of GithubUserSocialConnection from a JSON string
2021
github_user_social_connection_instance = GithubUserSocialConnection.from_json(json)
2122
# print the JSON string representation of the object
22-
print GithubUserSocialConnection.to_json()
23+
print(GithubUserSocialConnection.to_json())
2324

2425
# convert the object into a dict
2526
github_user_social_connection_dict = github_user_social_connection_instance.to_dict()
2627
# create an instance of GithubUserSocialConnection from a dict
27-
github_user_social_connection_form_dict = github_user_social_connection.from_dict(github_user_social_connection_dict)
28+
github_user_social_connection_from_dict = GithubUserSocialConnection.from_dict(github_user_social_connection_dict)
2829
```
2930
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
3031

0 commit comments

Comments
 (0)