@unkey/api 2.3.2 → 2.3.3
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/dist/commonjs/funcs/analyticsGetVerifications.d.ts +2 -0
- package/dist/commonjs/funcs/analyticsGetVerifications.d.ts.map +1 -1
- package/dist/commonjs/funcs/analyticsGetVerifications.js +3 -1
- package/dist/commonjs/funcs/analyticsGetVerifications.js.map +1 -1
- package/dist/commonjs/funcs/apisCreateApi.d.ts +2 -0
- package/dist/commonjs/funcs/apisCreateApi.d.ts.map +1 -1
- package/dist/commonjs/funcs/apisCreateApi.js +3 -1
- package/dist/commonjs/funcs/apisCreateApi.js.map +1 -1
- package/dist/commonjs/funcs/apisDeleteApi.d.ts +2 -0
- package/dist/commonjs/funcs/apisDeleteApi.d.ts.map +1 -1
- package/dist/commonjs/funcs/apisDeleteApi.js +3 -1
- package/dist/commonjs/funcs/apisDeleteApi.js.map +1 -1
- package/dist/commonjs/funcs/apisGetApi.d.ts +2 -0
- package/dist/commonjs/funcs/apisGetApi.d.ts.map +1 -1
- package/dist/commonjs/funcs/apisGetApi.js +3 -1
- package/dist/commonjs/funcs/apisGetApi.js.map +1 -1
- package/dist/commonjs/funcs/apisListKeys.d.ts +2 -0
- package/dist/commonjs/funcs/apisListKeys.d.ts.map +1 -1
- package/dist/commonjs/funcs/apisListKeys.js +3 -1
- package/dist/commonjs/funcs/apisListKeys.js.map +1 -1
- package/dist/commonjs/funcs/identitiesCreateIdentity.d.ts +2 -0
- package/dist/commonjs/funcs/identitiesCreateIdentity.d.ts.map +1 -1
- package/dist/commonjs/funcs/identitiesCreateIdentity.js +3 -1
- package/dist/commonjs/funcs/identitiesCreateIdentity.js.map +1 -1
- package/dist/commonjs/funcs/identitiesDeleteIdentity.d.ts +2 -0
- package/dist/commonjs/funcs/identitiesDeleteIdentity.d.ts.map +1 -1
- package/dist/commonjs/funcs/identitiesDeleteIdentity.js +3 -1
- package/dist/commonjs/funcs/identitiesDeleteIdentity.js.map +1 -1
- package/dist/commonjs/funcs/identitiesGetIdentity.d.ts +2 -0
- package/dist/commonjs/funcs/identitiesGetIdentity.d.ts.map +1 -1
- package/dist/commonjs/funcs/identitiesGetIdentity.js +3 -1
- package/dist/commonjs/funcs/identitiesGetIdentity.js.map +1 -1
- package/dist/commonjs/funcs/identitiesListIdentities.d.ts +2 -0
- package/dist/commonjs/funcs/identitiesListIdentities.d.ts.map +1 -1
- package/dist/commonjs/funcs/identitiesListIdentities.js +3 -1
- package/dist/commonjs/funcs/identitiesListIdentities.js.map +1 -1
- package/dist/commonjs/funcs/identitiesUpdateIdentity.d.ts +2 -0
- package/dist/commonjs/funcs/identitiesUpdateIdentity.d.ts.map +1 -1
- package/dist/commonjs/funcs/identitiesUpdateIdentity.js +3 -1
- package/dist/commonjs/funcs/identitiesUpdateIdentity.js.map +1 -1
- package/dist/commonjs/funcs/internalCreateDeployment.d.ts +2 -0
- package/dist/commonjs/funcs/internalCreateDeployment.d.ts.map +1 -1
- package/dist/commonjs/funcs/internalCreateDeployment.js +3 -1
- package/dist/commonjs/funcs/internalCreateDeployment.js.map +1 -1
- package/dist/commonjs/funcs/internalGetDeployment.d.ts +2 -0
- package/dist/commonjs/funcs/internalGetDeployment.d.ts.map +1 -1
- package/dist/commonjs/funcs/internalGetDeployment.js +3 -1
- package/dist/commonjs/funcs/internalGetDeployment.js.map +1 -1
- package/dist/commonjs/funcs/keysAddPermissions.d.ts +2 -0
- package/dist/commonjs/funcs/keysAddPermissions.d.ts.map +1 -1
- package/dist/commonjs/funcs/keysAddPermissions.js +3 -1
- package/dist/commonjs/funcs/keysAddPermissions.js.map +1 -1
- package/dist/commonjs/funcs/keysAddRoles.d.ts +2 -0
- package/dist/commonjs/funcs/keysAddRoles.d.ts.map +1 -1
- package/dist/commonjs/funcs/keysAddRoles.js +3 -1
- package/dist/commonjs/funcs/keysAddRoles.js.map +1 -1
- package/dist/commonjs/funcs/keysCreateKey.d.ts +2 -0
- package/dist/commonjs/funcs/keysCreateKey.d.ts.map +1 -1
- package/dist/commonjs/funcs/keysCreateKey.js +3 -1
- package/dist/commonjs/funcs/keysCreateKey.js.map +1 -1
- package/dist/commonjs/funcs/keysDeleteKey.d.ts +2 -0
- package/dist/commonjs/funcs/keysDeleteKey.d.ts.map +1 -1
- package/dist/commonjs/funcs/keysDeleteKey.js +3 -1
- package/dist/commonjs/funcs/keysDeleteKey.js.map +1 -1
- package/dist/commonjs/funcs/keysGetKey.d.ts +2 -0
- package/dist/commonjs/funcs/keysGetKey.d.ts.map +1 -1
- package/dist/commonjs/funcs/keysGetKey.js +3 -1
- package/dist/commonjs/funcs/keysGetKey.js.map +1 -1
- package/dist/commonjs/funcs/keysMigrateKeys.d.ts +2 -0
- package/dist/commonjs/funcs/keysMigrateKeys.d.ts.map +1 -1
- package/dist/commonjs/funcs/keysMigrateKeys.js +3 -1
- package/dist/commonjs/funcs/keysMigrateKeys.js.map +1 -1
- package/dist/commonjs/funcs/keysRemovePermissions.d.ts +2 -0
- package/dist/commonjs/funcs/keysRemovePermissions.d.ts.map +1 -1
- package/dist/commonjs/funcs/keysRemovePermissions.js +3 -1
- package/dist/commonjs/funcs/keysRemovePermissions.js.map +1 -1
- package/dist/commonjs/funcs/keysRemoveRoles.d.ts +2 -0
- package/dist/commonjs/funcs/keysRemoveRoles.d.ts.map +1 -1
- package/dist/commonjs/funcs/keysRemoveRoles.js +3 -1
- package/dist/commonjs/funcs/keysRemoveRoles.js.map +1 -1
- package/dist/commonjs/funcs/keysRerollKey.d.ts +2 -0
- package/dist/commonjs/funcs/keysRerollKey.d.ts.map +1 -1
- package/dist/commonjs/funcs/keysRerollKey.js +3 -1
- package/dist/commonjs/funcs/keysRerollKey.js.map +1 -1
- package/dist/commonjs/funcs/keysSetPermissions.d.ts +2 -0
- package/dist/commonjs/funcs/keysSetPermissions.d.ts.map +1 -1
- package/dist/commonjs/funcs/keysSetPermissions.js +3 -1
- package/dist/commonjs/funcs/keysSetPermissions.js.map +1 -1
- package/dist/commonjs/funcs/keysSetRoles.d.ts +2 -0
- package/dist/commonjs/funcs/keysSetRoles.d.ts.map +1 -1
- package/dist/commonjs/funcs/keysSetRoles.js +3 -1
- package/dist/commonjs/funcs/keysSetRoles.js.map +1 -1
- package/dist/commonjs/funcs/keysUpdateCredits.d.ts +2 -0
- package/dist/commonjs/funcs/keysUpdateCredits.d.ts.map +1 -1
- package/dist/commonjs/funcs/keysUpdateCredits.js +3 -1
- package/dist/commonjs/funcs/keysUpdateCredits.js.map +1 -1
- package/dist/commonjs/funcs/keysUpdateKey.d.ts +2 -0
- package/dist/commonjs/funcs/keysUpdateKey.d.ts.map +1 -1
- package/dist/commonjs/funcs/keysUpdateKey.js +3 -1
- package/dist/commonjs/funcs/keysUpdateKey.js.map +1 -1
- package/dist/commonjs/funcs/keysVerifyKey.d.ts +2 -0
- package/dist/commonjs/funcs/keysVerifyKey.d.ts.map +1 -1
- package/dist/commonjs/funcs/keysVerifyKey.js +3 -1
- package/dist/commonjs/funcs/keysVerifyKey.js.map +1 -1
- package/dist/commonjs/funcs/keysWhoami.d.ts +2 -0
- package/dist/commonjs/funcs/keysWhoami.d.ts.map +1 -1
- package/dist/commonjs/funcs/keysWhoami.js +3 -1
- package/dist/commonjs/funcs/keysWhoami.js.map +1 -1
- package/dist/commonjs/funcs/permissionsCreatePermission.d.ts +2 -0
- package/dist/commonjs/funcs/permissionsCreatePermission.d.ts.map +1 -1
- package/dist/commonjs/funcs/permissionsCreatePermission.js +3 -1
- package/dist/commonjs/funcs/permissionsCreatePermission.js.map +1 -1
- package/dist/commonjs/funcs/permissionsCreateRole.d.ts +2 -0
- package/dist/commonjs/funcs/permissionsCreateRole.d.ts.map +1 -1
- package/dist/commonjs/funcs/permissionsCreateRole.js +3 -1
- package/dist/commonjs/funcs/permissionsCreateRole.js.map +1 -1
- package/dist/commonjs/funcs/permissionsDeletePermission.d.ts +2 -0
- package/dist/commonjs/funcs/permissionsDeletePermission.d.ts.map +1 -1
- package/dist/commonjs/funcs/permissionsDeletePermission.js +3 -1
- package/dist/commonjs/funcs/permissionsDeletePermission.js.map +1 -1
- package/dist/commonjs/funcs/permissionsDeleteRole.d.ts +2 -0
- package/dist/commonjs/funcs/permissionsDeleteRole.d.ts.map +1 -1
- package/dist/commonjs/funcs/permissionsDeleteRole.js +3 -1
- package/dist/commonjs/funcs/permissionsDeleteRole.js.map +1 -1
- package/dist/commonjs/funcs/permissionsGetPermission.d.ts +2 -0
- package/dist/commonjs/funcs/permissionsGetPermission.d.ts.map +1 -1
- package/dist/commonjs/funcs/permissionsGetPermission.js +3 -1
- package/dist/commonjs/funcs/permissionsGetPermission.js.map +1 -1
- package/dist/commonjs/funcs/permissionsGetRole.d.ts +2 -0
- package/dist/commonjs/funcs/permissionsGetRole.d.ts.map +1 -1
- package/dist/commonjs/funcs/permissionsGetRole.js +3 -1
- package/dist/commonjs/funcs/permissionsGetRole.js.map +1 -1
- package/dist/commonjs/funcs/permissionsListPermissions.d.ts +2 -0
- package/dist/commonjs/funcs/permissionsListPermissions.d.ts.map +1 -1
- package/dist/commonjs/funcs/permissionsListPermissions.js +3 -1
- package/dist/commonjs/funcs/permissionsListPermissions.js.map +1 -1
- package/dist/commonjs/funcs/permissionsListRoles.d.ts +2 -0
- package/dist/commonjs/funcs/permissionsListRoles.d.ts.map +1 -1
- package/dist/commonjs/funcs/permissionsListRoles.js +3 -1
- package/dist/commonjs/funcs/permissionsListRoles.js.map +1 -1
- package/dist/commonjs/funcs/ratelimitDeleteOverride.d.ts +2 -0
- package/dist/commonjs/funcs/ratelimitDeleteOverride.d.ts.map +1 -1
- package/dist/commonjs/funcs/ratelimitDeleteOverride.js +3 -1
- package/dist/commonjs/funcs/ratelimitDeleteOverride.js.map +1 -1
- package/dist/commonjs/funcs/ratelimitGetOverride.d.ts +2 -0
- package/dist/commonjs/funcs/ratelimitGetOverride.d.ts.map +1 -1
- package/dist/commonjs/funcs/ratelimitGetOverride.js +3 -1
- package/dist/commonjs/funcs/ratelimitGetOverride.js.map +1 -1
- package/dist/commonjs/funcs/ratelimitLimit.d.ts +2 -0
- package/dist/commonjs/funcs/ratelimitLimit.d.ts.map +1 -1
- package/dist/commonjs/funcs/ratelimitLimit.js +3 -1
- package/dist/commonjs/funcs/ratelimitLimit.js.map +1 -1
- package/dist/commonjs/funcs/ratelimitListOverrides.d.ts +2 -0
- package/dist/commonjs/funcs/ratelimitListOverrides.d.ts.map +1 -1
- package/dist/commonjs/funcs/ratelimitListOverrides.js +3 -1
- package/dist/commonjs/funcs/ratelimitListOverrides.js.map +1 -1
- package/dist/commonjs/funcs/ratelimitMultiLimit.d.ts +2 -0
- package/dist/commonjs/funcs/ratelimitMultiLimit.d.ts.map +1 -1
- package/dist/commonjs/funcs/ratelimitMultiLimit.js +3 -1
- package/dist/commonjs/funcs/ratelimitMultiLimit.js.map +1 -1
- package/dist/commonjs/funcs/ratelimitSetOverride.d.ts +2 -0
- package/dist/commonjs/funcs/ratelimitSetOverride.d.ts.map +1 -1
- package/dist/commonjs/funcs/ratelimitSetOverride.js +3 -1
- package/dist/commonjs/funcs/ratelimitSetOverride.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +20 -5
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +8 -4
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts +1 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +19 -8
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/lib/url.d.ts.map +1 -1
- package/dist/commonjs/lib/url.js +4 -2
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/models/components/v2deploygetdeploymentresponsedata.d.ts +1 -0
- package/dist/commonjs/models/components/v2deploygetdeploymentresponsedata.d.ts.map +1 -1
- package/dist/commonjs/models/components/v2deploygetdeploymentresponsedata.js +1 -0
- package/dist/commonjs/models/components/v2deploygetdeploymentresponsedata.js.map +1 -1
- package/dist/esm/funcs/analyticsGetVerifications.d.ts +2 -0
- package/dist/esm/funcs/analyticsGetVerifications.d.ts.map +1 -1
- package/dist/esm/funcs/analyticsGetVerifications.js +3 -1
- package/dist/esm/funcs/analyticsGetVerifications.js.map +1 -1
- package/dist/esm/funcs/apisCreateApi.d.ts +2 -0
- package/dist/esm/funcs/apisCreateApi.d.ts.map +1 -1
- package/dist/esm/funcs/apisCreateApi.js +3 -1
- package/dist/esm/funcs/apisCreateApi.js.map +1 -1
- package/dist/esm/funcs/apisDeleteApi.d.ts +2 -0
- package/dist/esm/funcs/apisDeleteApi.d.ts.map +1 -1
- package/dist/esm/funcs/apisDeleteApi.js +3 -1
- package/dist/esm/funcs/apisDeleteApi.js.map +1 -1
- package/dist/esm/funcs/apisGetApi.d.ts +2 -0
- package/dist/esm/funcs/apisGetApi.d.ts.map +1 -1
- package/dist/esm/funcs/apisGetApi.js +3 -1
- package/dist/esm/funcs/apisGetApi.js.map +1 -1
- package/dist/esm/funcs/apisListKeys.d.ts +2 -0
- package/dist/esm/funcs/apisListKeys.d.ts.map +1 -1
- package/dist/esm/funcs/apisListKeys.js +3 -1
- package/dist/esm/funcs/apisListKeys.js.map +1 -1
- package/dist/esm/funcs/identitiesCreateIdentity.d.ts +2 -0
- package/dist/esm/funcs/identitiesCreateIdentity.d.ts.map +1 -1
- package/dist/esm/funcs/identitiesCreateIdentity.js +3 -1
- package/dist/esm/funcs/identitiesCreateIdentity.js.map +1 -1
- package/dist/esm/funcs/identitiesDeleteIdentity.d.ts +2 -0
- package/dist/esm/funcs/identitiesDeleteIdentity.d.ts.map +1 -1
- package/dist/esm/funcs/identitiesDeleteIdentity.js +3 -1
- package/dist/esm/funcs/identitiesDeleteIdentity.js.map +1 -1
- package/dist/esm/funcs/identitiesGetIdentity.d.ts +2 -0
- package/dist/esm/funcs/identitiesGetIdentity.d.ts.map +1 -1
- package/dist/esm/funcs/identitiesGetIdentity.js +3 -1
- package/dist/esm/funcs/identitiesGetIdentity.js.map +1 -1
- package/dist/esm/funcs/identitiesListIdentities.d.ts +2 -0
- package/dist/esm/funcs/identitiesListIdentities.d.ts.map +1 -1
- package/dist/esm/funcs/identitiesListIdentities.js +3 -1
- package/dist/esm/funcs/identitiesListIdentities.js.map +1 -1
- package/dist/esm/funcs/identitiesUpdateIdentity.d.ts +2 -0
- package/dist/esm/funcs/identitiesUpdateIdentity.d.ts.map +1 -1
- package/dist/esm/funcs/identitiesUpdateIdentity.js +3 -1
- package/dist/esm/funcs/identitiesUpdateIdentity.js.map +1 -1
- package/dist/esm/funcs/internalCreateDeployment.d.ts +2 -0
- package/dist/esm/funcs/internalCreateDeployment.d.ts.map +1 -1
- package/dist/esm/funcs/internalCreateDeployment.js +3 -1
- package/dist/esm/funcs/internalCreateDeployment.js.map +1 -1
- package/dist/esm/funcs/internalGetDeployment.d.ts +2 -0
- package/dist/esm/funcs/internalGetDeployment.d.ts.map +1 -1
- package/dist/esm/funcs/internalGetDeployment.js +3 -1
- package/dist/esm/funcs/internalGetDeployment.js.map +1 -1
- package/dist/esm/funcs/keysAddPermissions.d.ts +2 -0
- package/dist/esm/funcs/keysAddPermissions.d.ts.map +1 -1
- package/dist/esm/funcs/keysAddPermissions.js +3 -1
- package/dist/esm/funcs/keysAddPermissions.js.map +1 -1
- package/dist/esm/funcs/keysAddRoles.d.ts +2 -0
- package/dist/esm/funcs/keysAddRoles.d.ts.map +1 -1
- package/dist/esm/funcs/keysAddRoles.js +3 -1
- package/dist/esm/funcs/keysAddRoles.js.map +1 -1
- package/dist/esm/funcs/keysCreateKey.d.ts +2 -0
- package/dist/esm/funcs/keysCreateKey.d.ts.map +1 -1
- package/dist/esm/funcs/keysCreateKey.js +3 -1
- package/dist/esm/funcs/keysCreateKey.js.map +1 -1
- package/dist/esm/funcs/keysDeleteKey.d.ts +2 -0
- package/dist/esm/funcs/keysDeleteKey.d.ts.map +1 -1
- package/dist/esm/funcs/keysDeleteKey.js +3 -1
- package/dist/esm/funcs/keysDeleteKey.js.map +1 -1
- package/dist/esm/funcs/keysGetKey.d.ts +2 -0
- package/dist/esm/funcs/keysGetKey.d.ts.map +1 -1
- package/dist/esm/funcs/keysGetKey.js +3 -1
- package/dist/esm/funcs/keysGetKey.js.map +1 -1
- package/dist/esm/funcs/keysMigrateKeys.d.ts +2 -0
- package/dist/esm/funcs/keysMigrateKeys.d.ts.map +1 -1
- package/dist/esm/funcs/keysMigrateKeys.js +3 -1
- package/dist/esm/funcs/keysMigrateKeys.js.map +1 -1
- package/dist/esm/funcs/keysRemovePermissions.d.ts +2 -0
- package/dist/esm/funcs/keysRemovePermissions.d.ts.map +1 -1
- package/dist/esm/funcs/keysRemovePermissions.js +3 -1
- package/dist/esm/funcs/keysRemovePermissions.js.map +1 -1
- package/dist/esm/funcs/keysRemoveRoles.d.ts +2 -0
- package/dist/esm/funcs/keysRemoveRoles.d.ts.map +1 -1
- package/dist/esm/funcs/keysRemoveRoles.js +3 -1
- package/dist/esm/funcs/keysRemoveRoles.js.map +1 -1
- package/dist/esm/funcs/keysRerollKey.d.ts +2 -0
- package/dist/esm/funcs/keysRerollKey.d.ts.map +1 -1
- package/dist/esm/funcs/keysRerollKey.js +3 -1
- package/dist/esm/funcs/keysRerollKey.js.map +1 -1
- package/dist/esm/funcs/keysSetPermissions.d.ts +2 -0
- package/dist/esm/funcs/keysSetPermissions.d.ts.map +1 -1
- package/dist/esm/funcs/keysSetPermissions.js +3 -1
- package/dist/esm/funcs/keysSetPermissions.js.map +1 -1
- package/dist/esm/funcs/keysSetRoles.d.ts +2 -0
- package/dist/esm/funcs/keysSetRoles.d.ts.map +1 -1
- package/dist/esm/funcs/keysSetRoles.js +3 -1
- package/dist/esm/funcs/keysSetRoles.js.map +1 -1
- package/dist/esm/funcs/keysUpdateCredits.d.ts +2 -0
- package/dist/esm/funcs/keysUpdateCredits.d.ts.map +1 -1
- package/dist/esm/funcs/keysUpdateCredits.js +3 -1
- package/dist/esm/funcs/keysUpdateCredits.js.map +1 -1
- package/dist/esm/funcs/keysUpdateKey.d.ts +2 -0
- package/dist/esm/funcs/keysUpdateKey.d.ts.map +1 -1
- package/dist/esm/funcs/keysUpdateKey.js +3 -1
- package/dist/esm/funcs/keysUpdateKey.js.map +1 -1
- package/dist/esm/funcs/keysVerifyKey.d.ts +2 -0
- package/dist/esm/funcs/keysVerifyKey.d.ts.map +1 -1
- package/dist/esm/funcs/keysVerifyKey.js +3 -1
- package/dist/esm/funcs/keysVerifyKey.js.map +1 -1
- package/dist/esm/funcs/keysWhoami.d.ts +2 -0
- package/dist/esm/funcs/keysWhoami.d.ts.map +1 -1
- package/dist/esm/funcs/keysWhoami.js +3 -1
- package/dist/esm/funcs/keysWhoami.js.map +1 -1
- package/dist/esm/funcs/permissionsCreatePermission.d.ts +2 -0
- package/dist/esm/funcs/permissionsCreatePermission.d.ts.map +1 -1
- package/dist/esm/funcs/permissionsCreatePermission.js +3 -1
- package/dist/esm/funcs/permissionsCreatePermission.js.map +1 -1
- package/dist/esm/funcs/permissionsCreateRole.d.ts +2 -0
- package/dist/esm/funcs/permissionsCreateRole.d.ts.map +1 -1
- package/dist/esm/funcs/permissionsCreateRole.js +3 -1
- package/dist/esm/funcs/permissionsCreateRole.js.map +1 -1
- package/dist/esm/funcs/permissionsDeletePermission.d.ts +2 -0
- package/dist/esm/funcs/permissionsDeletePermission.d.ts.map +1 -1
- package/dist/esm/funcs/permissionsDeletePermission.js +3 -1
- package/dist/esm/funcs/permissionsDeletePermission.js.map +1 -1
- package/dist/esm/funcs/permissionsDeleteRole.d.ts +2 -0
- package/dist/esm/funcs/permissionsDeleteRole.d.ts.map +1 -1
- package/dist/esm/funcs/permissionsDeleteRole.js +3 -1
- package/dist/esm/funcs/permissionsDeleteRole.js.map +1 -1
- package/dist/esm/funcs/permissionsGetPermission.d.ts +2 -0
- package/dist/esm/funcs/permissionsGetPermission.d.ts.map +1 -1
- package/dist/esm/funcs/permissionsGetPermission.js +3 -1
- package/dist/esm/funcs/permissionsGetPermission.js.map +1 -1
- package/dist/esm/funcs/permissionsGetRole.d.ts +2 -0
- package/dist/esm/funcs/permissionsGetRole.d.ts.map +1 -1
- package/dist/esm/funcs/permissionsGetRole.js +3 -1
- package/dist/esm/funcs/permissionsGetRole.js.map +1 -1
- package/dist/esm/funcs/permissionsListPermissions.d.ts +2 -0
- package/dist/esm/funcs/permissionsListPermissions.d.ts.map +1 -1
- package/dist/esm/funcs/permissionsListPermissions.js +3 -1
- package/dist/esm/funcs/permissionsListPermissions.js.map +1 -1
- package/dist/esm/funcs/permissionsListRoles.d.ts +2 -0
- package/dist/esm/funcs/permissionsListRoles.d.ts.map +1 -1
- package/dist/esm/funcs/permissionsListRoles.js +3 -1
- package/dist/esm/funcs/permissionsListRoles.js.map +1 -1
- package/dist/esm/funcs/ratelimitDeleteOverride.d.ts +2 -0
- package/dist/esm/funcs/ratelimitDeleteOverride.d.ts.map +1 -1
- package/dist/esm/funcs/ratelimitDeleteOverride.js +3 -1
- package/dist/esm/funcs/ratelimitDeleteOverride.js.map +1 -1
- package/dist/esm/funcs/ratelimitGetOverride.d.ts +2 -0
- package/dist/esm/funcs/ratelimitGetOverride.d.ts.map +1 -1
- package/dist/esm/funcs/ratelimitGetOverride.js +3 -1
- package/dist/esm/funcs/ratelimitGetOverride.js.map +1 -1
- package/dist/esm/funcs/ratelimitLimit.d.ts +2 -0
- package/dist/esm/funcs/ratelimitLimit.d.ts.map +1 -1
- package/dist/esm/funcs/ratelimitLimit.js +3 -1
- package/dist/esm/funcs/ratelimitLimit.js.map +1 -1
- package/dist/esm/funcs/ratelimitListOverrides.d.ts +2 -0
- package/dist/esm/funcs/ratelimitListOverrides.d.ts.map +1 -1
- package/dist/esm/funcs/ratelimitListOverrides.js +3 -1
- package/dist/esm/funcs/ratelimitListOverrides.js.map +1 -1
- package/dist/esm/funcs/ratelimitMultiLimit.d.ts +2 -0
- package/dist/esm/funcs/ratelimitMultiLimit.d.ts.map +1 -1
- package/dist/esm/funcs/ratelimitMultiLimit.js +3 -1
- package/dist/esm/funcs/ratelimitMultiLimit.js.map +1 -1
- package/dist/esm/funcs/ratelimitSetOverride.d.ts +2 -0
- package/dist/esm/funcs/ratelimitSetOverride.d.ts.map +1 -1
- package/dist/esm/funcs/ratelimitSetOverride.js +3 -1
- package/dist/esm/funcs/ratelimitSetOverride.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +20 -5
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +8 -4
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/lib/security.d.ts +1 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +19 -8
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/lib/url.d.ts.map +1 -1
- package/dist/esm/lib/url.js +4 -2
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/models/components/v2deploygetdeploymentresponsedata.d.ts +1 -0
- package/dist/esm/models/components/v2deploygetdeploymentresponsedata.d.ts.map +1 -1
- package/dist/esm/models/components/v2deploygetdeploymentresponsedata.js +1 -0
- package/dist/esm/models/components/v2deploygetdeploymentresponsedata.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/analyticsGetVerifications.ts +3 -1
- package/src/funcs/apisCreateApi.ts +3 -1
- package/src/funcs/apisDeleteApi.ts +3 -1
- package/src/funcs/apisGetApi.ts +3 -1
- package/src/funcs/apisListKeys.ts +3 -1
- package/src/funcs/identitiesCreateIdentity.ts +3 -1
- package/src/funcs/identitiesDeleteIdentity.ts +3 -1
- package/src/funcs/identitiesGetIdentity.ts +3 -1
- package/src/funcs/identitiesListIdentities.ts +3 -1
- package/src/funcs/identitiesUpdateIdentity.ts +3 -1
- package/src/funcs/internalCreateDeployment.ts +3 -1
- package/src/funcs/internalGetDeployment.ts +3 -1
- package/src/funcs/keysAddPermissions.ts +3 -1
- package/src/funcs/keysAddRoles.ts +3 -1
- package/src/funcs/keysCreateKey.ts +3 -1
- package/src/funcs/keysDeleteKey.ts +3 -1
- package/src/funcs/keysGetKey.ts +3 -1
- package/src/funcs/keysMigrateKeys.ts +3 -1
- package/src/funcs/keysRemovePermissions.ts +3 -1
- package/src/funcs/keysRemoveRoles.ts +3 -1
- package/src/funcs/keysRerollKey.ts +3 -1
- package/src/funcs/keysSetPermissions.ts +3 -1
- package/src/funcs/keysSetRoles.ts +3 -1
- package/src/funcs/keysUpdateCredits.ts +3 -1
- package/src/funcs/keysUpdateKey.ts +3 -1
- package/src/funcs/keysVerifyKey.ts +3 -1
- package/src/funcs/keysWhoami.ts +3 -1
- package/src/funcs/permissionsCreatePermission.ts +3 -1
- package/src/funcs/permissionsCreateRole.ts +3 -1
- package/src/funcs/permissionsDeletePermission.ts +3 -1
- package/src/funcs/permissionsDeleteRole.ts +3 -1
- package/src/funcs/permissionsGetPermission.ts +3 -1
- package/src/funcs/permissionsGetRole.ts +3 -1
- package/src/funcs/permissionsListPermissions.ts +3 -1
- package/src/funcs/permissionsListRoles.ts +3 -1
- package/src/funcs/ratelimitDeleteOverride.ts +3 -1
- package/src/funcs/ratelimitGetOverride.ts +3 -1
- package/src/funcs/ratelimitLimit.ts +3 -1
- package/src/funcs/ratelimitListOverrides.ts +3 -1
- package/src/funcs/ratelimitMultiLimit.ts +3 -1
- package/src/funcs/ratelimitSetOverride.ts +3 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +23 -4
- package/src/lib/sdks.ts +7 -5
- package/src/lib/security.ts +14 -2
- package/src/lib/url.ts +16 -14
- package/src/models/components/v2deploygetdeploymentresponsedata.ts +1 -0
|
@@ -35,6 +35,8 @@ import { Result } from "../types/fp.js";
|
|
|
35
35
|
*
|
|
36
36
|
* > **Important**
|
|
37
37
|
* > Requires `identity.*.read_identity` permission
|
|
38
|
+
*
|
|
39
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
38
40
|
*/
|
|
39
41
|
export function identitiesGetIdentity(
|
|
40
42
|
client: UnkeyCore,
|
|
@@ -113,7 +115,7 @@ async function $do(
|
|
|
113
115
|
|
|
114
116
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
115
117
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
116
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
118
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
117
119
|
|
|
118
120
|
const context = {
|
|
119
121
|
options: client._options,
|
|
@@ -43,6 +43,8 @@ import {
|
|
|
43
43
|
*
|
|
44
44
|
* > **Important**
|
|
45
45
|
* > Requires `identity.*.read_identity` permission
|
|
46
|
+
*
|
|
47
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
46
48
|
*/
|
|
47
49
|
export function identitiesListIdentities(
|
|
48
50
|
client: UnkeyCore,
|
|
@@ -127,7 +129,7 @@ async function $do(
|
|
|
127
129
|
|
|
128
130
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
129
131
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
130
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
132
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
131
133
|
|
|
132
134
|
const context = {
|
|
133
135
|
options: client._options,
|
|
@@ -36,6 +36,8 @@ import { Result } from "../types/fp.js";
|
|
|
36
36
|
* > **Important**
|
|
37
37
|
* > Requires `identity.*.update_identity` permission
|
|
38
38
|
* > Rate limit changes propagate within 30 seconds
|
|
39
|
+
*
|
|
40
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
39
41
|
*/
|
|
40
42
|
export function identitiesUpdateIdentity(
|
|
41
43
|
client: UnkeyCore,
|
|
@@ -116,7 +118,7 @@ async function $do(
|
|
|
116
118
|
|
|
117
119
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
118
120
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
119
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
121
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
120
122
|
|
|
121
123
|
const context = {
|
|
122
124
|
options: client._options,
|
|
@@ -35,6 +35,8 @@ import { Result } from "../types/fp.js";
|
|
|
35
35
|
* Creates a new deployment for a project using either a pre-built Docker image or build context.
|
|
36
36
|
*
|
|
37
37
|
* **Authentication**: Requires a valid root key with appropriate permissions.
|
|
38
|
+
*
|
|
39
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
38
40
|
*/
|
|
39
41
|
export function internalCreateDeployment(
|
|
40
42
|
client: UnkeyCore,
|
|
@@ -115,7 +117,7 @@ async function $do(
|
|
|
115
117
|
|
|
116
118
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
117
119
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
118
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
120
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
119
121
|
|
|
120
122
|
const context = {
|
|
121
123
|
options: client._options,
|
|
@@ -35,6 +35,8 @@ import { Result } from "../types/fp.js";
|
|
|
35
35
|
* Retrieves deployment information including status, error messages, and steps.
|
|
36
36
|
*
|
|
37
37
|
* **Authentication**: Requires a valid root key with appropriate permissions.
|
|
38
|
+
*
|
|
39
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
38
40
|
*/
|
|
39
41
|
export function internalGetDeployment(
|
|
40
42
|
client: UnkeyCore,
|
|
@@ -113,7 +115,7 @@ async function $do(
|
|
|
113
115
|
|
|
114
116
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
115
117
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
116
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
118
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
117
119
|
|
|
118
120
|
const context = {
|
|
119
121
|
options: client._options,
|
|
@@ -44,6 +44,8 @@ import { Result } from "../types/fp.js";
|
|
|
44
44
|
* **Side Effects**
|
|
45
45
|
*
|
|
46
46
|
* Invalidates the key cache for immediate effect, and makes permissions available for verification within 30 seconds across all regions.
|
|
47
|
+
*
|
|
48
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
47
49
|
*/
|
|
48
50
|
export function keysAddPermissions(
|
|
49
51
|
client: UnkeyCore,
|
|
@@ -122,7 +124,7 @@ async function $do(
|
|
|
122
124
|
|
|
123
125
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
124
126
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
125
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
127
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
126
128
|
|
|
127
129
|
const context = {
|
|
128
130
|
options: client._options,
|
|
@@ -44,6 +44,8 @@ import { Result } from "../types/fp.js";
|
|
|
44
44
|
* **Side Effects**
|
|
45
45
|
*
|
|
46
46
|
* Invalidates the key cache for immediate effect, and makes role assignments available for verification within 30 seconds across all regions.
|
|
47
|
+
*
|
|
48
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
47
49
|
*/
|
|
48
50
|
export function keysAddRoles(
|
|
49
51
|
client: UnkeyCore,
|
|
@@ -121,7 +123,7 @@ async function $do(
|
|
|
121
123
|
|
|
122
124
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
123
125
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
124
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
126
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
125
127
|
|
|
126
128
|
const context = {
|
|
127
129
|
options: client._options,
|
|
@@ -45,6 +45,8 @@ import { Result } from "../types/fp.js";
|
|
|
45
45
|
* Your root key needs one of:
|
|
46
46
|
* - `api.*.create_key` (create keys in any API)
|
|
47
47
|
* - `api.<api_id>.create_key` (create keys in specific API)
|
|
48
|
+
*
|
|
49
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
48
50
|
*/
|
|
49
51
|
export function keysCreateKey(
|
|
50
52
|
client: UnkeyCore,
|
|
@@ -123,7 +125,7 @@ async function $do(
|
|
|
123
125
|
|
|
124
126
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
125
127
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
126
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
128
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
127
129
|
|
|
128
130
|
const context = {
|
|
129
131
|
options: client._options,
|
|
@@ -40,6 +40,8 @@ import { Result } from "../types/fp.js";
|
|
|
40
40
|
* Your root key must have one of the following permissions:
|
|
41
41
|
* - `api.*.delete_key` (to delete keys in any API)
|
|
42
42
|
* - `api.<api_id>.delete_key` (to delete keys in a specific API)
|
|
43
|
+
*
|
|
44
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
43
45
|
*/
|
|
44
46
|
export function keysDeleteKey(
|
|
45
47
|
client: UnkeyCore,
|
|
@@ -118,7 +120,7 @@ async function $do(
|
|
|
118
120
|
|
|
119
121
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
120
122
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
121
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
123
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
122
124
|
|
|
123
125
|
const context = {
|
|
124
126
|
options: client._options,
|
package/src/funcs/keysGetKey.ts
CHANGED
|
@@ -43,6 +43,8 @@ import { Result } from "../types/fp.js";
|
|
|
43
43
|
*
|
|
44
44
|
* Additional permission required for decrypt functionality:
|
|
45
45
|
* - `api.*.decrypt_key` or `api.<api_id>.decrypt_key`
|
|
46
|
+
*
|
|
47
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
46
48
|
*/
|
|
47
49
|
export function keysGetKey(
|
|
48
50
|
client: UnkeyCore,
|
|
@@ -120,7 +122,7 @@ async function $do(
|
|
|
120
122
|
|
|
121
123
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
122
124
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
123
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
125
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
124
126
|
|
|
125
127
|
const context = {
|
|
126
128
|
options: client._options,
|
|
@@ -35,6 +35,8 @@ import { Result } from "../types/fp.js";
|
|
|
35
35
|
* Your root key must have one of the following permissions for basic key information:
|
|
36
36
|
* - `api.*.create_key` (to migrate keys to any API)
|
|
37
37
|
* - `api.<api_id>.create_key` (to migrate keys to a specific API)
|
|
38
|
+
*
|
|
39
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
38
40
|
*/
|
|
39
41
|
export function keysMigrateKeys(
|
|
40
42
|
client: UnkeyCore,
|
|
@@ -113,7 +115,7 @@ async function $do(
|
|
|
113
115
|
|
|
114
116
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
115
117
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
116
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
118
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
117
119
|
|
|
118
120
|
const context = {
|
|
119
121
|
options: client._options,
|
|
@@ -44,6 +44,8 @@ import { Result } from "../types/fp.js";
|
|
|
44
44
|
* **Side Effects**
|
|
45
45
|
*
|
|
46
46
|
* Invalidates the key cache for immediate effect, and makes permission changes available for verification within 30 seconds across all regions.
|
|
47
|
+
*
|
|
48
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
47
49
|
*/
|
|
48
50
|
export function keysRemovePermissions(
|
|
49
51
|
client: UnkeyCore,
|
|
@@ -122,7 +124,7 @@ async function $do(
|
|
|
122
124
|
|
|
123
125
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
124
126
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
125
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
127
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
126
128
|
|
|
127
129
|
const context = {
|
|
128
130
|
options: client._options,
|
|
@@ -44,6 +44,8 @@ import { Result } from "../types/fp.js";
|
|
|
44
44
|
* **Side Effects**
|
|
45
45
|
*
|
|
46
46
|
* Invalidates the key cache for immediate effect, and makes role changes available for verification within 30 seconds across all regions.
|
|
47
|
+
*
|
|
48
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
47
49
|
*/
|
|
48
50
|
export function keysRemoveRoles(
|
|
49
51
|
client: UnkeyCore,
|
|
@@ -122,7 +124,7 @@ async function $do(
|
|
|
122
124
|
|
|
123
125
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
124
126
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
125
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
127
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
126
128
|
|
|
127
129
|
const context = {
|
|
128
130
|
options: client._options,
|
|
@@ -61,6 +61,8 @@ import { Result } from "../types/fp.js";
|
|
|
61
61
|
* Your root key must have:
|
|
62
62
|
* - `api.*.create_key` or `api.<api_id>.create_key`
|
|
63
63
|
* - `api.*.encrypt_key` or `api.<api_id>.encrypt_key` (only when the original key is recoverable)
|
|
64
|
+
*
|
|
65
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
64
66
|
*/
|
|
65
67
|
export function keysRerollKey(
|
|
66
68
|
client: UnkeyCore,
|
|
@@ -139,7 +141,7 @@ async function $do(
|
|
|
139
141
|
|
|
140
142
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
141
143
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
142
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
144
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
143
145
|
|
|
144
146
|
const context = {
|
|
145
147
|
options: client._options,
|
|
@@ -44,6 +44,8 @@ import { Result } from "../types/fp.js";
|
|
|
44
44
|
* **Side Effects**
|
|
45
45
|
*
|
|
46
46
|
* Invalidates the key cache for immediate effect, and makes permission changes available for verification within 30 seconds across all regions.
|
|
47
|
+
*
|
|
48
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
47
49
|
*/
|
|
48
50
|
export function keysSetPermissions(
|
|
49
51
|
client: UnkeyCore,
|
|
@@ -122,7 +124,7 @@ async function $do(
|
|
|
122
124
|
|
|
123
125
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
124
126
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
125
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
127
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
126
128
|
|
|
127
129
|
const context = {
|
|
128
130
|
options: client._options,
|
|
@@ -44,6 +44,8 @@ import { Result } from "../types/fp.js";
|
|
|
44
44
|
* **Side Effects**
|
|
45
45
|
*
|
|
46
46
|
* Invalidates the key cache for immediate effect, and makes role changes available for verification within 30 seconds across all regions.
|
|
47
|
+
*
|
|
48
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
47
49
|
*/
|
|
48
50
|
export function keysSetRoles(
|
|
49
51
|
client: UnkeyCore,
|
|
@@ -121,7 +123,7 @@ async function $do(
|
|
|
121
123
|
|
|
122
124
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
123
125
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
124
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
126
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
125
127
|
|
|
126
128
|
const context = {
|
|
127
129
|
options: client._options,
|
|
@@ -44,6 +44,8 @@ import { Result } from "../types/fp.js";
|
|
|
44
44
|
* **Side Effects**
|
|
45
45
|
*
|
|
46
46
|
* Credit updates remove the key from cache immediately. Setting credits to unlimited automatically clears any existing refill settings. Changes take effect instantly but may take up to 30 seconds to propagate to all edge regions.
|
|
47
|
+
*
|
|
48
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
47
49
|
*/
|
|
48
50
|
export function keysUpdateCredits(
|
|
49
51
|
client: UnkeyCore,
|
|
@@ -122,7 +124,7 @@ async function $do(
|
|
|
122
124
|
|
|
123
125
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
124
126
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
125
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
127
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
126
128
|
|
|
127
129
|
const context = {
|
|
128
130
|
options: client._options,
|
|
@@ -44,6 +44,8 @@ import { Result } from "../types/fp.js";
|
|
|
44
44
|
* **Side Effects**
|
|
45
45
|
*
|
|
46
46
|
* If you specify an `externalId` that doesn't exist, a new identity will be automatically created and linked to the key. Permission updates will auto-create any permissions that don't exist in your workspace. Changes take effect immediately but may take up to 30 seconds to propagate to all edge regions due to cache invalidation.
|
|
47
|
+
*
|
|
48
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
47
49
|
*/
|
|
48
50
|
export function keysUpdateKey(
|
|
49
51
|
client: UnkeyCore,
|
|
@@ -122,7 +124,7 @@ async function $do(
|
|
|
122
124
|
|
|
123
125
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
124
126
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
125
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
127
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
126
128
|
|
|
127
129
|
const context = {
|
|
128
130
|
options: client._options,
|
|
@@ -47,6 +47,8 @@ import { Result } from "../types/fp.js";
|
|
|
47
47
|
* - `api.<api_id>.verify_key` (verify keys in specific API)
|
|
48
48
|
*
|
|
49
49
|
* **Note**: If your root key has no verify permissions at all, you will receive a `403 Forbidden` error. If your root key has verify permissions for a different API than the key you're verifying, you will receive a `200` response with `code: NOT_FOUND` to avoid leaking key existence.
|
|
50
|
+
*
|
|
51
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
50
52
|
*/
|
|
51
53
|
export function keysVerifyKey(
|
|
52
54
|
client: UnkeyCore,
|
|
@@ -125,7 +127,7 @@ async function $do(
|
|
|
125
127
|
|
|
126
128
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
127
129
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
128
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
130
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
129
131
|
|
|
130
132
|
const context = {
|
|
131
133
|
options: client._options,
|
package/src/funcs/keysWhoami.ts
CHANGED
|
@@ -38,6 +38,8 @@ import { Result } from "../types/fp.js";
|
|
|
38
38
|
* - `api.<api_id>.read_key` (to read keys from a specific API)
|
|
39
39
|
*
|
|
40
40
|
* If your rootkey lacks permissions but the key exists, we may return a 404 status here to prevent leaking the existance of a key to unauthorized clients. If you believe that a key should exist, but receive a 404, please double check your root key has the correct permissions.
|
|
41
|
+
*
|
|
42
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
41
43
|
*/
|
|
42
44
|
export function keysWhoami(
|
|
43
45
|
client: UnkeyCore,
|
|
@@ -115,7 +117,7 @@ async function $do(
|
|
|
115
117
|
|
|
116
118
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
117
119
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
118
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
120
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
119
121
|
|
|
120
122
|
const context = {
|
|
121
123
|
options: client._options,
|
|
@@ -39,6 +39,8 @@ import { Result } from "../types/fp.js";
|
|
|
39
39
|
*
|
|
40
40
|
* Your root key must have the following permission:
|
|
41
41
|
* - `rbac.*.create_permission`
|
|
42
|
+
*
|
|
43
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
42
44
|
*/
|
|
43
45
|
export function permissionsCreatePermission(
|
|
44
46
|
client: UnkeyCore,
|
|
@@ -119,7 +121,7 @@ async function $do(
|
|
|
119
121
|
|
|
120
122
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
121
123
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
122
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
124
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
123
125
|
|
|
124
126
|
const context = {
|
|
125
127
|
options: client._options,
|
|
@@ -37,6 +37,8 @@ import { Result } from "../types/fp.js";
|
|
|
37
37
|
*
|
|
38
38
|
* Your root key must have the following permission:
|
|
39
39
|
* - `rbac.*.create_role`
|
|
40
|
+
*
|
|
41
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
40
42
|
*/
|
|
41
43
|
export function permissionsCreateRole(
|
|
42
44
|
client: UnkeyCore,
|
|
@@ -115,7 +117,7 @@ async function $do(
|
|
|
115
117
|
|
|
116
118
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
117
119
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
118
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
120
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
119
121
|
|
|
120
122
|
const context = {
|
|
121
123
|
options: client._options,
|
|
@@ -37,6 +37,8 @@ import { Result } from "../types/fp.js";
|
|
|
37
37
|
*
|
|
38
38
|
* Your root key must have the following permission:
|
|
39
39
|
* - `rbac.*.delete_permission`
|
|
40
|
+
*
|
|
41
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
40
42
|
*/
|
|
41
43
|
export function permissionsDeletePermission(
|
|
42
44
|
client: UnkeyCore,
|
|
@@ -117,7 +119,7 @@ async function $do(
|
|
|
117
119
|
|
|
118
120
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
119
121
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
120
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
122
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
121
123
|
|
|
122
124
|
const context = {
|
|
123
125
|
options: client._options,
|
|
@@ -37,6 +37,8 @@ import { Result } from "../types/fp.js";
|
|
|
37
37
|
*
|
|
38
38
|
* Your root key must have the following permission:
|
|
39
39
|
* - `rbac.*.delete_role`
|
|
40
|
+
*
|
|
41
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
40
42
|
*/
|
|
41
43
|
export function permissionsDeleteRole(
|
|
42
44
|
client: UnkeyCore,
|
|
@@ -113,7 +115,7 @@ async function $do(
|
|
|
113
115
|
|
|
114
116
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
115
117
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
116
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
118
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
117
119
|
|
|
118
120
|
const context = {
|
|
119
121
|
options: client._options,
|
|
@@ -35,6 +35,8 @@ import { Result } from "../types/fp.js";
|
|
|
35
35
|
*
|
|
36
36
|
* Your root key must have the following permission:
|
|
37
37
|
* - `rbac.*.read_permission`
|
|
38
|
+
*
|
|
39
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
38
40
|
*/
|
|
39
41
|
export function permissionsGetPermission(
|
|
40
42
|
client: UnkeyCore,
|
|
@@ -115,7 +117,7 @@ async function $do(
|
|
|
115
117
|
|
|
116
118
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
117
119
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
118
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
120
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
119
121
|
|
|
120
122
|
const context = {
|
|
121
123
|
options: client._options,
|
|
@@ -35,6 +35,8 @@ import { Result } from "../types/fp.js";
|
|
|
35
35
|
*
|
|
36
36
|
* Your root key must have the following permission:
|
|
37
37
|
* - `rbac.*.read_role`
|
|
38
|
+
*
|
|
39
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
38
40
|
*/
|
|
39
41
|
export function permissionsGetRole(
|
|
40
42
|
client: UnkeyCore,
|
|
@@ -113,7 +115,7 @@ async function $do(
|
|
|
113
115
|
|
|
114
116
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
115
117
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
116
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
118
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
117
119
|
|
|
118
120
|
const context = {
|
|
119
121
|
options: client._options,
|
|
@@ -36,6 +36,8 @@ import { Result } from "../types/fp.js";
|
|
|
36
36
|
*
|
|
37
37
|
* Your root key must have the following permission:
|
|
38
38
|
* - `rbac.*.read_permission`
|
|
39
|
+
*
|
|
40
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
39
41
|
*/
|
|
40
42
|
export function permissionsListPermissions(
|
|
41
43
|
client: UnkeyCore,
|
|
@@ -114,7 +116,7 @@ async function $do(
|
|
|
114
116
|
|
|
115
117
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
116
118
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
117
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
119
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
118
120
|
|
|
119
121
|
const context = {
|
|
120
122
|
options: client._options,
|
|
@@ -36,6 +36,8 @@ import { Result } from "../types/fp.js";
|
|
|
36
36
|
*
|
|
37
37
|
* Your root key must have the following permission:
|
|
38
38
|
* - `rbac.*.read_role`
|
|
39
|
+
*
|
|
40
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
39
41
|
*/
|
|
40
42
|
export function permissionsListRoles(
|
|
41
43
|
client: UnkeyCore,
|
|
@@ -114,7 +116,7 @@ async function $do(
|
|
|
114
116
|
|
|
115
117
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
116
118
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
117
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
119
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
118
120
|
|
|
119
121
|
const context = {
|
|
120
122
|
options: client._options,
|
|
@@ -36,6 +36,8 @@ import { Result } from "../types/fp.js";
|
|
|
36
36
|
* **Important:** Deletion is immediate and permanent. The override cannot be recovered and must be recreated if needed again.
|
|
37
37
|
*
|
|
38
38
|
* **Permissions:** Requires `ratelimit.*.delete_override` or `ratelimit.<namespace_id>.delete_override`
|
|
39
|
+
*
|
|
40
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
39
41
|
*/
|
|
40
42
|
export function ratelimitDeleteOverride(
|
|
41
43
|
client: UnkeyCore,
|
|
@@ -116,7 +118,7 @@ async function $do(
|
|
|
116
118
|
|
|
117
119
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
118
120
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
119
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
121
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
120
122
|
|
|
121
123
|
const context = {
|
|
122
124
|
options: client._options,
|
|
@@ -36,6 +36,8 @@ import { Result } from "../types/fp.js";
|
|
|
36
36
|
* **Important:** The identifier must match exactly as specified when creating the override, including wildcard patterns.
|
|
37
37
|
*
|
|
38
38
|
* **Permissions:** Requires `ratelimit.*.read_override` or `ratelimit.<namespace_id>.read_override`
|
|
39
|
+
*
|
|
40
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
39
41
|
*/
|
|
40
42
|
export function ratelimitGetOverride(
|
|
41
43
|
client: UnkeyCore,
|
|
@@ -114,7 +116,7 @@ async function $do(
|
|
|
114
116
|
|
|
115
117
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
116
118
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
117
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
119
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
118
120
|
|
|
119
121
|
const context = {
|
|
120
122
|
options: client._options,
|
|
@@ -40,6 +40,8 @@ import { Result } from "../types/fp.js";
|
|
|
40
40
|
* Your root key must have one of the following permissions:
|
|
41
41
|
* - `ratelimit.*.limit` (to check limits in any namespace)
|
|
42
42
|
* - `ratelimit.<namespace_id>.limit` (to check limits in a specific namespace)
|
|
43
|
+
*
|
|
44
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
43
45
|
*/
|
|
44
46
|
export function ratelimitLimit(
|
|
45
47
|
client: UnkeyCore,
|
|
@@ -120,7 +122,7 @@ async function $do(
|
|
|
120
122
|
|
|
121
123
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
122
124
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
123
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
125
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
124
126
|
|
|
125
127
|
const context = {
|
|
126
128
|
options: client._options,
|
|
@@ -36,6 +36,8 @@ import { Result } from "../types/fp.js";
|
|
|
36
36
|
* **Important:** Results are paginated. Use the cursor parameter to retrieve additional pages when more results are available.
|
|
37
37
|
*
|
|
38
38
|
* **Permissions:** Requires `ratelimit.*.read_override` or `ratelimit.<namespace_id>.read_override`
|
|
39
|
+
*
|
|
40
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
39
41
|
*/
|
|
40
42
|
export function ratelimitListOverrides(
|
|
41
43
|
client: UnkeyCore,
|
|
@@ -116,7 +118,7 @@ async function $do(
|
|
|
116
118
|
|
|
117
119
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
118
120
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
119
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
121
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
120
122
|
|
|
121
123
|
const context = {
|
|
122
124
|
options: client._options,
|
|
@@ -41,6 +41,8 @@ import { Result } from "../types/fp.js";
|
|
|
41
41
|
* Your root key must have one of the following permissions:
|
|
42
42
|
* - `ratelimit.*.limit` (to check limits in any namespace)
|
|
43
43
|
* - `ratelimit.<namespace_id>.limit` (to check limits in all specific namespaces being checked)
|
|
44
|
+
*
|
|
45
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
44
46
|
*/
|
|
45
47
|
export function ratelimitMultiLimit(
|
|
46
48
|
client: UnkeyCore,
|
|
@@ -123,7 +125,7 @@ async function $do(
|
|
|
123
125
|
|
|
124
126
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
125
127
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
126
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
128
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
127
129
|
|
|
128
130
|
const context = {
|
|
129
131
|
options: client._options,
|
|
@@ -36,6 +36,8 @@ import { Result } from "../types/fp.js";
|
|
|
36
36
|
* **Important:** Overrides take effect immediately and completely replace the default limit for matching identifiers. Use wildcard patterns (e.g., `premium_*`) to match multiple identifiers.
|
|
37
37
|
*
|
|
38
38
|
* **Permissions:** Requires `ratelimit.*.set_override` or `ratelimit.<namespace_id>.set_override`
|
|
39
|
+
*
|
|
40
|
+
* If set, this operation will use {@link Security.rootKey} from the global security.
|
|
39
41
|
*/
|
|
40
42
|
export function ratelimitSetOverride(
|
|
41
43
|
client: UnkeyCore,
|
|
@@ -114,7 +116,7 @@ async function $do(
|
|
|
114
116
|
|
|
115
117
|
const secConfig = await extractSecurity(client._options.rootKey);
|
|
116
118
|
const securityInput = secConfig == null ? {} : { rootKey: secConfig };
|
|
117
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
119
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
118
120
|
|
|
119
121
|
const context = {
|
|
120
122
|
options: client._options,
|
package/src/lib/config.ts
CHANGED
|
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "2.0.0",
|
|
61
|
-
sdkVersion: "2.3.
|
|
62
|
-
genVersion: "2.
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 2.3.
|
|
61
|
+
sdkVersion: "2.3.3",
|
|
62
|
+
genVersion: "2.879.1",
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 2.3.3 2.879.1 2.0.0 @unkey/api",
|
|
64
64
|
} as const;
|