@polar-sh/sdk 0.34.3 → 0.34.5
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/README.md +20 -38
- package/bin/mcp-server.js +311 -364
- package/bin/mcp-server.js.map +10 -10
- package/dist/commonjs/funcs/checkoutsClientGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/checkoutsClientGet.js +7 -2
- package/dist/commonjs/funcs/checkoutsClientGet.js.map +1 -1
- package/dist/commonjs/funcs/checkoutsClientUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/checkoutsClientUpdate.js +7 -2
- package/dist/commonjs/funcs/checkoutsClientUpdate.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysActivate.d.ts.map +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysActivate.js +7 -2
- package/dist/commonjs/funcs/customerPortalLicenseKeysActivate.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysDeactivate.d.ts.map +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysDeactivate.js +7 -2
- package/dist/commonjs/funcs/customerPortalLicenseKeysDeactivate.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysValidate.d.ts.map +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysValidate.js +7 -2
- package/dist/commonjs/funcs/customerPortalLicenseKeysValidate.js.map +1 -1
- package/dist/commonjs/funcs/oauth2Introspect.d.ts.map +1 -1
- package/dist/commonjs/funcs/oauth2Introspect.js +7 -2
- package/dist/commonjs/funcs/oauth2Introspect.js.map +1 -1
- package/dist/commonjs/funcs/oauth2Revoke.d.ts.map +1 -1
- package/dist/commonjs/funcs/oauth2Revoke.js +7 -2
- package/dist/commonjs/funcs/oauth2Revoke.js.map +1 -1
- package/dist/commonjs/funcs/oauth2Token.d.ts.map +1 -1
- package/dist/commonjs/funcs/oauth2Token.js +7 -2
- package/dist/commonjs/funcs/oauth2Token.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsList.js +1 -0
- package/dist/commonjs/funcs/subscriptionsList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.js +7 -11
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/benefitdiscordcreateproperties.d.ts +5 -0
- package/dist/commonjs/models/components/benefitdiscordcreateproperties.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitdiscordcreateproperties.js +4 -0
- package/dist/commonjs/models/components/benefitdiscordcreateproperties.js.map +1 -1
- package/dist/commonjs/models/components/benefitdiscordproperties.d.ts +5 -0
- package/dist/commonjs/models/components/benefitdiscordproperties.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitdiscordproperties.js +4 -0
- package/dist/commonjs/models/components/benefitdiscordproperties.js.map +1 -1
- package/dist/commonjs/models/components/organization.d.ts +3 -0
- package/dist/commonjs/models/components/organization.d.ts.map +1 -1
- package/dist/commonjs/models/components/organization.js +5 -0
- package/dist/commonjs/models/components/organization.js.map +1 -1
- package/dist/commonjs/models/components/organizationcreate.d.ts +3 -0
- package/dist/commonjs/models/components/organizationcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationcreate.js +5 -0
- package/dist/commonjs/models/components/organizationcreate.js.map +1 -1
- package/dist/commonjs/models/components/organizationnotificationsettings.d.ts +31 -0
- package/dist/commonjs/models/components/organizationnotificationsettings.d.ts.map +1 -0
- package/dist/commonjs/models/components/organizationnotificationsettings.js +72 -0
- package/dist/commonjs/models/components/organizationnotificationsettings.js.map +1 -0
- package/dist/commonjs/models/components/organizationupdate.d.ts +3 -0
- package/dist/commonjs/models/components/organizationupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationupdate.js +5 -0
- package/dist/commonjs/models/components/organizationupdate.js.map +1 -1
- package/dist/commonjs/models/errors/sdkerror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/sdkerror.js +8 -2
- package/dist/commonjs/models/errors/sdkerror.js.map +1 -1
- package/dist/commonjs/models/operations/eventslist.d.ts +13 -13
- package/dist/commonjs/models/operations/eventslist.d.ts.map +1 -1
- package/dist/commonjs/models/operations/eventslist.js +16 -16
- package/dist/commonjs/models/operations/eventslist.js.map +1 -1
- package/dist/commonjs/models/operations/eventslistnames.d.ts +13 -13
- package/dist/commonjs/models/operations/eventslistnames.d.ts.map +1 -1
- package/dist/commonjs/models/operations/eventslistnames.js +16 -16
- package/dist/commonjs/models/operations/eventslistnames.js.map +1 -1
- package/dist/commonjs/models/operations/subscriptionslist.d.ts +29 -0
- package/dist/commonjs/models/operations/subscriptionslist.d.ts.map +1 -1
- package/dist/commonjs/models/operations/subscriptionslist.js +30 -1
- package/dist/commonjs/models/operations/subscriptionslist.js.map +1 -1
- package/dist/commonjs/sdk/downloadables.d.ts +0 -5
- package/dist/commonjs/sdk/downloadables.d.ts.map +1 -1
- package/dist/commonjs/sdk/downloadables.js +0 -8
- package/dist/commonjs/sdk/downloadables.js.map +1 -1
- package/dist/commonjs/sdk/oauth2.d.ts +0 -3
- package/dist/commonjs/sdk/oauth2.d.ts.map +1 -1
- package/dist/commonjs/sdk/oauth2.js +0 -4
- package/dist/commonjs/sdk/oauth2.js.map +1 -1
- package/dist/esm/funcs/checkoutsClientGet.d.ts.map +1 -1
- package/dist/esm/funcs/checkoutsClientGet.js +7 -2
- package/dist/esm/funcs/checkoutsClientGet.js.map +1 -1
- package/dist/esm/funcs/checkoutsClientUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/checkoutsClientUpdate.js +7 -2
- package/dist/esm/funcs/checkoutsClientUpdate.js.map +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysActivate.d.ts.map +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysActivate.js +7 -2
- package/dist/esm/funcs/customerPortalLicenseKeysActivate.js.map +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysDeactivate.d.ts.map +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysDeactivate.js +7 -2
- package/dist/esm/funcs/customerPortalLicenseKeysDeactivate.js.map +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysValidate.d.ts.map +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysValidate.js +7 -2
- package/dist/esm/funcs/customerPortalLicenseKeysValidate.js.map +1 -1
- package/dist/esm/funcs/oauth2Introspect.d.ts.map +1 -1
- package/dist/esm/funcs/oauth2Introspect.js +7 -2
- package/dist/esm/funcs/oauth2Introspect.js.map +1 -1
- package/dist/esm/funcs/oauth2Revoke.d.ts.map +1 -1
- package/dist/esm/funcs/oauth2Revoke.js +7 -2
- package/dist/esm/funcs/oauth2Revoke.js.map +1 -1
- package/dist/esm/funcs/oauth2Token.d.ts.map +1 -1
- package/dist/esm/funcs/oauth2Token.js +7 -2
- package/dist/esm/funcs/oauth2Token.js.map +1 -1
- package/dist/esm/funcs/subscriptionsList.js +1 -0
- package/dist/esm/funcs/subscriptionsList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.js +7 -11
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/benefitdiscordcreateproperties.d.ts +5 -0
- package/dist/esm/models/components/benefitdiscordcreateproperties.d.ts.map +1 -1
- package/dist/esm/models/components/benefitdiscordcreateproperties.js +4 -0
- package/dist/esm/models/components/benefitdiscordcreateproperties.js.map +1 -1
- package/dist/esm/models/components/benefitdiscordproperties.d.ts +5 -0
- package/dist/esm/models/components/benefitdiscordproperties.d.ts.map +1 -1
- package/dist/esm/models/components/benefitdiscordproperties.js +4 -0
- package/dist/esm/models/components/benefitdiscordproperties.js.map +1 -1
- package/dist/esm/models/components/organization.d.ts +3 -0
- package/dist/esm/models/components/organization.d.ts.map +1 -1
- package/dist/esm/models/components/organization.js +5 -0
- package/dist/esm/models/components/organization.js.map +1 -1
- package/dist/esm/models/components/organizationcreate.d.ts +3 -0
- package/dist/esm/models/components/organizationcreate.d.ts.map +1 -1
- package/dist/esm/models/components/organizationcreate.js +5 -0
- package/dist/esm/models/components/organizationcreate.js.map +1 -1
- package/dist/esm/models/components/organizationnotificationsettings.d.ts +31 -0
- package/dist/esm/models/components/organizationnotificationsettings.d.ts.map +1 -0
- package/dist/esm/models/components/organizationnotificationsettings.js +44 -0
- package/dist/esm/models/components/organizationnotificationsettings.js.map +1 -0
- package/dist/esm/models/components/organizationupdate.d.ts +3 -0
- package/dist/esm/models/components/organizationupdate.d.ts.map +1 -1
- package/dist/esm/models/components/organizationupdate.js +5 -0
- package/dist/esm/models/components/organizationupdate.js.map +1 -1
- package/dist/esm/models/errors/sdkerror.d.ts.map +1 -1
- package/dist/esm/models/errors/sdkerror.js +8 -2
- package/dist/esm/models/errors/sdkerror.js.map +1 -1
- package/dist/esm/models/operations/eventslist.d.ts +13 -13
- package/dist/esm/models/operations/eventslist.d.ts.map +1 -1
- package/dist/esm/models/operations/eventslist.js +13 -13
- package/dist/esm/models/operations/eventslist.js.map +1 -1
- package/dist/esm/models/operations/eventslistnames.d.ts +13 -13
- package/dist/esm/models/operations/eventslistnames.d.ts.map +1 -1
- package/dist/esm/models/operations/eventslistnames.js +13 -13
- package/dist/esm/models/operations/eventslistnames.js.map +1 -1
- package/dist/esm/models/operations/subscriptionslist.d.ts +29 -0
- package/dist/esm/models/operations/subscriptionslist.d.ts.map +1 -1
- package/dist/esm/models/operations/subscriptionslist.js +27 -0
- package/dist/esm/models/operations/subscriptionslist.js.map +1 -1
- package/dist/esm/sdk/downloadables.d.ts +0 -5
- package/dist/esm/sdk/downloadables.d.ts.map +1 -1
- package/dist/esm/sdk/downloadables.js +0 -8
- package/dist/esm/sdk/downloadables.js.map +1 -1
- package/dist/esm/sdk/oauth2.d.ts +0 -3
- package/dist/esm/sdk/oauth2.d.ts.map +1 -1
- package/dist/esm/sdk/oauth2.js +0 -4
- package/dist/esm/sdk/oauth2.js.map +1 -1
- package/docs/sdks/checkouts/README.md +12 -4
- package/docs/sdks/downloadables/README.md +0 -70
- package/docs/sdks/oauth2/README.md +18 -6
- package/docs/sdks/polarlicensekeys/README.md +18 -6
- package/examples/README.md +26 -0
- package/examples/organizationsList.example.ts +26 -0
- package/examples/package-lock.json +634 -0
- package/examples/package.json +18 -0
- package/jsr.json +1 -1
- package/package.json +4 -4
- package/src/funcs/checkoutsClientGet.ts +8 -2
- package/src/funcs/checkoutsClientUpdate.ts +8 -2
- package/src/funcs/customerPortalLicenseKeysActivate.ts +8 -2
- package/src/funcs/customerPortalLicenseKeysDeactivate.ts +8 -2
- package/src/funcs/customerPortalLicenseKeysValidate.ts +8 -2
- package/src/funcs/oauth2Introspect.ts +8 -2
- package/src/funcs/oauth2Revoke.ts +8 -2
- package/src/funcs/oauth2Token.ts +8 -2
- package/src/funcs/subscriptionsList.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/cli/start/command.ts +7 -12
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/benefitdiscordcreateproperties.ts +9 -0
- package/src/models/components/benefitdiscordproperties.ts +9 -0
- package/src/models/components/organization.ts +12 -0
- package/src/models/components/organizationcreate.ts +19 -0
- package/src/models/components/organizationnotificationsettings.ts +83 -0
- package/src/models/components/organizationupdate.ts +19 -0
- package/src/models/errors/sdkerror.ts +8 -2
- package/src/models/operations/eventslist.ts +27 -21
- package/src/models/operations/eventslistnames.ts +39 -27
- package/src/models/operations/subscriptionslist.ts +64 -0
- package/src/sdk/downloadables.ts +0 -17
- package/src/sdk/oauth2.ts +0 -6
- package/dist/commonjs/funcs/customerPortalDownloadablesGet.d.ts +0 -15
- package/dist/commonjs/funcs/customerPortalDownloadablesGet.d.ts.map +0 -1
- package/dist/commonjs/funcs/customerPortalDownloadablesGet.js +0 -107
- package/dist/commonjs/funcs/customerPortalDownloadablesGet.js.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsCreate.d.ts +0 -18
- package/dist/commonjs/funcs/oauth2ClientsCreate.d.ts.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsCreate.js +0 -109
- package/dist/commonjs/funcs/oauth2ClientsCreate.js.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsDelete.d.ts +0 -18
- package/dist/commonjs/funcs/oauth2ClientsDelete.d.ts.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsDelete.js +0 -114
- package/dist/commonjs/funcs/oauth2ClientsDelete.js.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsGet.d.ts +0 -18
- package/dist/commonjs/funcs/oauth2ClientsGet.d.ts.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsGet.js +0 -114
- package/dist/commonjs/funcs/oauth2ClientsGet.js.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsList.d.ts +0 -21
- package/dist/commonjs/funcs/oauth2ClientsList.d.ts.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsList.js +0 -147
- package/dist/commonjs/funcs/oauth2ClientsList.js.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsUpdate.d.ts +0 -18
- package/dist/commonjs/funcs/oauth2ClientsUpdate.d.ts.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsUpdate.js +0 -117
- package/dist/commonjs/funcs/oauth2ClientsUpdate.js.map +0 -1
- package/dist/commonjs/models/components/listresourceoauth2client.d.ts +0 -33
- package/dist/commonjs/models/components/listresourceoauth2client.d.ts.map +0 -1
- package/dist/commonjs/models/components/listresourceoauth2client.js +0 -63
- package/dist/commonjs/models/components/listresourceoauth2client.js.map +0 -1
- package/dist/commonjs/models/components/oauth2client.d.ts +0 -119
- package/dist/commonjs/models/components/oauth2client.d.ts.map +0 -1
- package/dist/commonjs/models/components/oauth2client.js +0 -166
- package/dist/commonjs/models/components/oauth2client.js.map +0 -1
- package/dist/commonjs/models/components/oauth2clientconfiguration.d.ts +0 -101
- package/dist/commonjs/models/components/oauth2clientconfiguration.d.ts.map +0 -1
- package/dist/commonjs/models/components/oauth2clientconfiguration.js +0 -144
- package/dist/commonjs/models/components/oauth2clientconfiguration.js.map +0 -1
- package/dist/commonjs/models/components/oauth2clientconfigurationupdate.d.ts +0 -103
- package/dist/commonjs/models/components/oauth2clientconfigurationupdate.d.ts.map +0 -1
- package/dist/commonjs/models/components/oauth2clientconfigurationupdate.js +0 -150
- package/dist/commonjs/models/components/oauth2clientconfigurationupdate.js.map +0 -1
- package/dist/commonjs/models/operations/customerportaldownloadablescustomerportaldownloadablesget.d.ts +0 -29
- package/dist/commonjs/models/operations/customerportaldownloadablescustomerportaldownloadablesget.d.ts.map +0 -1
- package/dist/commonjs/models/operations/customerportaldownloadablescustomerportaldownloadablesget.js +0 -61
- package/dist/commonjs/models/operations/customerportaldownloadablescustomerportaldownloadablesget.js.map +0 -1
- package/dist/commonjs/models/operations/oauth2clientslist.d.ts +0 -63
- package/dist/commonjs/models/operations/oauth2clientslist.d.ts.map +0 -1
- package/dist/commonjs/models/operations/oauth2clientslist.js +0 -98
- package/dist/commonjs/models/operations/oauth2clientslist.js.map +0 -1
- package/dist/commonjs/models/operations/oauth2clientsoauth2deleteclient.d.ts +0 -29
- package/dist/commonjs/models/operations/oauth2clientsoauth2deleteclient.d.ts.map +0 -1
- package/dist/commonjs/models/operations/oauth2clientsoauth2deleteclient.js +0 -68
- package/dist/commonjs/models/operations/oauth2clientsoauth2deleteclient.js.map +0 -1
- package/dist/commonjs/models/operations/oauth2clientsoauth2getclient.d.ts +0 -29
- package/dist/commonjs/models/operations/oauth2clientsoauth2getclient.d.ts.map +0 -1
- package/dist/commonjs/models/operations/oauth2clientsoauth2getclient.js +0 -68
- package/dist/commonjs/models/operations/oauth2clientsoauth2getclient.js.map +0 -1
- package/dist/commonjs/models/operations/oauth2clientsoauth2updateclient.d.ts +0 -32
- package/dist/commonjs/models/operations/oauth2clientsoauth2updateclient.d.ts.map +0 -1
- package/dist/commonjs/models/operations/oauth2clientsoauth2updateclient.js +0 -73
- package/dist/commonjs/models/operations/oauth2clientsoauth2updateclient.js.map +0 -1
- package/dist/commonjs/sdk/clients.d.ts +0 -47
- package/dist/commonjs/sdk/clients.d.ts.map +0 -1
- package/dist/commonjs/sdk/clients.js +0 -63
- package/dist/commonjs/sdk/clients.js.map +0 -1
- package/dist/esm/funcs/customerPortalDownloadablesGet.d.ts +0 -15
- package/dist/esm/funcs/customerPortalDownloadablesGet.d.ts.map +0 -1
- package/dist/esm/funcs/customerPortalDownloadablesGet.js +0 -81
- package/dist/esm/funcs/customerPortalDownloadablesGet.js.map +0 -1
- package/dist/esm/funcs/oauth2ClientsCreate.d.ts +0 -18
- package/dist/esm/funcs/oauth2ClientsCreate.d.ts.map +0 -1
- package/dist/esm/funcs/oauth2ClientsCreate.js +0 -83
- package/dist/esm/funcs/oauth2ClientsCreate.js.map +0 -1
- package/dist/esm/funcs/oauth2ClientsDelete.d.ts +0 -18
- package/dist/esm/funcs/oauth2ClientsDelete.d.ts.map +0 -1
- package/dist/esm/funcs/oauth2ClientsDelete.js +0 -88
- package/dist/esm/funcs/oauth2ClientsDelete.js.map +0 -1
- package/dist/esm/funcs/oauth2ClientsGet.d.ts +0 -18
- package/dist/esm/funcs/oauth2ClientsGet.d.ts.map +0 -1
- package/dist/esm/funcs/oauth2ClientsGet.js +0 -88
- package/dist/esm/funcs/oauth2ClientsGet.js.map +0 -1
- package/dist/esm/funcs/oauth2ClientsList.d.ts +0 -21
- package/dist/esm/funcs/oauth2ClientsList.d.ts.map +0 -1
- package/dist/esm/funcs/oauth2ClientsList.js +0 -121
- package/dist/esm/funcs/oauth2ClientsList.js.map +0 -1
- package/dist/esm/funcs/oauth2ClientsUpdate.d.ts +0 -18
- package/dist/esm/funcs/oauth2ClientsUpdate.d.ts.map +0 -1
- package/dist/esm/funcs/oauth2ClientsUpdate.js +0 -91
- package/dist/esm/funcs/oauth2ClientsUpdate.js.map +0 -1
- package/dist/esm/models/components/listresourceoauth2client.d.ts +0 -33
- package/dist/esm/models/components/listresourceoauth2client.d.ts.map +0 -1
- package/dist/esm/models/components/listresourceoauth2client.js +0 -35
- package/dist/esm/models/components/listresourceoauth2client.js.map +0 -1
- package/dist/esm/models/components/oauth2client.d.ts +0 -119
- package/dist/esm/models/components/oauth2client.d.ts.map +0 -1
- package/dist/esm/models/components/oauth2client.js +0 -138
- package/dist/esm/models/components/oauth2client.js.map +0 -1
- package/dist/esm/models/components/oauth2clientconfiguration.d.ts +0 -101
- package/dist/esm/models/components/oauth2clientconfiguration.d.ts.map +0 -1
- package/dist/esm/models/components/oauth2clientconfiguration.js +0 -116
- package/dist/esm/models/components/oauth2clientconfiguration.js.map +0 -1
- package/dist/esm/models/components/oauth2clientconfigurationupdate.d.ts +0 -103
- package/dist/esm/models/components/oauth2clientconfigurationupdate.d.ts.map +0 -1
- package/dist/esm/models/components/oauth2clientconfigurationupdate.js +0 -122
- package/dist/esm/models/components/oauth2clientconfigurationupdate.js.map +0 -1
- package/dist/esm/models/operations/customerportaldownloadablescustomerportaldownloadablesget.d.ts +0 -29
- package/dist/esm/models/operations/customerportaldownloadablescustomerportaldownloadablesget.d.ts.map +0 -1
- package/dist/esm/models/operations/customerportaldownloadablescustomerportaldownloadablesget.js +0 -33
- package/dist/esm/models/operations/customerportaldownloadablescustomerportaldownloadablesget.js.map +0 -1
- package/dist/esm/models/operations/oauth2clientslist.d.ts +0 -63
- package/dist/esm/models/operations/oauth2clientslist.d.ts.map +0 -1
- package/dist/esm/models/operations/oauth2clientslist.js +0 -68
- package/dist/esm/models/operations/oauth2clientslist.js.map +0 -1
- package/dist/esm/models/operations/oauth2clientsoauth2deleteclient.d.ts +0 -29
- package/dist/esm/models/operations/oauth2clientsoauth2deleteclient.d.ts.map +0 -1
- package/dist/esm/models/operations/oauth2clientsoauth2deleteclient.js +0 -40
- package/dist/esm/models/operations/oauth2clientsoauth2deleteclient.js.map +0 -1
- package/dist/esm/models/operations/oauth2clientsoauth2getclient.d.ts +0 -29
- package/dist/esm/models/operations/oauth2clientsoauth2getclient.d.ts.map +0 -1
- package/dist/esm/models/operations/oauth2clientsoauth2getclient.js +0 -40
- package/dist/esm/models/operations/oauth2clientsoauth2getclient.js.map +0 -1
- package/dist/esm/models/operations/oauth2clientsoauth2updateclient.d.ts +0 -32
- package/dist/esm/models/operations/oauth2clientsoauth2updateclient.d.ts.map +0 -1
- package/dist/esm/models/operations/oauth2clientsoauth2updateclient.js +0 -45
- package/dist/esm/models/operations/oauth2clientsoauth2updateclient.js.map +0 -1
- package/dist/esm/sdk/clients.d.ts +0 -47
- package/dist/esm/sdk/clients.d.ts.map +0 -1
- package/dist/esm/sdk/clients.js +0 -59
- package/dist/esm/sdk/clients.js.map +0 -1
- package/docs/sdks/clients/README.md +0 -401
- package/src/funcs/customerPortalDownloadablesGet.ts +0 -179
- package/src/funcs/oauth2ClientsCreate.ts +0 -176
- package/src/funcs/oauth2ClientsDelete.ts +0 -183
- package/src/funcs/oauth2ClientsGet.ts +0 -182
- package/src/funcs/oauth2ClientsList.ts +0 -255
- package/src/funcs/oauth2ClientsUpdate.ts +0 -186
- package/src/models/components/listresourceoauth2client.ts +0 -82
- package/src/models/components/oauth2client.ts +0 -231
- package/src/models/components/oauth2clientconfiguration.ts +0 -205
- package/src/models/components/oauth2clientconfigurationupdate.ts +0 -213
- package/src/models/operations/customerportaldownloadablescustomerportaldownloadablesget.ts +0 -79
- package/src/models/operations/oauth2clientslist.ts +0 -149
- package/src/models/operations/oauth2clientsoauth2deleteclient.ts +0 -81
- package/src/models/operations/oauth2clientsoauth2getclient.ts +0 -80
- package/src/models/operations/oauth2clientsoauth2updateclient.ts +0 -95
- package/src/sdk/clients.ts +0 -107
|
@@ -8,6 +8,7 @@ import * as M from "../lib/matchers.js";
|
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
10
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
12
|
import { pathToFunc } from "../lib/url.js";
|
|
12
13
|
import {
|
|
13
14
|
CheckoutPublic,
|
|
@@ -122,15 +123,19 @@ async function $do(
|
|
|
122
123
|
Accept: "application/json",
|
|
123
124
|
}));
|
|
124
125
|
|
|
126
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
127
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
128
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
129
|
+
|
|
125
130
|
const context = {
|
|
126
131
|
options: client._options,
|
|
127
132
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
128
133
|
operationID: "checkouts:client_get",
|
|
129
134
|
oAuth2Scopes: [],
|
|
130
135
|
|
|
131
|
-
resolvedSecurity:
|
|
136
|
+
resolvedSecurity: requestSecurity,
|
|
132
137
|
|
|
133
|
-
securitySource:
|
|
138
|
+
securitySource: client._options.accessToken,
|
|
134
139
|
retryConfig: options?.retries
|
|
135
140
|
|| client._options.retryConfig
|
|
136
141
|
|| { strategy: "none" },
|
|
@@ -138,6 +143,7 @@ async function $do(
|
|
|
138
143
|
};
|
|
139
144
|
|
|
140
145
|
const requestRes = client._createRequest(context, {
|
|
146
|
+
security: requestSecurity,
|
|
141
147
|
method: "GET",
|
|
142
148
|
baseURL: options?.serverURL,
|
|
143
149
|
path: path,
|
|
@@ -8,6 +8,7 @@ import * as M from "../lib/matchers.js";
|
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
10
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
12
|
import { pathToFunc } from "../lib/url.js";
|
|
12
13
|
import {
|
|
13
14
|
CheckoutPublic,
|
|
@@ -131,15 +132,19 @@ async function $do(
|
|
|
131
132
|
Accept: "application/json",
|
|
132
133
|
}));
|
|
133
134
|
|
|
135
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
136
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
137
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
138
|
+
|
|
134
139
|
const context = {
|
|
135
140
|
options: client._options,
|
|
136
141
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
137
142
|
operationID: "checkouts:client_update",
|
|
138
143
|
oAuth2Scopes: [],
|
|
139
144
|
|
|
140
|
-
resolvedSecurity:
|
|
145
|
+
resolvedSecurity: requestSecurity,
|
|
141
146
|
|
|
142
|
-
securitySource:
|
|
147
|
+
securitySource: client._options.accessToken,
|
|
143
148
|
retryConfig: options?.retries
|
|
144
149
|
|| client._options.retryConfig
|
|
145
150
|
|| { strategy: "none" },
|
|
@@ -147,6 +152,7 @@ async function $do(
|
|
|
147
152
|
};
|
|
148
153
|
|
|
149
154
|
const requestRes = client._createRequest(context, {
|
|
155
|
+
security: requestSecurity,
|
|
150
156
|
method: "PATCH",
|
|
151
157
|
baseURL: options?.serverURL,
|
|
152
158
|
path: path,
|
|
@@ -8,6 +8,7 @@ import * as M from "../lib/matchers.js";
|
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
10
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
12
|
import { pathToFunc } from "../lib/url.js";
|
|
12
13
|
import {
|
|
13
14
|
LicenseKeyActivate,
|
|
@@ -116,15 +117,19 @@ async function $do(
|
|
|
116
117
|
Accept: "application/json",
|
|
117
118
|
}));
|
|
118
119
|
|
|
120
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
121
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
122
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
123
|
+
|
|
119
124
|
const context = {
|
|
120
125
|
options: client._options,
|
|
121
126
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
122
127
|
operationID: "customer_portal:license_keys:activate",
|
|
123
128
|
oAuth2Scopes: [],
|
|
124
129
|
|
|
125
|
-
resolvedSecurity:
|
|
130
|
+
resolvedSecurity: requestSecurity,
|
|
126
131
|
|
|
127
|
-
securitySource:
|
|
132
|
+
securitySource: client._options.accessToken,
|
|
128
133
|
retryConfig: options?.retries
|
|
129
134
|
|| client._options.retryConfig
|
|
130
135
|
|| { strategy: "none" },
|
|
@@ -132,6 +137,7 @@ async function $do(
|
|
|
132
137
|
};
|
|
133
138
|
|
|
134
139
|
const requestRes = client._createRequest(context, {
|
|
140
|
+
security: requestSecurity,
|
|
135
141
|
method: "POST",
|
|
136
142
|
baseURL: options?.serverURL,
|
|
137
143
|
path: path,
|
|
@@ -9,6 +9,7 @@ import * as M from "../lib/matchers.js";
|
|
|
9
9
|
import { compactMap } from "../lib/primitives.js";
|
|
10
10
|
import { safeParse } from "../lib/schemas.js";
|
|
11
11
|
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
13
|
import { pathToFunc } from "../lib/url.js";
|
|
13
14
|
import {
|
|
14
15
|
LicenseKeyDeactivate,
|
|
@@ -107,15 +108,19 @@ async function $do(
|
|
|
107
108
|
Accept: "application/json",
|
|
108
109
|
}));
|
|
109
110
|
|
|
111
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
112
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
113
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
114
|
+
|
|
110
115
|
const context = {
|
|
111
116
|
options: client._options,
|
|
112
117
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
113
118
|
operationID: "customer_portal:license_keys:deactivate",
|
|
114
119
|
oAuth2Scopes: [],
|
|
115
120
|
|
|
116
|
-
resolvedSecurity:
|
|
121
|
+
resolvedSecurity: requestSecurity,
|
|
117
122
|
|
|
118
|
-
securitySource:
|
|
123
|
+
securitySource: client._options.accessToken,
|
|
119
124
|
retryConfig: options?.retries
|
|
120
125
|
|| client._options.retryConfig
|
|
121
126
|
|| { strategy: "none" },
|
|
@@ -123,6 +128,7 @@ async function $do(
|
|
|
123
128
|
};
|
|
124
129
|
|
|
125
130
|
const requestRes = client._createRequest(context, {
|
|
131
|
+
security: requestSecurity,
|
|
126
132
|
method: "POST",
|
|
127
133
|
baseURL: options?.serverURL,
|
|
128
134
|
path: path,
|
|
@@ -8,6 +8,7 @@ import * as M from "../lib/matchers.js";
|
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
10
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
12
|
import { pathToFunc } from "../lib/url.js";
|
|
12
13
|
import {
|
|
13
14
|
LicenseKeyValidate,
|
|
@@ -110,15 +111,19 @@ async function $do(
|
|
|
110
111
|
Accept: "application/json",
|
|
111
112
|
}));
|
|
112
113
|
|
|
114
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
115
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
116
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
117
|
+
|
|
113
118
|
const context = {
|
|
114
119
|
options: client._options,
|
|
115
120
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
116
121
|
operationID: "customer_portal:license_keys:validate",
|
|
117
122
|
oAuth2Scopes: [],
|
|
118
123
|
|
|
119
|
-
resolvedSecurity:
|
|
124
|
+
resolvedSecurity: requestSecurity,
|
|
120
125
|
|
|
121
|
-
securitySource:
|
|
126
|
+
securitySource: client._options.accessToken,
|
|
122
127
|
retryConfig: options?.retries
|
|
123
128
|
|| client._options.retryConfig
|
|
124
129
|
|| { strategy: "none" },
|
|
@@ -126,6 +131,7 @@ async function $do(
|
|
|
126
131
|
};
|
|
127
132
|
|
|
128
133
|
const requestRes = client._createRequest(context, {
|
|
134
|
+
security: requestSecurity,
|
|
129
135
|
method: "POST",
|
|
130
136
|
baseURL: options?.serverURL,
|
|
131
137
|
path: path,
|
|
@@ -8,6 +8,7 @@ import * as M from "../lib/matchers.js";
|
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
10
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
12
|
import { pathToFunc } from "../lib/url.js";
|
|
12
13
|
import {
|
|
13
14
|
IntrospectTokenRequest,
|
|
@@ -101,15 +102,19 @@ async function $do(
|
|
|
101
102
|
Accept: "application/json",
|
|
102
103
|
}));
|
|
103
104
|
|
|
105
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
106
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
107
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
|
+
|
|
104
109
|
const context = {
|
|
105
110
|
options: client._options,
|
|
106
111
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
107
112
|
operationID: "oauth2:introspect_token",
|
|
108
113
|
oAuth2Scopes: [],
|
|
109
114
|
|
|
110
|
-
resolvedSecurity:
|
|
115
|
+
resolvedSecurity: requestSecurity,
|
|
111
116
|
|
|
112
|
-
securitySource:
|
|
117
|
+
securitySource: client._options.accessToken,
|
|
113
118
|
retryConfig: options?.retries
|
|
114
119
|
|| client._options.retryConfig
|
|
115
120
|
|| { strategy: "none" },
|
|
@@ -117,6 +122,7 @@ async function $do(
|
|
|
117
122
|
};
|
|
118
123
|
|
|
119
124
|
const requestRes = client._createRequest(context, {
|
|
125
|
+
security: requestSecurity,
|
|
120
126
|
method: "POST",
|
|
121
127
|
baseURL: options?.serverURL,
|
|
122
128
|
path: path,
|
|
@@ -8,6 +8,7 @@ import * as M from "../lib/matchers.js";
|
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
10
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
12
|
import { pathToFunc } from "../lib/url.js";
|
|
12
13
|
import {
|
|
13
14
|
RevokeTokenRequest,
|
|
@@ -101,15 +102,19 @@ async function $do(
|
|
|
101
102
|
Accept: "application/json",
|
|
102
103
|
}));
|
|
103
104
|
|
|
105
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
106
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
107
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
|
+
|
|
104
109
|
const context = {
|
|
105
110
|
options: client._options,
|
|
106
111
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
107
112
|
operationID: "oauth2:revoke_token",
|
|
108
113
|
oAuth2Scopes: [],
|
|
109
114
|
|
|
110
|
-
resolvedSecurity:
|
|
115
|
+
resolvedSecurity: requestSecurity,
|
|
111
116
|
|
|
112
|
-
securitySource:
|
|
117
|
+
securitySource: client._options.accessToken,
|
|
113
118
|
retryConfig: options?.retries
|
|
114
119
|
|| client._options.retryConfig
|
|
115
120
|
|| { strategy: "none" },
|
|
@@ -117,6 +122,7 @@ async function $do(
|
|
|
117
122
|
};
|
|
118
123
|
|
|
119
124
|
const requestRes = client._createRequest(context, {
|
|
125
|
+
security: requestSecurity,
|
|
120
126
|
method: "POST",
|
|
121
127
|
baseURL: options?.serverURL,
|
|
122
128
|
path: path,
|
package/src/funcs/oauth2Token.ts
CHANGED
|
@@ -8,6 +8,7 @@ import * as M from "../lib/matchers.js";
|
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
10
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
12
|
import { pathToFunc } from "../lib/url.js";
|
|
12
13
|
import {
|
|
13
14
|
TokenResponse,
|
|
@@ -101,15 +102,19 @@ async function $do(
|
|
|
101
102
|
Accept: "application/json",
|
|
102
103
|
}));
|
|
103
104
|
|
|
105
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
106
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
107
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
|
+
|
|
104
109
|
const context = {
|
|
105
110
|
options: client._options,
|
|
106
111
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
107
112
|
operationID: "oauth2:request_token",
|
|
108
113
|
oAuth2Scopes: [],
|
|
109
114
|
|
|
110
|
-
resolvedSecurity:
|
|
115
|
+
resolvedSecurity: requestSecurity,
|
|
111
116
|
|
|
112
|
-
securitySource:
|
|
117
|
+
securitySource: client._options.accessToken,
|
|
113
118
|
retryConfig: options?.retries
|
|
114
119
|
|| client._options.retryConfig
|
|
115
120
|
|| { strategy: "none" },
|
|
@@ -117,6 +122,7 @@ async function $do(
|
|
|
117
122
|
};
|
|
118
123
|
|
|
119
124
|
const requestRes = client._createRequest(context, {
|
|
125
|
+
security: requestSecurity,
|
|
120
126
|
method: "POST",
|
|
121
127
|
baseURL: options?.serverURL,
|
|
122
128
|
path: path,
|
|
@@ -125,6 +125,7 @@ async function $do(
|
|
|
125
125
|
"active": payload.active,
|
|
126
126
|
"customer_id": payload.customer_id,
|
|
127
127
|
"discount_id": payload.discount_id,
|
|
128
|
+
"external_customer_id": payload.external_customer_id,
|
|
128
129
|
"limit": payload.limit,
|
|
129
130
|
"organization_id": payload.organization_id,
|
|
130
131
|
"page": payload.page,
|
package/src/lib/config.ts
CHANGED
|
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
64
64
|
export const SDK_METADATA = {
|
|
65
65
|
language: "typescript",
|
|
66
66
|
openapiDocVersion: "0.1.0",
|
|
67
|
-
sdkVersion: "0.34.
|
|
68
|
-
genVersion: "2.
|
|
69
|
-
userAgent: "speakeasy-sdk/typescript 0.34.
|
|
67
|
+
sdkVersion: "0.34.5",
|
|
68
|
+
genVersion: "2.656.9",
|
|
69
|
+
userAgent: "speakeasy-sdk/typescript 0.34.5 2.656.9 0.1.0 @polar-sh/sdk",
|
|
70
70
|
} as const;
|
|
@@ -37,18 +37,13 @@ export const startCommand = buildCommand({
|
|
|
37
37
|
return z.string().parse(value);
|
|
38
38
|
},
|
|
39
39
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
variadic: true,
|
|
48
|
-
optional: true,
|
|
49
|
-
},
|
|
50
|
-
}
|
|
51
|
-
: {}),
|
|
40
|
+
scope: {
|
|
41
|
+
kind: "enum",
|
|
42
|
+
brief: "Mount tools/resources that match given scope (repeatable flag)",
|
|
43
|
+
values: mcpScopes,
|
|
44
|
+
variadic: true,
|
|
45
|
+
optional: true,
|
|
46
|
+
},
|
|
52
47
|
"access-token": {
|
|
53
48
|
kind: "parsed",
|
|
54
49
|
brief: "Sets the accessToken auth field for the API",
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -17,6 +17,10 @@ export type BenefitDiscordCreateProperties = {
|
|
|
17
17
|
* The ID of the Discord role to grant.
|
|
18
18
|
*/
|
|
19
19
|
roleId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether to kick the member from the Discord server on revocation.
|
|
22
|
+
*/
|
|
23
|
+
kickMember: boolean;
|
|
20
24
|
};
|
|
21
25
|
|
|
22
26
|
/** @internal */
|
|
@@ -27,10 +31,12 @@ export const BenefitDiscordCreateProperties$inboundSchema: z.ZodType<
|
|
|
27
31
|
> = z.object({
|
|
28
32
|
guild_token: z.string(),
|
|
29
33
|
role_id: z.string(),
|
|
34
|
+
kick_member: z.boolean(),
|
|
30
35
|
}).transform((v) => {
|
|
31
36
|
return remap$(v, {
|
|
32
37
|
"guild_token": "guildToken",
|
|
33
38
|
"role_id": "roleId",
|
|
39
|
+
"kick_member": "kickMember",
|
|
34
40
|
});
|
|
35
41
|
});
|
|
36
42
|
|
|
@@ -38,6 +44,7 @@ export const BenefitDiscordCreateProperties$inboundSchema: z.ZodType<
|
|
|
38
44
|
export type BenefitDiscordCreateProperties$Outbound = {
|
|
39
45
|
guild_token: string;
|
|
40
46
|
role_id: string;
|
|
47
|
+
kick_member: boolean;
|
|
41
48
|
};
|
|
42
49
|
|
|
43
50
|
/** @internal */
|
|
@@ -48,10 +55,12 @@ export const BenefitDiscordCreateProperties$outboundSchema: z.ZodType<
|
|
|
48
55
|
> = z.object({
|
|
49
56
|
guildToken: z.string(),
|
|
50
57
|
roleId: z.string(),
|
|
58
|
+
kickMember: z.boolean(),
|
|
51
59
|
}).transform((v) => {
|
|
52
60
|
return remap$(v, {
|
|
53
61
|
guildToken: "guild_token",
|
|
54
62
|
roleId: "role_id",
|
|
63
|
+
kickMember: "kick_member",
|
|
55
64
|
});
|
|
56
65
|
});
|
|
57
66
|
|
|
@@ -20,6 +20,10 @@ export type BenefitDiscordProperties = {
|
|
|
20
20
|
* The ID of the Discord role to grant.
|
|
21
21
|
*/
|
|
22
22
|
roleId: string;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to kick the member from the Discord server on revocation.
|
|
25
|
+
*/
|
|
26
|
+
kickMember: boolean;
|
|
23
27
|
guildToken: string;
|
|
24
28
|
};
|
|
25
29
|
|
|
@@ -31,11 +35,13 @@ export const BenefitDiscordProperties$inboundSchema: z.ZodType<
|
|
|
31
35
|
> = z.object({
|
|
32
36
|
guild_id: z.string(),
|
|
33
37
|
role_id: z.string(),
|
|
38
|
+
kick_member: z.boolean(),
|
|
34
39
|
guild_token: z.string(),
|
|
35
40
|
}).transform((v) => {
|
|
36
41
|
return remap$(v, {
|
|
37
42
|
"guild_id": "guildId",
|
|
38
43
|
"role_id": "roleId",
|
|
44
|
+
"kick_member": "kickMember",
|
|
39
45
|
"guild_token": "guildToken",
|
|
40
46
|
});
|
|
41
47
|
});
|
|
@@ -44,6 +50,7 @@ export const BenefitDiscordProperties$inboundSchema: z.ZodType<
|
|
|
44
50
|
export type BenefitDiscordProperties$Outbound = {
|
|
45
51
|
guild_id: string;
|
|
46
52
|
role_id: string;
|
|
53
|
+
kick_member: boolean;
|
|
47
54
|
guild_token: string;
|
|
48
55
|
};
|
|
49
56
|
|
|
@@ -55,11 +62,13 @@ export const BenefitDiscordProperties$outboundSchema: z.ZodType<
|
|
|
55
62
|
> = z.object({
|
|
56
63
|
guildId: z.string(),
|
|
57
64
|
roleId: z.string(),
|
|
65
|
+
kickMember: z.boolean(),
|
|
58
66
|
guildToken: z.string(),
|
|
59
67
|
}).transform((v) => {
|
|
60
68
|
return remap$(v, {
|
|
61
69
|
guildId: "guild_id",
|
|
62
70
|
roleId: "role_id",
|
|
71
|
+
kickMember: "kick_member",
|
|
63
72
|
guildToken: "guild_token",
|
|
64
73
|
});
|
|
65
74
|
});
|
|
@@ -13,6 +13,12 @@ import {
|
|
|
13
13
|
OrganizationFeatureSettings$Outbound,
|
|
14
14
|
OrganizationFeatureSettings$outboundSchema,
|
|
15
15
|
} from "./organizationfeaturesettings.js";
|
|
16
|
+
import {
|
|
17
|
+
OrganizationNotificationSettings,
|
|
18
|
+
OrganizationNotificationSettings$inboundSchema,
|
|
19
|
+
OrganizationNotificationSettings$Outbound,
|
|
20
|
+
OrganizationNotificationSettings$outboundSchema,
|
|
21
|
+
} from "./organizationnotificationsettings.js";
|
|
16
22
|
import {
|
|
17
23
|
OrganizationSocialLink,
|
|
18
24
|
OrganizationSocialLink$inboundSchema,
|
|
@@ -72,6 +78,7 @@ export type Organization = {
|
|
|
72
78
|
*/
|
|
73
79
|
featureSettings: OrganizationFeatureSettings | null;
|
|
74
80
|
subscriptionSettings: OrganizationSubscriptionSettings;
|
|
81
|
+
notificationSettings: OrganizationNotificationSettings;
|
|
75
82
|
};
|
|
76
83
|
|
|
77
84
|
/** @internal */
|
|
@@ -96,6 +103,7 @@ export const Organization$inboundSchema: z.ZodType<
|
|
|
96
103
|
),
|
|
97
104
|
feature_settings: z.nullable(OrganizationFeatureSettings$inboundSchema),
|
|
98
105
|
subscription_settings: OrganizationSubscriptionSettings$inboundSchema,
|
|
106
|
+
notification_settings: OrganizationNotificationSettings$inboundSchema,
|
|
99
107
|
}).transform((v) => {
|
|
100
108
|
return remap$(v, {
|
|
101
109
|
"created_at": "createdAt",
|
|
@@ -104,6 +112,7 @@ export const Organization$inboundSchema: z.ZodType<
|
|
|
104
112
|
"details_submitted_at": "detailsSubmittedAt",
|
|
105
113
|
"feature_settings": "featureSettings",
|
|
106
114
|
"subscription_settings": "subscriptionSettings",
|
|
115
|
+
"notification_settings": "notificationSettings",
|
|
107
116
|
});
|
|
108
117
|
});
|
|
109
118
|
|
|
@@ -121,6 +130,7 @@ export type Organization$Outbound = {
|
|
|
121
130
|
details_submitted_at: string | null;
|
|
122
131
|
feature_settings: OrganizationFeatureSettings$Outbound | null;
|
|
123
132
|
subscription_settings: OrganizationSubscriptionSettings$Outbound;
|
|
133
|
+
notification_settings: OrganizationNotificationSettings$Outbound;
|
|
124
134
|
};
|
|
125
135
|
|
|
126
136
|
/** @internal */
|
|
@@ -141,6 +151,7 @@ export const Organization$outboundSchema: z.ZodType<
|
|
|
141
151
|
detailsSubmittedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
142
152
|
featureSettings: z.nullable(OrganizationFeatureSettings$outboundSchema),
|
|
143
153
|
subscriptionSettings: OrganizationSubscriptionSettings$outboundSchema,
|
|
154
|
+
notificationSettings: OrganizationNotificationSettings$outboundSchema,
|
|
144
155
|
}).transform((v) => {
|
|
145
156
|
return remap$(v, {
|
|
146
157
|
createdAt: "created_at",
|
|
@@ -149,6 +160,7 @@ export const Organization$outboundSchema: z.ZodType<
|
|
|
149
160
|
detailsSubmittedAt: "details_submitted_at",
|
|
150
161
|
featureSettings: "feature_settings",
|
|
151
162
|
subscriptionSettings: "subscription_settings",
|
|
163
|
+
notificationSettings: "notification_settings",
|
|
152
164
|
});
|
|
153
165
|
});
|
|
154
166
|
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
OrganizationFeatureSettings$Outbound,
|
|
20
20
|
OrganizationFeatureSettings$outboundSchema,
|
|
21
21
|
} from "./organizationfeaturesettings.js";
|
|
22
|
+
import {
|
|
23
|
+
OrganizationNotificationSettings,
|
|
24
|
+
OrganizationNotificationSettings$inboundSchema,
|
|
25
|
+
OrganizationNotificationSettings$Outbound,
|
|
26
|
+
OrganizationNotificationSettings$outboundSchema,
|
|
27
|
+
} from "./organizationnotificationsettings.js";
|
|
22
28
|
import {
|
|
23
29
|
OrganizationSocialLink,
|
|
24
30
|
OrganizationSocialLink$inboundSchema,
|
|
@@ -54,6 +60,7 @@ export type OrganizationCreate = {
|
|
|
54
60
|
details?: OrganizationDetails | null | undefined;
|
|
55
61
|
featureSettings?: OrganizationFeatureSettings | null | undefined;
|
|
56
62
|
subscriptionSettings?: OrganizationSubscriptionSettings | null | undefined;
|
|
63
|
+
notificationSettings?: OrganizationNotificationSettings | null | undefined;
|
|
57
64
|
};
|
|
58
65
|
|
|
59
66
|
/** @internal */
|
|
@@ -74,11 +81,15 @@ export const OrganizationCreate$inboundSchema: z.ZodType<
|
|
|
74
81
|
subscription_settings: z.nullable(
|
|
75
82
|
OrganizationSubscriptionSettings$inboundSchema,
|
|
76
83
|
).optional(),
|
|
84
|
+
notification_settings: z.nullable(
|
|
85
|
+
OrganizationNotificationSettings$inboundSchema,
|
|
86
|
+
).optional(),
|
|
77
87
|
}).transform((v) => {
|
|
78
88
|
return remap$(v, {
|
|
79
89
|
"avatar_url": "avatarUrl",
|
|
80
90
|
"feature_settings": "featureSettings",
|
|
81
91
|
"subscription_settings": "subscriptionSettings",
|
|
92
|
+
"notification_settings": "notificationSettings",
|
|
82
93
|
});
|
|
83
94
|
});
|
|
84
95
|
|
|
@@ -96,6 +107,10 @@ export type OrganizationCreate$Outbound = {
|
|
|
96
107
|
| OrganizationSubscriptionSettings$Outbound
|
|
97
108
|
| null
|
|
98
109
|
| undefined;
|
|
110
|
+
notification_settings?:
|
|
111
|
+
| OrganizationNotificationSettings$Outbound
|
|
112
|
+
| null
|
|
113
|
+
| undefined;
|
|
99
114
|
};
|
|
100
115
|
|
|
101
116
|
/** @internal */
|
|
@@ -117,11 +132,15 @@ export const OrganizationCreate$outboundSchema: z.ZodType<
|
|
|
117
132
|
subscriptionSettings: z.nullable(
|
|
118
133
|
OrganizationSubscriptionSettings$outboundSchema,
|
|
119
134
|
).optional(),
|
|
135
|
+
notificationSettings: z.nullable(
|
|
136
|
+
OrganizationNotificationSettings$outboundSchema,
|
|
137
|
+
).optional(),
|
|
120
138
|
}).transform((v) => {
|
|
121
139
|
return remap$(v, {
|
|
122
140
|
avatarUrl: "avatar_url",
|
|
123
141
|
featureSettings: "feature_settings",
|
|
124
142
|
subscriptionSettings: "subscription_settings",
|
|
143
|
+
notificationSettings: "notification_settings",
|
|
125
144
|
});
|
|
126
145
|
});
|
|
127
146
|
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
|
|
11
|
+
export type OrganizationNotificationSettings = {
|
|
12
|
+
newOrder: boolean;
|
|
13
|
+
newSubscription: boolean;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const OrganizationNotificationSettings$inboundSchema: z.ZodType<
|
|
18
|
+
OrganizationNotificationSettings,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
new_order: z.boolean(),
|
|
23
|
+
new_subscription: z.boolean(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"new_order": "newOrder",
|
|
27
|
+
"new_subscription": "newSubscription",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type OrganizationNotificationSettings$Outbound = {
|
|
33
|
+
new_order: boolean;
|
|
34
|
+
new_subscription: boolean;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const OrganizationNotificationSettings$outboundSchema: z.ZodType<
|
|
39
|
+
OrganizationNotificationSettings$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
OrganizationNotificationSettings
|
|
42
|
+
> = z.object({
|
|
43
|
+
newOrder: z.boolean(),
|
|
44
|
+
newSubscription: z.boolean(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
newOrder: "new_order",
|
|
48
|
+
newSubscription: "new_subscription",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export namespace OrganizationNotificationSettings$ {
|
|
57
|
+
/** @deprecated use `OrganizationNotificationSettings$inboundSchema` instead. */
|
|
58
|
+
export const inboundSchema = OrganizationNotificationSettings$inboundSchema;
|
|
59
|
+
/** @deprecated use `OrganizationNotificationSettings$outboundSchema` instead. */
|
|
60
|
+
export const outboundSchema = OrganizationNotificationSettings$outboundSchema;
|
|
61
|
+
/** @deprecated use `OrganizationNotificationSettings$Outbound` instead. */
|
|
62
|
+
export type Outbound = OrganizationNotificationSettings$Outbound;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function organizationNotificationSettingsToJSON(
|
|
66
|
+
organizationNotificationSettings: OrganizationNotificationSettings,
|
|
67
|
+
): string {
|
|
68
|
+
return JSON.stringify(
|
|
69
|
+
OrganizationNotificationSettings$outboundSchema.parse(
|
|
70
|
+
organizationNotificationSettings,
|
|
71
|
+
),
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function organizationNotificationSettingsFromJSON(
|
|
76
|
+
jsonString: string,
|
|
77
|
+
): SafeParseResult<OrganizationNotificationSettings, SDKValidationError> {
|
|
78
|
+
return safeParse(
|
|
79
|
+
jsonString,
|
|
80
|
+
(x) => OrganizationNotificationSettings$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'OrganizationNotificationSettings' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|