@workos-inc/node 7.31.0-beta.actions1 → 7.32.0

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.
Files changed (44) hide show
  1. package/lib/index.d.ts +0 -3
  2. package/lib/index.js +0 -12
  3. package/lib/index.worker.d.ts +0 -3
  4. package/lib/index.worker.js +0 -6
  5. package/lib/user-management/interfaces/authentication-response.interface.d.ts +4 -1
  6. package/lib/user-management/interfaces/index.d.ts +2 -3
  7. package/lib/user-management/interfaces/index.js +2 -3
  8. package/lib/user-management/interfaces/oauth-tokens.interface.d.ts +12 -0
  9. package/lib/user-management/serializers/authentication-response.serializer.js +3 -2
  10. package/lib/user-management/serializers/oauth-tokens.serializer.d.ts +2 -0
  11. package/lib/user-management/serializers/oauth-tokens.serializer.js +12 -0
  12. package/lib/user-management/user-management.spec.js +28 -0
  13. package/lib/webhooks/webhooks.d.ts +9 -9
  14. package/lib/webhooks/webhooks.js +36 -11
  15. package/lib/webhooks/webhooks.spec.js +46 -23
  16. package/lib/workos.d.ts +0 -3
  17. package/lib/workos.js +1 -6
  18. package/lib/workos.spec.js +1 -5
  19. package/package.json +2 -2
  20. package/lib/actions/actions.d.ts +0 -19
  21. package/lib/actions/actions.js +0 -53
  22. package/lib/actions/actions.spec.d.ts +0 -1
  23. package/lib/actions/actions.spec.js +0 -78
  24. package/lib/actions/fixtures/action-context.json +0 -39
  25. package/lib/actions/interfaces/response-payload.d.ts +0 -23
  26. package/lib/common/crypto/CryptoProvider.d.ts +0 -32
  27. package/lib/common/crypto/CryptoProvider.js +0 -13
  28. package/lib/common/crypto/CryptoProvider.spec.d.ts +0 -1
  29. package/lib/common/crypto/CryptoProvider.spec.js +0 -57
  30. package/lib/common/crypto/NodeCryptoProvider.d.ts +0 -12
  31. package/lib/common/crypto/NodeCryptoProvider.js +0 -73
  32. package/lib/common/crypto/SignatureProvider.d.ts +0 -13
  33. package/lib/common/crypto/SignatureProvider.js +0 -53
  34. package/lib/common/crypto/SignatureProvider.spec.d.ts +0 -1
  35. package/lib/common/crypto/SignatureProvider.spec.js +0 -66
  36. package/lib/common/crypto/SubtleCryptoProvider.d.ts +0 -15
  37. package/lib/common/crypto/SubtleCryptoProvider.js +0 -75
  38. package/lib/common/crypto/index.d.ts +0 -4
  39. package/lib/common/crypto/index.js +0 -20
  40. package/lib/common/net/index.d.ts +0 -5
  41. package/lib/common/net/index.js +0 -31
  42. package/lib/common/utils/unreachable.d.ts +0 -10
  43. package/lib/common/utils/unreachable.js +0 -18
  44. /package/lib/{actions/interfaces/response-payload.js → user-management/interfaces/oauth-tokens.interface.js} +0 -0
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.unreachable = void 0;
4
- /**
5
- * Indicates that code is unreachable.
6
- *
7
- * This can be used for exhaustiveness checks in situations where the compiler
8
- * would not otherwise check for exhaustiveness.
9
- *
10
- * If the determination that the code is unreachable proves incorrect, an
11
- * exception is thrown.
12
- */
13
- const unreachable = (condition,
14
- // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
15
- message = `Entered unreachable code. Received '${condition}'.`) => {
16
- throw new TypeError(message);
17
- };
18
- exports.unreachable = unreachable;