mirror of
https://github.com/LukeHagar/discoursejs.git
synced 2025-12-06 12:27:48 +00:00
ci: regenerated with OpenAPI Doc latest, Speakeasy CLI 1.394.0
This commit is contained in:
@@ -3,10 +3,10 @@ id: 599a9576-4665-431e-be1e-44cc13ef28aa
|
|||||||
management:
|
management:
|
||||||
docChecksum: dd4d04e62622de8f631720b5be68964d
|
docChecksum: dd4d04e62622de8f631720b5be68964d
|
||||||
docVersion: latest
|
docVersion: latest
|
||||||
speakeasyVersion: 1.392.1
|
speakeasyVersion: 1.394.0
|
||||||
generationVersion: 2.411.9
|
generationVersion: 2.413.0
|
||||||
releaseVersion: 0.8.2
|
releaseVersion: 0.9.0
|
||||||
configChecksum: a578620a51a141cfb038d8ff4ad464ac
|
configChecksum: 030c268f7981a3d3ccfa57503ecb1d6a
|
||||||
repoURL: https://github.com/LukeHagar/discoursejs.git
|
repoURL: https://github.com/LukeHagar/discoursejs.git
|
||||||
repoSubDirectory: .
|
repoSubDirectory: .
|
||||||
installationURL: https://github.com/LukeHagar/discoursejs
|
installationURL: https://github.com/LukeHagar/discoursejs
|
||||||
@@ -16,7 +16,7 @@ features:
|
|||||||
additionalDependencies: 0.1.0
|
additionalDependencies: 0.1.0
|
||||||
additionalProperties: 0.1.1
|
additionalProperties: 0.1.1
|
||||||
constsAndDefaults: 0.1.11
|
constsAndDefaults: 0.1.11
|
||||||
core: 3.16.4
|
core: 3.17.0
|
||||||
defaultEnabledRetries: 0.1.0
|
defaultEnabledRetries: 0.1.0
|
||||||
deprecations: 2.81.1
|
deprecations: 2.81.1
|
||||||
envVarSecurityUsage: 0.1.1
|
envVarSecurityUsage: 0.1.1
|
||||||
@@ -669,16 +669,25 @@ examples:
|
|||||||
query:
|
query:
|
||||||
token: "<value>"
|
token: "<value>"
|
||||||
getBackups:
|
getBackups:
|
||||||
speakeasy-default-get-backups: {}
|
speakeasy-default-get-backups:
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: []
|
||||||
sendDownloadBackupEmail:
|
sendDownloadBackupEmail:
|
||||||
speakeasy-default-send-download-backup-email:
|
speakeasy-default-send-download-backup-email:
|
||||||
parameters:
|
parameters:
|
||||||
path:
|
path:
|
||||||
filename: "your_file_here"
|
filename: "your_file_here"
|
||||||
adminListBadges:
|
adminListBadges:
|
||||||
speakeasy-default-admin-list-badges: {}
|
speakeasy-default-admin-list-badges:
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"admin_badges": {"badge_grouping_ids": [], "badge_ids": [], "badge_type_ids": [], "protected_system_fields": [], "triggers": {"none": 387044, "post_action": 432656, "post_revision": 889440, "trust_level_change": 105780, "user_change": 410911}}, "badge_groupings": [], "badge_types": [], "badges": []}
|
||||||
createBadge:
|
createBadge:
|
||||||
speakeasy-default-create-badge: {}
|
speakeasy-default-create-badge:
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"badge": {"allow_title": true, "auto_revoke": true, "badge_grouping_id": 298569, "badge_type_id": 394222, "description": "Optional upward-trending projection", "enabled": true, "grant_count": 364499, "icon": "<value>", "id": 317037, "image_url": "<value>", "listable": true, "long_description": "<value>", "manually_grantable": true, "multiple_grant": true, "name": "<value>", "query": "<value>", "show_posts": false, "slug": "<value>", "system": true, "target_posts": true, "trigger": "<value>"}, "badge_types": []}
|
||||||
deleteBadge:
|
deleteBadge:
|
||||||
speakeasy-default-delete-badge:
|
speakeasy-default-delete-badge:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -689,11 +698,17 @@ examples:
|
|||||||
parameters:
|
parameters:
|
||||||
path:
|
path:
|
||||||
username: "Faustino28"
|
username: "Faustino28"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"user_badges": []}
|
||||||
updateBadge:
|
updateBadge:
|
||||||
speakeasy-default-update-badge:
|
speakeasy-default-update-badge:
|
||||||
parameters:
|
parameters:
|
||||||
path:
|
path:
|
||||||
id: 280628
|
id: 280628
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"badge": {"allow_title": false, "auto_revoke": true, "badge_grouping_id": 569102, "badge_type_id": 247389, "description": "Balanced user-facing alliance", "enabled": false, "grant_count": 934168, "icon": "<value>", "id": 471527, "image_url": "<value>", "listable": true, "long_description": "<value>", "manually_grantable": false, "multiple_grant": true, "name": "<value>", "query": "<value>", "show_posts": true, "slug": "<value>", "system": false, "target_posts": false, "trigger": "<value>"}, "badge_types": []}
|
||||||
addGroupMembers:
|
addGroupMembers:
|
||||||
speakeasy-default-add-group-members:
|
speakeasy-default-add-group-members:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -701,8 +716,14 @@ examples:
|
|||||||
id: 985975
|
id: 985975
|
||||||
requestBody:
|
requestBody:
|
||||||
application/json: {"usernames": "username1,username2"}
|
application/json: {"usernames": "username1,username2"}
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"emails": [], "success": "<value>", "usernames": []}
|
||||||
createGroup:
|
createGroup:
|
||||||
speakeasy-default-create-group: {}
|
speakeasy-default-create-group:
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"basic_group": {"allow_membership_requests": true, "automatic": false, "bio_cooked": "<value>", "bio_excerpt": "<value>", "bio_raw": "<value>", "can_admin_group": true, "can_see_members": false, "default_notification_level": 831661, "flair_bg_color": "<value>", "flair_color": "<value>", "flair_url": "<value>", "full_name": "Tracy Kris", "grant_trust_level": "<value>", "has_messages": false, "id": 491938, "incoming_email": "<value>", "members_visibility_level": 817346, "membership_request_template": "<value>", "mentionable_level": 644356, "messageable_level": 883516, "name": "<value>", "primary_group": false, "public_admission": true, "public_exit": true, "publish_read_state": false, "title": "<value>", "user_count": 302911, "visibility_level": 712589}}
|
||||||
deleteGroup:
|
deleteGroup:
|
||||||
speakeasy-default-delete-group:
|
speakeasy-default-delete-group:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -716,13 +737,22 @@ examples:
|
|||||||
parameters:
|
parameters:
|
||||||
path:
|
path:
|
||||||
id: "name"
|
id: "name"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"extras": {"visible_group_names": []}, "group": {"allow_membership_requests": false, "allow_unknown_sender_topic_replies": true, "automatic": false, "automatic_membership_email_domains": "<value>", "bio_cooked": "<value>", "bio_excerpt": "<value>", "bio_raw": "<value>", "can_admin_group": true, "can_see_members": false, "default_notification_level": 677524, "email_password": "<value>", "email_username": "<value>", "flair_bg_color": "<value>", "flair_color": "<value>", "flair_url": "<value>", "full_name": "Wendy Rowe", "grant_trust_level": "<value>", "has_messages": false, "id": 91266, "imap_last_error": "<value>", "imap_mailbox_name": "<value>", "imap_mailboxes": [], "imap_new_emails": "<value>", "imap_old_emails": "<value>", "imap_port": "<value>", "imap_server": "<value>", "imap_ssl": "<value>", "incoming_email": "<value>", "is_group_owner_display": false, "is_group_user": false, "members_visibility_level": 559262, "membership_request_template": "<value>", "mentionable": false, "mentionable_level": 370583, "message_count": 513531, "messageable": false, "messageable_level": 157142, "muted_category_ids": [], "name": "<value>", "primary_group": false, "public_admission": true, "public_exit": false, "publish_read_state": false, "regular_category_ids": [], "smtp_port": "<value>", "smtp_server": "<value>", "smtp_ssl": "<value>", "title": "<value>", "tracking_category_ids": [], "user_count": 617607, "visibility_level": 423050, "watching_category_ids": [], "watching_first_post_category_ids": []}}
|
||||||
listGroupMembers:
|
listGroupMembers:
|
||||||
"":
|
"":
|
||||||
parameters:
|
parameters:
|
||||||
path:
|
path:
|
||||||
id: "name"
|
id: "name"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"members": [], "meta": {"limit": 425642, "offset": 856025, "total": 251404}, "owners": []}
|
||||||
listGroups:
|
listGroups:
|
||||||
speakeasy-default-list-groups: {}
|
speakeasy-default-list-groups:
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"extras": {"type_filters": []}, "groups": [], "load_more_groups": "<value>", "total_rows_groups": 302778}
|
||||||
removeGroupMembers:
|
removeGroupMembers:
|
||||||
speakeasy-default-remove-group-members:
|
speakeasy-default-remove-group-members:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -730,6 +760,9 @@ examples:
|
|||||||
id: 649523
|
id: 649523
|
||||||
requestBody:
|
requestBody:
|
||||||
application/json: {"usernames": "username1,username2"}
|
application/json: {"usernames": "username1,username2"}
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"skipped_usernames": [], "success": "<value>", "usernames": []}
|
||||||
updateGroup:
|
updateGroup:
|
||||||
speakeasy-default-update-group:
|
speakeasy-default-update-group:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -751,17 +784,26 @@ examples:
|
|||||||
parameters:
|
parameters:
|
||||||
path:
|
path:
|
||||||
id: 386776
|
id: 386776
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"active": false, "admin": false, "api_key_count": 641278, "approved_by": {"avatar_template": "<value>", "id": 197613, "name": "<value>", "username": "Madelyn.Schoen"}, "avatar_template": "<value>", "badge_count": 248574, "bounce_score": 227654, "can_activate": false, "can_be_anonymized": true, "can_be_deleted": false, "can_be_merged": true, "can_deactivate": true, "can_delete_all_posts": false, "can_delete_sso_record": false, "can_disable_second_factor": true, "can_grant_admin": false, "can_grant_moderation": false, "can_impersonate": true, "can_revoke_admin": false, "can_revoke_moderation": true, "can_send_activation_email": false, "can_view_action_logs": false, "created_at": "<value>", "created_at_age": "5288.46", "days_visited": 186654, "flags_given_count": 7445, "flags_received_count": 385749, "full_suspend_reason": "<value>", "groups": [], "id": 42319, "ip_address": "208.161.92.82", "last_emailed_age": "4169.5", "last_emailed_at": "<value>", "last_seen_age": "6444.18", "last_seen_at": "<value>", "like_count": 372881, "like_given_count": 434797, "manual_locked_trust_level": "<value>", "moderator": true, "name": "<value>", "post_count": 185274, "posts_read_count": 743147, "primary_group_id": "<value>", "private_topics_count": 514610, "registration_ip_address": "<value>", "reset_bounce_score_after": "<value>", "silence_reason": "<value>", "silenced_by": "<value>", "single_sign_on_record": "<value>", "staged": true, "suspended_by": "<value>", "time_read": 375804, "title": "<value>", "topic_count": 872928, "topics_entered": 493495, "trust_level": 286065, "username": "Rachael.Cummerata", "warnings_received_count": 72244}
|
||||||
adminListUsers:
|
adminListUsers:
|
||||||
speakeasy-default-admin-list-users:
|
speakeasy-default-admin-list-users:
|
||||||
parameters:
|
parameters:
|
||||||
path:
|
path:
|
||||||
flag: "new"
|
flag: "new"
|
||||||
query: {}
|
query: {}
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: []
|
||||||
anonymizeUser:
|
anonymizeUser:
|
||||||
speakeasy-default-anonymize-user:
|
speakeasy-default-anonymize-user:
|
||||||
parameters:
|
parameters:
|
||||||
path:
|
path:
|
||||||
id: 418778
|
id: 418778
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"success": "<value>", "username": "Heather_Schinner29"}
|
||||||
changePassword:
|
changePassword:
|
||||||
speakeasy-default-change-password:
|
speakeasy-default-change-password:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -773,6 +815,9 @@ examples:
|
|||||||
header:
|
header:
|
||||||
Api-Key: "<value>"
|
Api-Key: "<value>"
|
||||||
Api-Username: "<value>"
|
Api-Username: "<value>"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"active": true, "message": "<value>", "success": false}
|
||||||
deactivateUser:
|
deactivateUser:
|
||||||
speakeasy-default-deactivate-user:
|
speakeasy-default-deactivate-user:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -786,6 +831,9 @@ examples:
|
|||||||
parameters:
|
parameters:
|
||||||
path:
|
path:
|
||||||
id: 251343
|
id: 251343
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"deleted": true}
|
||||||
getUser:
|
getUser:
|
||||||
speakeasy-default-get-user:
|
speakeasy-default-get-user:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -794,11 +842,17 @@ examples:
|
|||||||
header:
|
header:
|
||||||
Api-Key: "<value>"
|
Api-Key: "<value>"
|
||||||
Api-Username: "<value>"
|
Api-Username: "<value>"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"user": {"admin": true, "allowed_pm_usernames": [], "avatar_template": "<value>", "badge_count": 942250, "can_be_deleted": true, "can_change_bio": true, "can_change_location": false, "can_change_tracking_preferences": true, "can_change_website": true, "can_delete_all_posts": true, "can_edit": false, "can_edit_email": true, "can_edit_name": true, "can_edit_username": true, "can_ignore_user": true, "can_mute_user": false, "can_send_private_message_to_user": false, "can_send_private_messages": true, "can_upload_profile_header": false, "can_upload_user_card_background": false, "created_at": "<value>", "featured_topic": "<value>", "featured_user_badge_ids": [], "flair_bg_color": "<value>", "flair_color": "<value>", "flair_group_id": "<value>", "flair_name": "<value>", "flair_url": "<value>", "group_users": [], "groups": [], "has_title_badges": true, "id": 228025, "ignored": false, "ignored_usernames": [], "invited_by": "<value>", "last_posted_at": "<value>", "last_seen_at": "<value>", "locale": "nl", "mailing_list_posts_per_day": 540531, "moderator": true, "muted": false, "muted_category_ids": [], "muted_tags": [], "muted_usernames": [], "name": "<value>", "pending_count": 261819, "post_count": 215372, "primary_group_id": "<value>", "primary_group_name": "<value>", "profile_view_count": 731773, "recent_time_read": 825238, "regular_category_ids": [], "second_factor_enabled": false, "staged": false, "system_avatar_template": "<value>", "system_avatar_upload_id": "<value>", "time_read": 153902, "title": "<value>", "tracked_category_ids": [], "tracked_tags": [], "trust_level": 832569, "uploaded_avatar_id": "<value>", "use_logo_small_as_avatar": false, "user_api_keys": "<value>", "user_auth_tokens": [], "user_notification_schedule": {"day_0_end_time": 218196, "day_0_start_time": 894430, "day_1_end_time": 138091, "day_1_start_time": 537138, "day_2_end_time": 237845, "day_2_start_time": 141991, "day_3_end_time": 794266, "day_3_start_time": 746075, "day_4_end_time": 852580, "day_4_start_time": 356921, "day_5_end_time": 606039, "day_5_start_time": 635306, "day_6_end_time": 208257, "day_6_start_time": 644767, "enabled": true}, "user_option": {"allow_private_messages": true, "auto_track_topics_after_msecs": 163422, "automatically_unpin_topics": false, "color_scheme_id": "<value>", "dark_scheme_id": "<value>", "digest_after_minutes": 666713, "dynamic_favicon": true, "email_digests": true, "email_in_reply_to": true, "email_level": 107350, "email_messages_level": 843464, "email_previous_replies": 562742, "enable_allowed_pm_users": true, "enable_defer": true, "enable_quoting": false, "external_links_in_new_tab": true, "hide_profile_and_presence": true, "homepage_id": "<value>", "include_tl0_in_digests": true, "like_notification_frequency": 164221, "mailing_list_mode": false, "mailing_list_mode_frequency": 627269, "new_topic_duration_minutes": 664047, "notification_level_when_replying": 186836, "skip_new_user_tips": false, "text_size": "<value>", "text_size_seq": 690559, "theme_ids": [], "theme_key_seq": 76962, "timezone": "Europe/Sarajevo", "title_count_mode": "<value>", "user_id": 268612}, "username": "Adolphus2", "watched_category_ids": [], "watched_first_post_category_ids": [], "watched_tags": [], "watching_first_post_tags": []}, "user_badges": []}
|
||||||
getUserEmails:
|
getUserEmails:
|
||||||
speakeasy-default-get-user-emails:
|
speakeasy-default-get-user-emails:
|
||||||
parameters:
|
parameters:
|
||||||
path:
|
path:
|
||||||
username: "Winifred_OConner64"
|
username: "Winifred_OConner64"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"associated_accounts": [], "email": "Macey_Purdy41@hotmail.com", "secondary_emails": [], "unconfirmed_emails": []}
|
||||||
getUserExternalId:
|
getUserExternalId:
|
||||||
speakeasy-default-get-user-external-id:
|
speakeasy-default-get-user-external-id:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -807,6 +861,9 @@ examples:
|
|||||||
header:
|
header:
|
||||||
Api-Key: "<value>"
|
Api-Key: "<value>"
|
||||||
Api-Username: "<value>"
|
Api-Username: "<value>"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"user": {"admin": true, "allowed_pm_usernames": [], "avatar_template": "<value>", "badge_count": 382257, "can_be_deleted": true, "can_change_bio": true, "can_change_location": true, "can_change_tracking_preferences": false, "can_change_website": true, "can_delete_all_posts": false, "can_edit": true, "can_edit_email": false, "can_edit_name": false, "can_edit_username": false, "can_ignore_user": false, "can_mute_user": false, "can_send_private_message_to_user": true, "can_send_private_messages": true, "can_upload_profile_header": true, "can_upload_user_card_background": true, "created_at": "<value>", "featured_topic": "<value>", "featured_user_badge_ids": [], "flair_bg_color": "<value>", "flair_color": "<value>", "flair_group_id": "<value>", "flair_name": "<value>", "flair_url": "<value>", "group_users": [], "groups": [], "has_title_badges": false, "id": 655637, "ignored": true, "ignored_usernames": [], "invited_by": "<value>", "last_posted_at": "<value>", "last_seen_at": "<value>", "locale": "en_AU_ocker", "mailing_list_posts_per_day": 773497, "moderator": false, "muted": true, "muted_category_ids": [], "muted_tags": [], "muted_usernames": [], "name": "<value>", "pending_count": 438889, "post_count": 587339, "primary_group_id": "<value>", "primary_group_name": "<value>", "profile_view_count": 535710, "recent_time_read": 726013, "regular_category_ids": [], "second_factor_enabled": true, "staged": false, "system_avatar_template": "<value>", "system_avatar_upload_id": "<value>", "time_read": 758196, "title": "<value>", "tracked_category_ids": [], "tracked_tags": [], "trust_level": 543959, "uploaded_avatar_id": "<value>", "use_logo_small_as_avatar": true, "user_api_keys": "<value>", "user_auth_tokens": [], "user_notification_schedule": {"day_0_end_time": 429974, "day_0_start_time": 864367, "day_1_end_time": 397390, "day_1_start_time": 973233, "day_2_end_time": 571577, "day_2_start_time": 332379, "day_3_end_time": 993187, "day_3_start_time": 122806, "day_4_end_time": 860371, "day_4_start_time": 527833, "day_5_end_time": 492716, "day_5_start_time": 861327, "day_6_end_time": 335540, "day_6_start_time": 821980, "enabled": true}, "user_option": {"allow_private_messages": true, "auto_track_topics_after_msecs": 58261, "automatically_unpin_topics": true, "color_scheme_id": "<value>", "dark_scheme_id": "<value>", "digest_after_minutes": 996201, "dynamic_favicon": true, "email_digests": false, "email_in_reply_to": true, "email_level": 140410, "email_messages_level": 445021, "email_previous_replies": 732222, "enable_allowed_pm_users": false, "enable_defer": true, "enable_quoting": true, "external_links_in_new_tab": false, "hide_profile_and_presence": false, "homepage_id": "<value>", "include_tl0_in_digests": true, "like_notification_frequency": 667224, "mailing_list_mode": false, "mailing_list_mode_frequency": 851298, "new_topic_duration_minutes": 410338, "notification_level_when_replying": 122815, "skip_new_user_tips": true, "text_size": "<value>", "text_size_seq": 142352, "theme_ids": [], "theme_key_seq": 972133, "timezone": "Asia/Kathmandu", "title_count_mode": "<value>", "user_id": 789110}, "username": "Drake.Blanda5", "watched_category_ids": [], "watched_first_post_category_ids": [], "watched_tags": [], "watching_first_post_tags": []}, "user_badges": []}
|
||||||
getUserIdentiyProviderExternalId:
|
getUserIdentiyProviderExternalId:
|
||||||
speakeasy-default-get-user-identiy-provider-external-id:
|
speakeasy-default-get-user-identiy-provider-external-id:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -816,6 +873,9 @@ examples:
|
|||||||
header:
|
header:
|
||||||
Api-Key: "<value>"
|
Api-Key: "<value>"
|
||||||
Api-Username: "<value>"
|
Api-Username: "<value>"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"user": {"admin": true, "allowed_pm_usernames": [], "avatar_template": "<value>", "badge_count": 814693, "can_be_deleted": true, "can_change_bio": false, "can_change_location": true, "can_change_tracking_preferences": false, "can_change_website": true, "can_delete_all_posts": false, "can_edit": false, "can_edit_email": true, "can_edit_name": false, "can_edit_username": false, "can_ignore_user": true, "can_mute_user": true, "can_send_private_message_to_user": true, "can_send_private_messages": true, "can_upload_profile_header": false, "can_upload_user_card_background": false, "created_at": "<value>", "featured_topic": "<value>", "featured_user_badge_ids": [], "flair_bg_color": "<value>", "flair_color": "<value>", "flair_group_id": "<value>", "flair_name": "<value>", "flair_url": "<value>", "group_users": [], "groups": [], "has_title_badges": true, "id": 149789, "ignored": true, "ignored_usernames": [], "invited_by": "<value>", "last_posted_at": "<value>", "last_seen_at": "<value>", "locale": "en_IND", "mailing_list_posts_per_day": 357601, "moderator": false, "muted": true, "muted_category_ids": [], "muted_tags": [], "muted_usernames": [], "name": "<value>", "pending_count": 839652, "post_count": 445789, "primary_group_id": "<value>", "primary_group_name": "<value>", "profile_view_count": 812368, "recent_time_read": 816187, "regular_category_ids": [], "second_factor_enabled": true, "staged": false, "system_avatar_template": "<value>", "system_avatar_upload_id": "<value>", "time_read": 373844, "title": "<value>", "tracked_category_ids": [], "tracked_tags": [], "trust_level": 359433, "uploaded_avatar_id": "<value>", "use_logo_small_as_avatar": false, "user_api_keys": "<value>", "user_auth_tokens": [], "user_notification_schedule": {"day_0_end_time": 860936, "day_0_start_time": 449560, "day_1_end_time": 687506, "day_1_start_time": 890578, "day_2_end_time": 176772, "day_2_start_time": 931155, "day_3_end_time": 419697, "day_3_start_time": 350097, "day_4_end_time": 977288, "day_4_start_time": 241415, "day_5_end_time": 547242, "day_5_start_time": 410996, "day_6_end_time": 635248, "day_6_start_time": 644469, "enabled": false}, "user_option": {"allow_private_messages": false, "auto_track_topics_after_msecs": 285447, "automatically_unpin_topics": true, "color_scheme_id": "<value>", "dark_scheme_id": "<value>", "digest_after_minutes": 945448, "dynamic_favicon": false, "email_digests": true, "email_in_reply_to": false, "email_level": 884100, "email_messages_level": 398013, "email_previous_replies": 679780, "enable_allowed_pm_users": false, "enable_defer": false, "enable_quoting": true, "external_links_in_new_tab": true, "hide_profile_and_presence": false, "homepage_id": "<value>", "include_tl0_in_digests": true, "like_notification_frequency": 568247, "mailing_list_mode": true, "mailing_list_mode_frequency": 45697, "new_topic_duration_minutes": 382105, "notification_level_when_replying": 710442, "skip_new_user_tips": true, "text_size": "<value>", "text_size_seq": 759801, "theme_ids": [], "theme_key_seq": 203355, "timezone": "Asia/Almaty", "title_count_mode": "<value>", "user_id": 40695}, "username": "Austin.Bashirian", "watched_category_ids": [], "watched_first_post_category_ids": [], "watched_tags": [], "watching_first_post_tags": []}, "user_badges": []}
|
||||||
listUserActions:
|
listUserActions:
|
||||||
speakeasy-default-list-user-actions:
|
speakeasy-default-list-user-actions:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -823,12 +883,18 @@ examples:
|
|||||||
offset: 620550
|
offset: 620550
|
||||||
username: "Deondre75"
|
username: "Deondre75"
|
||||||
filter: "<value>"
|
filter: "<value>"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"user_actions": []}
|
||||||
listUsersPublic:
|
listUsersPublic:
|
||||||
speakeasy-default-list-users-public:
|
speakeasy-default-list-users-public:
|
||||||
parameters:
|
parameters:
|
||||||
query:
|
query:
|
||||||
period: "monthly"
|
period: "monthly"
|
||||||
order: "topic_count"
|
order: "topic_count"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"directory_items": [], "meta": {"last_updated_at": "<value>", "load_more_directory_items": "<value>", "total_rows_directory_items": 387659}}
|
||||||
logOutUser:
|
logOutUser:
|
||||||
speakeasy-default-log-out-user:
|
speakeasy-default-log-out-user:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -842,8 +908,14 @@ examples:
|
|||||||
parameters:
|
parameters:
|
||||||
path:
|
path:
|
||||||
username: "Frances39"
|
username: "Frances39"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"gravatar_avatar_template": "<value>", "gravatar_upload_id": 361623}
|
||||||
sendPasswordResetEmail:
|
sendPasswordResetEmail:
|
||||||
speakeasy-default-send-password-reset-email: {}
|
speakeasy-default-send-password-reset-email:
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"success": "<value>", "user_found": false}
|
||||||
silenceUser:
|
silenceUser:
|
||||||
speakeasy-default-silence-user:
|
speakeasy-default-silence-user:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -851,6 +923,9 @@ examples:
|
|||||||
id: 606247
|
id: 606247
|
||||||
requestBody:
|
requestBody:
|
||||||
application/json: {"post_action": "delete", "silenced_till": "2022-06-01T08:00:00.000Z"}
|
application/json: {"post_action": "delete", "silenced_till": "2022-06-01T08:00:00.000Z"}
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"silence": {"silence_reason": "<value>", "silenced": true, "silenced_at": "<value>", "silenced_by": {"avatar_template": "<value>", "id": 170425, "name": "<value>", "username": "Courtney.Schneider"}, "silenced_till": "<value>"}}
|
||||||
suspendUser:
|
suspendUser:
|
||||||
speakeasy-default-suspend-user:
|
speakeasy-default-suspend-user:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -858,6 +933,9 @@ examples:
|
|||||||
id: 970832
|
id: 970832
|
||||||
requestBody:
|
requestBody:
|
||||||
application/json: {"post_action": "delete", "reason": "<value>", "suspend_until": "2121-02-22"}
|
application/json: {"post_action": "delete", "reason": "<value>", "suspend_until": "2121-02-22"}
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"suspension": {"full_suspend_reason": "<value>", "suspend_reason": "<value>", "suspended_at": "<value>", "suspended_by": {"avatar_template": "<value>", "id": 970832, "name": "<value>", "username": "Myron50"}, "suspended_till": "<value>"}}
|
||||||
updateAvatar:
|
updateAvatar:
|
||||||
speakeasy-default-update-avatar:
|
speakeasy-default-update-avatar:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -879,6 +957,9 @@ examples:
|
|||||||
header:
|
header:
|
||||||
Api-Key: "<value>"
|
Api-Key: "<value>"
|
||||||
Api-Username: "<value>"
|
Api-Username: "<value>"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"success": "<value>"}
|
||||||
updateUsername:
|
updateUsername:
|
||||||
speakeasy-default-update-username:
|
speakeasy-default-update-username:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -888,21 +969,36 @@ examples:
|
|||||||
speakeasy-default-create-category:
|
speakeasy-default-create-category:
|
||||||
requestBody:
|
requestBody:
|
||||||
application/json: {"color": "49d9e9", "name": "<value>", "permissions": {"everyone": 1}, "text_color": "f0fcfd"}
|
application/json: {"color": "49d9e9", "name": "<value>", "permissions": {"everyone": 1}, "text_color": "f0fcfd"}
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"category": {"all_topics_wiki": true, "allow_badges": false, "allow_unlimited_owner_edits_on_first_post": false, "auto_close_based_on_last_post": false, "auto_close_hours": "<value>", "available_groups": [], "can_delete": true, "can_edit": false, "color": "lavender", "default_list_filter": "<value>", "default_slow_mode_seconds": "<value>", "default_top_period": "<value>", "default_view": "<value>", "description": "Secured hybrid moratorium", "description_excerpt": "<value>", "description_text": "<value>", "email_in": "<value>", "email_in_allow_strangers": true, "group_permissions": [], "has_children": false, "id": 576329, "mailinglist_mirror": true, "minimum_required_tags": 49066, "name": "<value>", "navigate_to_first_post_after_read": false, "notification_level": 62502, "num_featured_topics": 973129, "permission": 817435, "position": 505865, "post_count": 432953, "read_only_banner": "<value>", "read_restricted": true, "required_tag_groups": [], "search_priority": 8064, "show_subcategory_list": true, "slug": "<value>", "sort_ascending": "<value>", "sort_order": "<value>", "subcategory_list_style": "<value>", "text_color": "<value>", "topic_count": 409207, "topic_featured_link_allowed": true, "topic_template": "<value>", "topic_url": "<value>", "uploaded_background": "<value>", "uploaded_background_dark": "<value>", "uploaded_logo": "<value>", "uploaded_logo_dark": "<value>"}}
|
||||||
getCategory:
|
getCategory:
|
||||||
speakeasy-default-get-category:
|
speakeasy-default-get-category:
|
||||||
parameters:
|
parameters:
|
||||||
path:
|
path:
|
||||||
id: 39147
|
id: 39147
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"category": {"all_topics_wiki": true, "allow_badges": false, "allow_unlimited_owner_edits_on_first_post": true, "auto_close_based_on_last_post": true, "auto_close_hours": "<value>", "available_groups": [], "can_delete": false, "can_edit": true, "color": "violet", "default_list_filter": "<value>", "default_slow_mode_seconds": "<value>", "default_top_period": "<value>", "default_view": "<value>", "description": "Multi-layered 5th generation Graphic Interface", "description_excerpt": "<value>", "description_text": "<value>", "email_in": "<value>", "email_in_allow_strangers": true, "group_permissions": [], "has_children": false, "id": 533818, "mailinglist_mirror": false, "minimum_required_tags": 585665, "name": "<value>", "navigate_to_first_post_after_read": false, "notification_level": 733753, "num_featured_topics": 373231, "permission": 543613, "position": 471104, "post_count": 639692, "read_only_banner": "<value>", "read_restricted": true, "required_tag_groups": [], "search_priority": 498406, "show_subcategory_list": false, "slug": "<value>", "sort_ascending": "<value>", "sort_order": "<value>", "subcategory_list_style": "<value>", "text_color": "<value>", "topic_count": 749595, "topic_featured_link_allowed": true, "topic_template": "<value>", "topic_url": "<value>", "uploaded_background": "<value>", "uploaded_background_dark": "<value>", "uploaded_logo": "<value>", "uploaded_logo_dark": "<value>"}}
|
||||||
getSite:
|
getSite:
|
||||||
speakeasy-default-get-site: {}
|
speakeasy-default-get-site:
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"anonymous_top_menu_items": [], "archetypes": [], "auth_providers": [], "can_create_tag": false, "can_tag_pms": false, "can_tag_topics": false, "categories": [], "censored_regexp": [], "default_archetype": "<value>", "filters": [], "groups": [], "notification_types": {"bookmark_reminder": 549755, "chat_group_mention": 172835, "chat_invitation": 459147, "chat_mention": 556553, "chat_message": 268348, "code_review_commit_approved": 792595, "custom": 959012, "edited": 839204, "event_invitation": 463313, "event_reminder": 618012, "granted_badge": 471528, "group_mentioned": 410226, "group_message_summary": 862033, "invited_to_private_message": 761618, "invited_to_topic": 57168, "invitee_accepted": 568137, "liked": 613365, "liked_consolidated": 82987, "linked": 994399, "membership_request_accepted": 695132, "membership_request_consolidated": 29756, "mentioned": 434597, "moved_post": 998177, "post_approved": 689563, "posted": 394494, "private_message": 258200, "quoted": 93950, "reaction": 274712, "replied": 207463, "topic_reminder": 326487, "votes_released": 803079, "watching_category_or_tag": 969101, "watching_first_post": 111981}, "periods": [], "post_action_types": [], "post_types": {"moderator_action": 188994, "regular": 3865, "small_action": 833226, "whisper": 524656}, "tags_filter_regexp": "<value>", "top_menu_items": [], "top_tags": [], "topic_featured_link_allowed_category_ids": [], "topic_flag_types": [], "trust_levels": {"basic": 76043, "leader": 236554, "member": 655582, "newuser": 841833, "regular": 507052}, "uncategorized_category_id": 79728, "user_color_schemes": [], "user_field_max_length": 865876, "user_fields": [], "user_themes": [], "watched_words_link": "<value>", "watched_words_replace": "<value>"}
|
||||||
listCategories:
|
listCategories:
|
||||||
speakeasy-default-list-categories: {}
|
speakeasy-default-list-categories:
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"category_list": {"can_create_category": false, "can_create_topic": false, "categories": []}}
|
||||||
listCategoryTopics:
|
listCategoryTopics:
|
||||||
speakeasy-default-list-category-topics:
|
speakeasy-default-list-category-topics:
|
||||||
parameters:
|
parameters:
|
||||||
path:
|
path:
|
||||||
slug: "<value>"
|
slug: "<value>"
|
||||||
id: 394133
|
id: 394133
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"topic_list": {"can_create_topic": true, "per_page": 513170, "topics": []}}
|
||||||
updateCategory:
|
updateCategory:
|
||||||
speakeasy-default-update-category:
|
speakeasy-default-update-category:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -910,6 +1006,9 @@ examples:
|
|||||||
id: 353500
|
id: 353500
|
||||||
requestBody:
|
requestBody:
|
||||||
application/json: {"color": "49d9e9", "name": "<value>", "permissions": {"everyone": 1}, "text_color": "f0fcfd"}
|
application/json: {"color": "49d9e9", "name": "<value>", "permissions": {"everyone": 1}, "text_color": "f0fcfd"}
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"category": {"all_topics_wiki": false, "allow_badges": false, "allow_unlimited_owner_edits_on_first_post": true, "auto_close_based_on_last_post": false, "auto_close_hours": "<value>", "available_groups": [], "can_delete": false, "can_edit": false, "color": "mint green", "default_list_filter": "<value>", "default_slow_mode_seconds": "<value>", "default_top_period": "<value>", "default_view": "<value>", "description": "Open-source demand-driven forecast", "description_excerpt": "<value>", "description_text": "<value>", "email_in": "<value>", "email_in_allow_strangers": true, "form_template_ids": [], "group_permissions": [], "has_children": true, "id": 404301, "mailinglist_mirror": false, "minimum_required_tags": 765787, "name": "<value>", "navigate_to_first_post_after_read": true, "notification_level": 506566, "num_featured_topics": 573945, "permission": 537500, "position": 818896, "post_count": 966055, "read_only_banner": "<value>", "read_restricted": true, "required_tag_groups": [], "search_priority": 574545, "show_subcategory_list": false, "slug": "<value>", "sort_ascending": "<value>", "sort_order": "<value>", "subcategory_list_style": "<value>", "text_color": "<value>", "topic_count": 946944, "topic_featured_link_allowed": false, "topic_template": "<value>", "topic_url": "<value>", "uploaded_background": "<value>", "uploaded_background_dark": "<value>", "uploaded_logo": "<value>", "uploaded_logo_dark": "<value>"}, "success": "<value>"}
|
||||||
createInvite:
|
createInvite:
|
||||||
speakeasy-default-create-invite:
|
speakeasy-default-create-invite:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -941,6 +1040,9 @@ examples:
|
|||||||
speakeasy-default-create-topic-post-PM:
|
speakeasy-default-create-topic-post-PM:
|
||||||
requestBody:
|
requestBody:
|
||||||
application/json: {"archetype": "private_message", "raw": "<value>", "target_recipients": "blake,sam"}
|
application/json: {"archetype": "private_message", "raw": "<value>", "target_recipients": "blake,sam"}
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"actions_summary": [], "admin": true, "avatar_template": "<value>", "bookmarked": true, "can_delete": false, "can_edit": true, "can_recover": false, "can_view_edit_history": true, "can_wiki": false, "cooked": "<value>", "created_at": "<value>", "deleted_at": "<value>", "display_username": "<value>", "draft_sequence": 177252, "edit_reason": "<value>", "flair_bg_color": "<value>", "flair_color": "<value>", "flair_name": "<value>", "flair_url": "<value>", "hidden": true, "id": 114547, "incoming_link_count": 74808, "moderator": true, "name": "<value>", "post_number": 240122, "post_type": 625045, "primary_group_name": "<value>", "quote_count": 159237, "readers_count": 157793, "reads": 948621, "reply_count": 489264, "reply_to_post_number": "<value>", "reviewable_id": "<value>", "reviewable_score_count": 923875, "reviewable_score_pending_count": 49016, "score": 693419, "staff": true, "topic_id": 861941, "topic_slug": "<value>", "trust_level": 336833, "updated_at": "<value>", "user_deleted": false, "user_id": 869518, "user_title": "<value>", "username": "Kiera_OHara53", "version": 333433, "wiki": false, "yours": false}
|
||||||
createTopicTimer:
|
createTopicTimer:
|
||||||
speakeasy-default-create-topic-timer:
|
speakeasy-default-create-topic-timer:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -962,6 +1064,9 @@ examples:
|
|||||||
header:
|
header:
|
||||||
Api-Key: "<value>"
|
Api-Key: "<value>"
|
||||||
Api-Username: "<value>"
|
Api-Username: "<value>"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"actions_summary": [], "archetype": "<value>", "archived": false, "bookmarked": true, "bookmarks": [], "category_id": 21052, "chunk_size": 947957, "closed": true, "created_at": "<value>", "deleted_at": "<value>", "deleted_by": "<value>", "details": {"can_archive_topic": true, "can_close_topic": true, "can_convert_topic": true, "can_create_post": false, "can_delete": false, "can_edit": false, "can_edit_staff_notes": true, "can_moderate_category": false, "can_move_posts": false, "can_pin_unpin_topic": true, "can_remove_allowed_users": false, "can_remove_self_id": 326000, "can_reply_as_new_topic": true, "can_review_topic": true, "can_split_merge_topic": true, "can_toggle_topic_visibility": false, "created_by": {"avatar_template": "<value>", "id": 12547, "name": "<value>", "username": "Alexandra.Dickinson"}, "last_poster": {"avatar_template": "<value>", "id": 275899, "name": "<value>", "username": "Frank.Bergnaum47"}, "notification_level": 820547}, "draft": "<value>", "draft_key": "<value>", "draft_sequence": 536811, "fancy_title": "<value>", "featured_link": "<value>", "has_deleted": false, "has_summary": false, "highest_post_number": 803817, "id": 113565, "image_url": "<value>", "last_posted_at": "<value>", "like_count": 39261, "message_bus_last_id": 832960, "participant_count": 440011, "pinned": true, "pinned_at": "<value>", "pinned_globally": true, "pinned_until": "<value>", "post_stream": {"posts": [], "stream": []}, "posts_count": 286296, "reply_count": 724372, "show_read_indicator": true, "slow_mode_enabled_until": "<value>", "slow_mode_seconds": 462346, "slug": "<value>", "suggested_topics": [], "summarizable": true, "tags": [], "thumbnails": "<value>", "timeline_lookup": [], "title": "<value>", "topic_timer": "<value>", "unpinned": "<value>", "user_id": 258928, "views": 815673, "visible": true, "word_count": 317030}
|
||||||
getTopicByExternalId:
|
getTopicByExternalId:
|
||||||
speakeasy-default-get-topic-by-external-id:
|
speakeasy-default-get-topic-by-external-id:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -970,12 +1075,14 @@ examples:
|
|||||||
listLatestTopics:
|
listLatestTopics:
|
||||||
speakeasy-default-list-latest-topics:
|
speakeasy-default-list-latest-topics:
|
||||||
parameters:
|
parameters:
|
||||||
|
query: {}
|
||||||
header:
|
header:
|
||||||
Api-Key: "<value>"
|
Api-Key: "<value>"
|
||||||
Api-Username: "<value>"
|
Api-Username: "<value>"
|
||||||
listTopTopics:
|
listTopTopics:
|
||||||
speakeasy-default-list-top-topics:
|
speakeasy-default-list-top-topics:
|
||||||
parameters:
|
parameters:
|
||||||
|
query: {}
|
||||||
header:
|
header:
|
||||||
Api-Key: "<value>"
|
Api-Key: "<value>"
|
||||||
Api-Username: "<value>"
|
Api-Username: "<value>"
|
||||||
@@ -1048,9 +1155,13 @@ examples:
|
|||||||
parameters:
|
parameters:
|
||||||
path:
|
path:
|
||||||
id: "<id>"
|
id: "<id>"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"actions_summary": [], "admin": true, "avatar_template": "<value>", "bookmarked": false, "can_delete": false, "can_edit": false, "can_recover": false, "can_view_edit_history": false, "can_wiki": true, "cooked": "<value>", "created_at": "<value>", "deleted_at": "<value>", "edit_reason": "<value>", "flair_bg_color": "<value>", "flair_color": "<value>", "flair_name": "<value>", "flair_url": "<value>", "hidden": true, "id": 274969, "incoming_link_count": 569040, "moderator": true, "post_number": 601256, "post_type": 309263, "primary_group_name": "<value>", "quote_count": 778933, "raw": "<value>", "readers_count": 539682, "reads": 613671, "reply_count": 315298, "reply_to_post_number": "<value>", "reviewable_id": "<value>", "reviewable_score_count": 415792, "reviewable_score_pending_count": 436283, "score": 630377, "staff": true, "topic_id": 448930, "topic_slug": "<value>", "trust_level": 627491, "updated_at": "<value>", "user_deleted": true, "user_id": 26419, "user_title": "<value>", "username": "Myah_Hintz", "version": 119307, "wiki": true, "yours": true, "key": "<value>", "key1": "<value>"}
|
||||||
listPosts:
|
listPosts:
|
||||||
speakeasy-default-list-posts:
|
speakeasy-default-list-posts:
|
||||||
parameters:
|
parameters:
|
||||||
|
query: {}
|
||||||
header:
|
header:
|
||||||
Api-Key: "<value>"
|
Api-Key: "<value>"
|
||||||
Api-Username: "<value>"
|
Api-Username: "<value>"
|
||||||
@@ -1073,11 +1184,17 @@ examples:
|
|||||||
parameters:
|
parameters:
|
||||||
path:
|
path:
|
||||||
id: "<id>"
|
id: "<id>"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: []
|
||||||
updatePost:
|
updatePost:
|
||||||
speakeasy-default-update-post:
|
speakeasy-default-update-post:
|
||||||
parameters:
|
parameters:
|
||||||
path:
|
path:
|
||||||
id: "<id>"
|
id: "<id>"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"post": {"actions_summary": [], "admin": true, "avatar_template": "<value>", "bookmarked": false, "can_delete": false, "can_edit": true, "can_recover": true, "can_view_edit_history": false, "can_wiki": true, "cooked": "<value>", "created_at": "<value>", "deleted_at": "<value>", "draft_sequence": 569421, "edit_reason": "<value>", "flair_bg_color": "<value>", "flair_color": "<value>", "flair_name": "<value>", "flair_url": "<value>", "hidden": false, "id": 437966, "incoming_link_count": 537165, "moderator": true, "post_number": 280082, "post_type": 212729, "primary_group_name": "<value>", "quote_count": 880040, "raw": "<value>", "readers_count": 506220, "reads": 778785, "reply_count": 188399, "reply_to_post_number": "<value>", "reviewable_id": "<value>", "reviewable_score_count": 1835, "reviewable_score_pending_count": 766049, "score": 49732, "staff": false, "topic_id": 179027, "topic_slug": "<value>", "trust_level": 424745, "updated_at": "<value>", "user_deleted": false, "user_id": 527776, "user_title": "<value>", "username": "Adrien.Hackett16", "version": 478363, "wiki": true, "yours": false}}
|
||||||
getUserSentPrivateMessages:
|
getUserSentPrivateMessages:
|
||||||
speakeasy-default-get-user-sent-private-messages:
|
speakeasy-default-get-user-sent-private-messages:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -1094,8 +1211,14 @@ examples:
|
|||||||
query:
|
query:
|
||||||
q: "api @blake #support tags:api after:2021-06-04 in:unseen in:open order:latest_topic"
|
q: "api @blake #support tags:api after:2021-06-04 in:unseen in:open order:latest_topic"
|
||||||
page: 1
|
page: 1
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"categories": [], "grouped_search_result": {"can_create_topic": true, "category_ids": [], "error": "<value>", "group_ids": [], "more_categories": "<value>", "more_full_page_results": "<value>", "more_posts": "<value>", "more_users": "<value>", "post_ids": [], "search_log_id": 263492, "tag_ids": [], "term": "<value>", "user_ids": []}, "groups": [], "posts": [], "tags": [], "users": []}
|
||||||
createTagGroup:
|
createTagGroup:
|
||||||
speakeasy-default-create-tag-group: {}
|
speakeasy-default-create-tag-group:
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"tag_group": {"id": 10533, "name": "<value>", "one_per_topic": true, "parent_tag_name": [], "tag_names": []}}
|
||||||
getTag:
|
getTag:
|
||||||
speakeasy-default-get-tag:
|
speakeasy-default-get-tag:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -1133,10 +1256,16 @@ examples:
|
|||||||
speakeasy-default-complete-external-upload:
|
speakeasy-default-complete-external-upload:
|
||||||
requestBody:
|
requestBody:
|
||||||
application/json: {"for_private_message": "true", "for_site_setting": "true", "pasted": "true", "unique_identifier": "66e86218-80d9-4bda-b4d5-2b6def968705"}
|
application/json: {"for_private_message": "true", "for_site_setting": "true", "pasted": "true", "unique_identifier": "66e86218-80d9-4bda-b4d5-2b6def968705"}
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"extension": "png", "filesize": 655183, "height": 19001, "human_filesize": "<value>", "id": 511225, "original_filename": "<value>", "retain_hours": "<value>", "short_path": "<value>", "short_url": "<value>", "thumbnail_height": 131321, "thumbnail_width": 995440, "url": "https://aggressive-watch.net", "width": 41079}
|
||||||
completeMultipart:
|
completeMultipart:
|
||||||
speakeasy-default-complete-multipart:
|
speakeasy-default-complete-multipart:
|
||||||
requestBody:
|
requestBody:
|
||||||
application/json: {"parts": [{"part_number": 1, "etag": "0c376dcfcc2606f4335bbc732de93344"}, {"part_number": 2, "etag": "09ert8cfcc2606f4335bbc732de91122"}], "unique_identifier": "66e86218-80d9-4bda-b4d5-2b6def968705"}
|
application/json: {"parts": [{"part_number": 1, "etag": "0c376dcfcc2606f4335bbc732de93344"}, {"part_number": 2, "etag": "09ert8cfcc2606f4335bbc732de91122"}], "unique_identifier": "66e86218-80d9-4bda-b4d5-2b6def968705"}
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"extension": "pdf", "filesize": 349952, "height": 720712, "human_filesize": "<value>", "id": 849047, "original_filename": "<value>", "retain_hours": "<value>", "short_path": "<value>", "short_url": "<value>", "thumbnail_height": 230034, "thumbnail_width": 233676, "url": "http://everlasting-clearance.com", "width": 492751}
|
||||||
createMultipartUpload:
|
createMultipartUpload:
|
||||||
speakeasy-default-create-multipart-upload:
|
speakeasy-default-create-multipart-upload:
|
||||||
requestBody:
|
requestBody:
|
||||||
@@ -1145,7 +1274,10 @@ examples:
|
|||||||
"200":
|
"200":
|
||||||
application/json: {"external_upload_identifier": "84x83tmxy398t3y._Q_z8CoJYVr69bE6D7f8J6Oo0434QquLFoYdGVerWFx9X5HDEI_TP_95c34n853495x35345394.d.ghQ", "key": "temp/site/uploads/default/12345/67890.jpg", "unique_identifier": "66e86218-80d9-4bda-b4d5-2b6def968705"}
|
application/json: {"external_upload_identifier": "84x83tmxy398t3y._Q_z8CoJYVr69bE6D7f8J6Oo0434QquLFoYdGVerWFx9X5HDEI_TP_95c34n853495x35345394.d.ghQ", "key": "temp/site/uploads/default/12345/67890.jpg", "unique_identifier": "66e86218-80d9-4bda-b4d5-2b6def968705"}
|
||||||
createUpload:
|
createUpload:
|
||||||
speakeasy-default-create-upload: {}
|
speakeasy-default-create-upload:
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"extension": "wav", "filesize": 630853, "height": 272980, "human_filesize": "<value>", "id": 541628, "original_filename": "<value>", "retain_hours": "<value>", "short_path": "<value>", "short_url": "<value>", "thumbnail_height": 676159, "thumbnail_width": 904119, "url": "http://well-lit-physics.com", "width": 942703}
|
||||||
generatePresignedPut:
|
generatePresignedPut:
|
||||||
speakeasy-default-generate-presigned-put:
|
speakeasy-default-generate-presigned-put:
|
||||||
requestBody:
|
requestBody:
|
||||||
|
|||||||
@@ -315,7 +315,7 @@ async function run() {
|
|||||||
console.log(result);
|
console.log(result);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case err instanceof SDKValidationError: {
|
case (err instanceof SDKValidationError): {
|
||||||
// Validation errors can be pretty-printed
|
// Validation errors can be pretty-printed
|
||||||
console.error(err.pretty());
|
console.error(err.pretty());
|
||||||
// Raw value may also be inspected
|
// Raw value may also be inspected
|
||||||
|
|||||||
10
RELEASES.md
10
RELEASES.md
@@ -279,3 +279,13 @@ Based on:
|
|||||||
- [typescript v0.8.2] .
|
- [typescript v0.8.2] .
|
||||||
### Releases
|
### Releases
|
||||||
- [NPM v0.8.2] https://www.npmjs.com/package/@lukehagar/discoursejs/v/0.8.2 - .
|
- [NPM v0.8.2] https://www.npmjs.com/package/@lukehagar/discoursejs/v/0.8.2 - .
|
||||||
|
|
||||||
|
## 2024-09-10 00:24:11
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc latest
|
||||||
|
- Speakeasy CLI 1.394.0 (2.413.0) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.9.0] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.9.0] https://www.npmjs.com/package/@lukehagar/discoursejs/v/0.9.0 - .
|
||||||
@@ -8,9 +8,13 @@ success response
|
|||||||
import { AddGroupMembersResponseBody } from "@lukehagar/discoursejs/sdk/models/operations";
|
import { AddGroupMembersResponseBody } from "@lukehagar/discoursejs/sdk/models/operations";
|
||||||
|
|
||||||
let value: AddGroupMembersResponseBody = {
|
let value: AddGroupMembersResponseBody = {
|
||||||
emails: ["<value>"],
|
emails: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
success: "<value>",
|
success: "<value>",
|
||||||
usernames: ["<value>"],
|
usernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -6,10 +6,18 @@
|
|||||||
import { AdminBadges } from "@lukehagar/discoursejs/sdk/models/operations";
|
import { AdminBadges } from "@lukehagar/discoursejs/sdk/models/operations";
|
||||||
|
|
||||||
let value: AdminBadges = {
|
let value: AdminBadges = {
|
||||||
badgeGroupingIds: ["<value>"],
|
badgeGroupingIds: [
|
||||||
badgeIds: ["<value>"],
|
"<value>",
|
||||||
badgeTypeIds: ["<value>"],
|
],
|
||||||
protectedSystemFields: ["<value>"],
|
badgeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
badgeTypeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
protectedSystemFields: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
triggers: {
|
triggers: {
|
||||||
none: 544883,
|
none: 544883,
|
||||||
postAction: 847252,
|
postAction: 847252,
|
||||||
|
|||||||
@@ -9,10 +9,18 @@ import { AdminListBadgesResponseBody } from "@lukehagar/discoursejs/sdk/models/o
|
|||||||
|
|
||||||
let value: AdminListBadgesResponseBody = {
|
let value: AdminListBadgesResponseBody = {
|
||||||
adminBadges: {
|
adminBadges: {
|
||||||
badgeGroupingIds: ["<value>"],
|
badgeGroupingIds: [
|
||||||
badgeIds: ["<value>"],
|
"<value>",
|
||||||
badgeTypeIds: ["<value>"],
|
],
|
||||||
protectedSystemFields: ["<value>"],
|
badgeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
badgeTypeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
protectedSystemFields: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
triggers: {
|
triggers: {
|
||||||
none: 925597,
|
none: 925597,
|
||||||
postAction: 836079,
|
postAction: 836079,
|
||||||
|
|||||||
@@ -8,7 +8,9 @@ import { Archetypes } from "@lukehagar/discoursejs/sdk/models/operations";
|
|||||||
let value: Archetypes = {
|
let value: Archetypes = {
|
||||||
id: "<id>",
|
id: "<id>",
|
||||||
name: "<value>",
|
name: "<value>",
|
||||||
options: ["<value>"],
|
options: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,11 @@
|
|||||||
import { BatchPresignMultipartPartsRequestBody } from "@lukehagar/discoursejs/sdk/models/operations";
|
import { BatchPresignMultipartPartsRequestBody } from "@lukehagar/discoursejs/sdk/models/operations";
|
||||||
|
|
||||||
let value: BatchPresignMultipartPartsRequestBody = {
|
let value: BatchPresignMultipartPartsRequestBody = {
|
||||||
partNumbers: [1, 2, 3],
|
partNumbers: [
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
3,
|
||||||
|
],
|
||||||
uniqueIdentifier: "66e86218-80d9-4bda-b4d5-2b6def968705",
|
uniqueIdentifier: "66e86218-80d9-4bda-b4d5-2b6def968705",
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -29,7 +29,9 @@ let value: Categories = {
|
|||||||
slug: "<value>",
|
slug: "<value>",
|
||||||
sortAscending: "<value>",
|
sortAscending: "<value>",
|
||||||
sortOrder: "<value>",
|
sortOrder: "<value>",
|
||||||
subcategoryIds: ["<value>"],
|
subcategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
subcategoryListStyle: "<value>",
|
subcategoryListStyle: "<value>",
|
||||||
textColor: "<value>",
|
textColor: "<value>",
|
||||||
topicCount: 96562,
|
topicCount: 96562,
|
||||||
|
|||||||
@@ -11,7 +11,9 @@ let value: Category = {
|
|||||||
allowUnlimitedOwnerEditsOnFirstPost: false,
|
allowUnlimitedOwnerEditsOnFirstPost: false,
|
||||||
autoCloseBasedOnLastPost: false,
|
autoCloseBasedOnLastPost: false,
|
||||||
autoCloseHours: "<value>",
|
autoCloseHours: "<value>",
|
||||||
availableGroups: ["<value>"],
|
availableGroups: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
canDelete: false,
|
canDelete: false,
|
||||||
canEdit: false,
|
canEdit: false,
|
||||||
color: "gold",
|
color: "gold",
|
||||||
|
|||||||
@@ -33,7 +33,9 @@ let value: CategoryList = {
|
|||||||
slug: "<value>",
|
slug: "<value>",
|
||||||
sortAscending: "<value>",
|
sortAscending: "<value>",
|
||||||
sortOrder: "<value>",
|
sortOrder: "<value>",
|
||||||
subcategoryIds: ["<value>"],
|
subcategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
subcategoryListStyle: "<value>",
|
subcategoryListStyle: "<value>",
|
||||||
textColor: "<value>",
|
textColor: "<value>",
|
||||||
topicCount: 857125,
|
topicCount: 857125,
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ import { CompleteMultipartRequestBody } from "@lukehagar/discoursejs/sdk/models/
|
|||||||
let value: CompleteMultipartRequestBody = {
|
let value: CompleteMultipartRequestBody = {
|
||||||
parts: [
|
parts: [
|
||||||
{
|
{
|
||||||
part_number: 1,
|
"part_number": 1,
|
||||||
etag: "0c376dcfcc2606f4335bbc732de93344",
|
"etag": "0c376dcfcc2606f4335bbc732de93344",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
part_number: 2,
|
"part_number": 2,
|
||||||
etag: "09ert8cfcc2606f4335bbc732de91122",
|
"etag": "09ert8cfcc2606f4335bbc732de91122",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
uniqueIdentifier: "66e86218-80d9-4bda-b4d5-2b6def968705",
|
uniqueIdentifier: "66e86218-80d9-4bda-b4d5-2b6def968705",
|
||||||
|
|||||||
@@ -14,7 +14,9 @@ let value: CreateCategoryResponseBody = {
|
|||||||
allowUnlimitedOwnerEditsOnFirstPost: false,
|
allowUnlimitedOwnerEditsOnFirstPost: false,
|
||||||
autoCloseBasedOnLastPost: false,
|
autoCloseBasedOnLastPost: false,
|
||||||
autoCloseHours: "<value>",
|
autoCloseHours: "<value>",
|
||||||
availableGroups: ["<value>"],
|
availableGroups: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
canDelete: false,
|
canDelete: false,
|
||||||
canEdit: false,
|
canEdit: false,
|
||||||
color: "gold",
|
color: "gold",
|
||||||
|
|||||||
@@ -14,10 +14,14 @@ let value: CreateInviteResponseBody = {
|
|||||||
emailed: false,
|
emailed: false,
|
||||||
expired: false,
|
expired: false,
|
||||||
expiresAt: "2021-02-01T12:00:00.000Z",
|
expiresAt: "2021-02-01T12:00:00.000Z",
|
||||||
groups: ["<value>"],
|
groups: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
id: 42,
|
id: 42,
|
||||||
link: "http://example.com/invites/9045fd767efe201ca60c6658bcf14158",
|
link: "http://example.com/invites/9045fd767efe201ca60c6658bcf14158",
|
||||||
topics: ["<value>"],
|
topics: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
updatedAt: "2021-01-01T12:00:00.000Z",
|
updatedAt: "2021-01-01T12:00:00.000Z",
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -12,9 +12,13 @@ let value: CreateTagGroupResponseBody = {
|
|||||||
id: 978173,
|
id: 978173,
|
||||||
name: "<value>",
|
name: "<value>",
|
||||||
onePerTopic: false,
|
onePerTopic: false,
|
||||||
parentTagName: ["<value>"],
|
parentTagName: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
permissions: {},
|
permissions: {},
|
||||||
tagNames: ["<value>"],
|
tagNames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -6,7 +6,9 @@
|
|||||||
import { Extras } from "@lukehagar/discoursejs/sdk/models/operations";
|
import { Extras } from "@lukehagar/discoursejs/sdk/models/operations";
|
||||||
|
|
||||||
let value: Extras = {
|
let value: Extras = {
|
||||||
visibleGroupNames: ["<value>"],
|
visibleGroupNames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,8 @@ let value: GeneratePresignedPutResponseBody = {
|
|||||||
key: "temp/site/uploads/default/12345/67890.jpg",
|
key: "temp/site/uploads/default/12345/67890.jpg",
|
||||||
signedHeaders: {},
|
signedHeaders: {},
|
||||||
uniqueIdentifier: "66e86218-80d9-4bda-b4d5-2b6def968705",
|
uniqueIdentifier: "66e86218-80d9-4bda-b4d5-2b6def968705",
|
||||||
url: "https://file-uploads.s3.us-west-2.amazonaws.com/temp/site/uploads/default/123/456.jpg?x-amz-acl=private&x-amz-meta-sha1-checksum=sha1&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AAAAus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20211221T011246Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=12345678",
|
url:
|
||||||
|
"https://file-uploads.s3.us-west-2.amazonaws.com/temp/site/uploads/default/123/456.jpg?x-amz-acl=private&x-amz-meta-sha1-checksum=sha1&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AAAAus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20211221T011246Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=12345678",
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,9 @@ let value: GetCategoryCategory = {
|
|||||||
allowUnlimitedOwnerEditsOnFirstPost: false,
|
allowUnlimitedOwnerEditsOnFirstPost: false,
|
||||||
autoCloseBasedOnLastPost: false,
|
autoCloseBasedOnLastPost: false,
|
||||||
autoCloseHours: "<value>",
|
autoCloseHours: "<value>",
|
||||||
availableGroups: ["<value>"],
|
availableGroups: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
canDelete: false,
|
canDelete: false,
|
||||||
canEdit: false,
|
canEdit: false,
|
||||||
color: "orchid",
|
color: "orchid",
|
||||||
|
|||||||
@@ -14,7 +14,9 @@ let value: GetCategoryResponseBody = {
|
|||||||
allowUnlimitedOwnerEditsOnFirstPost: false,
|
allowUnlimitedOwnerEditsOnFirstPost: false,
|
||||||
autoCloseBasedOnLastPost: false,
|
autoCloseBasedOnLastPost: false,
|
||||||
autoCloseHours: "<value>",
|
autoCloseHours: "<value>",
|
||||||
availableGroups: ["<value>"],
|
availableGroups: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
canDelete: false,
|
canDelete: false,
|
||||||
canEdit: false,
|
canEdit: false,
|
||||||
color: "green",
|
color: "green",
|
||||||
|
|||||||
@@ -27,7 +27,9 @@ let value: GetGroupGroup = {
|
|||||||
id: 451159,
|
id: 451159,
|
||||||
imapLastError: "<value>",
|
imapLastError: "<value>",
|
||||||
imapMailboxName: "<value>",
|
imapMailboxName: "<value>",
|
||||||
imapMailboxes: ["<value>"],
|
imapMailboxes: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
imapNewEmails: "<value>",
|
imapNewEmails: "<value>",
|
||||||
imapOldEmails: "<value>",
|
imapOldEmails: "<value>",
|
||||||
imapPort: "<value>",
|
imapPort: "<value>",
|
||||||
@@ -43,22 +45,32 @@ let value: GetGroupGroup = {
|
|||||||
messageCount: 39187,
|
messageCount: 39187,
|
||||||
messageable: false,
|
messageable: false,
|
||||||
messageableLevel: 441711,
|
messageableLevel: 441711,
|
||||||
mutedCategoryIds: ["<value>"],
|
mutedCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
name: "<value>",
|
name: "<value>",
|
||||||
primaryGroup: false,
|
primaryGroup: false,
|
||||||
publicAdmission: false,
|
publicAdmission: false,
|
||||||
publicExit: false,
|
publicExit: false,
|
||||||
publishReadState: false,
|
publishReadState: false,
|
||||||
regularCategoryIds: ["<value>"],
|
regularCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
smtpPort: "<value>",
|
smtpPort: "<value>",
|
||||||
smtpServer: "<value>",
|
smtpServer: "<value>",
|
||||||
smtpSsl: "<value>",
|
smtpSsl: "<value>",
|
||||||
title: "<value>",
|
title: "<value>",
|
||||||
trackingCategoryIds: ["<value>"],
|
trackingCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
userCount: 282807,
|
userCount: 282807,
|
||||||
visibilityLevel: 979587,
|
visibilityLevel: 979587,
|
||||||
watchingCategoryIds: ["<value>"],
|
watchingCategoryIds: [
|
||||||
watchingFirstPostCategoryIds: ["<value>"],
|
"<value>",
|
||||||
|
],
|
||||||
|
watchingFirstPostCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,9 @@ import { GetGroupResponseBody } from "@lukehagar/discoursejs/sdk/models/operatio
|
|||||||
|
|
||||||
let value: GetGroupResponseBody = {
|
let value: GetGroupResponseBody = {
|
||||||
extras: {
|
extras: {
|
||||||
visibleGroupNames: ["<value>"],
|
visibleGroupNames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
group: {
|
group: {
|
||||||
allowMembershipRequests: false,
|
allowMembershipRequests: false,
|
||||||
@@ -33,7 +35,9 @@ let value: GetGroupResponseBody = {
|
|||||||
id: 880476,
|
id: 880476,
|
||||||
imapLastError: "<value>",
|
imapLastError: "<value>",
|
||||||
imapMailboxName: "<value>",
|
imapMailboxName: "<value>",
|
||||||
imapMailboxes: ["<value>"],
|
imapMailboxes: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
imapNewEmails: "<value>",
|
imapNewEmails: "<value>",
|
||||||
imapOldEmails: "<value>",
|
imapOldEmails: "<value>",
|
||||||
imapPort: "<value>",
|
imapPort: "<value>",
|
||||||
@@ -49,22 +53,32 @@ let value: GetGroupResponseBody = {
|
|||||||
messageCount: 64147,
|
messageCount: 64147,
|
||||||
messageable: false,
|
messageable: false,
|
||||||
messageableLevel: 216822,
|
messageableLevel: 216822,
|
||||||
mutedCategoryIds: ["<value>"],
|
mutedCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
name: "<value>",
|
name: "<value>",
|
||||||
primaryGroup: false,
|
primaryGroup: false,
|
||||||
publicAdmission: false,
|
publicAdmission: false,
|
||||||
publicExit: false,
|
publicExit: false,
|
||||||
publishReadState: false,
|
publishReadState: false,
|
||||||
regularCategoryIds: ["<value>"],
|
regularCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
smtpPort: "<value>",
|
smtpPort: "<value>",
|
||||||
smtpServer: "<value>",
|
smtpServer: "<value>",
|
||||||
smtpSsl: "<value>",
|
smtpSsl: "<value>",
|
||||||
title: "<value>",
|
title: "<value>",
|
||||||
trackingCategoryIds: ["<value>"],
|
trackingCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
userCount: 692472,
|
userCount: 692472,
|
||||||
visibilityLevel: 565189,
|
visibilityLevel: 565189,
|
||||||
watchingCategoryIds: ["<value>"],
|
watchingCategoryIds: [
|
||||||
watchingFirstPostCategoryIds: ["<value>"],
|
"<value>",
|
||||||
|
],
|
||||||
|
watchingFirstPostCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -7,8 +7,12 @@ import { GetSiteCategories } from "@lukehagar/discoursejs/sdk/models/operations"
|
|||||||
|
|
||||||
let value: GetSiteCategories = {
|
let value: GetSiteCategories = {
|
||||||
allowGlobalTags: false,
|
allowGlobalTags: false,
|
||||||
allowedTagGroups: ["<value>"],
|
allowedTagGroups: [
|
||||||
allowedTags: ["<value>"],
|
"<value>",
|
||||||
|
],
|
||||||
|
allowedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
canEdit: false,
|
canEdit: false,
|
||||||
color: "azure",
|
color: "azure",
|
||||||
defaultListFilter: "<value>",
|
defaultListFilter: "<value>",
|
||||||
|
|||||||
@@ -8,23 +8,33 @@ success response
|
|||||||
import { GetSiteResponseBody } from "@lukehagar/discoursejs/sdk/models/operations";
|
import { GetSiteResponseBody } from "@lukehagar/discoursejs/sdk/models/operations";
|
||||||
|
|
||||||
let value: GetSiteResponseBody = {
|
let value: GetSiteResponseBody = {
|
||||||
anonymousTopMenuItems: ["<value>"],
|
anonymousTopMenuItems: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
archetypes: [
|
archetypes: [
|
||||||
{
|
{
|
||||||
id: "<id>",
|
id: "<id>",
|
||||||
name: "<value>",
|
name: "<value>",
|
||||||
options: ["<value>"],
|
options: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
authProviders: ["<value>"],
|
authProviders: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
canCreateTag: false,
|
canCreateTag: false,
|
||||||
canTagPms: false,
|
canTagPms: false,
|
||||||
canTagTopics: false,
|
canTagTopics: false,
|
||||||
categories: [
|
categories: [
|
||||||
{
|
{
|
||||||
allowGlobalTags: false,
|
allowGlobalTags: false,
|
||||||
allowedTagGroups: ["<value>"],
|
allowedTagGroups: [
|
||||||
allowedTags: ["<value>"],
|
"<value>",
|
||||||
|
],
|
||||||
|
allowedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
canEdit: false,
|
canEdit: false,
|
||||||
color: "yellow",
|
color: "yellow",
|
||||||
defaultListFilter: "<value>",
|
defaultListFilter: "<value>",
|
||||||
@@ -63,11 +73,15 @@ let value: GetSiteResponseBody = {
|
|||||||
uploadedLogoDark: "<value>",
|
uploadedLogoDark: "<value>",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
censoredRegexp: [{}],
|
censoredRegexp: [
|
||||||
|
{},
|
||||||
|
],
|
||||||
customEmojiTranslation: {},
|
customEmojiTranslation: {},
|
||||||
defaultArchetype: "<value>",
|
defaultArchetype: "<value>",
|
||||||
defaultDarkColorScheme: {},
|
defaultDarkColorScheme: {},
|
||||||
filters: ["<value>"],
|
filters: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
groups: [
|
groups: [
|
||||||
{
|
{
|
||||||
flairBgColor: "<value>",
|
flairBgColor: "<value>",
|
||||||
@@ -112,7 +126,9 @@ let value: GetSiteResponseBody = {
|
|||||||
watchingCategoryOrTag: 958741,
|
watchingCategoryOrTag: 958741,
|
||||||
watchingFirstPost: 433279,
|
watchingFirstPost: 433279,
|
||||||
},
|
},
|
||||||
periods: ["<value>"],
|
periods: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
postActionTypes: [
|
postActionTypes: [
|
||||||
{
|
{
|
||||||
description: "Cross-group eco-centric array",
|
description: "Cross-group eco-centric array",
|
||||||
@@ -131,9 +147,15 @@ let value: GetSiteResponseBody = {
|
|||||||
whisper: 940782,
|
whisper: 940782,
|
||||||
},
|
},
|
||||||
tagsFilterRegexp: "<value>",
|
tagsFilterRegexp: "<value>",
|
||||||
topMenuItems: ["<value>"],
|
topMenuItems: [
|
||||||
topTags: ["<value>"],
|
"<value>",
|
||||||
topicFeaturedLinkAllowedCategoryIds: ["<value>"],
|
],
|
||||||
|
topTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
topicFeaturedLinkAllowedCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
topicFlagTypes: [
|
topicFlagTypes: [
|
||||||
{
|
{
|
||||||
description: "Switchable 6th generation task-force",
|
description: "Switchable 6th generation task-force",
|
||||||
@@ -161,7 +183,9 @@ let value: GetSiteResponseBody = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
userFieldMaxLength: 764995,
|
userFieldMaxLength: 764995,
|
||||||
userFields: ["<value>"],
|
userFields: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
userThemes: [
|
userThemes: [
|
||||||
{
|
{
|
||||||
colorSchemeId: 684935,
|
colorSchemeId: 684935,
|
||||||
|
|||||||
@@ -19,7 +19,9 @@ let value: GetTopicResponseBody = {
|
|||||||
archetype: "<value>",
|
archetype: "<value>",
|
||||||
archived: false,
|
archived: false,
|
||||||
bookmarked: false,
|
bookmarked: false,
|
||||||
bookmarks: ["<value>"],
|
bookmarks: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
categoryId: 975425,
|
categoryId: 975425,
|
||||||
chunkSize: 156383,
|
chunkSize: 156383,
|
||||||
closed: false,
|
closed: false,
|
||||||
@@ -142,7 +144,9 @@ let value: GetTopicResponseBody = {
|
|||||||
yours: false,
|
yours: false,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
stream: ["<value>"],
|
stream: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
postsCount: 897543,
|
postsCount: 897543,
|
||||||
replyCount: 654082,
|
replyCount: 654082,
|
||||||
@@ -185,7 +189,9 @@ let value: GetTopicResponseBody = {
|
|||||||
postsCount: 322017,
|
postsCount: 322017,
|
||||||
replyCount: 183033,
|
replyCount: 183033,
|
||||||
slug: "<value>",
|
slug: "<value>",
|
||||||
tags: ["<value>"],
|
tags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
tagsDescriptions: {},
|
tagsDescriptions: {},
|
||||||
title: "<value>",
|
title: "<value>",
|
||||||
unpinned: "<value>",
|
unpinned: "<value>",
|
||||||
@@ -195,10 +201,14 @@ let value: GetTopicResponseBody = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
summarizable: false,
|
summarizable: false,
|
||||||
tags: ["<value>"],
|
tags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
tagsDescriptions: {},
|
tagsDescriptions: {},
|
||||||
thumbnails: "<value>",
|
thumbnails: "<value>",
|
||||||
timelineLookup: ["<value>"],
|
timelineLookup: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
title: "<value>",
|
title: "<value>",
|
||||||
topicTimer: "<value>",
|
topicTimer: "<value>",
|
||||||
unpinned: "<value>",
|
unpinned: "<value>",
|
||||||
|
|||||||
@@ -8,10 +8,16 @@ success response
|
|||||||
import { GetUserEmailsResponseBody } from "@lukehagar/discoursejs/sdk/models/operations";
|
import { GetUserEmailsResponseBody } from "@lukehagar/discoursejs/sdk/models/operations";
|
||||||
|
|
||||||
let value: GetUserEmailsResponseBody = {
|
let value: GetUserEmailsResponseBody = {
|
||||||
associatedAccounts: ["<value>"],
|
associatedAccounts: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
email: "Flossie.Hartmann@hotmail.com",
|
email: "Flossie.Hartmann@hotmail.com",
|
||||||
secondaryEmails: ["<value>"],
|
secondaryEmails: [
|
||||||
unconfirmedEmails: ["<value>"],
|
"<value>",
|
||||||
|
],
|
||||||
|
unconfirmedEmails: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,9 @@ import { GetUserExternalIdResponseBody } from "@lukehagar/discoursejs/sdk/models
|
|||||||
let value: GetUserExternalIdResponseBody = {
|
let value: GetUserExternalIdResponseBody = {
|
||||||
user: {
|
user: {
|
||||||
admin: false,
|
admin: false,
|
||||||
allowedPmUsernames: ["<value>"],
|
allowedPmUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
avatarTemplate: "<value>",
|
avatarTemplate: "<value>",
|
||||||
badgeCount: 147014,
|
badgeCount: 147014,
|
||||||
canBeDeleted: false,
|
canBeDeleted: false,
|
||||||
@@ -32,7 +34,9 @@ let value: GetUserExternalIdResponseBody = {
|
|||||||
createdAt: "<value>",
|
createdAt: "<value>",
|
||||||
customFields: {},
|
customFields: {},
|
||||||
featuredTopic: "<value>",
|
featuredTopic: "<value>",
|
||||||
featuredUserBadgeIds: ["<value>"],
|
featuredUserBadgeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
flairBgColor: "<value>",
|
flairBgColor: "<value>",
|
||||||
flairColor: "<value>",
|
flairColor: "<value>",
|
||||||
flairGroupId: "<value>",
|
flairGroupId: "<value>",
|
||||||
@@ -81,7 +85,9 @@ let value: GetUserExternalIdResponseBody = {
|
|||||||
hasTitleBadges: false,
|
hasTitleBadges: false,
|
||||||
id: 690025,
|
id: 690025,
|
||||||
ignored: false,
|
ignored: false,
|
||||||
ignoredUsernames: ["<value>"],
|
ignoredUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
invitedBy: "<value>",
|
invitedBy: "<value>",
|
||||||
lastPostedAt: "<value>",
|
lastPostedAt: "<value>",
|
||||||
lastSeenAt: "<value>",
|
lastSeenAt: "<value>",
|
||||||
@@ -89,9 +95,15 @@ let value: GetUserExternalIdResponseBody = {
|
|||||||
mailingListPostsPerDay: 699622,
|
mailingListPostsPerDay: 699622,
|
||||||
moderator: false,
|
moderator: false,
|
||||||
muted: false,
|
muted: false,
|
||||||
mutedCategoryIds: ["<value>"],
|
mutedCategoryIds: [
|
||||||
mutedTags: ["<value>"],
|
"<value>",
|
||||||
mutedUsernames: ["<value>"],
|
],
|
||||||
|
mutedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
mutedUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
name: "<value>",
|
name: "<value>",
|
||||||
pendingCount: 580197,
|
pendingCount: 580197,
|
||||||
postCount: 327720,
|
postCount: 327720,
|
||||||
@@ -99,15 +111,21 @@ let value: GetUserExternalIdResponseBody = {
|
|||||||
primaryGroupName: "<value>",
|
primaryGroupName: "<value>",
|
||||||
profileViewCount: 716244,
|
profileViewCount: 716244,
|
||||||
recentTimeRead: 756779,
|
recentTimeRead: 756779,
|
||||||
regularCategoryIds: ["<value>"],
|
regularCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
secondFactorEnabled: false,
|
secondFactorEnabled: false,
|
||||||
staged: false,
|
staged: false,
|
||||||
systemAvatarTemplate: "<value>",
|
systemAvatarTemplate: "<value>",
|
||||||
systemAvatarUploadId: "<value>",
|
systemAvatarUploadId: "<value>",
|
||||||
timeRead: 27069,
|
timeRead: 27069,
|
||||||
title: "<value>",
|
title: "<value>",
|
||||||
trackedCategoryIds: ["<value>"],
|
trackedCategoryIds: [
|
||||||
trackedTags: ["<value>"],
|
"<value>",
|
||||||
|
],
|
||||||
|
trackedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
trustLevel: 636061,
|
trustLevel: 636061,
|
||||||
uploadedAvatarId: "<value>",
|
uploadedAvatarId: "<value>",
|
||||||
useLogoSmallAsAvatar: false,
|
useLogoSmallAsAvatar: false,
|
||||||
@@ -171,19 +189,31 @@ let value: GetUserExternalIdResponseBody = {
|
|||||||
skipNewUserTips: false,
|
skipNewUserTips: false,
|
||||||
textSize: "<value>",
|
textSize: "<value>",
|
||||||
textSizeSeq: 992430,
|
textSizeSeq: 992430,
|
||||||
themeIds: ["<value>"],
|
themeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
themeKeySeq: 815524,
|
themeKeySeq: 815524,
|
||||||
timezone: "America/Chicago",
|
timezone: "America/Chicago",
|
||||||
titleCountMode: "<value>",
|
titleCountMode: "<value>",
|
||||||
userId: 159414,
|
userId: 159414,
|
||||||
},
|
},
|
||||||
username: "Aurelie.Murphy",
|
username: "Aurelie.Murphy",
|
||||||
watchedCategoryIds: ["<value>"],
|
watchedCategoryIds: [
|
||||||
watchedFirstPostCategoryIds: ["<value>"],
|
"<value>",
|
||||||
watchedTags: ["<value>"],
|
],
|
||||||
watchingFirstPostTags: ["<value>"],
|
watchedFirstPostCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
watchedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
watchingFirstPostTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
userBadges: ["<value>"],
|
userBadges: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,9 @@ import { GetUserExternalIdUser } from "@lukehagar/discoursejs/sdk/models/operati
|
|||||||
|
|
||||||
let value: GetUserExternalIdUser = {
|
let value: GetUserExternalIdUser = {
|
||||||
admin: false,
|
admin: false,
|
||||||
allowedPmUsernames: ["<value>"],
|
allowedPmUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
avatarTemplate: "<value>",
|
avatarTemplate: "<value>",
|
||||||
badgeCount: 852635,
|
badgeCount: 852635,
|
||||||
canBeDeleted: false,
|
canBeDeleted: false,
|
||||||
@@ -29,7 +31,9 @@ let value: GetUserExternalIdUser = {
|
|||||||
createdAt: "<value>",
|
createdAt: "<value>",
|
||||||
customFields: {},
|
customFields: {},
|
||||||
featuredTopic: "<value>",
|
featuredTopic: "<value>",
|
||||||
featuredUserBadgeIds: ["<value>"],
|
featuredUserBadgeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
flairBgColor: "<value>",
|
flairBgColor: "<value>",
|
||||||
flairColor: "<value>",
|
flairColor: "<value>",
|
||||||
flairGroupId: "<value>",
|
flairGroupId: "<value>",
|
||||||
@@ -78,7 +82,9 @@ let value: GetUserExternalIdUser = {
|
|||||||
hasTitleBadges: false,
|
hasTitleBadges: false,
|
||||||
id: 587600,
|
id: 587600,
|
||||||
ignored: false,
|
ignored: false,
|
||||||
ignoredUsernames: ["<value>"],
|
ignoredUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
invitedBy: "<value>",
|
invitedBy: "<value>",
|
||||||
lastPostedAt: "<value>",
|
lastPostedAt: "<value>",
|
||||||
lastSeenAt: "<value>",
|
lastSeenAt: "<value>",
|
||||||
@@ -86,9 +92,15 @@ let value: GetUserExternalIdUser = {
|
|||||||
mailingListPostsPerDay: 272822,
|
mailingListPostsPerDay: 272822,
|
||||||
moderator: false,
|
moderator: false,
|
||||||
muted: false,
|
muted: false,
|
||||||
mutedCategoryIds: ["<value>"],
|
mutedCategoryIds: [
|
||||||
mutedTags: ["<value>"],
|
"<value>",
|
||||||
mutedUsernames: ["<value>"],
|
],
|
||||||
|
mutedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
mutedUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
name: "<value>",
|
name: "<value>",
|
||||||
pendingCount: 892050,
|
pendingCount: 892050,
|
||||||
postCount: 370853,
|
postCount: 370853,
|
||||||
@@ -96,15 +108,21 @@ let value: GetUserExternalIdUser = {
|
|||||||
primaryGroupName: "<value>",
|
primaryGroupName: "<value>",
|
||||||
profileViewCount: 133465,
|
profileViewCount: 133465,
|
||||||
recentTimeRead: 197054,
|
recentTimeRead: 197054,
|
||||||
regularCategoryIds: ["<value>"],
|
regularCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
secondFactorEnabled: false,
|
secondFactorEnabled: false,
|
||||||
staged: false,
|
staged: false,
|
||||||
systemAvatarTemplate: "<value>",
|
systemAvatarTemplate: "<value>",
|
||||||
systemAvatarUploadId: "<value>",
|
systemAvatarUploadId: "<value>",
|
||||||
timeRead: 779192,
|
timeRead: 779192,
|
||||||
title: "<value>",
|
title: "<value>",
|
||||||
trackedCategoryIds: ["<value>"],
|
trackedCategoryIds: [
|
||||||
trackedTags: ["<value>"],
|
"<value>",
|
||||||
|
],
|
||||||
|
trackedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
trustLevel: 459856,
|
trustLevel: 459856,
|
||||||
uploadedAvatarId: "<value>",
|
uploadedAvatarId: "<value>",
|
||||||
useLogoSmallAsAvatar: false,
|
useLogoSmallAsAvatar: false,
|
||||||
@@ -168,17 +186,27 @@ let value: GetUserExternalIdUser = {
|
|||||||
skipNewUserTips: false,
|
skipNewUserTips: false,
|
||||||
textSize: "<value>",
|
textSize: "<value>",
|
||||||
textSizeSeq: 143829,
|
textSizeSeq: 143829,
|
||||||
themeIds: ["<value>"],
|
themeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
themeKeySeq: 681393,
|
themeKeySeq: 681393,
|
||||||
timezone: "Asia/Yekaterinburg",
|
timezone: "Asia/Yekaterinburg",
|
||||||
titleCountMode: "<value>",
|
titleCountMode: "<value>",
|
||||||
userId: 277596,
|
userId: 277596,
|
||||||
},
|
},
|
||||||
username: "Kameron39",
|
username: "Kameron39",
|
||||||
watchedCategoryIds: ["<value>"],
|
watchedCategoryIds: [
|
||||||
watchedFirstPostCategoryIds: ["<value>"],
|
"<value>",
|
||||||
watchedTags: ["<value>"],
|
],
|
||||||
watchingFirstPostTags: ["<value>"],
|
watchedFirstPostCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
watchedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
watchingFirstPostTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,9 @@ let value: GetUserExternalIdUserOption = {
|
|||||||
skipNewUserTips: false,
|
skipNewUserTips: false,
|
||||||
textSize: "<value>",
|
textSize: "<value>",
|
||||||
textSizeSeq: 524593,
|
textSizeSeq: 524593,
|
||||||
themeIds: ["<value>"],
|
themeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
themeKeySeq: 683282,
|
themeKeySeq: 683282,
|
||||||
timezone: "Africa/Algiers",
|
timezone: "Africa/Algiers",
|
||||||
titleCountMode: "<value>",
|
titleCountMode: "<value>",
|
||||||
|
|||||||
@@ -10,7 +10,9 @@ import { GetUserIdentiyProviderExternalIdResponseBody } from "@lukehagar/discour
|
|||||||
let value: GetUserIdentiyProviderExternalIdResponseBody = {
|
let value: GetUserIdentiyProviderExternalIdResponseBody = {
|
||||||
user: {
|
user: {
|
||||||
admin: false,
|
admin: false,
|
||||||
allowedPmUsernames: ["<value>"],
|
allowedPmUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
avatarTemplate: "<value>",
|
avatarTemplate: "<value>",
|
||||||
badgeCount: 348519,
|
badgeCount: 348519,
|
||||||
canBeDeleted: false,
|
canBeDeleted: false,
|
||||||
@@ -32,7 +34,9 @@ let value: GetUserIdentiyProviderExternalIdResponseBody = {
|
|||||||
createdAt: "<value>",
|
createdAt: "<value>",
|
||||||
customFields: {},
|
customFields: {},
|
||||||
featuredTopic: "<value>",
|
featuredTopic: "<value>",
|
||||||
featuredUserBadgeIds: ["<value>"],
|
featuredUserBadgeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
flairBgColor: "<value>",
|
flairBgColor: "<value>",
|
||||||
flairColor: "<value>",
|
flairColor: "<value>",
|
||||||
flairGroupId: "<value>",
|
flairGroupId: "<value>",
|
||||||
@@ -81,7 +85,9 @@ let value: GetUserIdentiyProviderExternalIdResponseBody = {
|
|||||||
hasTitleBadges: false,
|
hasTitleBadges: false,
|
||||||
id: 358107,
|
id: 358107,
|
||||||
ignored: false,
|
ignored: false,
|
||||||
ignoredUsernames: ["<value>"],
|
ignoredUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
invitedBy: "<value>",
|
invitedBy: "<value>",
|
||||||
lastPostedAt: "<value>",
|
lastPostedAt: "<value>",
|
||||||
lastSeenAt: "<value>",
|
lastSeenAt: "<value>",
|
||||||
@@ -89,9 +95,15 @@ let value: GetUserIdentiyProviderExternalIdResponseBody = {
|
|||||||
mailingListPostsPerDay: 385237,
|
mailingListPostsPerDay: 385237,
|
||||||
moderator: false,
|
moderator: false,
|
||||||
muted: false,
|
muted: false,
|
||||||
mutedCategoryIds: ["<value>"],
|
mutedCategoryIds: [
|
||||||
mutedTags: ["<value>"],
|
"<value>",
|
||||||
mutedUsernames: ["<value>"],
|
],
|
||||||
|
mutedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
mutedUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
name: "<value>",
|
name: "<value>",
|
||||||
pendingCount: 58356,
|
pendingCount: 58356,
|
||||||
postCount: 916727,
|
postCount: 916727,
|
||||||
@@ -99,15 +111,21 @@ let value: GetUserIdentiyProviderExternalIdResponseBody = {
|
|||||||
primaryGroupName: "<value>",
|
primaryGroupName: "<value>",
|
||||||
profileViewCount: 730709,
|
profileViewCount: 730709,
|
||||||
recentTimeRead: 113816,
|
recentTimeRead: 113816,
|
||||||
regularCategoryIds: ["<value>"],
|
regularCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
secondFactorEnabled: false,
|
secondFactorEnabled: false,
|
||||||
staged: false,
|
staged: false,
|
||||||
systemAvatarTemplate: "<value>",
|
systemAvatarTemplate: "<value>",
|
||||||
systemAvatarUploadId: "<value>",
|
systemAvatarUploadId: "<value>",
|
||||||
timeRead: 881721,
|
timeRead: 881721,
|
||||||
title: "<value>",
|
title: "<value>",
|
||||||
trackedCategoryIds: ["<value>"],
|
trackedCategoryIds: [
|
||||||
trackedTags: ["<value>"],
|
"<value>",
|
||||||
|
],
|
||||||
|
trackedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
trustLevel: 631126,
|
trustLevel: 631126,
|
||||||
uploadedAvatarId: "<value>",
|
uploadedAvatarId: "<value>",
|
||||||
useLogoSmallAsAvatar: false,
|
useLogoSmallAsAvatar: false,
|
||||||
@@ -171,19 +189,31 @@ let value: GetUserIdentiyProviderExternalIdResponseBody = {
|
|||||||
skipNewUserTips: false,
|
skipNewUserTips: false,
|
||||||
textSize: "<value>",
|
textSize: "<value>",
|
||||||
textSizeSeq: 633998,
|
textSizeSeq: 633998,
|
||||||
themeIds: ["<value>"],
|
themeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
themeKeySeq: 548519,
|
themeKeySeq: 548519,
|
||||||
timezone: "Australia/Adelaide",
|
timezone: "Australia/Adelaide",
|
||||||
titleCountMode: "<value>",
|
titleCountMode: "<value>",
|
||||||
userId: 519643,
|
userId: 519643,
|
||||||
},
|
},
|
||||||
username: "Tristian.Heidenreich69",
|
username: "Tristian.Heidenreich69",
|
||||||
watchedCategoryIds: ["<value>"],
|
watchedCategoryIds: [
|
||||||
watchedFirstPostCategoryIds: ["<value>"],
|
"<value>",
|
||||||
watchedTags: ["<value>"],
|
],
|
||||||
watchingFirstPostTags: ["<value>"],
|
watchedFirstPostCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
watchedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
watchingFirstPostTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
userBadges: ["<value>"],
|
userBadges: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,9 @@ import { GetUserIdentiyProviderExternalIdUser } from "@lukehagar/discoursejs/sdk
|
|||||||
|
|
||||||
let value: GetUserIdentiyProviderExternalIdUser = {
|
let value: GetUserIdentiyProviderExternalIdUser = {
|
||||||
admin: false,
|
admin: false,
|
||||||
allowedPmUsernames: ["<value>"],
|
allowedPmUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
avatarTemplate: "<value>",
|
avatarTemplate: "<value>",
|
||||||
badgeCount: 221161,
|
badgeCount: 221161,
|
||||||
canBeDeleted: false,
|
canBeDeleted: false,
|
||||||
@@ -29,7 +31,9 @@ let value: GetUserIdentiyProviderExternalIdUser = {
|
|||||||
createdAt: "<value>",
|
createdAt: "<value>",
|
||||||
customFields: {},
|
customFields: {},
|
||||||
featuredTopic: "<value>",
|
featuredTopic: "<value>",
|
||||||
featuredUserBadgeIds: ["<value>"],
|
featuredUserBadgeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
flairBgColor: "<value>",
|
flairBgColor: "<value>",
|
||||||
flairColor: "<value>",
|
flairColor: "<value>",
|
||||||
flairGroupId: "<value>",
|
flairGroupId: "<value>",
|
||||||
@@ -78,7 +82,9 @@ let value: GetUserIdentiyProviderExternalIdUser = {
|
|||||||
hasTitleBadges: false,
|
hasTitleBadges: false,
|
||||||
id: 638762,
|
id: 638762,
|
||||||
ignored: false,
|
ignored: false,
|
||||||
ignoredUsernames: ["<value>"],
|
ignoredUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
invitedBy: "<value>",
|
invitedBy: "<value>",
|
||||||
lastPostedAt: "<value>",
|
lastPostedAt: "<value>",
|
||||||
lastSeenAt: "<value>",
|
lastSeenAt: "<value>",
|
||||||
@@ -86,9 +92,15 @@ let value: GetUserIdentiyProviderExternalIdUser = {
|
|||||||
mailingListPostsPerDay: 490305,
|
mailingListPostsPerDay: 490305,
|
||||||
moderator: false,
|
moderator: false,
|
||||||
muted: false,
|
muted: false,
|
||||||
mutedCategoryIds: ["<value>"],
|
mutedCategoryIds: [
|
||||||
mutedTags: ["<value>"],
|
"<value>",
|
||||||
mutedUsernames: ["<value>"],
|
],
|
||||||
|
mutedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
mutedUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
name: "<value>",
|
name: "<value>",
|
||||||
pendingCount: 640024,
|
pendingCount: 640024,
|
||||||
postCount: 989410,
|
postCount: 989410,
|
||||||
@@ -96,15 +108,21 @@ let value: GetUserIdentiyProviderExternalIdUser = {
|
|||||||
primaryGroupName: "<value>",
|
primaryGroupName: "<value>",
|
||||||
profileViewCount: 368102,
|
profileViewCount: 368102,
|
||||||
recentTimeRead: 65304,
|
recentTimeRead: 65304,
|
||||||
regularCategoryIds: ["<value>"],
|
regularCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
secondFactorEnabled: false,
|
secondFactorEnabled: false,
|
||||||
staged: false,
|
staged: false,
|
||||||
systemAvatarTemplate: "<value>",
|
systemAvatarTemplate: "<value>",
|
||||||
systemAvatarUploadId: "<value>",
|
systemAvatarUploadId: "<value>",
|
||||||
timeRead: 312753,
|
timeRead: 312753,
|
||||||
title: "<value>",
|
title: "<value>",
|
||||||
trackedCategoryIds: ["<value>"],
|
trackedCategoryIds: [
|
||||||
trackedTags: ["<value>"],
|
"<value>",
|
||||||
|
],
|
||||||
|
trackedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
trustLevel: 783235,
|
trustLevel: 783235,
|
||||||
uploadedAvatarId: "<value>",
|
uploadedAvatarId: "<value>",
|
||||||
useLogoSmallAsAvatar: false,
|
useLogoSmallAsAvatar: false,
|
||||||
@@ -168,17 +186,27 @@ let value: GetUserIdentiyProviderExternalIdUser = {
|
|||||||
skipNewUserTips: false,
|
skipNewUserTips: false,
|
||||||
textSize: "<value>",
|
textSize: "<value>",
|
||||||
textSizeSeq: 968904,
|
textSizeSeq: 968904,
|
||||||
themeIds: ["<value>"],
|
themeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
themeKeySeq: 828657,
|
themeKeySeq: 828657,
|
||||||
timezone: "Europe/Zagreb",
|
timezone: "Europe/Zagreb",
|
||||||
titleCountMode: "<value>",
|
titleCountMode: "<value>",
|
||||||
userId: 924967,
|
userId: 924967,
|
||||||
},
|
},
|
||||||
username: "Graham.Bayer44",
|
username: "Graham.Bayer44",
|
||||||
watchedCategoryIds: ["<value>"],
|
watchedCategoryIds: [
|
||||||
watchedFirstPostCategoryIds: ["<value>"],
|
"<value>",
|
||||||
watchedTags: ["<value>"],
|
],
|
||||||
watchingFirstPostTags: ["<value>"],
|
watchedFirstPostCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
watchedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
watchingFirstPostTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,9 @@ let value: GetUserIdentiyProviderExternalIdUserOption = {
|
|||||||
skipNewUserTips: false,
|
skipNewUserTips: false,
|
||||||
textSize: "<value>",
|
textSize: "<value>",
|
||||||
textSizeSeq: 68074,
|
textSizeSeq: 68074,
|
||||||
themeIds: ["<value>"],
|
themeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
themeKeySeq: 544591,
|
themeKeySeq: 544591,
|
||||||
timezone: "Europe/Dublin",
|
timezone: "Europe/Dublin",
|
||||||
titleCountMode: "<value>",
|
titleCountMode: "<value>",
|
||||||
|
|||||||
@@ -10,7 +10,9 @@ import { GetUserResponseBody } from "@lukehagar/discoursejs/sdk/models/operation
|
|||||||
let value: GetUserResponseBody = {
|
let value: GetUserResponseBody = {
|
||||||
user: {
|
user: {
|
||||||
admin: false,
|
admin: false,
|
||||||
allowedPmUsernames: ["<value>"],
|
allowedPmUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
avatarTemplate: "<value>",
|
avatarTemplate: "<value>",
|
||||||
badgeCount: 63955,
|
badgeCount: 63955,
|
||||||
canBeDeleted: false,
|
canBeDeleted: false,
|
||||||
@@ -32,7 +34,9 @@ let value: GetUserResponseBody = {
|
|||||||
createdAt: "<value>",
|
createdAt: "<value>",
|
||||||
customFields: {},
|
customFields: {},
|
||||||
featuredTopic: "<value>",
|
featuredTopic: "<value>",
|
||||||
featuredUserBadgeIds: ["<value>"],
|
featuredUserBadgeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
flairBgColor: "<value>",
|
flairBgColor: "<value>",
|
||||||
flairColor: "<value>",
|
flairColor: "<value>",
|
||||||
flairGroupId: "<value>",
|
flairGroupId: "<value>",
|
||||||
@@ -81,7 +85,9 @@ let value: GetUserResponseBody = {
|
|||||||
hasTitleBadges: false,
|
hasTitleBadges: false,
|
||||||
id: 630448,
|
id: 630448,
|
||||||
ignored: false,
|
ignored: false,
|
||||||
ignoredUsernames: ["<value>"],
|
ignoredUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
invitedBy: "<value>",
|
invitedBy: "<value>",
|
||||||
lastPostedAt: "<value>",
|
lastPostedAt: "<value>",
|
||||||
lastSeenAt: "<value>",
|
lastSeenAt: "<value>",
|
||||||
@@ -89,9 +95,15 @@ let value: GetUserResponseBody = {
|
|||||||
mailingListPostsPerDay: 874288,
|
mailingListPostsPerDay: 874288,
|
||||||
moderator: false,
|
moderator: false,
|
||||||
muted: false,
|
muted: false,
|
||||||
mutedCategoryIds: ["<value>"],
|
mutedCategoryIds: [
|
||||||
mutedTags: ["<value>"],
|
"<value>",
|
||||||
mutedUsernames: ["<value>"],
|
],
|
||||||
|
mutedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
mutedUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
name: "<value>",
|
name: "<value>",
|
||||||
pendingCount: 498140,
|
pendingCount: 498140,
|
||||||
postCount: 293020,
|
postCount: 293020,
|
||||||
@@ -99,15 +111,21 @@ let value: GetUserResponseBody = {
|
|||||||
primaryGroupName: "<value>",
|
primaryGroupName: "<value>",
|
||||||
profileViewCount: 844550,
|
profileViewCount: 844550,
|
||||||
recentTimeRead: 848944,
|
recentTimeRead: 848944,
|
||||||
regularCategoryIds: ["<value>"],
|
regularCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
secondFactorEnabled: false,
|
secondFactorEnabled: false,
|
||||||
staged: false,
|
staged: false,
|
||||||
systemAvatarTemplate: "<value>",
|
systemAvatarTemplate: "<value>",
|
||||||
systemAvatarUploadId: "<value>",
|
systemAvatarUploadId: "<value>",
|
||||||
timeRead: 194342,
|
timeRead: 194342,
|
||||||
title: "<value>",
|
title: "<value>",
|
||||||
trackedCategoryIds: ["<value>"],
|
trackedCategoryIds: [
|
||||||
trackedTags: ["<value>"],
|
"<value>",
|
||||||
|
],
|
||||||
|
trackedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
trustLevel: 617877,
|
trustLevel: 617877,
|
||||||
uploadedAvatarId: "<value>",
|
uploadedAvatarId: "<value>",
|
||||||
useLogoSmallAsAvatar: false,
|
useLogoSmallAsAvatar: false,
|
||||||
@@ -171,19 +189,31 @@ let value: GetUserResponseBody = {
|
|||||||
skipNewUserTips: false,
|
skipNewUserTips: false,
|
||||||
textSize: "<value>",
|
textSize: "<value>",
|
||||||
textSizeSeq: 120657,
|
textSizeSeq: 120657,
|
||||||
themeIds: ["<value>"],
|
themeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
themeKeySeq: 224317,
|
themeKeySeq: 224317,
|
||||||
timezone: "Pacific/Tongatapu",
|
timezone: "Pacific/Tongatapu",
|
||||||
titleCountMode: "<value>",
|
titleCountMode: "<value>",
|
||||||
userId: 97844,
|
userId: 97844,
|
||||||
},
|
},
|
||||||
username: "Gustave_Stoltenberg",
|
username: "Gustave_Stoltenberg",
|
||||||
watchedCategoryIds: ["<value>"],
|
watchedCategoryIds: [
|
||||||
watchedFirstPostCategoryIds: ["<value>"],
|
"<value>",
|
||||||
watchedTags: ["<value>"],
|
],
|
||||||
watchingFirstPostTags: ["<value>"],
|
watchedFirstPostCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
watchedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
watchingFirstPostTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
userBadges: ["<value>"],
|
userBadges: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -7,18 +7,28 @@ import { GroupedSearchResult } from "@lukehagar/discoursejs/sdk/models/operation
|
|||||||
|
|
||||||
let value: GroupedSearchResult = {
|
let value: GroupedSearchResult = {
|
||||||
canCreateTopic: false,
|
canCreateTopic: false,
|
||||||
categoryIds: ["<value>"],
|
categoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
error: "<value>",
|
error: "<value>",
|
||||||
groupIds: ["<value>"],
|
groupIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
moreCategories: "<value>",
|
moreCategories: "<value>",
|
||||||
moreFullPageResults: "<value>",
|
moreFullPageResults: "<value>",
|
||||||
morePosts: "<value>",
|
morePosts: "<value>",
|
||||||
moreUsers: "<value>",
|
moreUsers: "<value>",
|
||||||
postIds: ["<value>"],
|
postIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
searchLogId: 357347,
|
searchLogId: 357347,
|
||||||
tagIds: ["<value>"],
|
tagIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
term: "<value>",
|
term: "<value>",
|
||||||
userIds: ["<value>"],
|
userIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,9 @@ let value: ListCategoriesResponseBody = {
|
|||||||
slug: "<value>",
|
slug: "<value>",
|
||||||
sortAscending: "<value>",
|
sortAscending: "<value>",
|
||||||
sortOrder: "<value>",
|
sortOrder: "<value>",
|
||||||
subcategoryIds: ["<value>"],
|
subcategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
subcategoryListStyle: "<value>",
|
subcategoryListStyle: "<value>",
|
||||||
textColor: "<value>",
|
textColor: "<value>",
|
||||||
topicCount: 381397,
|
topicCount: 381397,
|
||||||
|
|||||||
@@ -6,7 +6,9 @@
|
|||||||
import { ListGroupsExtras } from "@lukehagar/discoursejs/sdk/models/operations";
|
import { ListGroupsExtras } from "@lukehagar/discoursejs/sdk/models/operations";
|
||||||
|
|
||||||
let value: ListGroupsExtras = {
|
let value: ListGroupsExtras = {
|
||||||
typeFilters: ["<value>"],
|
typeFilters: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,9 @@ import { ListGroupsResponseBody } from "@lukehagar/discoursejs/sdk/models/operat
|
|||||||
|
|
||||||
let value: ListGroupsResponseBody = {
|
let value: ListGroupsResponseBody = {
|
||||||
extras: {
|
extras: {
|
||||||
typeFilters: ["<value>"],
|
typeFilters: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
groups: [
|
groups: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -72,7 +72,9 @@ let value: PostStream = {
|
|||||||
yours: false,
|
yours: false,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
stream: ["<value>"],
|
stream: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,13 @@ success response
|
|||||||
import { RemoveGroupMembersResponseBody } from "@lukehagar/discoursejs/sdk/models/operations";
|
import { RemoveGroupMembersResponseBody } from "@lukehagar/discoursejs/sdk/models/operations";
|
||||||
|
|
||||||
let value: RemoveGroupMembersResponseBody = {
|
let value: RemoveGroupMembersResponseBody = {
|
||||||
skippedUsernames: ["<value>"],
|
skippedUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
success: "<value>",
|
success: "<value>",
|
||||||
usernames: ["<value>"],
|
usernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -8,26 +8,46 @@ success response
|
|||||||
import { SearchResponseBody } from "@lukehagar/discoursejs/sdk/models/operations";
|
import { SearchResponseBody } from "@lukehagar/discoursejs/sdk/models/operations";
|
||||||
|
|
||||||
let value: SearchResponseBody = {
|
let value: SearchResponseBody = {
|
||||||
categories: ["<value>"],
|
categories: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
groupedSearchResult: {
|
groupedSearchResult: {
|
||||||
canCreateTopic: false,
|
canCreateTopic: false,
|
||||||
categoryIds: ["<value>"],
|
categoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
error: "<value>",
|
error: "<value>",
|
||||||
groupIds: ["<value>"],
|
groupIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
moreCategories: "<value>",
|
moreCategories: "<value>",
|
||||||
moreFullPageResults: "<value>",
|
moreFullPageResults: "<value>",
|
||||||
morePosts: "<value>",
|
morePosts: "<value>",
|
||||||
moreUsers: "<value>",
|
moreUsers: "<value>",
|
||||||
postIds: ["<value>"],
|
postIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
searchLogId: 298264,
|
searchLogId: 298264,
|
||||||
tagIds: ["<value>"],
|
tagIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
term: "<value>",
|
term: "<value>",
|
||||||
userIds: ["<value>"],
|
userIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
groups: ["<value>"],
|
groups: [
|
||||||
posts: ["<value>"],
|
"<value>",
|
||||||
tags: ["<value>"],
|
],
|
||||||
users: ["<value>"],
|
posts: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
tags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
users: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,9 @@ let value: SuggestedTopics = {
|
|||||||
postsCount: 842855,
|
postsCount: 842855,
|
||||||
replyCount: 78969,
|
replyCount: 78969,
|
||||||
slug: "<value>",
|
slug: "<value>",
|
||||||
tags: ["<value>"],
|
tags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
tagsDescriptions: {},
|
tagsDescriptions: {},
|
||||||
title: "<value>",
|
title: "<value>",
|
||||||
unpinned: "<value>",
|
unpinned: "<value>",
|
||||||
|
|||||||
@@ -9,9 +9,13 @@ let value: TagGroup = {
|
|||||||
id: 914971,
|
id: 914971,
|
||||||
name: "<value>",
|
name: "<value>",
|
||||||
onePerTopic: false,
|
onePerTopic: false,
|
||||||
parentTagName: ["<value>"],
|
parentTagName: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
permissions: {},
|
permissions: {},
|
||||||
tagNames: ["<value>"],
|
tagNames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,9 @@ let value: UpdateCategoryCategory = {
|
|||||||
allowUnlimitedOwnerEditsOnFirstPost: false,
|
allowUnlimitedOwnerEditsOnFirstPost: false,
|
||||||
autoCloseBasedOnLastPost: false,
|
autoCloseBasedOnLastPost: false,
|
||||||
autoCloseHours: "<value>",
|
autoCloseHours: "<value>",
|
||||||
availableGroups: ["<value>"],
|
availableGroups: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
canDelete: false,
|
canDelete: false,
|
||||||
canEdit: false,
|
canEdit: false,
|
||||||
color: "red",
|
color: "red",
|
||||||
@@ -25,7 +27,9 @@ let value: UpdateCategoryCategory = {
|
|||||||
descriptionText: "<value>",
|
descriptionText: "<value>",
|
||||||
emailIn: "<value>",
|
emailIn: "<value>",
|
||||||
emailInAllowStrangers: false,
|
emailInAllowStrangers: false,
|
||||||
formTemplateIds: ["<value>"],
|
formTemplateIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
groupPermissions: [
|
groupPermissions: [
|
||||||
{
|
{
|
||||||
groupName: "<value>",
|
groupName: "<value>",
|
||||||
|
|||||||
@@ -14,7 +14,9 @@ let value: UpdateCategoryResponseBody = {
|
|||||||
allowUnlimitedOwnerEditsOnFirstPost: false,
|
allowUnlimitedOwnerEditsOnFirstPost: false,
|
||||||
autoCloseBasedOnLastPost: false,
|
autoCloseBasedOnLastPost: false,
|
||||||
autoCloseHours: "<value>",
|
autoCloseHours: "<value>",
|
||||||
availableGroups: ["<value>"],
|
availableGroups: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
canDelete: false,
|
canDelete: false,
|
||||||
canEdit: false,
|
canEdit: false,
|
||||||
color: "red",
|
color: "red",
|
||||||
@@ -28,7 +30,9 @@ let value: UpdateCategoryResponseBody = {
|
|||||||
descriptionText: "<value>",
|
descriptionText: "<value>",
|
||||||
emailIn: "<value>",
|
emailIn: "<value>",
|
||||||
emailInAllowStrangers: false,
|
emailInAllowStrangers: false,
|
||||||
formTemplateIds: ["<value>"],
|
formTemplateIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
groupPermissions: [
|
groupPermissions: [
|
||||||
{
|
{
|
||||||
groupName: "<value>",
|
groupName: "<value>",
|
||||||
|
|||||||
@@ -7,7 +7,9 @@ import { User } from "@lukehagar/discoursejs/sdk/models/operations";
|
|||||||
|
|
||||||
let value: User = {
|
let value: User = {
|
||||||
admin: false,
|
admin: false,
|
||||||
allowedPmUsernames: ["<value>"],
|
allowedPmUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
avatarTemplate: "<value>",
|
avatarTemplate: "<value>",
|
||||||
badgeCount: 214880,
|
badgeCount: 214880,
|
||||||
canBeDeleted: false,
|
canBeDeleted: false,
|
||||||
@@ -29,7 +31,9 @@ let value: User = {
|
|||||||
createdAt: "<value>",
|
createdAt: "<value>",
|
||||||
customFields: {},
|
customFields: {},
|
||||||
featuredTopic: "<value>",
|
featuredTopic: "<value>",
|
||||||
featuredUserBadgeIds: ["<value>"],
|
featuredUserBadgeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
flairBgColor: "<value>",
|
flairBgColor: "<value>",
|
||||||
flairColor: "<value>",
|
flairColor: "<value>",
|
||||||
flairGroupId: "<value>",
|
flairGroupId: "<value>",
|
||||||
@@ -78,7 +82,9 @@ let value: User = {
|
|||||||
hasTitleBadges: false,
|
hasTitleBadges: false,
|
||||||
id: 204865,
|
id: 204865,
|
||||||
ignored: false,
|
ignored: false,
|
||||||
ignoredUsernames: ["<value>"],
|
ignoredUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
invitedBy: "<value>",
|
invitedBy: "<value>",
|
||||||
lastPostedAt: "<value>",
|
lastPostedAt: "<value>",
|
||||||
lastSeenAt: "<value>",
|
lastSeenAt: "<value>",
|
||||||
@@ -86,9 +92,15 @@ let value: User = {
|
|||||||
mailingListPostsPerDay: 164959,
|
mailingListPostsPerDay: 164959,
|
||||||
moderator: false,
|
moderator: false,
|
||||||
muted: false,
|
muted: false,
|
||||||
mutedCategoryIds: ["<value>"],
|
mutedCategoryIds: [
|
||||||
mutedTags: ["<value>"],
|
"<value>",
|
||||||
mutedUsernames: ["<value>"],
|
],
|
||||||
|
mutedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
mutedUsernames: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
name: "<value>",
|
name: "<value>",
|
||||||
pendingCount: 488056,
|
pendingCount: 488056,
|
||||||
postCount: 124833,
|
postCount: 124833,
|
||||||
@@ -96,15 +108,21 @@ let value: User = {
|
|||||||
primaryGroupName: "<value>",
|
primaryGroupName: "<value>",
|
||||||
profileViewCount: 355613,
|
profileViewCount: 355613,
|
||||||
recentTimeRead: 722081,
|
recentTimeRead: 722081,
|
||||||
regularCategoryIds: ["<value>"],
|
regularCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
secondFactorEnabled: false,
|
secondFactorEnabled: false,
|
||||||
staged: false,
|
staged: false,
|
||||||
systemAvatarTemplate: "<value>",
|
systemAvatarTemplate: "<value>",
|
||||||
systemAvatarUploadId: "<value>",
|
systemAvatarUploadId: "<value>",
|
||||||
timeRead: 940432,
|
timeRead: 940432,
|
||||||
title: "<value>",
|
title: "<value>",
|
||||||
trackedCategoryIds: ["<value>"],
|
trackedCategoryIds: [
|
||||||
trackedTags: ["<value>"],
|
"<value>",
|
||||||
|
],
|
||||||
|
trackedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
trustLevel: 30452,
|
trustLevel: 30452,
|
||||||
uploadedAvatarId: "<value>",
|
uploadedAvatarId: "<value>",
|
||||||
useLogoSmallAsAvatar: false,
|
useLogoSmallAsAvatar: false,
|
||||||
@@ -168,17 +186,27 @@ let value: User = {
|
|||||||
skipNewUserTips: false,
|
skipNewUserTips: false,
|
||||||
textSize: "<value>",
|
textSize: "<value>",
|
||||||
textSizeSeq: 669917,
|
textSizeSeq: 669917,
|
||||||
themeIds: ["<value>"],
|
themeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
themeKeySeq: 833038,
|
themeKeySeq: 833038,
|
||||||
timezone: "Asia/Kuala_Lumpur",
|
timezone: "Asia/Kuala_Lumpur",
|
||||||
titleCountMode: "<value>",
|
titleCountMode: "<value>",
|
||||||
userId: 984330,
|
userId: 984330,
|
||||||
},
|
},
|
||||||
username: "Earline.Prosacco",
|
username: "Earline.Prosacco",
|
||||||
watchedCategoryIds: ["<value>"],
|
watchedCategoryIds: [
|
||||||
watchedFirstPostCategoryIds: ["<value>"],
|
"<value>",
|
||||||
watchedTags: ["<value>"],
|
],
|
||||||
watchingFirstPostTags: ["<value>"],
|
watchedFirstPostCategoryIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
watchedTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
|
watchingFirstPostTags: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,9 @@ let value: UserOption = {
|
|||||||
skipNewUserTips: false,
|
skipNewUserTips: false,
|
||||||
textSize: "<value>",
|
textSize: "<value>",
|
||||||
textSizeSeq: 730442,
|
textSizeSeq: 730442,
|
||||||
themeIds: ["<value>"],
|
themeIds: [
|
||||||
|
"<value>",
|
||||||
|
],
|
||||||
themeKeySeq: 374170,
|
themeKeySeq: 374170,
|
||||||
timezone: "Asia/Kabul",
|
timezone: "Asia/Kabul",
|
||||||
titleCountMode: "<value>",
|
titleCountMode: "<value>",
|
||||||
|
|||||||
2
gen.yaml
2
gen.yaml
@@ -11,7 +11,7 @@ generation:
|
|||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: false
|
oAuth2ClientCredentialsEnabled: false
|
||||||
typescript:
|
typescript:
|
||||||
version: 0.8.2
|
version: 0.9.0
|
||||||
additionalDependencies:
|
additionalDependencies:
|
||||||
dependencies: {}
|
dependencies: {}
|
||||||
devDependencies: {}
|
devDependencies: {}
|
||||||
|
|||||||
2
jsr.json
2
jsr.json
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "@lukehagar/discoursejs",
|
"name": "@lukehagar/discoursejs",
|
||||||
"version": "0.8.2",
|
"version": "0.9.0",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",
|
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@lukehagar/discoursejs",
|
"name": "@lukehagar/discoursejs",
|
||||||
"version": "0.8.2",
|
"version": "0.9.0",
|
||||||
"author": "LukeHagar",
|
"author": "LukeHagar",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function adminActivateUser(
|
export async function adminActivateUser(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.ActivateUserResponseBody,
|
operations.ActivateUserResponseBody,
|
||||||
@@ -46,7 +46,7 @@ export async function adminActivateUser(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.ActivateUserRequest$outboundSchema.parse(value$),
|
(value$) => operations.ActivateUserRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -55,7 +55,10 @@ export async function adminActivateUser(
|
|||||||
const body$ = null;
|
const body$ = null;
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/admin/users/{id}/activate.json")(pathParams$);
|
const path$ = pathToFunc("/admin/users/{id}/activate.json")(pathParams$);
|
||||||
@@ -64,19 +67,19 @@ export async function adminActivateUser(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "activateUser", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "activateUser",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -85,7 +88,8 @@ export async function adminActivateUser(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -102,7 +106,9 @@ export async function adminActivateUser(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.ActivateUserResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.ActivateUserResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function adminAdminGetUser(
|
export async function adminAdminGetUser(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.AdminGetUserResponseBody,
|
operations.AdminGetUserResponseBody,
|
||||||
@@ -46,7 +46,7 @@ export async function adminAdminGetUser(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.AdminGetUserRequest$outboundSchema.parse(value$),
|
(value$) => operations.AdminGetUserRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -55,7 +55,10 @@ export async function adminAdminGetUser(
|
|||||||
const body$ = null;
|
const body$ = null;
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/admin/users/{id}.json")(pathParams$);
|
const path$ = pathToFunc("/admin/users/{id}.json")(pathParams$);
|
||||||
@@ -64,19 +67,19 @@ export async function adminAdminGetUser(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "adminGetUser", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "adminGetUser",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -85,7 +88,8 @@ export async function adminAdminGetUser(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -102,7 +106,9 @@ export async function adminAdminGetUser(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.AdminGetUserResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.AdminGetUserResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as z from "zod";
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import {
|
import {
|
||||||
encodeFormQuery as encodeFormQuery$,
|
encodeFormQuery as encodeFormQuery$,
|
||||||
@@ -22,7 +23,6 @@ import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|||||||
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
||||||
import * as operations from "../sdk/models/operations/index.js";
|
import * as operations from "../sdk/models/operations/index.js";
|
||||||
import { Result } from "../sdk/types/fp.js";
|
import { Result } from "../sdk/types/fp.js";
|
||||||
import * as z from "zod";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a list of users
|
* Get a list of users
|
||||||
@@ -30,7 +30,7 @@ import * as z from "zod";
|
|||||||
export async function adminAdminListUsers(
|
export async function adminAdminListUsers(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
request: operations.AdminListUsersRequest,
|
request: operations.AdminListUsersRequest,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
Array<operations.AdminListUsersResponseBody>,
|
Array<operations.AdminListUsersResponseBody>,
|
||||||
@@ -48,7 +48,7 @@ export async function adminAdminListUsers(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.AdminListUsersRequest$outboundSchema.parse(value$),
|
(value$) => operations.AdminListUsersRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -57,39 +57,42 @@ export async function adminAdminListUsers(
|
|||||||
const body$ = null;
|
const body$ = null;
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
flag: encodeSimple$("flag", payload$.flag, { explode: false, charEncoding: "percent" }),
|
flag: encodeSimple$("flag", payload$.flag, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/admin/users/list/{flag}.json")(pathParams$);
|
const path$ = pathToFunc("/admin/users/list/{flag}.json")(pathParams$);
|
||||||
|
|
||||||
const query$ = encodeFormQuery$({
|
const query$ = encodeFormQuery$({
|
||||||
asc: payload$.asc,
|
"asc": payload$.asc,
|
||||||
email: payload$.email,
|
"email": payload$.email,
|
||||||
ip: payload$.ip,
|
"ip": payload$.ip,
|
||||||
order: payload$.order,
|
"order": payload$.order,
|
||||||
page: payload$.page,
|
"page": payload$.page,
|
||||||
show_emails: payload$.show_emails,
|
"show_emails": payload$.show_emails,
|
||||||
stats: payload$.stats,
|
"stats": payload$.stats,
|
||||||
});
|
});
|
||||||
|
|
||||||
const headers$ = new Headers({
|
const headers$ = new Headers({
|
||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "adminListUsers", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "adminListUsers",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -98,7 +101,8 @@ export async function adminAdminListUsers(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -115,7 +119,9 @@ export async function adminAdminListUsers(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, z.array(operations.AdminListUsersResponseBody$inboundSchema)))(response);
|
>(
|
||||||
|
m$.json(200, z.array(operations.AdminListUsersResponseBody$inboundSchema)),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function adminAnonymizeUser(
|
export async function adminAnonymizeUser(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.AnonymizeUserResponseBody,
|
operations.AnonymizeUserResponseBody,
|
||||||
@@ -46,7 +46,7 @@ export async function adminAnonymizeUser(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.AnonymizeUserRequest$outboundSchema.parse(value$),
|
(value$) => operations.AnonymizeUserRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -55,7 +55,10 @@ export async function adminAnonymizeUser(
|
|||||||
const body$ = null;
|
const body$ = null;
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/admin/users/{id}/anonymize.json")(pathParams$);
|
const path$ = pathToFunc("/admin/users/{id}/anonymize.json")(pathParams$);
|
||||||
@@ -64,19 +67,19 @@ export async function adminAnonymizeUser(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "anonymizeUser", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "anonymizeUser",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -85,7 +88,8 @@ export async function adminAnonymizeUser(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -102,7 +106,9 @@ export async function adminAnonymizeUser(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.AnonymizeUserResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.AnonymizeUserResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function adminDeactivateUser(
|
export async function adminDeactivateUser(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.DeactivateUserResponseBody,
|
operations.DeactivateUserResponseBody,
|
||||||
@@ -46,7 +46,7 @@ export async function adminDeactivateUser(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.DeactivateUserRequest$outboundSchema.parse(value$),
|
(value$) => operations.DeactivateUserRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -55,7 +55,10 @@ export async function adminDeactivateUser(
|
|||||||
const body$ = null;
|
const body$ = null;
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/admin/users/{id}/deactivate.json")(pathParams$);
|
const path$ = pathToFunc("/admin/users/{id}/deactivate.json")(pathParams$);
|
||||||
@@ -64,19 +67,19 @@ export async function adminDeactivateUser(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "deactivateUser", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "deactivateUser",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -85,7 +88,8 @@ export async function adminDeactivateUser(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -102,7 +106,9 @@ export async function adminDeactivateUser(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.DeactivateUserResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.DeactivateUserResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
import {
|
||||||
|
encodeJSON as encodeJSON$,
|
||||||
|
encodeSimple as encodeSimple$,
|
||||||
|
} from "../lib/encodings.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
import * as schemas$ from "../lib/schemas.js";
|
import * as schemas$ from "../lib/schemas.js";
|
||||||
import { RequestOptions } from "../lib/sdks.js";
|
import { RequestOptions } from "../lib/sdks.js";
|
||||||
@@ -27,7 +30,7 @@ export async function adminDeleteUser(
|
|||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
requestBody?: operations.DeleteUserRequestBody | undefined,
|
requestBody?: operations.DeleteUserRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.DeleteUserResponseBody,
|
operations.DeleteUserResponseBody,
|
||||||
@@ -48,7 +51,7 @@ export async function adminDeleteUser(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.DeleteUserRequest$outboundSchema.parse(value$),
|
(value$) => operations.DeleteUserRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -57,7 +60,10 @@ export async function adminDeleteUser(
|
|||||||
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/admin/users/{id}.json")(pathParams$);
|
const path$ = pathToFunc("/admin/users/{id}.json")(pathParams$);
|
||||||
@@ -67,19 +73,19 @@ export async function adminDeleteUser(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "deleteUser", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "deleteUser",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "DELETE",
|
method: "DELETE",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -88,7 +94,8 @@ export async function adminDeleteUser(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -105,7 +112,9 @@ export async function adminDeleteUser(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.DeleteUserResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.DeleteUserResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function adminLogOutUser(
|
export async function adminLogOutUser(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.LogOutUserResponseBody,
|
operations.LogOutUserResponseBody,
|
||||||
@@ -46,7 +46,7 @@ export async function adminLogOutUser(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.LogOutUserRequest$outboundSchema.parse(value$),
|
(value$) => operations.LogOutUserRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -55,7 +55,10 @@ export async function adminLogOutUser(
|
|||||||
const body$ = null;
|
const body$ = null;
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/admin/users/{id}/log_out.json")(pathParams$);
|
const path$ = pathToFunc("/admin/users/{id}/log_out.json")(pathParams$);
|
||||||
@@ -64,19 +67,19 @@ export async function adminLogOutUser(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "logOutUser", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "logOutUser",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "POST",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -85,7 +88,8 @@ export async function adminLogOutUser(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -102,7 +106,9 @@ export async function adminLogOutUser(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.LogOutUserResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.LogOutUserResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function adminRefreshGravatar(
|
export async function adminRefreshGravatar(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
username: string,
|
username: string,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.RefreshGravatarResponseBody,
|
operations.RefreshGravatarResponseBody,
|
||||||
@@ -46,7 +46,7 @@ export async function adminRefreshGravatar(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.RefreshGravatarRequest$outboundSchema.parse(value$),
|
(value$) => operations.RefreshGravatarRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -61,25 +61,27 @@ export async function adminRefreshGravatar(
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/user_avatar/{username}/refresh_gravatar.json")(pathParams$);
|
const path$ = pathToFunc("/user_avatar/{username}/refresh_gravatar.json")(
|
||||||
|
pathParams$,
|
||||||
|
);
|
||||||
|
|
||||||
const headers$ = new Headers({
|
const headers$ = new Headers({
|
||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "refreshGravatar", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "refreshGravatar",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "POST",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -88,7 +90,8 @@ export async function adminRefreshGravatar(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -105,7 +108,9 @@ export async function adminRefreshGravatar(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.RefreshGravatarResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.RefreshGravatarResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
import {
|
||||||
|
encodeJSON as encodeJSON$,
|
||||||
|
encodeSimple as encodeSimple$,
|
||||||
|
} from "../lib/encodings.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
import * as schemas$ from "../lib/schemas.js";
|
import * as schemas$ from "../lib/schemas.js";
|
||||||
import { RequestOptions } from "../lib/sdks.js";
|
import { RequestOptions } from "../lib/sdks.js";
|
||||||
@@ -27,7 +30,7 @@ export async function adminSilenceUser(
|
|||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
requestBody?: operations.SilenceUserRequestBody | undefined,
|
requestBody?: operations.SilenceUserRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.SilenceUserResponseBody,
|
operations.SilenceUserResponseBody,
|
||||||
@@ -48,7 +51,7 @@ export async function adminSilenceUser(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.SilenceUserRequest$outboundSchema.parse(value$),
|
(value$) => operations.SilenceUserRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -57,7 +60,10 @@ export async function adminSilenceUser(
|
|||||||
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/admin/users/{id}/silence.json")(pathParams$);
|
const path$ = pathToFunc("/admin/users/{id}/silence.json")(pathParams$);
|
||||||
@@ -67,19 +73,19 @@ export async function adminSilenceUser(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "silenceUser", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "silenceUser",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -88,7 +94,8 @@ export async function adminSilenceUser(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -105,7 +112,9 @@ export async function adminSilenceUser(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.SilenceUserResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.SilenceUserResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
import {
|
||||||
|
encodeJSON as encodeJSON$,
|
||||||
|
encodeSimple as encodeSimple$,
|
||||||
|
} from "../lib/encodings.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
import * as schemas$ from "../lib/schemas.js";
|
import * as schemas$ from "../lib/schemas.js";
|
||||||
import { RequestOptions } from "../lib/sdks.js";
|
import { RequestOptions } from "../lib/sdks.js";
|
||||||
@@ -27,7 +30,7 @@ export async function adminSuspendUser(
|
|||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
requestBody?: operations.SuspendUserRequestBody | undefined,
|
requestBody?: operations.SuspendUserRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.SuspendUserResponseBody,
|
operations.SuspendUserResponseBody,
|
||||||
@@ -48,7 +51,7 @@ export async function adminSuspendUser(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.SuspendUserRequest$outboundSchema.parse(value$),
|
(value$) => operations.SuspendUserRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -57,7 +60,10 @@ export async function adminSuspendUser(
|
|||||||
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/admin/users/{id}/suspend.json")(pathParams$);
|
const path$ = pathToFunc("/admin/users/{id}/suspend.json")(pathParams$);
|
||||||
@@ -67,19 +73,19 @@ export async function adminSuspendUser(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "suspendUser", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "suspendUser",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -88,7 +94,8 @@ export async function adminSuspendUser(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -105,7 +112,9 @@ export async function adminSuspendUser(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.SuspendUserResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.SuspendUserResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function backupsCreateBackup(
|
export async function backupsCreateBackup(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
request?: operations.CreateBackupRequestBody | undefined,
|
request?: operations.CreateBackupRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.CreateBackupResponseBody,
|
operations.CreateBackupResponseBody,
|
||||||
@@ -43,14 +43,19 @@ export async function backupsCreateBackup(
|
|||||||
|
|
||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.CreateBackupRequestBody$outboundSchema.optional().parse(value$),
|
(value$) =>
|
||||||
"Input validation failed"
|
operations.CreateBackupRequestBody$outboundSchema.optional().parse(
|
||||||
|
value$,
|
||||||
|
),
|
||||||
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
}
|
}
|
||||||
const payload$ = parsed$.value;
|
const payload$ = parsed$.value;
|
||||||
const body$ = payload$ === undefined ? null : encodeJSON$("body", payload$, { explode: true });
|
const body$ = payload$ === undefined
|
||||||
|
? null
|
||||||
|
: encodeJSON$("body", payload$, { explode: true });
|
||||||
|
|
||||||
const path$ = pathToFunc("/admin/backups.json")();
|
const path$ = pathToFunc("/admin/backups.json")();
|
||||||
|
|
||||||
@@ -59,19 +64,19 @@ export async function backupsCreateBackup(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "createBackup", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "createBackup",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "POST",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -80,7 +85,8 @@ export async function backupsCreateBackup(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -97,7 +103,9 @@ export async function backupsCreateBackup(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.CreateBackupResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.CreateBackupResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as z from "zod";
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import {
|
import {
|
||||||
encodeFormQuery as encodeFormQuery$,
|
encodeFormQuery as encodeFormQuery$,
|
||||||
@@ -22,7 +23,6 @@ import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|||||||
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
||||||
import * as operations from "../sdk/models/operations/index.js";
|
import * as operations from "../sdk/models/operations/index.js";
|
||||||
import { Result } from "../sdk/types/fp.js";
|
import { Result } from "../sdk/types/fp.js";
|
||||||
import * as z from "zod";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Download backup
|
* Download backup
|
||||||
@@ -31,7 +31,7 @@ export async function backupsDownloadBackup(
|
|||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
filename: string,
|
filename: string,
|
||||||
token: string,
|
token: string,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
void,
|
void,
|
||||||
@@ -52,7 +52,7 @@ export async function backupsDownloadBackup(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.DownloadBackupRequest$outboundSchema.parse(value$),
|
(value$) => operations.DownloadBackupRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -70,27 +70,27 @@ export async function backupsDownloadBackup(
|
|||||||
const path$ = pathToFunc("/admin/backups/{filename}")(pathParams$);
|
const path$ = pathToFunc("/admin/backups/{filename}")(pathParams$);
|
||||||
|
|
||||||
const query$ = encodeFormQuery$({
|
const query$ = encodeFormQuery$({
|
||||||
token: payload$.token,
|
"token": payload$.token,
|
||||||
});
|
});
|
||||||
|
|
||||||
const headers$ = new Headers({
|
const headers$ = new Headers({
|
||||||
Accept: "*/*",
|
Accept: "*/*",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "downloadBackup", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "downloadBackup",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -99,7 +99,8 @@ export async function backupsDownloadBackup(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -116,7 +117,9 @@ export async function backupsDownloadBackup(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.nil(200, z.void()))(response);
|
>(
|
||||||
|
m$.nil(200, z.void()),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as z from "zod";
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
import { RequestOptions } from "../lib/sdks.js";
|
import { RequestOptions } from "../lib/sdks.js";
|
||||||
@@ -17,14 +18,13 @@ import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|||||||
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
||||||
import * as operations from "../sdk/models/operations/index.js";
|
import * as operations from "../sdk/models/operations/index.js";
|
||||||
import { Result } from "../sdk/types/fp.js";
|
import { Result } from "../sdk/types/fp.js";
|
||||||
import * as z from "zod";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List backups
|
* List backups
|
||||||
*/
|
*/
|
||||||
export async function backupsGetBackups(
|
export async function backupsGetBackups(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
Array<operations.ResponseBody>,
|
Array<operations.ResponseBody>,
|
||||||
@@ -43,18 +43,18 @@ export async function backupsGetBackups(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "getBackups", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "getBackups",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -63,7 +63,8 @@ export async function backupsGetBackups(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -80,7 +81,9 @@ export async function backupsGetBackups(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, z.array(operations.ResponseBody$inboundSchema)))(response);
|
>(
|
||||||
|
m$.json(200, z.array(operations.ResponseBody$inboundSchema)),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as z from "zod";
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import { encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
import { encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
@@ -19,7 +20,6 @@ import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|||||||
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
||||||
import * as operations from "../sdk/models/operations/index.js";
|
import * as operations from "../sdk/models/operations/index.js";
|
||||||
import { Result } from "../sdk/types/fp.js";
|
import { Result } from "../sdk/types/fp.js";
|
||||||
import * as z from "zod";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Send download backup email
|
* Send download backup email
|
||||||
@@ -27,7 +27,7 @@ import * as z from "zod";
|
|||||||
export async function backupsSendDownloadBackupEmail(
|
export async function backupsSendDownloadBackupEmail(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
filename: string,
|
filename: string,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
void,
|
void,
|
||||||
@@ -46,8 +46,9 @@ export async function backupsSendDownloadBackupEmail(
|
|||||||
|
|
||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.SendDownloadBackupEmailRequest$outboundSchema.parse(value$),
|
(value$) =>
|
||||||
"Input validation failed"
|
operations.SendDownloadBackupEmailRequest$outboundSchema.parse(value$),
|
||||||
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -74,17 +75,13 @@ export async function backupsSendDownloadBackupEmail(
|
|||||||
securitySource: null,
|
securitySource: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -93,7 +90,8 @@ export async function backupsSendDownloadBackupEmail(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -110,7 +108,9 @@ export async function backupsSendDownloadBackupEmail(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.nil(200, z.void()))(response);
|
>(
|
||||||
|
m$.nil(200, z.void()),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
*/
|
*/
|
||||||
export async function badgesAdminListBadges(
|
export async function badgesAdminListBadges(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.AdminListBadgesResponseBody,
|
operations.AdminListBadgesResponseBody,
|
||||||
@@ -42,18 +42,18 @@ export async function badgesAdminListBadges(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "adminListBadges", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "adminListBadges",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,8 @@ export async function badgesAdminListBadges(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -79,7 +80,9 @@ export async function badgesAdminListBadges(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.AdminListBadgesResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.AdminListBadgesResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function badgesCreateBadge(
|
export async function badgesCreateBadge(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
request?: operations.CreateBadgeRequestBody | undefined,
|
request?: operations.CreateBadgeRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.CreateBadgeResponseBody,
|
operations.CreateBadgeResponseBody,
|
||||||
@@ -43,14 +43,17 @@ export async function badgesCreateBadge(
|
|||||||
|
|
||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.CreateBadgeRequestBody$outboundSchema.optional().parse(value$),
|
(value$) =>
|
||||||
"Input validation failed"
|
operations.CreateBadgeRequestBody$outboundSchema.optional().parse(value$),
|
||||||
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
}
|
}
|
||||||
const payload$ = parsed$.value;
|
const payload$ = parsed$.value;
|
||||||
const body$ = payload$ === undefined ? null : encodeJSON$("body", payload$, { explode: true });
|
const body$ = payload$ === undefined
|
||||||
|
? null
|
||||||
|
: encodeJSON$("body", payload$, { explode: true });
|
||||||
|
|
||||||
const path$ = pathToFunc("/admin/badges.json")();
|
const path$ = pathToFunc("/admin/badges.json")();
|
||||||
|
|
||||||
@@ -59,19 +62,19 @@ export async function badgesCreateBadge(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "createBadge", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "createBadge",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "POST",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -80,7 +83,8 @@ export async function badgesCreateBadge(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -97,7 +101,9 @@ export async function badgesCreateBadge(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.CreateBadgeResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.CreateBadgeResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as z from "zod";
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import { encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
import { encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
@@ -19,7 +20,6 @@ import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|||||||
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
||||||
import * as operations from "../sdk/models/operations/index.js";
|
import * as operations from "../sdk/models/operations/index.js";
|
||||||
import { Result } from "../sdk/types/fp.js";
|
import { Result } from "../sdk/types/fp.js";
|
||||||
import * as z from "zod";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete badge
|
* Delete badge
|
||||||
@@ -27,7 +27,7 @@ import * as z from "zod";
|
|||||||
export async function badgesDeleteBadge(
|
export async function badgesDeleteBadge(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
void,
|
void,
|
||||||
@@ -47,7 +47,7 @@ export async function badgesDeleteBadge(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.DeleteBadgeRequest$outboundSchema.parse(value$),
|
(value$) => operations.DeleteBadgeRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -56,7 +56,10 @@ export async function badgesDeleteBadge(
|
|||||||
const body$ = null;
|
const body$ = null;
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/admin/badges/{id}.json")(pathParams$);
|
const path$ = pathToFunc("/admin/badges/{id}.json")(pathParams$);
|
||||||
@@ -65,19 +68,19 @@ export async function badgesDeleteBadge(
|
|||||||
Accept: "*/*",
|
Accept: "*/*",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "deleteBadge", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "deleteBadge",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "DELETE",
|
method: "DELETE",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -86,7 +89,8 @@ export async function badgesDeleteBadge(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -103,7 +107,9 @@ export async function badgesDeleteBadge(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.nil(200, z.void()))(response);
|
>(
|
||||||
|
m$.nil(200, z.void()),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function badgesListUserBadges(
|
export async function badgesListUserBadges(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
username: string,
|
username: string,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.ListUserBadgesResponseBody,
|
operations.ListUserBadgesResponseBody,
|
||||||
@@ -46,7 +46,7 @@ export async function badgesListUserBadges(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.ListUserBadgesRequest$outboundSchema.parse(value$),
|
(value$) => operations.ListUserBadgesRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -67,19 +67,19 @@ export async function badgesListUserBadges(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "listUserBadges", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "listUserBadges",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -88,7 +88,8 @@ export async function badgesListUserBadges(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -105,7 +106,9 @@ export async function badgesListUserBadges(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.ListUserBadgesResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.ListUserBadgesResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
import {
|
||||||
|
encodeJSON as encodeJSON$,
|
||||||
|
encodeSimple as encodeSimple$,
|
||||||
|
} from "../lib/encodings.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
import * as schemas$ from "../lib/schemas.js";
|
import * as schemas$ from "../lib/schemas.js";
|
||||||
import { RequestOptions } from "../lib/sdks.js";
|
import { RequestOptions } from "../lib/sdks.js";
|
||||||
@@ -27,7 +30,7 @@ export async function badgesUpdateBadge(
|
|||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
requestBody?: operations.UpdateBadgeRequestBody | undefined,
|
requestBody?: operations.UpdateBadgeRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.UpdateBadgeResponseBody,
|
operations.UpdateBadgeResponseBody,
|
||||||
@@ -48,7 +51,7 @@ export async function badgesUpdateBadge(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.UpdateBadgeRequest$outboundSchema.parse(value$),
|
(value$) => operations.UpdateBadgeRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -57,7 +60,10 @@ export async function badgesUpdateBadge(
|
|||||||
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/admin/badges/{id}.json")(pathParams$);
|
const path$ = pathToFunc("/admin/badges/{id}.json")(pathParams$);
|
||||||
@@ -67,19 +73,19 @@ export async function badgesUpdateBadge(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "updateBadge", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "updateBadge",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -88,7 +94,8 @@ export async function badgesUpdateBadge(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -105,7 +112,9 @@ export async function badgesUpdateBadge(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.UpdateBadgeResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.UpdateBadgeResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function categoriesCreateCategory(
|
export async function categoriesCreateCategory(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
request?: operations.CreateCategoryRequestBody | undefined,
|
request?: operations.CreateCategoryRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.CreateCategoryResponseBody,
|
operations.CreateCategoryResponseBody,
|
||||||
@@ -43,14 +43,19 @@ export async function categoriesCreateCategory(
|
|||||||
|
|
||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.CreateCategoryRequestBody$outboundSchema.optional().parse(value$),
|
(value$) =>
|
||||||
"Input validation failed"
|
operations.CreateCategoryRequestBody$outboundSchema.optional().parse(
|
||||||
|
value$,
|
||||||
|
),
|
||||||
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
}
|
}
|
||||||
const payload$ = parsed$.value;
|
const payload$ = parsed$.value;
|
||||||
const body$ = payload$ === undefined ? null : encodeJSON$("body", payload$, { explode: true });
|
const body$ = payload$ === undefined
|
||||||
|
? null
|
||||||
|
: encodeJSON$("body", payload$, { explode: true });
|
||||||
|
|
||||||
const path$ = pathToFunc("/categories.json")();
|
const path$ = pathToFunc("/categories.json")();
|
||||||
|
|
||||||
@@ -59,19 +64,19 @@ export async function categoriesCreateCategory(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "createCategory", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "createCategory",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "POST",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -80,7 +85,8 @@ export async function categoriesCreateCategory(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -97,7 +103,9 @@ export async function categoriesCreateCategory(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.CreateCategoryResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.CreateCategoryResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function categoriesGetCategory(
|
export async function categoriesGetCategory(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.GetCategoryResponseBody,
|
operations.GetCategoryResponseBody,
|
||||||
@@ -46,7 +46,7 @@ export async function categoriesGetCategory(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.GetCategoryRequest$outboundSchema.parse(value$),
|
(value$) => operations.GetCategoryRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -55,7 +55,10 @@ export async function categoriesGetCategory(
|
|||||||
const body$ = null;
|
const body$ = null;
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/c/{id}/show.json")(pathParams$);
|
const path$ = pathToFunc("/c/{id}/show.json")(pathParams$);
|
||||||
@@ -64,19 +67,19 @@ export async function categoriesGetCategory(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "getCategory", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "getCategory",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -85,7 +88,8 @@ export async function categoriesGetCategory(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -102,7 +106,9 @@ export async function categoriesGetCategory(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.GetCategoryResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.GetCategoryResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
*/
|
*/
|
||||||
export async function categoriesGetSite(
|
export async function categoriesGetSite(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.GetSiteResponseBody,
|
operations.GetSiteResponseBody,
|
||||||
@@ -45,18 +45,18 @@ export async function categoriesGetSite(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "getSite", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "getSite",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -65,7 +65,8 @@ export async function categoriesGetSite(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -82,7 +83,9 @@ export async function categoriesGetSite(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.GetSiteResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.GetSiteResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function categoriesListCategories(
|
export async function categoriesListCategories(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
includeSubcategories?: boolean | undefined,
|
includeSubcategories?: boolean | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.ListCategoriesResponseBody,
|
operations.ListCategoriesResponseBody,
|
||||||
@@ -46,7 +46,7 @@ export async function categoriesListCategories(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.ListCategoriesRequest$outboundSchema.parse(value$),
|
(value$) => operations.ListCategoriesRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -57,27 +57,27 @@ export async function categoriesListCategories(
|
|||||||
const path$ = pathToFunc("/categories.json")();
|
const path$ = pathToFunc("/categories.json")();
|
||||||
|
|
||||||
const query$ = encodeFormQuery$({
|
const query$ = encodeFormQuery$({
|
||||||
include_subcategories: payload$.include_subcategories,
|
"include_subcategories": payload$.include_subcategories,
|
||||||
});
|
});
|
||||||
|
|
||||||
const headers$ = new Headers({
|
const headers$ = new Headers({
|
||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "listCategories", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "listCategories",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -86,7 +86,8 @@ export async function categoriesListCategories(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -103,7 +104,9 @@ export async function categoriesListCategories(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.ListCategoriesResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.ListCategoriesResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export async function categoriesListCategoryTopics(
|
|||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
slug: string,
|
slug: string,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.ListCategoryTopicsResponseBody,
|
operations.ListCategoryTopicsResponseBody,
|
||||||
@@ -47,8 +47,9 @@ export async function categoriesListCategoryTopics(
|
|||||||
|
|
||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.ListCategoryTopicsRequest$outboundSchema.parse(value$),
|
(value$) =>
|
||||||
"Input validation failed"
|
operations.ListCategoryTopicsRequest$outboundSchema.parse(value$),
|
||||||
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -57,8 +58,14 @@ export async function categoriesListCategoryTopics(
|
|||||||
const body$ = null;
|
const body$ = null;
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
slug: encodeSimple$("slug", payload$.slug, { explode: false, charEncoding: "percent" }),
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
|
slug: encodeSimple$("slug", payload$.slug, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/c/{slug}/{id}.json")(pathParams$);
|
const path$ = pathToFunc("/c/{slug}/{id}.json")(pathParams$);
|
||||||
@@ -67,19 +74,19 @@ export async function categoriesListCategoryTopics(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "listCategoryTopics", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "listCategoryTopics",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -88,7 +95,8 @@ export async function categoriesListCategoryTopics(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -105,7 +113,9 @@ export async function categoriesListCategoryTopics(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.ListCategoryTopicsResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.ListCategoryTopicsResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
import {
|
||||||
|
encodeJSON as encodeJSON$,
|
||||||
|
encodeSimple as encodeSimple$,
|
||||||
|
} from "../lib/encodings.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
import * as schemas$ from "../lib/schemas.js";
|
import * as schemas$ from "../lib/schemas.js";
|
||||||
import { RequestOptions } from "../lib/sdks.js";
|
import { RequestOptions } from "../lib/sdks.js";
|
||||||
@@ -27,7 +30,7 @@ export async function categoriesUpdateCategory(
|
|||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
requestBody?: operations.UpdateCategoryRequestBody | undefined,
|
requestBody?: operations.UpdateCategoryRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.UpdateCategoryResponseBody,
|
operations.UpdateCategoryResponseBody,
|
||||||
@@ -48,7 +51,7 @@ export async function categoriesUpdateCategory(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.UpdateCategoryRequest$outboundSchema.parse(value$),
|
(value$) => operations.UpdateCategoryRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -57,7 +60,10 @@ export async function categoriesUpdateCategory(
|
|||||||
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/categories/{id}.json")(pathParams$);
|
const path$ = pathToFunc("/categories/{id}.json")(pathParams$);
|
||||||
@@ -67,19 +73,19 @@ export async function categoriesUpdateCategory(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "updateCategory", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "updateCategory",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -88,7 +94,8 @@ export async function categoriesUpdateCategory(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -105,7 +112,9 @@ export async function categoriesUpdateCategory(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.UpdateCategoryResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.UpdateCategoryResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
import {
|
||||||
|
encodeJSON as encodeJSON$,
|
||||||
|
encodeSimple as encodeSimple$,
|
||||||
|
} from "../lib/encodings.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
import * as schemas$ from "../lib/schemas.js";
|
import * as schemas$ from "../lib/schemas.js";
|
||||||
import { RequestOptions } from "../lib/sdks.js";
|
import { RequestOptions } from "../lib/sdks.js";
|
||||||
@@ -27,7 +30,7 @@ export async function groupsAddGroupMembers(
|
|||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
requestBody?: operations.AddGroupMembersRequestBody | undefined,
|
requestBody?: operations.AddGroupMembersRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.AddGroupMembersResponseBody,
|
operations.AddGroupMembersResponseBody,
|
||||||
@@ -48,7 +51,7 @@ export async function groupsAddGroupMembers(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.AddGroupMembersRequest$outboundSchema.parse(value$),
|
(value$) => operations.AddGroupMembersRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -57,7 +60,10 @@ export async function groupsAddGroupMembers(
|
|||||||
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/groups/{id}/members.json")(pathParams$);
|
const path$ = pathToFunc("/groups/{id}/members.json")(pathParams$);
|
||||||
@@ -67,19 +73,19 @@ export async function groupsAddGroupMembers(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "addGroupMembers", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "addGroupMembers",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -88,7 +94,8 @@ export async function groupsAddGroupMembers(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -105,7 +112,9 @@ export async function groupsAddGroupMembers(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.AddGroupMembersResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.AddGroupMembersResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function groupsCreateGroup(
|
export async function groupsCreateGroup(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
request?: operations.CreateGroupRequestBody | undefined,
|
request?: operations.CreateGroupRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.CreateGroupResponseBody,
|
operations.CreateGroupResponseBody,
|
||||||
@@ -43,14 +43,17 @@ export async function groupsCreateGroup(
|
|||||||
|
|
||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.CreateGroupRequestBody$outboundSchema.optional().parse(value$),
|
(value$) =>
|
||||||
"Input validation failed"
|
operations.CreateGroupRequestBody$outboundSchema.optional().parse(value$),
|
||||||
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
}
|
}
|
||||||
const payload$ = parsed$.value;
|
const payload$ = parsed$.value;
|
||||||
const body$ = payload$ === undefined ? null : encodeJSON$("body", payload$, { explode: true });
|
const body$ = payload$ === undefined
|
||||||
|
? null
|
||||||
|
: encodeJSON$("body", payload$, { explode: true });
|
||||||
|
|
||||||
const path$ = pathToFunc("/admin/groups.json")();
|
const path$ = pathToFunc("/admin/groups.json")();
|
||||||
|
|
||||||
@@ -59,19 +62,19 @@ export async function groupsCreateGroup(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "createGroup", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "createGroup",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "POST",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -80,7 +83,8 @@ export async function groupsCreateGroup(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -97,7 +101,9 @@ export async function groupsCreateGroup(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.CreateGroupResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.CreateGroupResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function groupsDeleteGroup(
|
export async function groupsDeleteGroup(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.DeleteGroupResponseBody,
|
operations.DeleteGroupResponseBody,
|
||||||
@@ -46,7 +46,7 @@ export async function groupsDeleteGroup(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.DeleteGroupRequest$outboundSchema.parse(value$),
|
(value$) => operations.DeleteGroupRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -55,7 +55,10 @@ export async function groupsDeleteGroup(
|
|||||||
const body$ = null;
|
const body$ = null;
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/admin/groups/{id}.json")(pathParams$);
|
const path$ = pathToFunc("/admin/groups/{id}.json")(pathParams$);
|
||||||
@@ -64,19 +67,19 @@ export async function groupsDeleteGroup(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "deleteGroup", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "deleteGroup",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "DELETE",
|
method: "DELETE",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -85,7 +88,8 @@ export async function groupsDeleteGroup(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -102,7 +106,9 @@ export async function groupsDeleteGroup(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.DeleteGroupResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.DeleteGroupResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function groupsGetGroup(
|
export async function groupsGetGroup(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: string,
|
id: string,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.GetGroupResponseBody,
|
operations.GetGroupResponseBody,
|
||||||
@@ -46,7 +46,7 @@ export async function groupsGetGroup(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.GetGroupRequest$outboundSchema.parse(value$),
|
(value$) => operations.GetGroupRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -55,7 +55,10 @@ export async function groupsGetGroup(
|
|||||||
const body$ = null;
|
const body$ = null;
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/groups/{id}.json")(pathParams$);
|
const path$ = pathToFunc("/groups/{id}.json")(pathParams$);
|
||||||
@@ -64,19 +67,19 @@ export async function groupsGetGroup(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "getGroup", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "getGroup",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -85,7 +88,8 @@ export async function groupsGetGroup(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -102,7 +106,9 @@ export async function groupsGetGroup(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.GetGroupResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.GetGroupResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function groupsListGroupMembers(
|
export async function groupsListGroupMembers(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: string,
|
id: string,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.ListGroupMembersResponseBody,
|
operations.ListGroupMembersResponseBody,
|
||||||
@@ -46,7 +46,7 @@ export async function groupsListGroupMembers(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.ListGroupMembersRequest$outboundSchema.parse(value$),
|
(value$) => operations.ListGroupMembersRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -55,7 +55,10 @@ export async function groupsListGroupMembers(
|
|||||||
const body$ = null;
|
const body$ = null;
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/groups/{id}/members.json")(pathParams$);
|
const path$ = pathToFunc("/groups/{id}/members.json")(pathParams$);
|
||||||
@@ -64,19 +67,19 @@ export async function groupsListGroupMembers(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "listGroupMembers", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "listGroupMembers",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -85,7 +88,8 @@ export async function groupsListGroupMembers(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -102,7 +106,9 @@ export async function groupsListGroupMembers(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.ListGroupMembersResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.ListGroupMembersResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
*/
|
*/
|
||||||
export async function groupsListGroups(
|
export async function groupsListGroups(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.ListGroupsResponseBody,
|
operations.ListGroupsResponseBody,
|
||||||
@@ -42,18 +42,18 @@ export async function groupsListGroups(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "listGroups", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "listGroups",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,8 @@ export async function groupsListGroups(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -79,7 +80,9 @@ export async function groupsListGroups(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.ListGroupsResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.ListGroupsResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
import {
|
||||||
|
encodeJSON as encodeJSON$,
|
||||||
|
encodeSimple as encodeSimple$,
|
||||||
|
} from "../lib/encodings.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
import * as schemas$ from "../lib/schemas.js";
|
import * as schemas$ from "../lib/schemas.js";
|
||||||
import { RequestOptions } from "../lib/sdks.js";
|
import { RequestOptions } from "../lib/sdks.js";
|
||||||
@@ -27,7 +30,7 @@ export async function groupsRemoveGroupMembers(
|
|||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
requestBody?: operations.RemoveGroupMembersRequestBody | undefined,
|
requestBody?: operations.RemoveGroupMembersRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.RemoveGroupMembersResponseBody,
|
operations.RemoveGroupMembersResponseBody,
|
||||||
@@ -47,8 +50,9 @@ export async function groupsRemoveGroupMembers(
|
|||||||
|
|
||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.RemoveGroupMembersRequest$outboundSchema.parse(value$),
|
(value$) =>
|
||||||
"Input validation failed"
|
operations.RemoveGroupMembersRequest$outboundSchema.parse(value$),
|
||||||
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -57,7 +61,10 @@ export async function groupsRemoveGroupMembers(
|
|||||||
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/groups/{id}/members.json")(pathParams$);
|
const path$ = pathToFunc("/groups/{id}/members.json")(pathParams$);
|
||||||
@@ -67,19 +74,19 @@ export async function groupsRemoveGroupMembers(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "removeGroupMembers", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "removeGroupMembers",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "DELETE",
|
method: "DELETE",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -88,7 +95,8 @@ export async function groupsRemoveGroupMembers(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -105,7 +113,9 @@ export async function groupsRemoveGroupMembers(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.RemoveGroupMembersResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.RemoveGroupMembersResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
import {
|
||||||
|
encodeJSON as encodeJSON$,
|
||||||
|
encodeSimple as encodeSimple$,
|
||||||
|
} from "../lib/encodings.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
import * as schemas$ from "../lib/schemas.js";
|
import * as schemas$ from "../lib/schemas.js";
|
||||||
import { RequestOptions } from "../lib/sdks.js";
|
import { RequestOptions } from "../lib/sdks.js";
|
||||||
@@ -27,7 +30,7 @@ export async function groupsUpdateGroup(
|
|||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
requestBody?: operations.UpdateGroupRequestBody | undefined,
|
requestBody?: operations.UpdateGroupRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.UpdateGroupResponseBody,
|
operations.UpdateGroupResponseBody,
|
||||||
@@ -48,7 +51,7 @@ export async function groupsUpdateGroup(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.UpdateGroupRequest$outboundSchema.parse(value$),
|
(value$) => operations.UpdateGroupRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -57,7 +60,10 @@ export async function groupsUpdateGroup(
|
|||||||
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/groups/{id}.json")(pathParams$);
|
const path$ = pathToFunc("/groups/{id}.json")(pathParams$);
|
||||||
@@ -67,19 +73,19 @@ export async function groupsUpdateGroup(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "updateGroup", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "updateGroup",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -88,7 +94,8 @@ export async function groupsUpdateGroup(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -105,7 +112,9 @@ export async function groupsUpdateGroup(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.UpdateGroupResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.UpdateGroupResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
import {
|
||||||
|
encodeJSON as encodeJSON$,
|
||||||
|
encodeSimple as encodeSimple$,
|
||||||
|
} from "../lib/encodings.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
import * as schemas$ from "../lib/schemas.js";
|
import * as schemas$ from "../lib/schemas.js";
|
||||||
import { RequestOptions } from "../lib/sdks.js";
|
import { RequestOptions } from "../lib/sdks.js";
|
||||||
@@ -28,7 +31,7 @@ export async function invitesCreateInvite(
|
|||||||
apiKey: string,
|
apiKey: string,
|
||||||
apiUsername: string,
|
apiUsername: string,
|
||||||
requestBody?: operations.CreateInviteRequestBody | undefined,
|
requestBody?: operations.CreateInviteRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.CreateInviteResponseBody,
|
operations.CreateInviteResponseBody,
|
||||||
@@ -50,7 +53,7 @@ export async function invitesCreateInvite(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.CreateInviteRequest$outboundSchema.parse(value$),
|
(value$) => operations.CreateInviteRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -73,19 +76,19 @@ export async function invitesCreateInvite(
|
|||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "createInvite", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "createInvite",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "POST",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -94,7 +97,8 @@ export async function invitesCreateInvite(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -111,7 +115,9 @@ export async function invitesCreateInvite(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.CreateInviteResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.CreateInviteResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
import {
|
||||||
|
encodeJSON as encodeJSON$,
|
||||||
|
encodeSimple as encodeSimple$,
|
||||||
|
} from "../lib/encodings.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
import * as schemas$ from "../lib/schemas.js";
|
import * as schemas$ from "../lib/schemas.js";
|
||||||
import { RequestOptions } from "../lib/sdks.js";
|
import { RequestOptions } from "../lib/sdks.js";
|
||||||
@@ -29,7 +32,7 @@ export async function invitesInviteToTopic(
|
|||||||
apiUsername: string,
|
apiUsername: string,
|
||||||
id: string,
|
id: string,
|
||||||
requestBody?: operations.InviteToTopicRequestBody | undefined,
|
requestBody?: operations.InviteToTopicRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.InviteToTopicResponseBody,
|
operations.InviteToTopicResponseBody,
|
||||||
@@ -52,7 +55,7 @@ export async function invitesInviteToTopic(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.InviteToTopicRequest$outboundSchema.parse(value$),
|
(value$) => operations.InviteToTopicRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -61,7 +64,10 @@ export async function invitesInviteToTopic(
|
|||||||
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/t/{id}/invite.json")(pathParams$);
|
const path$ = pathToFunc("/t/{id}/invite.json")(pathParams$);
|
||||||
@@ -79,19 +85,19 @@ export async function invitesInviteToTopic(
|
|||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "inviteToTopic", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "inviteToTopic",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "POST",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -100,7 +106,8 @@ export async function invitesInviteToTopic(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -117,7 +124,9 @@ export async function invitesInviteToTopic(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.InviteToTopicResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.InviteToTopicResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
*/
|
*/
|
||||||
export async function notificationsGetNotifications(
|
export async function notificationsGetNotifications(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.GetNotificationsResponseBody,
|
operations.GetNotificationsResponseBody,
|
||||||
@@ -42,18 +42,18 @@ export async function notificationsGetNotifications(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "getNotifications", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "getNotifications",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,8 @@ export async function notificationsGetNotifications(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -79,7 +80,9 @@ export async function notificationsGetNotifications(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.GetNotificationsResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.GetNotificationsResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function notificationsMarkNotificationsAsRead(
|
export async function notificationsMarkNotificationsAsRead(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
request?: operations.MarkNotificationsAsReadRequestBody | undefined,
|
request?: operations.MarkNotificationsAsReadRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.MarkNotificationsAsReadResponseBody,
|
operations.MarkNotificationsAsReadResponseBody,
|
||||||
@@ -44,14 +44,17 @@ export async function notificationsMarkNotificationsAsRead(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) =>
|
(value$) =>
|
||||||
operations.MarkNotificationsAsReadRequestBody$outboundSchema.optional().parse(value$),
|
operations.MarkNotificationsAsReadRequestBody$outboundSchema.optional()
|
||||||
"Input validation failed"
|
.parse(value$),
|
||||||
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
}
|
}
|
||||||
const payload$ = parsed$.value;
|
const payload$ = parsed$.value;
|
||||||
const body$ = payload$ === undefined ? null : encodeJSON$("body", payload$, { explode: true });
|
const body$ = payload$ === undefined
|
||||||
|
? null
|
||||||
|
: encodeJSON$("body", payload$, { explode: true });
|
||||||
|
|
||||||
const path$ = pathToFunc("/notifications/mark-read.json")();
|
const path$ = pathToFunc("/notifications/mark-read.json")();
|
||||||
|
|
||||||
@@ -66,17 +69,13 @@ export async function notificationsMarkNotificationsAsRead(
|
|||||||
securitySource: null,
|
securitySource: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -85,7 +84,8 @@ export async function notificationsMarkNotificationsAsRead(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -102,7 +102,9 @@ export async function notificationsMarkNotificationsAsRead(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.MarkNotificationsAsReadResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.MarkNotificationsAsReadResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function postsCreateTopicPostPM(
|
export async function postsCreateTopicPostPM(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
request?: operations.CreateTopicPostPMRequestBody | undefined,
|
request?: operations.CreateTopicPostPMRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.CreateTopicPostPMResponseBody,
|
operations.CreateTopicPostPMResponseBody,
|
||||||
@@ -43,14 +43,19 @@ export async function postsCreateTopicPostPM(
|
|||||||
|
|
||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.CreateTopicPostPMRequestBody$outboundSchema.optional().parse(value$),
|
(value$) =>
|
||||||
"Input validation failed"
|
operations.CreateTopicPostPMRequestBody$outboundSchema.optional().parse(
|
||||||
|
value$,
|
||||||
|
),
|
||||||
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
}
|
}
|
||||||
const payload$ = parsed$.value;
|
const payload$ = parsed$.value;
|
||||||
const body$ = payload$ === undefined ? null : encodeJSON$("body", payload$, { explode: true });
|
const body$ = payload$ === undefined
|
||||||
|
? null
|
||||||
|
: encodeJSON$("body", payload$, { explode: true });
|
||||||
|
|
||||||
const path$ = pathToFunc("/posts.json")();
|
const path$ = pathToFunc("/posts.json")();
|
||||||
|
|
||||||
@@ -59,19 +64,19 @@ export async function postsCreateTopicPostPM(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "createTopicPostPM", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "createTopicPostPM",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "POST",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -80,7 +85,8 @@ export async function postsCreateTopicPostPM(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -97,7 +103,9 @@ export async function postsCreateTopicPostPM(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.CreateTopicPostPMResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.CreateTopicPostPMResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,12 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as z from "zod";
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
import {
|
||||||
|
encodeJSON as encodeJSON$,
|
||||||
|
encodeSimple as encodeSimple$,
|
||||||
|
} from "../lib/encodings.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
import * as schemas$ from "../lib/schemas.js";
|
import * as schemas$ from "../lib/schemas.js";
|
||||||
import { RequestOptions } from "../lib/sdks.js";
|
import { RequestOptions } from "../lib/sdks.js";
|
||||||
@@ -19,7 +23,6 @@ import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|||||||
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
||||||
import * as operations from "../sdk/models/operations/index.js";
|
import * as operations from "../sdk/models/operations/index.js";
|
||||||
import { Result } from "../sdk/types/fp.js";
|
import { Result } from "../sdk/types/fp.js";
|
||||||
import * as z from "zod";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* delete a single post
|
* delete a single post
|
||||||
@@ -28,7 +31,7 @@ export async function postsDeletePost(
|
|||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: number,
|
id: number,
|
||||||
requestBody?: operations.DeletePostRequestBody | undefined,
|
requestBody?: operations.DeletePostRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
void,
|
void,
|
||||||
@@ -49,7 +52,7 @@ export async function postsDeletePost(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.DeletePostRequest$outboundSchema.parse(value$),
|
(value$) => operations.DeletePostRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -58,7 +61,10 @@ export async function postsDeletePost(
|
|||||||
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/posts/{id}.json")(pathParams$);
|
const path$ = pathToFunc("/posts/{id}.json")(pathParams$);
|
||||||
@@ -68,19 +74,19 @@ export async function postsDeletePost(
|
|||||||
Accept: "*/*",
|
Accept: "*/*",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "deletePost", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "deletePost",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "DELETE",
|
method: "DELETE",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -89,7 +95,8 @@ export async function postsDeletePost(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -106,7 +113,9 @@ export async function postsDeletePost(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.nil(200, z.void()))(response);
|
>(
|
||||||
|
m$.nil(200, z.void()),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,12 +29,11 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
* with the id of `2` signify a `like`. If there are no `actions_summary`
|
* with the id of `2` signify a `like`. If there are no `actions_summary`
|
||||||
* items with the id of `2`, that means there are 0 likes. Other ids likely
|
* items with the id of `2`, that means there are 0 likes. Other ids likely
|
||||||
* refer to various different flag types.
|
* refer to various different flag types.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
export async function postsGetPost(
|
export async function postsGetPost(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: string,
|
id: string,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.GetPostResponseBody,
|
operations.GetPostResponseBody,
|
||||||
@@ -54,7 +53,7 @@ export async function postsGetPost(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.GetPostRequest$outboundSchema.parse(value$),
|
(value$) => operations.GetPostRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -63,7 +62,10 @@ export async function postsGetPost(
|
|||||||
const body$ = null;
|
const body$ = null;
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/posts/{id}.json")(pathParams$);
|
const path$ = pathToFunc("/posts/{id}.json")(pathParams$);
|
||||||
@@ -72,19 +74,19 @@ export async function postsGetPost(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "getPost", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "getPost",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -93,7 +95,8 @@ export async function postsGetPost(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -110,7 +113,9 @@ export async function postsGetPost(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.GetPostResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.GetPostResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export async function postsListPosts(
|
|||||||
apiKey: string,
|
apiKey: string,
|
||||||
apiUsername: string,
|
apiUsername: string,
|
||||||
before?: string | undefined,
|
before?: string | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.ListPostsResponseBody,
|
operations.ListPostsResponseBody,
|
||||||
@@ -53,7 +53,7 @@ export async function postsListPosts(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.ListPostsRequest$outboundSchema.parse(value$),
|
(value$) => operations.ListPostsRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -64,7 +64,7 @@ export async function postsListPosts(
|
|||||||
const path$ = pathToFunc("/posts.json")();
|
const path$ = pathToFunc("/posts.json")();
|
||||||
|
|
||||||
const query$ = encodeFormQuery$({
|
const query$ = encodeFormQuery$({
|
||||||
before: payload$.before,
|
"before": payload$.before,
|
||||||
});
|
});
|
||||||
|
|
||||||
const headers$ = new Headers({
|
const headers$ = new Headers({
|
||||||
@@ -79,20 +79,20 @@ export async function postsListPosts(
|
|||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "listPosts", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "listPosts",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -101,7 +101,8 @@ export async function postsListPosts(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -118,7 +119,9 @@ export async function postsListPosts(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.ListPostsResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.ListPostsResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
import {
|
||||||
|
encodeJSON as encodeJSON$,
|
||||||
|
encodeSimple as encodeSimple$,
|
||||||
|
} from "../lib/encodings.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
import * as schemas$ from "../lib/schemas.js";
|
import * as schemas$ from "../lib/schemas.js";
|
||||||
import { RequestOptions } from "../lib/sdks.js";
|
import { RequestOptions } from "../lib/sdks.js";
|
||||||
@@ -29,7 +32,7 @@ export async function postsLockPost(
|
|||||||
apiUsername: string,
|
apiUsername: string,
|
||||||
id: string,
|
id: string,
|
||||||
requestBody?: operations.LockPostRequestBody | undefined,
|
requestBody?: operations.LockPostRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.LockPostResponseBody,
|
operations.LockPostResponseBody,
|
||||||
@@ -52,7 +55,7 @@ export async function postsLockPost(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.LockPostRequest$outboundSchema.parse(value$),
|
(value$) => operations.LockPostRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -61,7 +64,10 @@ export async function postsLockPost(
|
|||||||
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/posts/{id}/locked.json")(pathParams$);
|
const path$ = pathToFunc("/posts/{id}/locked.json")(pathParams$);
|
||||||
@@ -79,19 +85,19 @@ export async function postsLockPost(
|
|||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "lockPost", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "lockPost",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -100,7 +106,8 @@ export async function postsLockPost(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -117,7 +124,9 @@ export async function postsLockPost(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.LockPostResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.LockPostResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
import {
|
||||||
|
encodeJSON as encodeJSON$,
|
||||||
|
encodeSimple as encodeSimple$,
|
||||||
|
} from "../lib/encodings.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
import * as schemas$ from "../lib/schemas.js";
|
import * as schemas$ from "../lib/schemas.js";
|
||||||
import { RequestOptions } from "../lib/sdks.js";
|
import { RequestOptions } from "../lib/sdks.js";
|
||||||
@@ -28,7 +31,7 @@ export async function postsPerformPostAction(
|
|||||||
apiKey: string,
|
apiKey: string,
|
||||||
apiUsername: string,
|
apiUsername: string,
|
||||||
requestBody?: operations.PerformPostActionRequestBody | undefined,
|
requestBody?: operations.PerformPostActionRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.PerformPostActionResponseBody,
|
operations.PerformPostActionResponseBody,
|
||||||
@@ -49,8 +52,9 @@ export async function postsPerformPostAction(
|
|||||||
|
|
||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.PerformPostActionRequest$outboundSchema.parse(value$),
|
(value$) =>
|
||||||
"Input validation failed"
|
operations.PerformPostActionRequest$outboundSchema.parse(value$),
|
||||||
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -73,19 +77,19 @@ export async function postsPerformPostAction(
|
|||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "performPostAction", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "performPostAction",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "POST",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -94,7 +98,8 @@ export async function postsPerformPostAction(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -111,7 +116,9 @@ export async function postsPerformPostAction(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.PerformPostActionResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.PerformPostActionResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as z from "zod";
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import { encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
import { encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
@@ -19,7 +20,6 @@ import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|||||||
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
||||||
import * as operations from "../sdk/models/operations/index.js";
|
import * as operations from "../sdk/models/operations/index.js";
|
||||||
import { Result } from "../sdk/types/fp.js";
|
import { Result } from "../sdk/types/fp.js";
|
||||||
import * as z from "zod";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List replies to a post
|
* List replies to a post
|
||||||
@@ -27,7 +27,7 @@ import * as z from "zod";
|
|||||||
export async function postsPostReplies(
|
export async function postsPostReplies(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: string,
|
id: string,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
Array<operations.PostRepliesResponseBody>,
|
Array<operations.PostRepliesResponseBody>,
|
||||||
@@ -47,7 +47,7 @@ export async function postsPostReplies(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.PostRepliesRequest$outboundSchema.parse(value$),
|
(value$) => operations.PostRepliesRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -56,7 +56,10 @@ export async function postsPostReplies(
|
|||||||
const body$ = null;
|
const body$ = null;
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/posts/{id}/replies.json")(pathParams$);
|
const path$ = pathToFunc("/posts/{id}/replies.json")(pathParams$);
|
||||||
@@ -65,19 +68,19 @@ export async function postsPostReplies(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "postReplies", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "postReplies",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -86,7 +89,8 @@ export async function postsPostReplies(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -103,7 +107,9 @@ export async function postsPostReplies(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, z.array(operations.PostRepliesResponseBody$inboundSchema)))(response);
|
>(
|
||||||
|
m$.json(200, z.array(operations.PostRepliesResponseBody$inboundSchema)),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { SDKCore } from "../core.js";
|
import { SDKCore } from "../core.js";
|
||||||
import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
import {
|
||||||
|
encodeJSON as encodeJSON$,
|
||||||
|
encodeSimple as encodeSimple$,
|
||||||
|
} from "../lib/encodings.js";
|
||||||
import * as m$ from "../lib/matchers.js";
|
import * as m$ from "../lib/matchers.js";
|
||||||
import * as schemas$ from "../lib/schemas.js";
|
import * as schemas$ from "../lib/schemas.js";
|
||||||
import { RequestOptions } from "../lib/sdks.js";
|
import { RequestOptions } from "../lib/sdks.js";
|
||||||
@@ -27,7 +30,7 @@ export async function postsUpdatePost(
|
|||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
id: string,
|
id: string,
|
||||||
requestBody?: operations.UpdatePostRequestBody | undefined,
|
requestBody?: operations.UpdatePostRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.UpdatePostResponseBody,
|
operations.UpdatePostResponseBody,
|
||||||
@@ -48,7 +51,7 @@ export async function postsUpdatePost(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.UpdatePostRequest$outboundSchema.parse(value$),
|
(value$) => operations.UpdatePostRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -57,7 +60,10 @@ export async function postsUpdatePost(
|
|||||||
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
id: encodeSimple$("id", payload$.id, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/posts/{id}.json")(pathParams$);
|
const path$ = pathToFunc("/posts/{id}.json")(pathParams$);
|
||||||
@@ -67,19 +73,19 @@ export async function postsUpdatePost(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "updatePost", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "updatePost",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -88,7 +94,8 @@ export async function postsUpdatePost(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -105,7 +112,9 @@ export async function postsUpdatePost(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.UpdatePostResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.UpdatePostResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function privateMessagesCreateTopicPostPM(
|
export async function privateMessagesCreateTopicPostPM(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
request?: operations.CreateTopicPostPMRequestBody | undefined,
|
request?: operations.CreateTopicPostPMRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.CreateTopicPostPMResponseBody,
|
operations.CreateTopicPostPMResponseBody,
|
||||||
@@ -43,14 +43,19 @@ export async function privateMessagesCreateTopicPostPM(
|
|||||||
|
|
||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.CreateTopicPostPMRequestBody$outboundSchema.optional().parse(value$),
|
(value$) =>
|
||||||
"Input validation failed"
|
operations.CreateTopicPostPMRequestBody$outboundSchema.optional().parse(
|
||||||
|
value$,
|
||||||
|
),
|
||||||
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
}
|
}
|
||||||
const payload$ = parsed$.value;
|
const payload$ = parsed$.value;
|
||||||
const body$ = payload$ === undefined ? null : encodeJSON$("body", payload$, { explode: true });
|
const body$ = payload$ === undefined
|
||||||
|
? null
|
||||||
|
: encodeJSON$("body", payload$, { explode: true });
|
||||||
|
|
||||||
const path$ = pathToFunc("/posts.json")();
|
const path$ = pathToFunc("/posts.json")();
|
||||||
|
|
||||||
@@ -59,19 +64,19 @@ export async function privateMessagesCreateTopicPostPM(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "createTopicPostPM", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "createTopicPostPM",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "POST",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -80,7 +85,8 @@ export async function privateMessagesCreateTopicPostPM(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -97,7 +103,9 @@ export async function privateMessagesCreateTopicPostPM(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.CreateTopicPostPMResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.CreateTopicPostPMResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function privateMessagesGetUserSentPrivateMessages(
|
export async function privateMessagesGetUserSentPrivateMessages(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
username: string,
|
username: string,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.GetUserSentPrivateMessagesResponseBody,
|
operations.GetUserSentPrivateMessagesResponseBody,
|
||||||
@@ -45,8 +45,9 @@ export async function privateMessagesGetUserSentPrivateMessages(
|
|||||||
|
|
||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.GetUserSentPrivateMessagesRequest$outboundSchema.parse(value$),
|
(value$) =>
|
||||||
"Input validation failed"
|
operations.GetUserSentPrivateMessagesRequest$outboundSchema.parse(value$),
|
||||||
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -61,7 +62,9 @@ export async function privateMessagesGetUserSentPrivateMessages(
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/topics/private-messages-sent/{username}.json")(pathParams$);
|
const path$ = pathToFunc("/topics/private-messages-sent/{username}.json")(
|
||||||
|
pathParams$,
|
||||||
|
);
|
||||||
|
|
||||||
const headers$ = new Headers({
|
const headers$ = new Headers({
|
||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
@@ -73,17 +76,13 @@ export async function privateMessagesGetUserSentPrivateMessages(
|
|||||||
securitySource: null,
|
securitySource: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -92,7 +91,8 @@ export async function privateMessagesGetUserSentPrivateMessages(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -109,7 +109,12 @@ export async function privateMessagesGetUserSentPrivateMessages(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.GetUserSentPrivateMessagesResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(
|
||||||
|
200,
|
||||||
|
operations.GetUserSentPrivateMessagesResponseBody$inboundSchema,
|
||||||
|
),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function privateMessagesListUserPrivateMessages(
|
export async function privateMessagesListUserPrivateMessages(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
username: string,
|
username: string,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.ListUserPrivateMessagesResponseBody,
|
operations.ListUserPrivateMessagesResponseBody,
|
||||||
@@ -45,8 +45,9 @@ export async function privateMessagesListUserPrivateMessages(
|
|||||||
|
|
||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.ListUserPrivateMessagesRequest$outboundSchema.parse(value$),
|
(value$) =>
|
||||||
"Input validation failed"
|
operations.ListUserPrivateMessagesRequest$outboundSchema.parse(value$),
|
||||||
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -61,7 +62,9 @@ export async function privateMessagesListUserPrivateMessages(
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/topics/private-messages/{username}.json")(pathParams$);
|
const path$ = pathToFunc("/topics/private-messages/{username}.json")(
|
||||||
|
pathParams$,
|
||||||
|
);
|
||||||
|
|
||||||
const headers$ = new Headers({
|
const headers$ = new Headers({
|
||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
@@ -73,17 +76,13 @@ export async function privateMessagesListUserPrivateMessages(
|
|||||||
securitySource: null,
|
securitySource: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -92,7 +91,8 @@ export async function privateMessagesListUserPrivateMessages(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -109,7 +109,9 @@ export async function privateMessagesListUserPrivateMessages(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.ListUserPrivateMessagesResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.ListUserPrivateMessagesResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export async function searchSearch(
|
|||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
page?: number | undefined,
|
page?: number | undefined,
|
||||||
q?: string | undefined,
|
q?: string | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.SearchResponseBody,
|
operations.SearchResponseBody,
|
||||||
@@ -48,7 +48,7 @@ export async function searchSearch(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.SearchRequest$outboundSchema.parse(value$),
|
(value$) => operations.SearchRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -59,28 +59,28 @@ export async function searchSearch(
|
|||||||
const path$ = pathToFunc("/search.json")();
|
const path$ = pathToFunc("/search.json")();
|
||||||
|
|
||||||
const query$ = encodeFormQuery$({
|
const query$ = encodeFormQuery$({
|
||||||
page: payload$.page,
|
"page": payload$.page,
|
||||||
q: payload$.q,
|
"q": payload$.q,
|
||||||
});
|
});
|
||||||
|
|
||||||
const headers$ = new Headers({
|
const headers$ = new Headers({
|
||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "search", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "search",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -89,7 +89,8 @@ export async function searchSearch(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -106,7 +107,9 @@ export async function searchSearch(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.SearchResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.SearchResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
*/
|
*/
|
||||||
export async function siteGetSite(
|
export async function siteGetSite(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.GetSiteResponseBody,
|
operations.GetSiteResponseBody,
|
||||||
@@ -45,18 +45,18 @@ export async function siteGetSite(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "getSite", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "getSite",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -65,7 +65,8 @@ export async function siteGetSite(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -82,7 +83,9 @@ export async function siteGetSite(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.GetSiteResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.GetSiteResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function tagsCreateTagGroup(
|
export async function tagsCreateTagGroup(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
request?: operations.CreateTagGroupRequestBody | undefined,
|
request?: operations.CreateTagGroupRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.CreateTagGroupResponseBody,
|
operations.CreateTagGroupResponseBody,
|
||||||
@@ -43,14 +43,19 @@ export async function tagsCreateTagGroup(
|
|||||||
|
|
||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.CreateTagGroupRequestBody$outboundSchema.optional().parse(value$),
|
(value$) =>
|
||||||
"Input validation failed"
|
operations.CreateTagGroupRequestBody$outboundSchema.optional().parse(
|
||||||
|
value$,
|
||||||
|
),
|
||||||
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
}
|
}
|
||||||
const payload$ = parsed$.value;
|
const payload$ = parsed$.value;
|
||||||
const body$ = payload$ === undefined ? null : encodeJSON$("body", payload$, { explode: true });
|
const body$ = payload$ === undefined
|
||||||
|
? null
|
||||||
|
: encodeJSON$("body", payload$, { explode: true });
|
||||||
|
|
||||||
const path$ = pathToFunc("/tag_groups.json")();
|
const path$ = pathToFunc("/tag_groups.json")();
|
||||||
|
|
||||||
@@ -59,19 +64,19 @@ export async function tagsCreateTagGroup(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "createTagGroup", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "createTagGroup",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "POST",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -80,7 +85,8 @@ export async function tagsCreateTagGroup(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -97,7 +103,9 @@ export async function tagsCreateTagGroup(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.CreateTagGroupResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.CreateTagGroupResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Result } from "../sdk/types/fp.js";
|
|||||||
export async function tagsGetTag(
|
export async function tagsGetTag(
|
||||||
client$: SDKCore,
|
client$: SDKCore,
|
||||||
name: string,
|
name: string,
|
||||||
options?: RequestOptions
|
options?: RequestOptions,
|
||||||
): Promise<
|
): Promise<
|
||||||
Result<
|
Result<
|
||||||
operations.GetTagResponseBody,
|
operations.GetTagResponseBody,
|
||||||
@@ -46,7 +46,7 @@ export async function tagsGetTag(
|
|||||||
const parsed$ = schemas$.safeParse(
|
const parsed$ = schemas$.safeParse(
|
||||||
input$,
|
input$,
|
||||||
(value$) => operations.GetTagRequest$outboundSchema.parse(value$),
|
(value$) => operations.GetTagRequest$outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed",
|
||||||
);
|
);
|
||||||
if (!parsed$.ok) {
|
if (!parsed$.ok) {
|
||||||
return parsed$;
|
return parsed$;
|
||||||
@@ -55,7 +55,10 @@ export async function tagsGetTag(
|
|||||||
const body$ = null;
|
const body$ = null;
|
||||||
|
|
||||||
const pathParams$ = {
|
const pathParams$ = {
|
||||||
name: encodeSimple$("name", payload$.name, { explode: false, charEncoding: "percent" }),
|
name: encodeSimple$("name", payload$.name, {
|
||||||
|
explode: false,
|
||||||
|
charEncoding: "percent",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const path$ = pathToFunc("/tag/{name}.json")(pathParams$);
|
const path$ = pathToFunc("/tag/{name}.json")(pathParams$);
|
||||||
@@ -64,19 +67,19 @@ export async function tagsGetTag(
|
|||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
});
|
});
|
||||||
|
|
||||||
const context = { operationID: "getTag", oAuth2Scopes: [], securitySource: null };
|
const context = {
|
||||||
|
operationID: "getTag",
|
||||||
|
oAuth2Scopes: [],
|
||||||
|
securitySource: null,
|
||||||
|
};
|
||||||
|
|
||||||
const requestRes = client$.createRequest$(
|
const requestRes = client$.createRequest$(context, {
|
||||||
context,
|
|
||||||
{
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
||||||
},
|
}, options);
|
||||||
options
|
|
||||||
);
|
|
||||||
if (!requestRes.ok) {
|
if (!requestRes.ok) {
|
||||||
return requestRes;
|
return requestRes;
|
||||||
}
|
}
|
||||||
@@ -85,7 +88,8 @@ export async function tagsGetTag(
|
|||||||
const doResult = await client$.do$(request$, {
|
const doResult = await client$.do$(request$, {
|
||||||
context,
|
context,
|
||||||
errorCodes: [],
|
errorCodes: [],
|
||||||
retryConfig: options?.retries || client$.options$.retryConfig,
|
retryConfig: options?.retries
|
||||||
|
|| client$.options$.retryConfig,
|
||||||
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
||||||
});
|
});
|
||||||
if (!doResult.ok) {
|
if (!doResult.ok) {
|
||||||
@@ -102,7 +106,9 @@ export async function tagsGetTag(
|
|||||||
| RequestAbortedError
|
| RequestAbortedError
|
||||||
| RequestTimeoutError
|
| RequestTimeoutError
|
||||||
| ConnectionError
|
| ConnectionError
|
||||||
>(m$.json(200, operations.GetTagResponseBody$inboundSchema))(response);
|
>(
|
||||||
|
m$.json(200, operations.GetTagResponseBody$inboundSchema),
|
||||||
|
)(response);
|
||||||
if (!result$.ok) {
|
if (!result$.ok) {
|
||||||
return result$;
|
return result$;
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user