@steamsets/client-ts 0.14.29 → 0.15.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +2 -2
- package/README.md +84 -92
- package/docs/sdks/account/README.md +18 -792
- package/docs/sdks/admin/README.md +10 -171
- package/docs/sdks/badge/README.md +0 -302
- package/docs/sdks/badges/README.md +302 -0
- package/docs/sdks/connection/README.md +5 -5
- package/docs/sdks/{event → events}/README.md +12 -12
- package/docs/sdks/external/README.md +5 -5
- package/docs/sdks/images/README.md +10 -10
- package/docs/sdks/internal/README.md +32 -1125
- package/docs/sdks/settings/README.md +133 -50
- package/docs/sdks/stats/README.md +5 -5
- package/docs/sdks/webhooks/README.md +84 -0
- package/funcs/{adminAdminV1UpdateEvent.d.ts → adminUpdateResources.d.ts} +2 -2
- package/funcs/adminUpdateResources.d.ts.map +1 -0
- package/funcs/{adminAdminV1UpdateResources.js → adminUpdateResources.js} +3 -3
- package/funcs/adminUpdateResources.js.map +1 -0
- package/funcs/{imagesAccountV1ImagesGet.d.ts → adminUpdateRoles.d.ts} +3 -2
- package/funcs/adminUpdateRoles.d.ts.map +1 -0
- package/funcs/{adminAdminV1UpdateRoles.js → adminUpdateRoles.js} +3 -3
- package/funcs/adminUpdateRoles.js.map +1 -0
- package/funcs/{accountVerifyEmail.d.ts → badgesBookmark.d.ts} +2 -2
- package/funcs/badgesBookmark.d.ts.map +1 -0
- package/funcs/{badgeAccountV1BookmarkBadge.js → badgesBookmark.js} +3 -3
- package/funcs/badgesBookmark.js.map +1 -0
- package/funcs/{internalAccountV1ConnectionReconnect.d.ts → badgesGetBookmarks.d.ts} +2 -3
- package/funcs/badgesGetBookmarks.d.ts.map +1 -0
- package/funcs/{badgeAccountV1GetBadgeBookmarks.js → badgesGetBookmarks.js} +3 -3
- package/funcs/badgesGetBookmarks.js.map +1 -0
- package/funcs/{adminAdminV1GetEvents.d.ts → badgesGetOwned.d.ts} +2 -2
- package/funcs/badgesGetOwned.d.ts.map +1 -0
- package/funcs/{badgeAccountV1GetOwnedBadges.js → badgesGetOwned.js} +3 -3
- package/funcs/badgesGetOwned.js.map +1 -0
- package/funcs/{badgeBadgeV1Search.d.ts → badgesSearch.d.ts} +2 -2
- package/funcs/badgesSearch.d.ts.map +1 -0
- package/funcs/{badgeBadgeV1Search.js → badgesSearch.js} +3 -3
- package/funcs/badgesSearch.js.map +1 -0
- package/funcs/{internalVerifyEmail.d.ts → connectionReconnect.d.ts} +2 -2
- package/funcs/{internalVerifyEmail.d.ts.map → connectionReconnect.d.ts.map} +1 -1
- package/funcs/{accountAccountV1ConnectionReconnect.js → connectionReconnect.js} +3 -3
- package/funcs/{internalVerifyEmail.js.map → connectionReconnect.js.map} +1 -1
- package/funcs/{internalAccountV1ImagesGet.d.ts → eventsGet.d.ts} +2 -2
- package/funcs/eventsGet.d.ts.map +1 -0
- package/funcs/{eventAdminV1GetEvents.js → eventsGet.js} +3 -3
- package/funcs/eventsGet.js.map +1 -0
- package/funcs/eventsUpdate.d.ts +11 -0
- package/funcs/eventsUpdate.d.ts.map +1 -0
- package/funcs/{eventAdminV1UpdateEvent.js → eventsUpdate.js} +3 -3
- package/funcs/eventsUpdate.js.map +1 -0
- package/funcs/{statsStatsV1StatsGet.d.ts → externalGet.d.ts} +2 -2
- package/funcs/externalGet.d.ts.map +1 -0
- package/funcs/{statsStatsV1StatsGet.js → externalGet.js} +3 -3
- package/funcs/externalGet.js.map +1 -0
- package/funcs/{internalBadgeV1Search.d.ts → imagesGet.d.ts} +2 -3
- package/funcs/imagesGet.d.ts.map +1 -0
- package/funcs/{imagesAccountV1ImagesGet.js → imagesGet.js} +3 -3
- package/funcs/imagesGet.js.map +1 -0
- package/funcs/imagesUpdate.d.ts +11 -0
- package/funcs/imagesUpdate.d.ts.map +1 -0
- package/funcs/{imagesAccountV1ImagesUpdate.js → imagesUpdate.js} +3 -3
- package/funcs/imagesUpdate.js.map +1 -0
- package/funcs/{accountAccountV1GetBadgeBookmarks.d.ts → settingsSendVerification.d.ts} +2 -2
- package/funcs/settingsSendVerification.d.ts.map +1 -0
- package/funcs/{accountSendEmailVerification.js → settingsSendVerification.js} +7 -7
- package/funcs/settingsSendVerification.js.map +1 -0
- package/funcs/{badgeAccountV1BookmarkBadge.d.ts → settingsSubscribeEmail.d.ts} +2 -3
- package/funcs/settingsSubscribeEmail.d.ts.map +1 -0
- package/funcs/{internalSendEmailVerification.js → settingsSubscribeEmail.js} +12 -10
- package/funcs/settingsSubscribeEmail.js.map +1 -0
- package/funcs/settingsUpdateRole.d.ts +11 -0
- package/funcs/{accountVerifyEmail.d.ts.map → settingsUpdateRole.d.ts.map} +1 -1
- package/funcs/{accountAccountV1SettingsUpdateRole.js → settingsUpdateRole.js} +3 -3
- package/funcs/{accountVerifyEmail.js.map → settingsUpdateRole.js.map} +1 -1
- package/funcs/settingsVerifyEmail.d.ts +1 -1
- package/funcs/settingsVerifyEmail.d.ts.map +1 -1
- package/funcs/settingsVerifyEmail.js +3 -3
- package/funcs/settingsVerifyEmail.js.map +1 -1
- package/funcs/{accountAccountV1ImagesGet.d.ts → statsGet.d.ts} +2 -2
- package/funcs/statsGet.d.ts.map +1 -0
- package/funcs/{externalStatsV1StatsGet.js → statsGet.js} +3 -3
- package/funcs/statsGet.js.map +1 -0
- package/funcs/{adminAdminV1UpdateRoles.d.ts → webhooksResend.d.ts} +2 -4
- package/funcs/webhooksResend.d.ts.map +1 -0
- package/funcs/{internalAccountV1SettingsUpdateRole.js → webhooksResend.js} +18 -17
- package/funcs/webhooksResend.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/models/components/errormodel.d.ts +63 -0
- package/models/components/errormodel.d.ts.map +1 -0
- package/models/components/errormodel.js +81 -0
- package/models/components/errormodel.js.map +1 -0
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/v1accountinforesponsebody.d.ts +3 -0
- package/models/components/v1accountinforesponsebody.d.ts.map +1 -1
- package/models/components/v1accountinforesponsebody.js +1 -0
- package/models/components/v1accountinforesponsebody.js.map +1 -1
- package/models/components/v1emailsubscriptionrequestbody.d.ts +37 -0
- package/models/components/v1emailsubscriptionrequestbody.d.ts.map +1 -0
- package/models/components/v1emailsubscriptionrequestbody.js +61 -0
- package/models/components/v1emailsubscriptionrequestbody.js.map +1 -0
- package/models/components/v1getsettingsbody.d.ts +5 -0
- package/models/components/v1getsettingsbody.d.ts.map +1 -1
- package/models/components/v1getsettingsbody.js +2 -0
- package/models/components/v1getsettingsbody.js.map +1 -1
- package/models/operations/accountv1settingsemailsendverification.d.ts +61 -0
- package/models/operations/{accountv1settingssendemailverification.d.ts.map → accountv1settingsemailsendverification.d.ts.map} +1 -1
- package/models/operations/accountv1settingsemailsendverification.js +108 -0
- package/models/operations/{accountv1settingssendemailverification.js.map → accountv1settingsemailsendverification.js.map} +1 -1
- package/models/operations/accountv1settingsemailsubscribe.d.ts +63 -0
- package/models/operations/accountv1settingsemailsubscribe.d.ts.map +1 -0
- package/models/operations/accountv1settingsemailsubscribe.js +112 -0
- package/models/operations/accountv1settingsemailsubscribe.js.map +1 -0
- package/models/operations/accountv1settingsemailverify.d.ts +36 -0
- package/models/operations/accountv1settingsemailverify.d.ts.map +1 -0
- package/models/operations/{accountv1settingsverfyemail.js → accountv1settingsemailverify.js} +17 -17
- package/models/operations/accountv1settingsemailverify.js.map +1 -0
- package/models/operations/index.d.ts +4 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/resendwebhook.d.ts +66 -0
- package/models/operations/resendwebhook.d.ts.map +1 -0
- package/models/operations/resendwebhook.js +130 -0
- package/models/operations/resendwebhook.js.map +1 -0
- package/package.json +1 -1
- package/sdk/account.d.ts +0 -10
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +0 -40
- package/sdk/account.js.map +1 -1
- package/sdk/admin.d.ts +2 -4
- package/sdk/admin.d.ts.map +1 -1
- package/sdk/admin.js +6 -14
- package/sdk/admin.js.map +1 -1
- package/sdk/badge.d.ts +0 -5
- package/sdk/badge.d.ts.map +1 -1
- package/sdk/badge.js +0 -16
- package/sdk/badge.js.map +1 -1
- package/sdk/badges.d.ts +4 -0
- package/sdk/badges.d.ts.map +1 -1
- package/sdk/badges.js +16 -0
- package/sdk/badges.js.map +1 -1
- package/sdk/connection.d.ts +1 -1
- package/sdk/connection.d.ts.map +1 -1
- package/sdk/connection.js +3 -3
- package/sdk/connection.js.map +1 -1
- package/sdk/events.d.ts +8 -0
- package/sdk/events.d.ts.map +1 -0
- package/sdk/events.js +20 -0
- package/sdk/events.js.map +1 -0
- package/sdk/external.d.ts +1 -1
- package/sdk/external.d.ts.map +1 -1
- package/sdk/external.js +3 -3
- package/sdk/external.js.map +1 -1
- package/sdk/images.d.ts +2 -2
- package/sdk/images.d.ts.map +1 -1
- package/sdk/images.js +6 -6
- package/sdk/images.js.map +1 -1
- package/sdk/internal.d.ts +0 -14
- package/sdk/internal.d.ts.map +1 -1
- package/sdk/internal.js +0 -56
- package/sdk/internal.js.map +1 -1
- package/sdk/sdk.d.ts +14 -11
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +17 -13
- package/sdk/sdk.js.map +1 -1
- package/sdk/settings.d.ts +4 -3
- package/sdk/settings.d.ts.map +1 -1
- package/sdk/settings.js +14 -10
- package/sdk/settings.js.map +1 -1
- package/sdk/stats.d.ts +1 -1
- package/sdk/stats.d.ts.map +1 -1
- package/sdk/stats.js +3 -3
- package/sdk/stats.js.map +1 -1
- package/sdk/webhooks.d.ts +6 -0
- package/sdk/webhooks.d.ts.map +1 -0
- package/sdk/webhooks.js +16 -0
- package/sdk/webhooks.js.map +1 -0
- package/src/funcs/{adminAdminV1UpdateResources.ts → adminUpdateResources.ts} +1 -1
- package/src/funcs/{adminAdminV1UpdateRoles.ts → adminUpdateRoles.ts} +1 -1
- package/src/funcs/{badgeAccountV1BookmarkBadge.ts → badgesBookmark.ts} +1 -1
- package/src/funcs/{badgeAccountV1GetBadgeBookmarks.ts → badgesGetBookmarks.ts} +1 -1
- package/src/funcs/{badgeAccountV1GetOwnedBadges.ts → badgesGetOwned.ts} +1 -1
- package/src/funcs/{badgeBadgeV1Search.ts → badgesSearch.ts} +1 -1
- package/src/funcs/{accountAccountV1ConnectionReconnect.ts → connectionReconnect.ts} +1 -1
- package/src/funcs/{adminAdminV1GetEvents.ts → eventsGet.ts} +1 -1
- package/src/funcs/{adminAdminV1UpdateEvent.ts → eventsUpdate.ts} +1 -1
- package/src/funcs/{statsStatsV1StatsGet.ts → externalGet.ts} +1 -1
- package/src/funcs/{imagesAccountV1ImagesGet.ts → imagesGet.ts} +1 -1
- package/src/funcs/{imagesAccountV1ImagesUpdate.ts → imagesUpdate.ts} +1 -1
- package/src/funcs/{accountSendEmailVerification.ts → settingsSendVerification.ts} +8 -8
- package/src/funcs/{settingsSendEmailVerification.ts → settingsSubscribeEmail.ts} +17 -13
- package/src/funcs/{accountAccountV1SettingsUpdateRole.ts → settingsUpdateRole.ts} +1 -1
- package/src/funcs/settingsVerifyEmail.ts +5 -5
- package/src/funcs/{externalStatsV1StatsGet.ts → statsGet.ts} +1 -1
- package/src/funcs/{internalSendEmailVerification.ts → webhooksResend.ts} +27 -30
- package/src/lib/config.ts +2 -2
- package/src/models/components/errormodel.ts +122 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/v1accountinforesponsebody.ts +1 -0
- package/src/models/components/v1emailsubscriptionrequestbody.ts +78 -0
- package/src/models/components/v1getsettingsbody.ts +7 -0
- package/src/models/operations/{accountv1settingssendemailverification.ts → accountv1settingsemailsendverification.ts} +46 -46
- package/src/models/operations/accountv1settingsemailsubscribe.ts +174 -0
- package/src/models/operations/{accountv1settingsverfyemail.ts → accountv1settingsemailverify.ts} +22 -22
- package/src/models/operations/index.ts +4 -2
- package/src/models/operations/resendwebhook.ts +179 -0
- package/src/sdk/account.ts +0 -114
- package/src/sdk/admin.ts +6 -28
- package/src/sdk/badge.ts +0 -45
- package/src/sdk/badges.ts +44 -0
- package/src/sdk/connection.ts +3 -3
- package/src/sdk/{event.ts → events.ts} +7 -7
- package/src/sdk/external.ts +3 -3
- package/src/sdk/images.ts +6 -6
- package/src/sdk/internal.ts +0 -160
- package/src/sdk/sdk.ts +26 -20
- package/src/sdk/settings.ts +33 -21
- package/src/sdk/stats.ts +3 -3
- package/src/sdk/webhooks.ts +21 -0
- package/funcs/accountAccountV1ConnectionReconnect.d.ts +0 -11
- package/funcs/accountAccountV1ConnectionReconnect.d.ts.map +0 -1
- package/funcs/accountAccountV1ConnectionReconnect.js.map +0 -1
- package/funcs/accountAccountV1GetBadgeBookmarks.d.ts.map +0 -1
- package/funcs/accountAccountV1GetBadgeBookmarks.js +0 -102
- package/funcs/accountAccountV1GetBadgeBookmarks.js.map +0 -1
- package/funcs/accountAccountV1GetOwnedBadges.d.ts +0 -10
- package/funcs/accountAccountV1GetOwnedBadges.d.ts.map +0 -1
- package/funcs/accountAccountV1GetOwnedBadges.js +0 -102
- package/funcs/accountAccountV1GetOwnedBadges.js.map +0 -1
- package/funcs/accountAccountV1ImagesGet.d.ts.map +0 -1
- package/funcs/accountAccountV1ImagesGet.js +0 -100
- package/funcs/accountAccountV1ImagesGet.js.map +0 -1
- package/funcs/accountAccountV1ImagesUpdate.d.ts +0 -11
- package/funcs/accountAccountV1ImagesUpdate.d.ts.map +0 -1
- package/funcs/accountAccountV1ImagesUpdate.js +0 -113
- package/funcs/accountAccountV1ImagesUpdate.js.map +0 -1
- package/funcs/accountAccountV1SettingsUpdateRole.d.ts +0 -11
- package/funcs/accountAccountV1SettingsUpdateRole.d.ts.map +0 -1
- package/funcs/accountAccountV1SettingsUpdateRole.js.map +0 -1
- package/funcs/accountAdminV1UpdateResources.d.ts +0 -11
- package/funcs/accountAdminV1UpdateResources.d.ts.map +0 -1
- package/funcs/accountAdminV1UpdateResources.js +0 -111
- package/funcs/accountAdminV1UpdateResources.js.map +0 -1
- package/funcs/accountAdminV1UpdateRoles.d.ts +0 -11
- package/funcs/accountAdminV1UpdateRoles.d.ts.map +0 -1
- package/funcs/accountAdminV1UpdateRoles.js +0 -111
- package/funcs/accountAdminV1UpdateRoles.js.map +0 -1
- package/funcs/accountSendEmailVerification.d.ts +0 -10
- package/funcs/accountSendEmailVerification.d.ts.map +0 -1
- package/funcs/accountSendEmailVerification.js.map +0 -1
- package/funcs/accountVerifyEmail.js +0 -113
- package/funcs/adminAdminV1GetEvents.d.ts.map +0 -1
- package/funcs/adminAdminV1GetEvents.js +0 -102
- package/funcs/adminAdminV1GetEvents.js.map +0 -1
- package/funcs/adminAdminV1UpdateEvent.d.ts.map +0 -1
- package/funcs/adminAdminV1UpdateEvent.js +0 -113
- package/funcs/adminAdminV1UpdateEvent.js.map +0 -1
- package/funcs/adminAdminV1UpdateResources.d.ts +0 -11
- package/funcs/adminAdminV1UpdateResources.d.ts.map +0 -1
- package/funcs/adminAdminV1UpdateResources.js.map +0 -1
- package/funcs/adminAdminV1UpdateRoles.d.ts.map +0 -1
- package/funcs/adminAdminV1UpdateRoles.js.map +0 -1
- package/funcs/badgeAccountV1BookmarkBadge.d.ts.map +0 -1
- package/funcs/badgeAccountV1BookmarkBadge.js.map +0 -1
- package/funcs/badgeAccountV1GetBadgeBookmarks.d.ts +0 -10
- package/funcs/badgeAccountV1GetBadgeBookmarks.d.ts.map +0 -1
- package/funcs/badgeAccountV1GetBadgeBookmarks.js.map +0 -1
- package/funcs/badgeAccountV1GetOwnedBadges.d.ts +0 -10
- package/funcs/badgeAccountV1GetOwnedBadges.d.ts.map +0 -1
- package/funcs/badgeAccountV1GetOwnedBadges.js.map +0 -1
- package/funcs/badgeBadgeV1Search.d.ts.map +0 -1
- package/funcs/badgeBadgeV1Search.js.map +0 -1
- package/funcs/connectionAccountV1ConnectionReconnect.d.ts +0 -11
- package/funcs/connectionAccountV1ConnectionReconnect.d.ts.map +0 -1
- package/funcs/connectionAccountV1ConnectionReconnect.js +0 -113
- package/funcs/connectionAccountV1ConnectionReconnect.js.map +0 -1
- package/funcs/eventAdminV1GetEvents.d.ts +0 -10
- package/funcs/eventAdminV1GetEvents.d.ts.map +0 -1
- package/funcs/eventAdminV1GetEvents.js.map +0 -1
- package/funcs/eventAdminV1UpdateEvent.d.ts +0 -11
- package/funcs/eventAdminV1UpdateEvent.d.ts.map +0 -1
- package/funcs/eventAdminV1UpdateEvent.js.map +0 -1
- package/funcs/externalStatsV1StatsGet.d.ts +0 -10
- package/funcs/externalStatsV1StatsGet.d.ts.map +0 -1
- package/funcs/externalStatsV1StatsGet.js.map +0 -1
- package/funcs/imagesAccountV1ImagesGet.d.ts.map +0 -1
- package/funcs/imagesAccountV1ImagesGet.js.map +0 -1
- package/funcs/imagesAccountV1ImagesUpdate.d.ts +0 -11
- package/funcs/imagesAccountV1ImagesUpdate.d.ts.map +0 -1
- package/funcs/imagesAccountV1ImagesUpdate.js.map +0 -1
- package/funcs/internalAccountV1BookmarkBadge.d.ts +0 -11
- package/funcs/internalAccountV1BookmarkBadge.d.ts.map +0 -1
- package/funcs/internalAccountV1BookmarkBadge.js +0 -113
- package/funcs/internalAccountV1BookmarkBadge.js.map +0 -1
- package/funcs/internalAccountV1ConnectionReconnect.d.ts.map +0 -1
- package/funcs/internalAccountV1ConnectionReconnect.js +0 -113
- package/funcs/internalAccountV1ConnectionReconnect.js.map +0 -1
- package/funcs/internalAccountV1GetBadgeBookmarks.d.ts +0 -10
- package/funcs/internalAccountV1GetBadgeBookmarks.d.ts.map +0 -1
- package/funcs/internalAccountV1GetBadgeBookmarks.js +0 -102
- package/funcs/internalAccountV1GetBadgeBookmarks.js.map +0 -1
- package/funcs/internalAccountV1GetOwnedBadges.d.ts +0 -10
- package/funcs/internalAccountV1GetOwnedBadges.d.ts.map +0 -1
- package/funcs/internalAccountV1GetOwnedBadges.js +0 -102
- package/funcs/internalAccountV1GetOwnedBadges.js.map +0 -1
- package/funcs/internalAccountV1ImagesGet.d.ts.map +0 -1
- package/funcs/internalAccountV1ImagesGet.js +0 -100
- package/funcs/internalAccountV1ImagesGet.js.map +0 -1
- package/funcs/internalAccountV1ImagesUpdate.d.ts +0 -11
- package/funcs/internalAccountV1ImagesUpdate.d.ts.map +0 -1
- package/funcs/internalAccountV1ImagesUpdate.js +0 -113
- package/funcs/internalAccountV1ImagesUpdate.js.map +0 -1
- package/funcs/internalAccountV1SettingsUpdateRole.d.ts +0 -11
- package/funcs/internalAccountV1SettingsUpdateRole.d.ts.map +0 -1
- package/funcs/internalAccountV1SettingsUpdateRole.js.map +0 -1
- package/funcs/internalAdminV1GetEvents.d.ts +0 -10
- package/funcs/internalAdminV1GetEvents.d.ts.map +0 -1
- package/funcs/internalAdminV1GetEvents.js +0 -102
- package/funcs/internalAdminV1GetEvents.js.map +0 -1
- package/funcs/internalAdminV1UpdateEvent.d.ts +0 -11
- package/funcs/internalAdminV1UpdateEvent.d.ts.map +0 -1
- package/funcs/internalAdminV1UpdateEvent.js +0 -113
- package/funcs/internalAdminV1UpdateEvent.js.map +0 -1
- package/funcs/internalAdminV1UpdateResources.d.ts +0 -11
- package/funcs/internalAdminV1UpdateResources.d.ts.map +0 -1
- package/funcs/internalAdminV1UpdateResources.js +0 -111
- package/funcs/internalAdminV1UpdateResources.js.map +0 -1
- package/funcs/internalAdminV1UpdateRoles.d.ts +0 -11
- package/funcs/internalAdminV1UpdateRoles.d.ts.map +0 -1
- package/funcs/internalAdminV1UpdateRoles.js +0 -111
- package/funcs/internalAdminV1UpdateRoles.js.map +0 -1
- package/funcs/internalBadgeV1Search.d.ts.map +0 -1
- package/funcs/internalBadgeV1Search.js +0 -113
- package/funcs/internalBadgeV1Search.js.map +0 -1
- package/funcs/internalSendEmailVerification.d.ts +0 -10
- package/funcs/internalSendEmailVerification.d.ts.map +0 -1
- package/funcs/internalSendEmailVerification.js.map +0 -1
- package/funcs/internalVerifyEmail.js +0 -113
- package/funcs/settingsAccountV1SettingsUpdateRole.d.ts +0 -11
- package/funcs/settingsAccountV1SettingsUpdateRole.d.ts.map +0 -1
- package/funcs/settingsAccountV1SettingsUpdateRole.js +0 -113
- package/funcs/settingsAccountV1SettingsUpdateRole.js.map +0 -1
- package/funcs/settingsSendEmailVerification.d.ts +0 -10
- package/funcs/settingsSendEmailVerification.d.ts.map +0 -1
- package/funcs/settingsSendEmailVerification.js +0 -111
- package/funcs/settingsSendEmailVerification.js.map +0 -1
- package/funcs/statsStatsV1StatsGet.d.ts.map +0 -1
- package/funcs/statsStatsV1StatsGet.js.map +0 -1
- package/models/operations/accountv1settingssendemailverification.d.ts +0 -61
- package/models/operations/accountv1settingssendemailverification.js +0 -108
- package/models/operations/accountv1settingsverfyemail.d.ts +0 -36
- package/models/operations/accountv1settingsverfyemail.d.ts.map +0 -1
- package/models/operations/accountv1settingsverfyemail.js.map +0 -1
- package/sdk/event.d.ts +0 -8
- package/sdk/event.d.ts.map +0 -1
- package/sdk/event.js +0 -20
- package/sdk/event.js.map +0 -1
- package/src/funcs/accountAccountV1GetBadgeBookmarks.ts +0 -132
- package/src/funcs/accountAccountV1GetOwnedBadges.ts +0 -132
- package/src/funcs/accountAccountV1ImagesGet.ts +0 -127
- package/src/funcs/accountAccountV1ImagesUpdate.ts +0 -149
- package/src/funcs/accountAdminV1UpdateResources.ts +0 -148
- package/src/funcs/accountAdminV1UpdateRoles.ts +0 -148
- package/src/funcs/accountVerifyEmail.ts +0 -149
- package/src/funcs/connectionAccountV1ConnectionReconnect.ts +0 -149
- package/src/funcs/eventAdminV1GetEvents.ts +0 -132
- package/src/funcs/eventAdminV1UpdateEvent.ts +0 -150
- package/src/funcs/internalAccountV1BookmarkBadge.ts +0 -150
- package/src/funcs/internalAccountV1ConnectionReconnect.ts +0 -149
- package/src/funcs/internalAccountV1GetBadgeBookmarks.ts +0 -132
- package/src/funcs/internalAccountV1GetOwnedBadges.ts +0 -132
- package/src/funcs/internalAccountV1ImagesGet.ts +0 -127
- package/src/funcs/internalAccountV1ImagesUpdate.ts +0 -149
- package/src/funcs/internalAccountV1SettingsUpdateRole.ts +0 -149
- package/src/funcs/internalAdminV1GetEvents.ts +0 -132
- package/src/funcs/internalAdminV1UpdateEvent.ts +0 -150
- package/src/funcs/internalAdminV1UpdateResources.ts +0 -148
- package/src/funcs/internalAdminV1UpdateRoles.ts +0 -148
- package/src/funcs/internalBadgeV1Search.ts +0 -149
- package/src/funcs/internalVerifyEmail.ts +0 -149
- package/src/funcs/settingsAccountV1SettingsUpdateRole.ts +0 -149
|
@@ -21,7 +21,7 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
21
21
|
import * as operations from "../models/operations/index.js";
|
|
22
22
|
import { Result } from "../types/fp.js";
|
|
23
23
|
|
|
24
|
-
export async function
|
|
24
|
+
export async function eventsGet(
|
|
25
25
|
client: SteamSetsCore,
|
|
26
26
|
options?: RequestOptions,
|
|
27
27
|
): Promise<
|
|
@@ -24,7 +24,7 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
24
24
|
import * as operations from "../models/operations/index.js";
|
|
25
25
|
import { Result } from "../types/fp.js";
|
|
26
26
|
|
|
27
|
-
export async function
|
|
27
|
+
export async function eventsUpdate(
|
|
28
28
|
client: SteamSetsCore,
|
|
29
29
|
request: components.V1AdminUpdateEventRequestBody,
|
|
30
30
|
options?: RequestOptions,
|
|
@@ -21,7 +21,7 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
21
21
|
import * as operations from "../models/operations/index.js";
|
|
22
22
|
import { Result } from "../types/fp.js";
|
|
23
23
|
|
|
24
|
-
export async function
|
|
24
|
+
export async function externalGet(
|
|
25
25
|
client: SteamSetsCore,
|
|
26
26
|
options?: RequestOptions,
|
|
27
27
|
): Promise<
|
|
@@ -21,7 +21,7 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
21
21
|
import * as operations from "../models/operations/index.js";
|
|
22
22
|
import { Result } from "../types/fp.js";
|
|
23
23
|
|
|
24
|
-
export async function
|
|
24
|
+
export async function imagesGet(
|
|
25
25
|
client: SteamSetsCore,
|
|
26
26
|
options?: RequestOptions,
|
|
27
27
|
): Promise<
|
|
@@ -24,7 +24,7 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
24
24
|
import * as operations from "../models/operations/index.js";
|
|
25
25
|
import { Result } from "../types/fp.js";
|
|
26
26
|
|
|
27
|
-
export async function
|
|
27
|
+
export async function imagesUpdate(
|
|
28
28
|
client: SteamSetsCore,
|
|
29
29
|
request: components.V1UpdateImageRequestBody,
|
|
30
30
|
options?: RequestOptions,
|
|
@@ -23,13 +23,13 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
23
23
|
import * as operations from "../models/operations/index.js";
|
|
24
24
|
import { Result } from "../types/fp.js";
|
|
25
25
|
|
|
26
|
-
export async function
|
|
26
|
+
export async function settingsSendVerification(
|
|
27
27
|
client: SteamSetsCore,
|
|
28
|
-
request: operations.
|
|
28
|
+
request: operations.AccountV1SettingsEmailSendVerificationRequest,
|
|
29
29
|
options?: RequestOptions,
|
|
30
30
|
): Promise<
|
|
31
31
|
Result<
|
|
32
|
-
operations.
|
|
32
|
+
operations.AccountV1SettingsEmailSendVerificationResponse,
|
|
33
33
|
| errors.ErrorModel
|
|
34
34
|
| errors.ErrorModel
|
|
35
35
|
| SDKError
|
|
@@ -44,7 +44,7 @@ export async function accountSendEmailVerification(
|
|
|
44
44
|
const parsed = safeParse(
|
|
45
45
|
request,
|
|
46
46
|
(value) =>
|
|
47
|
-
operations.
|
|
47
|
+
operations.AccountV1SettingsEmailSendVerificationRequest$outboundSchema
|
|
48
48
|
.parse(value),
|
|
49
49
|
"Input validation failed",
|
|
50
50
|
);
|
|
@@ -54,7 +54,7 @@ export async function accountSendEmailVerification(
|
|
|
54
54
|
const payload = parsed.value;
|
|
55
55
|
const body = null;
|
|
56
56
|
|
|
57
|
-
const path = pathToFunc("/account.v1.AccountService/
|
|
57
|
+
const path = pathToFunc("/account.v1.AccountService/EmailSendVerification")();
|
|
58
58
|
|
|
59
59
|
const headers = new Headers(compactMap({
|
|
60
60
|
Accept: "application/problem+json",
|
|
@@ -70,7 +70,7 @@ export async function accountSendEmailVerification(
|
|
|
70
70
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
71
71
|
|
|
72
72
|
const context = {
|
|
73
|
-
operationID: "account.v1.settings.send-
|
|
73
|
+
operationID: "account.v1.settings.email-send-verification",
|
|
74
74
|
oAuth2Scopes: [],
|
|
75
75
|
|
|
76
76
|
resolvedSecurity: requestSecurity,
|
|
@@ -123,7 +123,7 @@ export async function accountSendEmailVerification(
|
|
|
123
123
|
};
|
|
124
124
|
|
|
125
125
|
const [result] = await M.match<
|
|
126
|
-
operations.
|
|
126
|
+
operations.AccountV1SettingsEmailSendVerificationResponse,
|
|
127
127
|
| errors.ErrorModel
|
|
128
128
|
| errors.ErrorModel
|
|
129
129
|
| SDKError
|
|
@@ -136,7 +136,7 @@ export async function accountSendEmailVerification(
|
|
|
136
136
|
>(
|
|
137
137
|
M.nil(
|
|
138
138
|
204,
|
|
139
|
-
operations.
|
|
139
|
+
operations.AccountV1SettingsEmailSendVerificationResponse$inboundSchema,
|
|
140
140
|
{ hdrs: true },
|
|
141
141
|
),
|
|
142
142
|
M.jsonErr([404, 422, 429], errors.ErrorModel$inboundSchema, {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { SteamSetsCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -23,13 +23,13 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
23
23
|
import * as operations from "../models/operations/index.js";
|
|
24
24
|
import { Result } from "../types/fp.js";
|
|
25
25
|
|
|
26
|
-
export async function
|
|
26
|
+
export async function settingsSubscribeEmail(
|
|
27
27
|
client: SteamSetsCore,
|
|
28
|
-
request: operations.
|
|
28
|
+
request: operations.AccountV1SettingsEmailSubscribeRequest,
|
|
29
29
|
options?: RequestOptions,
|
|
30
30
|
): Promise<
|
|
31
31
|
Result<
|
|
32
|
-
operations.
|
|
32
|
+
operations.AccountV1SettingsEmailSubscribeResponse,
|
|
33
33
|
| errors.ErrorModel
|
|
34
34
|
| errors.ErrorModel
|
|
35
35
|
| SDKError
|
|
@@ -44,19 +44,23 @@ export async function settingsSendEmailVerification(
|
|
|
44
44
|
const parsed = safeParse(
|
|
45
45
|
request,
|
|
46
46
|
(value) =>
|
|
47
|
-
operations.
|
|
48
|
-
|
|
47
|
+
operations.AccountV1SettingsEmailSubscribeRequest$outboundSchema.parse(
|
|
48
|
+
value,
|
|
49
|
+
),
|
|
49
50
|
"Input validation failed",
|
|
50
51
|
);
|
|
51
52
|
if (!parsed.ok) {
|
|
52
53
|
return parsed;
|
|
53
54
|
}
|
|
54
55
|
const payload = parsed.value;
|
|
55
|
-
const body =
|
|
56
|
+
const body = encodeJSON("body", payload.V1EmailSubscriptionRequestBody, {
|
|
57
|
+
explode: true,
|
|
58
|
+
});
|
|
56
59
|
|
|
57
|
-
const path = pathToFunc("/account.v1.AccountService/
|
|
60
|
+
const path = pathToFunc("/account.v1.AccountService/EmailSubscription")();
|
|
58
61
|
|
|
59
62
|
const headers = new Headers(compactMap({
|
|
63
|
+
"Content-Type": "application/json",
|
|
60
64
|
Accept: "application/problem+json",
|
|
61
65
|
"X-Forwarded-For": encodeSimple(
|
|
62
66
|
"X-Forwarded-For",
|
|
@@ -70,7 +74,7 @@ export async function settingsSendEmailVerification(
|
|
|
70
74
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
71
75
|
|
|
72
76
|
const context = {
|
|
73
|
-
operationID: "account.v1.settings.
|
|
77
|
+
operationID: "account.v1.settings.email-subscribe",
|
|
74
78
|
oAuth2Scopes: [],
|
|
75
79
|
|
|
76
80
|
resolvedSecurity: requestSecurity,
|
|
@@ -109,7 +113,7 @@ export async function settingsSendEmailVerification(
|
|
|
109
113
|
|
|
110
114
|
const doResult = await client._do(req, {
|
|
111
115
|
context,
|
|
112
|
-
errorCodes: ["
|
|
116
|
+
errorCodes: ["422", "429", "4XX", "500", "5XX"],
|
|
113
117
|
retryConfig: context.retryConfig,
|
|
114
118
|
retryCodes: context.retryCodes,
|
|
115
119
|
});
|
|
@@ -123,7 +127,7 @@ export async function settingsSendEmailVerification(
|
|
|
123
127
|
};
|
|
124
128
|
|
|
125
129
|
const [result] = await M.match<
|
|
126
|
-
operations.
|
|
130
|
+
operations.AccountV1SettingsEmailSubscribeResponse,
|
|
127
131
|
| errors.ErrorModel
|
|
128
132
|
| errors.ErrorModel
|
|
129
133
|
| SDKError
|
|
@@ -136,10 +140,10 @@ export async function settingsSendEmailVerification(
|
|
|
136
140
|
>(
|
|
137
141
|
M.nil(
|
|
138
142
|
204,
|
|
139
|
-
operations.
|
|
143
|
+
operations.AccountV1SettingsEmailSubscribeResponse$inboundSchema,
|
|
140
144
|
{ hdrs: true },
|
|
141
145
|
),
|
|
142
|
-
M.jsonErr([
|
|
146
|
+
M.jsonErr([422, 429], errors.ErrorModel$inboundSchema, {
|
|
143
147
|
ctype: "application/problem+json",
|
|
144
148
|
}),
|
|
145
149
|
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
@@ -24,7 +24,7 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
24
24
|
import * as operations from "../models/operations/index.js";
|
|
25
25
|
import { Result } from "../types/fp.js";
|
|
26
26
|
|
|
27
|
-
export async function
|
|
27
|
+
export async function settingsUpdateRole(
|
|
28
28
|
client: SteamSetsCore,
|
|
29
29
|
request: components.V1UpdateRoleRequestBody,
|
|
30
30
|
options?: RequestOptions,
|
|
@@ -30,7 +30,7 @@ export async function settingsVerifyEmail(
|
|
|
30
30
|
options?: RequestOptions,
|
|
31
31
|
): Promise<
|
|
32
32
|
Result<
|
|
33
|
-
operations.
|
|
33
|
+
operations.AccountV1SettingsEmailVerifyResponse,
|
|
34
34
|
| errors.ErrorModel
|
|
35
35
|
| errors.ErrorModel
|
|
36
36
|
| SDKError
|
|
@@ -53,7 +53,7 @@ export async function settingsVerifyEmail(
|
|
|
53
53
|
const payload = parsed.value;
|
|
54
54
|
const body = encodeJSON("body", payload, { explode: true });
|
|
55
55
|
|
|
56
|
-
const path = pathToFunc("/account.v1.AccountService/
|
|
56
|
+
const path = pathToFunc("/account.v1.AccountService/EmailVerify")();
|
|
57
57
|
|
|
58
58
|
const headers = new Headers(compactMap({
|
|
59
59
|
"Content-Type": "application/json",
|
|
@@ -65,7 +65,7 @@ export async function settingsVerifyEmail(
|
|
|
65
65
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
66
66
|
|
|
67
67
|
const context = {
|
|
68
|
-
operationID: "account.v1.settings.
|
|
68
|
+
operationID: "account.v1.settings.email-verify",
|
|
69
69
|
oAuth2Scopes: [],
|
|
70
70
|
|
|
71
71
|
resolvedSecurity: requestSecurity,
|
|
@@ -118,7 +118,7 @@ export async function settingsVerifyEmail(
|
|
|
118
118
|
};
|
|
119
119
|
|
|
120
120
|
const [result] = await M.match<
|
|
121
|
-
operations.
|
|
121
|
+
operations.AccountV1SettingsEmailVerifyResponse,
|
|
122
122
|
| errors.ErrorModel
|
|
123
123
|
| errors.ErrorModel
|
|
124
124
|
| SDKError
|
|
@@ -129,7 +129,7 @@ export async function settingsVerifyEmail(
|
|
|
129
129
|
| RequestTimeoutError
|
|
130
130
|
| ConnectionError
|
|
131
131
|
>(
|
|
132
|
-
M.nil(204, operations.
|
|
132
|
+
M.nil(204, operations.AccountV1SettingsEmailVerifyResponse$inboundSchema, {
|
|
133
133
|
hdrs: true,
|
|
134
134
|
}),
|
|
135
135
|
M.jsonErr([404, 422, 429], errors.ErrorModel$inboundSchema, {
|
|
@@ -21,7 +21,7 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
21
21
|
import * as operations from "../models/operations/index.js";
|
|
22
22
|
import { Result } from "../types/fp.js";
|
|
23
23
|
|
|
24
|
-
export async function
|
|
24
|
+
export async function statsGet(
|
|
25
25
|
client: SteamSetsCore,
|
|
26
26
|
options?: RequestOptions,
|
|
27
27
|
): Promise<
|
|
@@ -17,21 +17,18 @@ import {
|
|
|
17
17
|
RequestTimeoutError,
|
|
18
18
|
UnexpectedClientError,
|
|
19
19
|
} from "../models/errors/httpclienterrors.js";
|
|
20
|
-
import * as errors from "../models/errors/index.js";
|
|
21
20
|
import { SDKError } from "../models/errors/sdkerror.js";
|
|
22
21
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
22
|
import * as operations from "../models/operations/index.js";
|
|
24
23
|
import { Result } from "../types/fp.js";
|
|
25
24
|
|
|
26
|
-
export async function
|
|
25
|
+
export async function webhooksResend(
|
|
27
26
|
client: SteamSetsCore,
|
|
28
|
-
request: operations.
|
|
27
|
+
request: operations.ResendWebhookRequest,
|
|
29
28
|
options?: RequestOptions,
|
|
30
29
|
): Promise<
|
|
31
30
|
Result<
|
|
32
|
-
operations.
|
|
33
|
-
| errors.ErrorModel
|
|
34
|
-
| errors.ErrorModel
|
|
31
|
+
operations.ResendWebhookResponse,
|
|
35
32
|
| SDKError
|
|
36
33
|
| SDKValidationError
|
|
37
34
|
| UnexpectedClientError
|
|
@@ -43,24 +40,32 @@ export async function internalSendEmailVerification(
|
|
|
43
40
|
> {
|
|
44
41
|
const parsed = safeParse(
|
|
45
42
|
request,
|
|
46
|
-
(value) =>
|
|
47
|
-
operations.AccountV1SettingsSendEmailVerificationRequest$outboundSchema
|
|
48
|
-
.parse(value),
|
|
43
|
+
(value) => operations.ResendWebhookRequest$outboundSchema.parse(value),
|
|
49
44
|
"Input validation failed",
|
|
50
45
|
);
|
|
51
46
|
if (!parsed.ok) {
|
|
52
47
|
return parsed;
|
|
53
48
|
}
|
|
54
49
|
const payload = parsed.value;
|
|
55
|
-
const body =
|
|
50
|
+
const body = payload.RequestBody;
|
|
56
51
|
|
|
57
|
-
const path = pathToFunc("/
|
|
52
|
+
const path = pathToFunc("/webhooks/resend")();
|
|
58
53
|
|
|
59
54
|
const headers = new Headers(compactMap({
|
|
55
|
+
"Content-Type": "application/octet-stream",
|
|
60
56
|
Accept: "application/problem+json",
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
"webhook-id": encodeSimple("webhook-id", payload["webhook-id"], {
|
|
58
|
+
explode: false,
|
|
59
|
+
charEncoding: "none",
|
|
60
|
+
}),
|
|
61
|
+
"webhook-signature": encodeSimple(
|
|
62
|
+
"webhook-signature",
|
|
63
|
+
payload["webhook-signature"],
|
|
64
|
+
{ explode: false, charEncoding: "none" },
|
|
65
|
+
),
|
|
66
|
+
"webhook-timestamp": encodeSimple(
|
|
67
|
+
"webhook-timestamp",
|
|
68
|
+
payload["webhook-timestamp"],
|
|
64
69
|
{ explode: false, charEncoding: "none" },
|
|
65
70
|
),
|
|
66
71
|
}));
|
|
@@ -70,7 +75,7 @@ export async function internalSendEmailVerification(
|
|
|
70
75
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
71
76
|
|
|
72
77
|
const context = {
|
|
73
|
-
operationID: "
|
|
78
|
+
operationID: "resend-webhook",
|
|
74
79
|
oAuth2Scopes: [],
|
|
75
80
|
|
|
76
81
|
resolvedSecurity: requestSecurity,
|
|
@@ -109,7 +114,7 @@ export async function internalSendEmailVerification(
|
|
|
109
114
|
|
|
110
115
|
const doResult = await client._do(req, {
|
|
111
116
|
context,
|
|
112
|
-
errorCodes: ["
|
|
117
|
+
errorCodes: ["4XX", "5XX"],
|
|
113
118
|
retryConfig: context.retryConfig,
|
|
114
119
|
retryCodes: context.retryCodes,
|
|
115
120
|
});
|
|
@@ -123,9 +128,7 @@ export async function internalSendEmailVerification(
|
|
|
123
128
|
};
|
|
124
129
|
|
|
125
130
|
const [result] = await M.match<
|
|
126
|
-
operations.
|
|
127
|
-
| errors.ErrorModel
|
|
128
|
-
| errors.ErrorModel
|
|
131
|
+
operations.ResendWebhookResponse,
|
|
129
132
|
| SDKError
|
|
130
133
|
| SDKValidationError
|
|
131
134
|
| UnexpectedClientError
|
|
@@ -134,19 +137,13 @@ export async function internalSendEmailVerification(
|
|
|
134
137
|
| RequestTimeoutError
|
|
135
138
|
| ConnectionError
|
|
136
139
|
>(
|
|
137
|
-
M.nil(
|
|
138
|
-
204,
|
|
139
|
-
operations.AccountV1SettingsSendEmailVerificationResponse$inboundSchema,
|
|
140
|
-
{ hdrs: true },
|
|
141
|
-
),
|
|
142
|
-
M.jsonErr([404, 422, 429], errors.ErrorModel$inboundSchema, {
|
|
143
|
-
ctype: "application/problem+json",
|
|
144
|
-
}),
|
|
145
|
-
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
146
|
-
ctype: "application/problem+json",
|
|
147
|
-
}),
|
|
140
|
+
M.nil(204, operations.ResendWebhookResponse$inboundSchema),
|
|
148
141
|
M.fail("4XX"),
|
|
149
142
|
M.fail("5XX"),
|
|
143
|
+
M.json("default", operations.ResendWebhookResponse$inboundSchema, {
|
|
144
|
+
ctype: "application/problem+json",
|
|
145
|
+
key: "ErrorModel",
|
|
146
|
+
}),
|
|
150
147
|
)(response, req, { extraFields: responseFields });
|
|
151
148
|
if (!result.ok) {
|
|
152
149
|
return result;
|
package/src/lib/config.ts
CHANGED
|
@@ -55,8 +55,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
55
55
|
export const SDK_METADATA = {
|
|
56
56
|
language: "typescript",
|
|
57
57
|
openapiDocVersion: "1.0.0",
|
|
58
|
-
sdkVersion: "0.
|
|
58
|
+
sdkVersion: "0.15.4",
|
|
59
59
|
genVersion: "2.500.5",
|
|
60
60
|
userAgent:
|
|
61
|
-
"speakeasy-sdk/typescript 0.
|
|
61
|
+
"speakeasy-sdk/typescript 0.15.4 2.500.5 1.0.0 @steamsets/client-ts",
|
|
62
62
|
} as const;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ErrorDetail,
|
|
12
|
+
ErrorDetail$inboundSchema,
|
|
13
|
+
ErrorDetail$Outbound,
|
|
14
|
+
ErrorDetail$outboundSchema,
|
|
15
|
+
} from "./errordetail.js";
|
|
16
|
+
|
|
17
|
+
export type ErrorModel = {
|
|
18
|
+
/**
|
|
19
|
+
* A URL to the JSON Schema for this object.
|
|
20
|
+
*/
|
|
21
|
+
dollarSchema?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* A human-readable explanation specific to this occurrence of the problem.
|
|
24
|
+
*/
|
|
25
|
+
detail?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Optional list of individual error details
|
|
28
|
+
*/
|
|
29
|
+
errors?: Array<ErrorDetail> | null | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* A URI reference that identifies the specific occurrence of the problem.
|
|
32
|
+
*/
|
|
33
|
+
instance?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* HTTP status code
|
|
36
|
+
*/
|
|
37
|
+
status?: number | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
|
|
40
|
+
*/
|
|
41
|
+
title?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* A URI reference to human-readable documentation for the error.
|
|
44
|
+
*/
|
|
45
|
+
type?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const ErrorModel$inboundSchema: z.ZodType<
|
|
50
|
+
ErrorModel,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
unknown
|
|
53
|
+
> = z.object({
|
|
54
|
+
$schema: z.string().optional(),
|
|
55
|
+
detail: z.string().optional(),
|
|
56
|
+
errors: z.nullable(z.array(ErrorDetail$inboundSchema)).optional(),
|
|
57
|
+
instance: z.string().optional(),
|
|
58
|
+
status: z.number().int().optional(),
|
|
59
|
+
title: z.string().optional(),
|
|
60
|
+
type: z.string().default("about:blank"),
|
|
61
|
+
}).transform((v) => {
|
|
62
|
+
return remap$(v, {
|
|
63
|
+
"$schema": "dollarSchema",
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export type ErrorModel$Outbound = {
|
|
69
|
+
$schema?: string | undefined;
|
|
70
|
+
detail?: string | undefined;
|
|
71
|
+
errors?: Array<ErrorDetail$Outbound> | null | undefined;
|
|
72
|
+
instance?: string | undefined;
|
|
73
|
+
status?: number | undefined;
|
|
74
|
+
title?: string | undefined;
|
|
75
|
+
type: string;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const ErrorModel$outboundSchema: z.ZodType<
|
|
80
|
+
ErrorModel$Outbound,
|
|
81
|
+
z.ZodTypeDef,
|
|
82
|
+
ErrorModel
|
|
83
|
+
> = z.object({
|
|
84
|
+
dollarSchema: z.string().optional(),
|
|
85
|
+
detail: z.string().optional(),
|
|
86
|
+
errors: z.nullable(z.array(ErrorDetail$outboundSchema)).optional(),
|
|
87
|
+
instance: z.string().optional(),
|
|
88
|
+
status: z.number().int().optional(),
|
|
89
|
+
title: z.string().optional(),
|
|
90
|
+
type: z.string().default("about:blank"),
|
|
91
|
+
}).transform((v) => {
|
|
92
|
+
return remap$(v, {
|
|
93
|
+
dollarSchema: "$schema",
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
100
|
+
*/
|
|
101
|
+
export namespace ErrorModel$ {
|
|
102
|
+
/** @deprecated use `ErrorModel$inboundSchema` instead. */
|
|
103
|
+
export const inboundSchema = ErrorModel$inboundSchema;
|
|
104
|
+
/** @deprecated use `ErrorModel$outboundSchema` instead. */
|
|
105
|
+
export const outboundSchema = ErrorModel$outboundSchema;
|
|
106
|
+
/** @deprecated use `ErrorModel$Outbound` instead. */
|
|
107
|
+
export type Outbound = ErrorModel$Outbound;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function errorModelToJSON(errorModel: ErrorModel): string {
|
|
111
|
+
return JSON.stringify(ErrorModel$outboundSchema.parse(errorModel));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function errorModelFromJSON(
|
|
115
|
+
jsonString: string,
|
|
116
|
+
): SafeParseResult<ErrorModel, SDKValidationError> {
|
|
117
|
+
return safeParse(
|
|
118
|
+
jsonString,
|
|
119
|
+
(x) => ErrorModel$inboundSchema.parse(JSON.parse(x)),
|
|
120
|
+
`Failed to parse 'ErrorModel' from JSON`,
|
|
121
|
+
);
|
|
122
|
+
}
|
|
@@ -18,6 +18,7 @@ export * from "./currentcolortag.js";
|
|
|
18
18
|
export * from "./designtag.js";
|
|
19
19
|
export * from "./developerapp.js";
|
|
20
20
|
export * from "./errordetail.js";
|
|
21
|
+
export * from "./errormodel.js";
|
|
21
22
|
export * from "./historyvalue.js";
|
|
22
23
|
export * from "./httpmetadata.js";
|
|
23
24
|
export * from "./idstruct.js";
|
|
@@ -91,6 +92,7 @@ export * from "./v1deletesessionrequestbody.js";
|
|
|
91
92
|
export * from "./v1deletesessionresponsebody.js";
|
|
92
93
|
export * from "./v1developerappcreaterequestbody.js";
|
|
93
94
|
export * from "./v1developerappcreateresponsebody.js";
|
|
95
|
+
export * from "./v1emailsubscriptionrequestbody.js";
|
|
94
96
|
export * from "./v1event.js";
|
|
95
97
|
export * from "./v1getimagesresponsebody.js";
|
|
96
98
|
export * from "./v1getsessionbody.js";
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type V1EmailSubscriptionRequestBody = {
|
|
11
|
+
/**
|
|
12
|
+
* The email address to subscribe to the newsletter (only for the landing page)
|
|
13
|
+
*/
|
|
14
|
+
email: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the user wants to be subscribed to the newsletter
|
|
17
|
+
*/
|
|
18
|
+
subscribed: boolean;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const V1EmailSubscriptionRequestBody$inboundSchema: z.ZodType<
|
|
23
|
+
V1EmailSubscriptionRequestBody,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
email: z.nullable(z.string()),
|
|
28
|
+
subscribed: z.boolean(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type V1EmailSubscriptionRequestBody$Outbound = {
|
|
33
|
+
email: string | null;
|
|
34
|
+
subscribed: boolean;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const V1EmailSubscriptionRequestBody$outboundSchema: z.ZodType<
|
|
39
|
+
V1EmailSubscriptionRequestBody$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
V1EmailSubscriptionRequestBody
|
|
42
|
+
> = z.object({
|
|
43
|
+
email: z.nullable(z.string()),
|
|
44
|
+
subscribed: z.boolean(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export namespace V1EmailSubscriptionRequestBody$ {
|
|
52
|
+
/** @deprecated use `V1EmailSubscriptionRequestBody$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = V1EmailSubscriptionRequestBody$inboundSchema;
|
|
54
|
+
/** @deprecated use `V1EmailSubscriptionRequestBody$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = V1EmailSubscriptionRequestBody$outboundSchema;
|
|
56
|
+
/** @deprecated use `V1EmailSubscriptionRequestBody$Outbound` instead. */
|
|
57
|
+
export type Outbound = V1EmailSubscriptionRequestBody$Outbound;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function v1EmailSubscriptionRequestBodyToJSON(
|
|
61
|
+
v1EmailSubscriptionRequestBody: V1EmailSubscriptionRequestBody,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
V1EmailSubscriptionRequestBody$outboundSchema.parse(
|
|
65
|
+
v1EmailSubscriptionRequestBody,
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function v1EmailSubscriptionRequestBodyFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<V1EmailSubscriptionRequestBody, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => V1EmailSubscriptionRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'V1EmailSubscriptionRequestBody' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -104,6 +104,10 @@ export type V1GetSettingsBody = {
|
|
|
104
104
|
* The sessions the account has
|
|
105
105
|
*/
|
|
106
106
|
sessions: Array<Session> | null;
|
|
107
|
+
/**
|
|
108
|
+
* Whether the account is subscribed to marketing emails
|
|
109
|
+
*/
|
|
110
|
+
subscribed: boolean;
|
|
107
111
|
/**
|
|
108
112
|
* The vanity the account is using
|
|
109
113
|
*/
|
|
@@ -151,6 +155,7 @@ export const V1GetSettingsBody$inboundSchema: z.ZodType<
|
|
|
151
155
|
language: z.string(),
|
|
152
156
|
privacy: V1GetSettingsBodyPrivacy$inboundSchema,
|
|
153
157
|
sessions: z.nullable(z.array(Session$inboundSchema)),
|
|
158
|
+
subscribed: z.boolean(),
|
|
154
159
|
vanity: z.string(),
|
|
155
160
|
vanityAnalytics: z.nullable(V1VanityAnalytics$inboundSchema),
|
|
156
161
|
}).transform((v) => {
|
|
@@ -172,6 +177,7 @@ export type V1GetSettingsBody$Outbound = {
|
|
|
172
177
|
language: string;
|
|
173
178
|
privacy: string;
|
|
174
179
|
sessions: Array<Session$Outbound> | null;
|
|
180
|
+
subscribed: boolean;
|
|
175
181
|
vanity: string;
|
|
176
182
|
vanityAnalytics: V1VanityAnalytics$Outbound | null;
|
|
177
183
|
};
|
|
@@ -193,6 +199,7 @@ export const V1GetSettingsBody$outboundSchema: z.ZodType<
|
|
|
193
199
|
language: z.string(),
|
|
194
200
|
privacy: V1GetSettingsBodyPrivacy$outboundSchema,
|
|
195
201
|
sessions: z.nullable(z.array(Session$outboundSchema)),
|
|
202
|
+
subscribed: z.boolean(),
|
|
196
203
|
vanity: z.string(),
|
|
197
204
|
vanityAnalytics: z.nullable(V1VanityAnalytics$outboundSchema),
|
|
198
205
|
}).transform((v) => {
|