onehook-api-client 1.0.0 → 1.0.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.
Files changed (152) hide show
  1. package/LICENSE +28 -201
  2. package/README.md +451 -0
  3. package/dist-cjs/{OneHookService.js → OneHook.js} +5 -5
  4. package/dist-cjs/{OneHookServiceClient.js → OneHookClient.js} +16 -11
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +8 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +24 -11
  7. package/dist-cjs/commands/AuthSocialCommand.js +1 -1
  8. package/dist-cjs/commands/ClaimPreKeyBundleCommand.js +1 -1
  9. package/dist-cjs/commands/CompleteLivenessSessionCommand.js +1 -1
  10. package/dist-cjs/commands/CompleteOnboardingCommand.js +1 -1
  11. package/dist-cjs/commands/CreateLivenessSessionCommand.js +1 -1
  12. package/dist-cjs/commands/DeleteMatchMessagesCommand.js +1 -1
  13. package/dist-cjs/commands/DeleteProfileCommand.js +1 -1
  14. package/dist-cjs/commands/DiscoverCommand.js +1 -1
  15. package/dist-cjs/commands/GenerateInviteCommand.js +1 -1
  16. package/dist-cjs/commands/GenerateUploadUrlCommand.js +1 -1
  17. package/dist-cjs/commands/GetMatchCommand.js +1 -1
  18. package/dist-cjs/commands/GetMyProfileCommand.js +1 -1
  19. package/dist-cjs/commands/GetPreferencesCommand.js +1 -1
  20. package/dist-cjs/commands/GetProfileCommand.js +1 -1
  21. package/dist-cjs/commands/GetStateCommand.js +1 -1
  22. package/dist-cjs/commands/GetUserByEmailCommand.js +1 -1
  23. package/dist-cjs/commands/GetUserCommand.js +1 -1
  24. package/dist-cjs/commands/IndexLocationCommand.js +1 -1
  25. package/dist-cjs/commands/InitUserCommand.js +1 -1
  26. package/dist-cjs/commands/LinkEmailCommand.js +1 -1
  27. package/dist-cjs/commands/LinkSocialCommand.js +1 -1
  28. package/dist-cjs/commands/RegisterPhoneCommand.js +1 -1
  29. package/dist-cjs/commands/RemoveLocationCommand.js +1 -1
  30. package/dist-cjs/commands/RequestEmailOtpCommand.js +1 -1
  31. package/dist-cjs/commands/RequestPhoneOtpCommand.js +1 -1
  32. package/dist-cjs/commands/RequestPhoneUpdateOtpCommand.js +1 -1
  33. package/dist-cjs/commands/SwipeCommand.js +1 -1
  34. package/dist-cjs/commands/UnhookCommand.js +1 -1
  35. package/dist-cjs/commands/UnlinkSocialCommand.js +1 -1
  36. package/dist-cjs/commands/UpdateEntitlementsCommand.js +1 -1
  37. package/dist-cjs/commands/UpdatePhoneNumberCommand.js +1 -1
  38. package/dist-cjs/commands/UpdatePreferencesCommand.js +1 -1
  39. package/dist-cjs/commands/UpdateProfileCommand.js +1 -1
  40. package/dist-cjs/commands/UpgradeUserCommand.js +1 -1
  41. package/dist-cjs/commands/UploadPreKeysCommand.js +1 -1
  42. package/dist-cjs/commands/ValidateInviteCommand.js +1 -1
  43. package/dist-cjs/endpoints.js +232 -0
  44. package/dist-cjs/graphql/types.js +1 -1
  45. package/dist-cjs/index.js +5 -5
  46. package/dist-cjs/models/{OneHookServiceServiceException.js → OneHookServiceException.js} +4 -4
  47. package/dist-cjs/models/models_0.js +17 -13
  48. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  49. package/dist-cjs/runtimeConfig.browser.js +7 -1
  50. package/dist-cjs/runtimeConfig.js +13 -4
  51. package/dist-cjs/runtimeConfig.shared.js +8 -5
  52. package/dist-cjs/runtimeExtensions.js +3 -12
  53. package/dist-es/{OneHookService.js → OneHook.js} +3 -3
  54. package/dist-es/{OneHookServiceClient.js → OneHookClient.js} +16 -11
  55. package/dist-es/auth/httpAuthExtensionConfiguration.js +8 -0
  56. package/dist-es/auth/httpAuthSchemeProvider.js +22 -9
  57. package/dist-es/commands/AuthSocialCommand.js +1 -1
  58. package/dist-es/commands/ClaimPreKeyBundleCommand.js +1 -1
  59. package/dist-es/commands/CompleteLivenessSessionCommand.js +1 -1
  60. package/dist-es/commands/CompleteOnboardingCommand.js +1 -1
  61. package/dist-es/commands/CreateLivenessSessionCommand.js +1 -1
  62. package/dist-es/commands/DeleteMatchMessagesCommand.js +1 -1
  63. package/dist-es/commands/DeleteProfileCommand.js +1 -1
  64. package/dist-es/commands/DiscoverCommand.js +1 -1
  65. package/dist-es/commands/GenerateInviteCommand.js +1 -1
  66. package/dist-es/commands/GenerateUploadUrlCommand.js +1 -1
  67. package/dist-es/commands/GetMatchCommand.js +1 -1
  68. package/dist-es/commands/GetMyProfileCommand.js +1 -1
  69. package/dist-es/commands/GetPreferencesCommand.js +1 -1
  70. package/dist-es/commands/GetProfileCommand.js +1 -1
  71. package/dist-es/commands/GetStateCommand.js +1 -1
  72. package/dist-es/commands/GetUserByEmailCommand.js +1 -1
  73. package/dist-es/commands/GetUserCommand.js +1 -1
  74. package/dist-es/commands/IndexLocationCommand.js +1 -1
  75. package/dist-es/commands/InitUserCommand.js +1 -1
  76. package/dist-es/commands/LinkEmailCommand.js +1 -1
  77. package/dist-es/commands/LinkSocialCommand.js +1 -1
  78. package/dist-es/commands/RegisterPhoneCommand.js +1 -1
  79. package/dist-es/commands/RemoveLocationCommand.js +1 -1
  80. package/dist-es/commands/RequestEmailOtpCommand.js +1 -1
  81. package/dist-es/commands/RequestPhoneOtpCommand.js +1 -1
  82. package/dist-es/commands/RequestPhoneUpdateOtpCommand.js +1 -1
  83. package/dist-es/commands/SwipeCommand.js +1 -1
  84. package/dist-es/commands/UnhookCommand.js +1 -1
  85. package/dist-es/commands/UnlinkSocialCommand.js +1 -1
  86. package/dist-es/commands/UpdateEntitlementsCommand.js +1 -1
  87. package/dist-es/commands/UpdatePhoneNumberCommand.js +1 -1
  88. package/dist-es/commands/UpdatePreferencesCommand.js +1 -1
  89. package/dist-es/commands/UpdateProfileCommand.js +1 -1
  90. package/dist-es/commands/UpgradeUserCommand.js +1 -1
  91. package/dist-es/commands/UploadPreKeysCommand.js +1 -1
  92. package/dist-es/commands/ValidateInviteCommand.js +1 -1
  93. package/dist-es/endpoints.js +228 -0
  94. package/dist-es/index.js +3 -3
  95. package/dist-es/models/{OneHookServiceServiceException.js → OneHookServiceException.js} +2 -2
  96. package/dist-es/models/models_0.js +13 -9
  97. package/dist-es/protocols/Aws_restJson1.js +1 -1
  98. package/dist-es/runtimeConfig.browser.js +7 -1
  99. package/dist-es/runtimeConfig.js +13 -4
  100. package/dist-es/runtimeConfig.shared.js +9 -6
  101. package/dist-es/runtimeExtensions.js +3 -12
  102. package/dist-types/{OneHookService.d.ts → OneHook.d.ts} +3 -3
  103. package/dist-types/{OneHookServiceClient.d.ts → OneHookClient.d.ts} +58 -12
  104. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +8 -5
  105. package/dist-types/auth/httpAuthSchemeProvider.d.ts +13 -11
  106. package/dist-types/commands/AuthSocialCommand.d.ts +11 -10
  107. package/dist-types/commands/ClaimPreKeyBundleCommand.d.ts +11 -10
  108. package/dist-types/commands/CompleteLivenessSessionCommand.d.ts +11 -10
  109. package/dist-types/commands/CompleteOnboardingCommand.d.ts +11 -10
  110. package/dist-types/commands/CreateLivenessSessionCommand.d.ts +11 -10
  111. package/dist-types/commands/DeleteMatchMessagesCommand.d.ts +11 -10
  112. package/dist-types/commands/DeleteProfileCommand.d.ts +11 -10
  113. package/dist-types/commands/DiscoverCommand.d.ts +11 -10
  114. package/dist-types/commands/GenerateInviteCommand.d.ts +11 -10
  115. package/dist-types/commands/GenerateUploadUrlCommand.d.ts +11 -10
  116. package/dist-types/commands/GetMatchCommand.d.ts +11 -10
  117. package/dist-types/commands/GetMyProfileCommand.d.ts +11 -10
  118. package/dist-types/commands/GetPreferencesCommand.d.ts +11 -10
  119. package/dist-types/commands/GetProfileCommand.d.ts +11 -10
  120. package/dist-types/commands/GetStateCommand.d.ts +11 -10
  121. package/dist-types/commands/GetUserByEmailCommand.d.ts +11 -10
  122. package/dist-types/commands/GetUserCommand.d.ts +11 -10
  123. package/dist-types/commands/IndexLocationCommand.d.ts +11 -10
  124. package/dist-types/commands/InitUserCommand.d.ts +11 -10
  125. package/dist-types/commands/LinkEmailCommand.d.ts +11 -10
  126. package/dist-types/commands/LinkSocialCommand.d.ts +11 -10
  127. package/dist-types/commands/RegisterPhoneCommand.d.ts +11 -10
  128. package/dist-types/commands/RemoveLocationCommand.d.ts +11 -10
  129. package/dist-types/commands/RequestEmailOtpCommand.d.ts +11 -10
  130. package/dist-types/commands/RequestPhoneOtpCommand.d.ts +11 -10
  131. package/dist-types/commands/RequestPhoneUpdateOtpCommand.d.ts +11 -10
  132. package/dist-types/commands/SwipeCommand.d.ts +11 -10
  133. package/dist-types/commands/UnhookCommand.d.ts +11 -10
  134. package/dist-types/commands/UnlinkSocialCommand.d.ts +11 -10
  135. package/dist-types/commands/UpdateEntitlementsCommand.d.ts +11 -10
  136. package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +11 -10
  137. package/dist-types/commands/UpdatePreferencesCommand.d.ts +11 -10
  138. package/dist-types/commands/UpdateProfileCommand.d.ts +11 -10
  139. package/dist-types/commands/UpgradeUserCommand.d.ts +11 -10
  140. package/dist-types/commands/UploadPreKeysCommand.d.ts +11 -10
  141. package/dist-types/commands/ValidateInviteCommand.d.ts +11 -10
  142. package/dist-types/endpoints.d.ts +2 -0
  143. package/dist-types/extensionConfiguration.d.ts +2 -1
  144. package/dist-types/index.d.ts +4 -4
  145. package/dist-types/models/{OneHookServiceServiceException.d.ts → OneHookServiceException.d.ts} +2 -2
  146. package/dist-types/models/models_0.d.ts +5 -1
  147. package/dist-types/runtimeConfig.browser.d.ts +28 -13
  148. package/dist-types/runtimeConfig.d.ts +28 -13
  149. package/dist-types/runtimeConfig.native.d.ts +28 -13
  150. package/dist-types/runtimeConfig.shared.d.ts +6 -10
  151. package/dist-types/runtimeExtensions.d.ts +2 -2
  152. package/package.json +55 -37
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "onehook-api-client",
3
3
  "description": "OneHook API Client",
4
- "version": "1.0.0",
4
+ "version": "1.0.5",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,48 +19,50 @@
19
19
  "tslib": "^2.6.2",
20
20
  "@aws-crypto/sha256-browser": "5.2.0",
21
21
  "@aws-crypto/sha256-js": "5.2.0",
22
- "@aws-sdk/core": "3.693.0",
23
- "@aws-sdk/middleware-host-header": "3.693.0",
24
- "@aws-sdk/middleware-logger": "3.693.0",
25
- "@aws-sdk/middleware-recursion-detection": "3.693.0",
26
- "@aws-sdk/middleware-user-agent": "3.693.0",
27
- "@aws-sdk/types": "3.692.0",
28
- "@aws-sdk/util-user-agent-browser": "3.693.0",
29
- "@aws-sdk/util-user-agent-node": "3.693.0",
30
- "@smithy/config-resolver": "^3.0.12",
31
- "@smithy/core": "^2.5.3",
32
- "@smithy/fetch-http-handler": "^4.1.1",
33
- "@smithy/hash-node": "^3.0.10",
34
- "@smithy/invalid-dependency": "^3.0.10",
35
- "@smithy/middleware-content-length": "^3.0.12",
36
- "@smithy/middleware-retry": "^3.0.27",
37
- "@smithy/middleware-serde": "^3.0.10",
38
- "@smithy/middleware-stack": "^3.0.10",
39
- "@smithy/node-config-provider": "^3.1.11",
40
- "@smithy/node-http-handler": "^3.3.1",
41
- "@smithy/protocol-http": "^4.1.7",
42
- "@smithy/smithy-client": "^3.4.4",
43
- "@smithy/types": "^3.7.1",
44
- "@smithy/url-parser": "^3.0.10",
45
- "@smithy/util-base64": "^3.0.0",
46
- "@smithy/util-body-length-browser": "^3.0.0",
47
- "@smithy/util-body-length-node": "^3.0.0",
48
- "@smithy/util-defaults-mode-browser": "^3.0.27",
49
- "@smithy/util-defaults-mode-node": "^3.0.27",
50
- "@smithy/util-middleware": "^3.0.10",
51
- "@smithy/util-retry": "^3.0.10",
52
- "@smithy/util-utf8": "^3.0.0"
22
+ "@aws-sdk/core": "3.775.0",
23
+ "@aws-sdk/credential-provider-node": "3.787.0",
24
+ "@aws-sdk/middleware-host-header": "3.775.0",
25
+ "@aws-sdk/middleware-logger": "3.775.0",
26
+ "@aws-sdk/middleware-recursion-detection": "3.775.0",
27
+ "@aws-sdk/middleware-user-agent": "3.787.0",
28
+ "@aws-sdk/region-config-resolver": "3.775.0",
29
+ "@aws-sdk/types": "3.775.0",
30
+ "@aws-sdk/util-user-agent-browser": "3.775.0",
31
+ "@aws-sdk/util-user-agent-node": "3.787.0",
32
+ "@smithy/config-resolver": "^4.1.0",
33
+ "@smithy/core": "^3.2.0",
34
+ "@smithy/fetch-http-handler": "^5.0.2",
35
+ "@smithy/hash-node": "^4.0.2",
36
+ "@smithy/invalid-dependency": "^4.0.2",
37
+ "@smithy/middleware-content-length": "^4.0.2",
38
+ "@smithy/middleware-retry": "^4.1.0",
39
+ "@smithy/middleware-serde": "^4.0.3",
40
+ "@smithy/middleware-stack": "^4.0.2",
41
+ "@smithy/node-config-provider": "^4.0.2",
42
+ "@smithy/node-http-handler": "^4.0.4",
43
+ "@smithy/protocol-http": "^5.1.0",
44
+ "@smithy/smithy-client": "^4.2.0",
45
+ "@smithy/types": "^4.2.0",
46
+ "@smithy/url-parser": "^4.0.2",
47
+ "@smithy/util-base64": "^4.0.0",
48
+ "@smithy/util-body-length-browser": "^4.0.0",
49
+ "@smithy/util-body-length-node": "^4.0.0",
50
+ "@smithy/util-defaults-mode-browser": "^4.0.8",
51
+ "@smithy/util-defaults-mode-node": "^4.0.8",
52
+ "@smithy/util-middleware": "^4.0.2",
53
+ "@smithy/util-retry": "^4.0.2",
54
+ "@smithy/util-utf8": "^4.0.0"
53
55
  },
54
56
  "devDependencies": {
55
- "@tsconfig/node16": "16.1.3",
57
+ "@tsconfig/node18": "18.2.4",
56
58
  "concurrently": "7.0.0",
57
59
  "downlevel-dts": "0.10.1",
58
60
  "rimraf": "^3.0.0",
59
- "typescript": "~4.9.5",
60
- "@types/node": "^16.18.96"
61
+ "typescript": "~5.2.2",
62
+ "@types/node": "^18.19.69"
61
63
  },
62
64
  "engines": {
63
- "node": ">=16.0.0"
65
+ "node": ">=18.0.0"
64
66
  },
65
67
  "typesVersions": {
66
68
  "<4.0": {
@@ -91,5 +93,21 @@
91
93
  "require": "./dist-cjs/graphql/types.js"
92
94
  },
93
95
  "./package.json": "./package.json"
94
- }
96
+ },
97
+ "license": "UNLICENSED",
98
+ "author": "OneHook",
99
+ "homepage": "https://onehook.club",
100
+ "keywords": [
101
+ "onehook",
102
+ "onehook-api-client",
103
+ "api",
104
+ "api-client",
105
+ "sdk",
106
+ "client",
107
+ "rest",
108
+ "graphql",
109
+ "smithy",
110
+ "typescript",
111
+ "proprietary"
112
+ ]
95
113
  }