@appconda/nextjs 1.0.112 → 1.0.113

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 (307) hide show
  1. package/package.json +3 -3
  2. package/dist/actions/actionClient.d.ts +0 -10
  3. package/dist/actions/actionClient.js +0 -38
  4. package/dist/actions/auth.d.ts +0 -1
  5. package/dist/actions/auth.js +0 -6
  6. package/dist/actions/authOptions.d.ts +0 -5
  7. package/dist/actions/authOptions.js +0 -235
  8. package/dist/actions/index.d.ts +0 -3
  9. package/dist/actions/index.js +0 -4
  10. package/dist/actions/nextAuthHandler.d.ts +0 -1
  11. package/dist/actions/nextAuthHandler.js +0 -6
  12. package/dist/actions/nodes.d.ts +0 -4
  13. package/dist/actions/nodes.js +0 -15
  14. package/dist/client.d.ts +0 -141
  15. package/dist/client.js +0 -335
  16. package/dist/decorators/Cache.d.ts +0 -1
  17. package/dist/decorators/Cache.js +0 -79
  18. package/dist/decorators/CacheKey.d.ts +0 -1
  19. package/dist/decorators/CacheKey.js +0 -9
  20. package/dist/decorators/Invalidate.d.ts +0 -1
  21. package/dist/decorators/Invalidate.js +0 -47
  22. package/dist/enums/api-service.d.ts +0 -13
  23. package/dist/enums/api-service.js +0 -15
  24. package/dist/enums/api.d.ts +0 -5
  25. package/dist/enums/api.js +0 -7
  26. package/dist/enums/auth-method.d.ts +0 -9
  27. package/dist/enums/auth-method.js +0 -11
  28. package/dist/enums/authentication-factor.d.ts +0 -6
  29. package/dist/enums/authentication-factor.js +0 -7
  30. package/dist/enums/authenticator-type.d.ts +0 -3
  31. package/dist/enums/authenticator-type.js +0 -4
  32. package/dist/enums/browser.d.ts +0 -16
  33. package/dist/enums/browser.js +0 -18
  34. package/dist/enums/compression.d.ts +0 -5
  35. package/dist/enums/compression.js +0 -7
  36. package/dist/enums/credit-card.d.ts +0 -18
  37. package/dist/enums/credit-card.js +0 -20
  38. package/dist/enums/database-usage-range.d.ts +0 -5
  39. package/dist/enums/database-usage-range.js +0 -7
  40. package/dist/enums/email-template-locale.d.ts +0 -133
  41. package/dist/enums/email-template-locale.js +0 -135
  42. package/dist/enums/email-template-type.d.ts +0 -9
  43. package/dist/enums/email-template-type.js +0 -11
  44. package/dist/enums/entities/EntityLimitType.d.ts +0 -4
  45. package/dist/enums/entities/EntityLimitType.js +0 -6
  46. package/dist/enums/entities/PropertyAttributeName.d.ts +0 -27
  47. package/dist/enums/entities/PropertyAttributeName.js +0 -29
  48. package/dist/enums/entities/PropertyCondition.d.ts +0 -7
  49. package/dist/enums/entities/PropertyCondition.js +0 -10
  50. package/dist/enums/entities/PropertyType.d.ts +0 -12
  51. package/dist/enums/entities/PropertyType.js +0 -18
  52. package/dist/enums/entities/PropertyValueType.d.ts +0 -6
  53. package/dist/enums/entities/PropertyValueType.js +0 -8
  54. package/dist/enums/entities/RowAccess.d.ts +0 -2
  55. package/dist/enums/entities/RowAccess.js +0 -2
  56. package/dist/enums/entities/ViewFilterCondition.d.ts +0 -12
  57. package/dist/enums/entities/ViewFilterCondition.js +0 -14
  58. package/dist/enums/execution-method.d.ts +0 -8
  59. package/dist/enums/execution-method.js +0 -10
  60. package/dist/enums/flag.d.ts +0 -197
  61. package/dist/enums/flag.js +0 -199
  62. package/dist/enums/function-usage-range.d.ts +0 -5
  63. package/dist/enums/function-usage-range.js +0 -7
  64. package/dist/enums/image-format.d.ts +0 -7
  65. package/dist/enums/image-format.js +0 -9
  66. package/dist/enums/image-gravity.d.ts +0 -11
  67. package/dist/enums/image-gravity.js +0 -13
  68. package/dist/enums/index-type.d.ts +0 -5
  69. package/dist/enums/index-type.js +0 -7
  70. package/dist/enums/messaging-provider-type.d.ts +0 -5
  71. package/dist/enums/messaging-provider-type.js +0 -7
  72. package/dist/enums/name.d.ts +0 -14
  73. package/dist/enums/name.js +0 -16
  74. package/dist/enums/o-auth-provider copy.d.ts +0 -41
  75. package/dist/enums/o-auth-provider copy.js +0 -43
  76. package/dist/enums/o-auth-provider.d.ts +0 -41
  77. package/dist/enums/o-auth-provider.js +0 -42
  78. package/dist/enums/password-hash.d.ts +0 -13
  79. package/dist/enums/password-hash.js +0 -15
  80. package/dist/enums/platform-type.d.ts +0 -17
  81. package/dist/enums/platform-type.js +0 -19
  82. package/dist/enums/project-usage-range.d.ts +0 -4
  83. package/dist/enums/project-usage-range.js +0 -6
  84. package/dist/enums/region.d.ts +0 -4
  85. package/dist/enums/region.js +0 -6
  86. package/dist/enums/relation-mutate.d.ts +0 -5
  87. package/dist/enums/relation-mutate.js +0 -7
  88. package/dist/enums/relationship-type.d.ts +0 -6
  89. package/dist/enums/relationship-type.js +0 -8
  90. package/dist/enums/resource-type.d.ts +0 -4
  91. package/dist/enums/resource-type.js +0 -6
  92. package/dist/enums/runtime.d.ts +0 -48
  93. package/dist/enums/runtime.js +0 -50
  94. package/dist/enums/s-m-t-p-secure.d.ts +0 -3
  95. package/dist/enums/s-m-t-p-secure.js +0 -5
  96. package/dist/enums/shared/ApplicationLayout.d.ts +0 -4
  97. package/dist/enums/shared/ApplicationLayout.js +0 -6
  98. package/dist/enums/shared/Colors.d.ts +0 -24
  99. package/dist/enums/shared/Colors.js +0 -26
  100. package/dist/enums/shared/InputType.d.ts +0 -6
  101. package/dist/enums/shared/InputType.js +0 -8
  102. package/dist/enums/shared/Periodicity.d.ts +0 -7
  103. package/dist/enums/shared/Periodicity.js +0 -9
  104. package/dist/enums/shared/SvgIcon.d.ts +0 -37
  105. package/dist/enums/shared/SvgIcon.js +0 -39
  106. package/dist/enums/shared/Theme.d.ts +0 -4
  107. package/dist/enums/shared/Theme.js +0 -6
  108. package/dist/enums/sms-template-locale.d.ts +0 -133
  109. package/dist/enums/sms-template-locale.js +0 -135
  110. package/dist/enums/sms-template-type.d.ts +0 -6
  111. package/dist/enums/sms-template-type.js +0 -8
  112. package/dist/enums/smtp-encryption.d.ts +0 -5
  113. package/dist/enums/smtp-encryption.js +0 -7
  114. package/dist/enums/storage-usage-range.d.ts +0 -5
  115. package/dist/enums/storage-usage-range.js +0 -7
  116. package/dist/enums/subscriptions/PricingModel.d.ts +0 -11
  117. package/dist/enums/subscriptions/PricingModel.js +0 -12
  118. package/dist/enums/subscriptions/SubscriptionBillingPeriod.d.ts +0 -10
  119. package/dist/enums/subscriptions/SubscriptionBillingPeriod.js +0 -11
  120. package/dist/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +0 -10
  121. package/dist/enums/subscriptions/SubscriptionFeatureLimitType.js +0 -13
  122. package/dist/enums/subscriptions/SubscriptionPriceType.d.ts +0 -7
  123. package/dist/enums/subscriptions/SubscriptionPriceType.js +0 -8
  124. package/dist/enums/tenants/LinkedAccountStatus.d.ts +0 -5
  125. package/dist/enums/tenants/LinkedAccountStatus.js +0 -7
  126. package/dist/enums/tenants/TenantUserJoined.d.ts +0 -6
  127. package/dist/enums/tenants/TenantUserJoined.js +0 -8
  128. package/dist/enums/tenants/TenantUserStatus.d.ts +0 -6
  129. package/dist/enums/tenants/TenantUserStatus.js +0 -8
  130. package/dist/enums/tenants/TenantUserType.d.ts +0 -5
  131. package/dist/enums/tenants/TenantUserType.js +0 -7
  132. package/dist/enums/user-usage-range.d.ts +0 -5
  133. package/dist/enums/user-usage-range.js +0 -7
  134. package/dist/getAppcondaClient.d.ts +0 -2
  135. package/dist/getAppcondaClient.js +0 -44
  136. package/dist/getSDKForCurrentUser.d.ts +0 -43
  137. package/dist/getSDKForCurrentUser.js +0 -76
  138. package/dist/getSDKForService.d.ts +0 -6
  139. package/dist/getSDKForService.js +0 -51
  140. package/dist/getSDKForTenant.d.ts +0 -20
  141. package/dist/getSDKForTenant.js +0 -44
  142. package/dist/id.d.ts +0 -20
  143. package/dist/id.js +0 -45
  144. package/dist/index.d.ts +0 -44
  145. package/dist/index.js +0 -42
  146. package/dist/inputFile.d.ts +0 -6
  147. package/dist/inputFile.js +0 -17
  148. package/dist/lib/Cache/Adapter.d.ts +0 -10
  149. package/dist/lib/Cache/Adapter.js +0 -2
  150. package/dist/lib/Cache/Adapters/Filesystem.d.ts +0 -16
  151. package/dist/lib/Cache/Adapters/Filesystem.js +0 -103
  152. package/dist/lib/Cache/Adapters/Memory.d.ts +0 -18
  153. package/dist/lib/Cache/Adapters/Memory.js +0 -47
  154. package/dist/lib/Cache/Adapters/None.d.ts +0 -12
  155. package/dist/lib/Cache/Adapters/None.js +0 -28
  156. package/dist/lib/Cache/Adapters/Sharding.d.ts +0 -17
  157. package/dist/lib/Cache/Adapters/Sharding.js +0 -73
  158. package/dist/lib/Cache/Cache.d.ts +0 -16
  159. package/dist/lib/Cache/Cache.js +0 -52
  160. package/dist/lib/Cache/index.d.ts +0 -4
  161. package/dist/lib/Cache/index.js +0 -5
  162. package/dist/lib/Cache/test.d.ts +0 -0
  163. package/dist/lib/Cache/test.js +0 -1
  164. package/dist/lib/Registry/Registry.d.ts +0 -38
  165. package/dist/lib/Registry/Registry.js +0 -56
  166. package/dist/lib/Registry/index.d.ts +0 -1
  167. package/dist/lib/Registry/index.js +0 -2
  168. package/dist/lib/Services.d.ts +0 -6
  169. package/dist/lib/Services.js +0 -14
  170. package/dist/lib/crypto.d.ts +0 -23
  171. package/dist/lib/crypto.js +0 -78
  172. package/dist/lib/env.d.ts +0 -1
  173. package/dist/lib/env.js +0 -137
  174. package/dist/lib/errors.d.ts +0 -70
  175. package/dist/lib/errors.js +0 -76
  176. package/dist/lib/index.d.ts +0 -2
  177. package/dist/lib/index.js +0 -3
  178. package/dist/lib/jwt.d.ts +0 -12
  179. package/dist/lib/jwt.js +0 -103
  180. package/dist/models.d.ts +0 -3272
  181. package/dist/models.js +0 -2
  182. package/dist/modules/account/actions.d.ts +0 -25
  183. package/dist/modules/account/actions.js +0 -18
  184. package/dist/modules/account/enums/authentication-factor.d.ts +0 -6
  185. package/dist/modules/account/enums/authentication-factor.js +0 -8
  186. package/dist/modules/account/enums/authenticator-type.d.ts +0 -3
  187. package/dist/modules/account/enums/authenticator-type.js +0 -5
  188. package/dist/modules/account/enums/o-auth-provider.d.ts +0 -41
  189. package/dist/modules/account/enums/o-auth-provider.js +0 -43
  190. package/dist/modules/account/index.d.ts +0 -3
  191. package/dist/modules/account/index.js +0 -4
  192. package/dist/modules/account/schema.d.ts +0 -17
  193. package/dist/modules/account/schema.js +0 -8
  194. package/dist/modules/account/service.d.ts +0 -530
  195. package/dist/modules/account/service.js +0 -1260
  196. package/dist/modules/account/types.d.ts +0 -411
  197. package/dist/modules/account/types.js +0 -2
  198. package/dist/modules/acl/service.d.ts +0 -26
  199. package/dist/modules/acl/service.js +0 -27
  200. package/dist/modules/agent/action.d.ts +0 -53
  201. package/dist/modules/agent/action.js +0 -64
  202. package/dist/modules/agent/index.d.ts +0 -4
  203. package/dist/modules/agent/index.js +0 -5
  204. package/dist/modules/agent/schema.d.ts +0 -48
  205. package/dist/modules/agent/schema.js +0 -21
  206. package/dist/modules/agent/service.d.ts +0 -12
  207. package/dist/modules/agent/service.js +0 -22
  208. package/dist/modules/agent/types.d.ts +0 -11
  209. package/dist/modules/agent/types.js +0 -2
  210. package/dist/modules/ai/index.d.ts +0 -1
  211. package/dist/modules/ai/index.js +0 -2
  212. package/dist/modules/ai/node/actions.d.ts +0 -4
  213. package/dist/modules/ai/node/actions.js +0 -16
  214. package/dist/modules/ai/node/index.d.ts +0 -2
  215. package/dist/modules/ai/node/index.js +0 -3
  216. package/dist/modules/ai/node/service.d.ts +0 -5
  217. package/dist/modules/ai/node/service.js +0 -12
  218. package/dist/modules/index.d.ts +0 -6
  219. package/dist/modules/index.js +0 -7
  220. package/dist/modules/task/action.d.ts +0 -168
  221. package/dist/modules/task/action.js +0 -163
  222. package/dist/modules/task/index.d.ts +0 -4
  223. package/dist/modules/task/index.js +0 -5
  224. package/dist/modules/task/schema.d.ts +0 -107
  225. package/dist/modules/task/schema.js +0 -44
  226. package/dist/modules/task/service.d.ts +0 -19
  227. package/dist/modules/task/service.js +0 -43
  228. package/dist/modules/task/types.d.ts +0 -84
  229. package/dist/modules/task/types.js +0 -2
  230. package/dist/modules/tenant/actions.d.ts +0 -45
  231. package/dist/modules/tenant/actions.js +0 -38
  232. package/dist/modules/tenant/index.d.ts +0 -3
  233. package/dist/modules/tenant/index.js +0 -4
  234. package/dist/modules/tenant/tenant.d.ts +0 -32
  235. package/dist/modules/tenant/tenant.js +0 -125
  236. package/dist/modules/tenant/types.d.ts +0 -11
  237. package/dist/modules/tenant/types.js +0 -2
  238. package/dist/modules/waitlist/action.d.ts +0 -69
  239. package/dist/modules/waitlist/action.js +0 -78
  240. package/dist/modules/waitlist/index.d.ts +0 -4
  241. package/dist/modules/waitlist/index.js +0 -5
  242. package/dist/modules/waitlist/schema.d.ts +0 -39
  243. package/dist/modules/waitlist/schema.js +0 -18
  244. package/dist/modules/waitlist/service.d.ts +0 -13
  245. package/dist/modules/waitlist/service.js +0 -28
  246. package/dist/modules/waitlist/types.d.ts +0 -14
  247. package/dist/modules/waitlist/types.js +0 -2
  248. package/dist/permission.d.ts +0 -43
  249. package/dist/permission.js +0 -54
  250. package/dist/query.d.ts +0 -194
  251. package/dist/query.js +0 -204
  252. package/dist/role.d.ts +0 -70
  253. package/dist/role.js +0 -94
  254. package/dist/schemas/nodes.d.ts +0 -0
  255. package/dist/schemas/nodes.js +0 -1
  256. package/dist/service-client.d.ts +0 -7
  257. package/dist/service-client.js +0 -14
  258. package/dist/service.d.ts +0 -11
  259. package/dist/service.js +0 -23
  260. package/dist/services/account.d.ts +0 -530
  261. package/dist/services/account.js +0 -1259
  262. package/dist/services/applets.d.ts +0 -9
  263. package/dist/services/applets.js +0 -40
  264. package/dist/services/avatars.d.ts +0 -115
  265. package/dist/services/avatars.js +0 -251
  266. package/dist/services/chat-flow.d.ts +0 -7
  267. package/dist/services/chat-flow.js +0 -26
  268. package/dist/services/community.d.ts +0 -19
  269. package/dist/services/community.js +0 -69
  270. package/dist/services/configuration.d.ts +0 -5
  271. package/dist/services/configuration.js +0 -11
  272. package/dist/services/databases.d.ts +0 -613
  273. package/dist/services/databases.js +0 -1736
  274. package/dist/services/functions.d.ts +0 -319
  275. package/dist/services/functions.js +0 -810
  276. package/dist/services/graphql.d.ts +0 -25
  277. package/dist/services/graphql.js +0 -57
  278. package/dist/services/health.d.ts +0 -231
  279. package/dist/services/health.js +0 -463
  280. package/dist/services/locale.d.ts +0 -80
  281. package/dist/services/locale.js +0 -144
  282. package/dist/services/messaging.d.ts +0 -685
  283. package/dist/services/messaging.js +0 -1920
  284. package/dist/services/node.d.ts +0 -5
  285. package/dist/services/node.js +0 -11
  286. package/dist/services/permissions.d.ts +0 -20
  287. package/dist/services/permissions.js +0 -90
  288. package/dist/services/pricing.d.ts +0 -15
  289. package/dist/services/pricing.js +0 -21
  290. package/dist/services/projects.d.ts +0 -542
  291. package/dist/services/projects.js +0 -1526
  292. package/dist/services/roles.d.ts +0 -19
  293. package/dist/services/roles.js +0 -72
  294. package/dist/services/schema.d.ts +0 -17
  295. package/dist/services/schema.js +0 -48
  296. package/dist/services/storage.d.ts +0 -189
  297. package/dist/services/storage.js +0 -474
  298. package/dist/services/subscription.d.ts +0 -15
  299. package/dist/services/subscription.js +0 -30
  300. package/dist/services/teams.d.ts +0 -167
  301. package/dist/services/teams.js +0 -395
  302. package/dist/services/tenant-subscription.d.ts +0 -12
  303. package/dist/services/tenant-subscription.js +0 -52
  304. package/dist/services/tenant.d.ts +0 -32
  305. package/dist/services/tenant.js +0 -124
  306. package/dist/services/users.d.ts +0 -499
  307. package/dist/services/users.js +0 -1283
@@ -1,499 +0,0 @@
1
- import { Client } from '../client';
2
- import type { Models } from '../models';
3
- import { PasswordHash } from '../enums/password-hash';
4
- import { AuthenticatorType } from '../modules/account/enums/authenticator-type';
5
- import { MessagingProviderType } from '../enums/messaging-provider-type';
6
- export declare class Users {
7
- client: Client;
8
- constructor(client: Client);
9
- /**
10
- * List users
11
- *
12
- * Get a list of all the project's users. You can use the query params to filter your results.
13
- *
14
- * @param {string[]} queries
15
- * @param {string} search
16
- * @throws {AppcondaException}
17
- * @returns {Promise<Models.UserList<Preferences>>}
18
- */
19
- list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.UserList<Preferences>>;
20
- /**
21
- * Create user
22
- *
23
- * Create a new user.
24
- *
25
- * @param {string} userId
26
- * @param {string} email
27
- * @param {string} phone
28
- * @param {string} password
29
- * @param {string} name
30
- * @throws {AppcondaException}
31
- * @returns {Promise<Models.User<Preferences>>}
32
- */
33
- create<Preferences extends Models.Preferences>(userId: string, email?: string, phone?: string, password?: string, name?: string): Promise<Models.User<Preferences>>;
34
- /**
35
- * Create user with Argon2 password
36
- *
37
- * Create a new user. Password provided must be hashed with the [Argon2](https://en.wikipedia.org/wiki/Argon2) algorithm. Use the [POST /users](https://appconda.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
38
- *
39
- * @param {string} userId
40
- * @param {string} email
41
- * @param {string} password
42
- * @param {string} name
43
- * @throws {AppcondaException}
44
- * @returns {Promise<Models.User<Preferences>>}
45
- */
46
- createArgon2User<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
47
- /**
48
- * Create user with bcrypt password
49
- *
50
- * Create a new user. Password provided must be hashed with the [Bcrypt](https://en.wikipedia.org/wiki/Bcrypt) algorithm. Use the [POST /users](https://appconda.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
51
- *
52
- * @param {string} userId
53
- * @param {string} email
54
- * @param {string} password
55
- * @param {string} name
56
- * @throws {AppcondaException}
57
- * @returns {Promise<Models.User<Preferences>>}
58
- */
59
- createBcryptUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
60
- /**
61
- * List Identities
62
- *
63
- * Get identities for all users.
64
- *
65
- * @param {string[]} queries
66
- * @param {string} search
67
- * @throws {AppcondaException}
68
- * @returns {Promise<Models.IdentityList>}
69
- */
70
- listIdentities(queries?: string[], search?: string): Promise<Models.IdentityList>;
71
- /**
72
- * Delete identity
73
- *
74
- * Delete an identity by its unique ID.
75
- *
76
- * @param {string} identityId
77
- * @throws {AppcondaException}
78
- * @returns {Promise<{}>}
79
- */
80
- deleteIdentity(identityId: string): Promise<{}>;
81
- /**
82
- * Create user with MD5 password
83
- *
84
- * Create a new user. Password provided must be hashed with the [MD5](https://en.wikipedia.org/wiki/MD5) algorithm. Use the [POST /users](https://appconda.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
85
- *
86
- * @param {string} userId
87
- * @param {string} email
88
- * @param {string} password
89
- * @param {string} name
90
- * @throws {AppcondaException}
91
- * @returns {Promise<Models.User<Preferences>>}
92
- */
93
- createMD5User<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
94
- /**
95
- * Create user with PHPass password
96
- *
97
- * Create a new user. Password provided must be hashed with the [PHPass](https://www.openwall.com/phpass/) algorithm. Use the [POST /users](https://appconda.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
98
- *
99
- * @param {string} userId
100
- * @param {string} email
101
- * @param {string} password
102
- * @param {string} name
103
- * @throws {AppcondaException}
104
- * @returns {Promise<Models.User<Preferences>>}
105
- */
106
- createPHPassUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
107
- /**
108
- * Create user with Scrypt password
109
- *
110
- * Create a new user. Password provided must be hashed with the [Scrypt](https://github.com/Tarsnap/scrypt) algorithm. Use the [POST /users](https://appconda.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
111
- *
112
- * @param {string} userId
113
- * @param {string} email
114
- * @param {string} password
115
- * @param {string} passwordSalt
116
- * @param {number} passwordCpu
117
- * @param {number} passwordMemory
118
- * @param {number} passwordParallel
119
- * @param {number} passwordLength
120
- * @param {string} name
121
- * @throws {AppcondaException}
122
- * @returns {Promise<Models.User<Preferences>>}
123
- */
124
- createScryptUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, passwordSalt: string, passwordCpu: number, passwordMemory: number, passwordParallel: number, passwordLength: number, name?: string): Promise<Models.User<Preferences>>;
125
- /**
126
- * Create user with Scrypt modified password
127
- *
128
- * Create a new user. Password provided must be hashed with the [Scrypt Modified](https://gist.github.com/Meldiron/eecf84a0225eccb5a378d45bb27462cc) algorithm. Use the [POST /users](https://appconda.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
129
- *
130
- * @param {string} userId
131
- * @param {string} email
132
- * @param {string} password
133
- * @param {string} passwordSalt
134
- * @param {string} passwordSaltSeparator
135
- * @param {string} passwordSignerKey
136
- * @param {string} name
137
- * @throws {AppcondaException}
138
- * @returns {Promise<Models.User<Preferences>>}
139
- */
140
- createScryptModifiedUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, passwordSalt: string, passwordSaltSeparator: string, passwordSignerKey: string, name?: string): Promise<Models.User<Preferences>>;
141
- /**
142
- * Create user with SHA password
143
- *
144
- * Create a new user. Password provided must be hashed with the [SHA](https://en.wikipedia.org/wiki/Secure_Hash_Algorithm) algorithm. Use the [POST /users](https://appconda.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
145
- *
146
- * @param {string} userId
147
- * @param {string} email
148
- * @param {string} password
149
- * @param {PasswordHash} passwordVersion
150
- * @param {string} name
151
- * @throws {AppcondaException}
152
- * @returns {Promise<Models.User<Preferences>>}
153
- */
154
- createSHAUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, passwordVersion?: PasswordHash, name?: string): Promise<Models.User<Preferences>>;
155
- /**
156
- * Get user
157
- *
158
- * Get a user by its unique ID.
159
- *
160
- * @param {string} userId
161
- * @throws {AppcondaException}
162
- * @returns {Promise<Models.User<Preferences>>}
163
- */
164
- get<Preferences extends Models.Preferences>(userId: string): Promise<Models.User<Preferences>>;
165
- /**
166
- * Delete user
167
- *
168
- * Delete a user by its unique ID, thereby releasing it&#039;s ID. Since ID is released and can be reused, all user-related resources like documents or storage files should be deleted before user deletion. If you want to keep ID reserved, use the [updateStatus](https://appconda.io/docs/server/users#usersUpdateStatus) endpoint instead.
169
- *
170
- * @param {string} userId
171
- * @throws {AppcondaException}
172
- * @returns {Promise<{}>}
173
- */
174
- delete(userId: string): Promise<{}>;
175
- /**
176
- * Update email
177
- *
178
- * Update the user email by its unique ID.
179
- *
180
- * @param {string} userId
181
- * @param {string} email
182
- * @throws {AppcondaException}
183
- * @returns {Promise<Models.User<Preferences>>}
184
- */
185
- updateEmail<Preferences extends Models.Preferences>(userId: string, email: string): Promise<Models.User<Preferences>>;
186
- /**
187
- * Create user JWT
188
- *
189
- * Use this endpoint to create a JSON Web Token for user by its unique ID. You can use the resulting JWT to authenticate on behalf of the user. The JWT secret will become invalid if the session it uses gets deleted.
190
- *
191
- * @param {string} userId
192
- * @param {string} sessionId
193
- * @param {number} duration
194
- * @throws {AppcondaException}
195
- * @returns {Promise<Models.Jwt>}
196
- */
197
- createJWT(userId: string, sessionId?: string, duration?: number): Promise<Models.Jwt>;
198
- /**
199
- * Update user labels
200
- *
201
- * Update the user labels by its unique ID.
202
-
203
- Labels can be used to grant access to resources. While teams are a way for user&#039;s to share access to a resource, labels can be defined by the developer to grant access without an invitation. See the [Permissions docs](https://appconda.io/docs/permissions) for more info.
204
- *
205
- * @param {string} userId
206
- * @param {string[]} labels
207
- * @throws {AppcondaException}
208
- * @returns {Promise<Models.User<Preferences>>}
209
- */
210
- updateLabels<Preferences extends Models.Preferences>(userId: string, labels: string[]): Promise<Models.User<Preferences>>;
211
- /**
212
- * List user logs
213
- *
214
- * Get the user activity logs list by its unique ID.
215
- *
216
- * @param {string} userId
217
- * @param {string[]} queries
218
- * @throws {AppcondaException}
219
- * @returns {Promise<Models.LogList>}
220
- */
221
- listLogs(userId: string, queries?: string[]): Promise<Models.LogList>;
222
- /**
223
- * List user memberships
224
- *
225
- * Get the user membership list by its unique ID.
226
- *
227
- * @param {string} userId
228
- * @throws {AppcondaException}
229
- * @returns {Promise<Models.MembershipList>}
230
- */
231
- listMemberships(userId: string): Promise<Models.MembershipList>;
232
- /**
233
- * Update MFA
234
- *
235
- * Enable or disable MFA on a user account.
236
- *
237
- * @param {string} userId
238
- * @param {boolean} mfa
239
- * @throws {AppcondaException}
240
- * @returns {Promise<Models.User<Preferences>>}
241
- */
242
- updateMfa<Preferences extends Models.Preferences>(userId: string, mfa: boolean): Promise<Models.User<Preferences>>;
243
- /**
244
- * Delete Authenticator
245
- *
246
- * Delete an authenticator app.
247
- *
248
- * @param {string} userId
249
- * @param {AuthenticatorType} type
250
- * @throws {AppcondaException}
251
- * @returns {Promise<Models.User<Preferences>>}
252
- */
253
- deleteMfaAuthenticator<Preferences extends Models.Preferences>(userId: string, type: AuthenticatorType): Promise<Models.User<Preferences>>;
254
- /**
255
- * List Factors
256
- *
257
- * List the factors available on the account to be used as a MFA challange.
258
- *
259
- * @param {string} userId
260
- * @throws {AppcondaException}
261
- * @returns {Promise<Models.MfaFactors>}
262
- */
263
- listMfaFactors(userId: string): Promise<Models.MfaFactors>;
264
- /**
265
- * Get MFA Recovery Codes
266
- *
267
- * Get recovery codes that can be used as backup for MFA flow by User ID. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method.
268
- *
269
- * @param {string} userId
270
- * @throws {AppcondaException}
271
- * @returns {Promise<Models.MfaRecoveryCodes>}
272
- */
273
- getMfaRecoveryCodes(userId: string): Promise<Models.MfaRecoveryCodes>;
274
- /**
275
- * Regenerate MFA Recovery Codes
276
- *
277
- * Regenerate recovery codes that can be used as backup for MFA flow by User ID. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method.
278
- *
279
- * @param {string} userId
280
- * @throws {AppcondaException}
281
- * @returns {Promise<Models.MfaRecoveryCodes>}
282
- */
283
- updateMfaRecoveryCodes(userId: string): Promise<Models.MfaRecoveryCodes>;
284
- /**
285
- * Create MFA Recovery Codes
286
- *
287
- * Generate recovery codes used as backup for MFA flow for User ID. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method by client SDK.
288
- *
289
- * @param {string} userId
290
- * @throws {AppcondaException}
291
- * @returns {Promise<Models.MfaRecoveryCodes>}
292
- */
293
- createMfaRecoveryCodes(userId: string): Promise<Models.MfaRecoveryCodes>;
294
- /**
295
- * Update name
296
- *
297
- * Update the user name by its unique ID.
298
- *
299
- * @param {string} userId
300
- * @param {string} name
301
- * @throws {AppcondaException}
302
- * @returns {Promise<Models.User<Preferences>>}
303
- */
304
- updateName<Preferences extends Models.Preferences>(userId: string, name: string): Promise<Models.User<Preferences>>;
305
- /**
306
- * Update password
307
- *
308
- * Update the user password by its unique ID.
309
- *
310
- * @param {string} userId
311
- * @param {string} password
312
- * @throws {AppcondaException}
313
- * @returns {Promise<Models.User<Preferences>>}
314
- */
315
- updatePassword<Preferences extends Models.Preferences>(userId: string, password: string): Promise<Models.User<Preferences>>;
316
- /**
317
- * Update phone
318
- *
319
- * Update the user phone by its unique ID.
320
- *
321
- * @param {string} userId
322
- * @param {string} number
323
- * @throws {AppcondaException}
324
- * @returns {Promise<Models.User<Preferences>>}
325
- */
326
- updatePhone<Preferences extends Models.Preferences>(userId: string, number: string): Promise<Models.User<Preferences>>;
327
- /**
328
- * Get user preferences
329
- *
330
- * Get the user preferences by its unique ID.
331
- *
332
- * @param {string} userId
333
- * @throws {AppcondaException}
334
- * @returns {Promise<Preferences>}
335
- */
336
- getPrefs<Preferences extends Models.Preferences>(userId: string): Promise<Preferences>;
337
- /**
338
- * Update user preferences
339
- *
340
- * Update the user preferences by its unique ID. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.
341
- *
342
- * @param {string} userId
343
- * @param {object} prefs
344
- * @throws {AppcondaException}
345
- * @returns {Promise<Preferences>}
346
- */
347
- updatePrefs<Preferences extends Models.Preferences>(userId: string, prefs: object): Promise<Preferences>;
348
- /**
349
- * List user sessions
350
- *
351
- * Get the user sessions list by its unique ID.
352
- *
353
- * @param {string} userId
354
- * @throws {AppcondaException}
355
- * @returns {Promise<Models.SessionList>}
356
- */
357
- listSessions(userId: string): Promise<Models.SessionList>;
358
- /**
359
- * Create session
360
- *
361
- * Creates a session for a user. Returns an immediately usable session object.
362
-
363
- If you want to generate a token for a custom authentication flow, use the [POST /users/{userId}/tokens](https://appconda.io/docs/server/users#createToken) endpoint.
364
- *
365
- * @param {string} userId
366
- * @throws {AppcondaException}
367
- * @returns {Promise<Models.Session>}
368
- */
369
- createSession(userId: string): Promise<Models.Session>;
370
- /**
371
- * Delete user sessions
372
- *
373
- * Delete all user&#039;s sessions by using the user&#039;s unique ID.
374
- *
375
- * @param {string} userId
376
- * @throws {AppcondaException}
377
- * @returns {Promise<{}>}
378
- */
379
- deleteSessions(userId: string): Promise<{}>;
380
- /**
381
- * Delete user session
382
- *
383
- * Delete a user sessions by its unique ID.
384
- *
385
- * @param {string} userId
386
- * @param {string} sessionId
387
- * @throws {AppcondaException}
388
- * @returns {Promise<{}>}
389
- */
390
- deleteSession(userId: string, sessionId: string): Promise<{}>;
391
- /**
392
- * Update user status
393
- *
394
- * Update the user status by its unique ID. Use this endpoint as an alternative to deleting a user if you want to keep user&#039;s ID reserved.
395
- *
396
- * @param {string} userId
397
- * @param {boolean} status
398
- * @throws {AppcondaException}
399
- * @returns {Promise<Models.User<Preferences>>}
400
- */
401
- updateStatus<Preferences extends Models.Preferences>(userId: string, status: boolean): Promise<Models.User<Preferences>>;
402
- /**
403
- * List User Targets
404
- *
405
- * List the messaging targets that are associated with a user.
406
- *
407
- * @param {string} userId
408
- * @param {string[]} queries
409
- * @throws {AppcondaException}
410
- * @returns {Promise<Models.TargetList>}
411
- */
412
- listTargets(userId: string, queries?: string[]): Promise<Models.TargetList>;
413
- /**
414
- * Create User Target
415
- *
416
- * Create a messaging target.
417
- *
418
- * @param {string} userId
419
- * @param {string} targetId
420
- * @param {MessagingProviderType} providerType
421
- * @param {string} identifier
422
- * @param {string} providerId
423
- * @param {string} name
424
- * @throws {AppcondaException}
425
- * @returns {Promise<Models.Target>}
426
- */
427
- createTarget(userId: string, targetId: string, providerType: MessagingProviderType, identifier: string, providerId?: string, name?: string): Promise<Models.Target>;
428
- /**
429
- * Get User Target
430
- *
431
- * Get a user&#039;s push notification target by ID.
432
- *
433
- * @param {string} userId
434
- * @param {string} targetId
435
- * @throws {AppcondaException}
436
- * @returns {Promise<Models.Target>}
437
- */
438
- getTarget(userId: string, targetId: string): Promise<Models.Target>;
439
- /**
440
- * Update User target
441
- *
442
- * Update a messaging target.
443
- *
444
- * @param {string} userId
445
- * @param {string} targetId
446
- * @param {string} identifier
447
- * @param {string} providerId
448
- * @param {string} name
449
- * @throws {AppcondaException}
450
- * @returns {Promise<Models.Target>}
451
- */
452
- updateTarget(userId: string, targetId: string, identifier?: string, providerId?: string, name?: string): Promise<Models.Target>;
453
- /**
454
- * Delete user target
455
- *
456
- * Delete a messaging target.
457
- *
458
- * @param {string} userId
459
- * @param {string} targetId
460
- * @throws {AppcondaException}
461
- * @returns {Promise<{}>}
462
- */
463
- deleteTarget(userId: string, targetId: string): Promise<{}>;
464
- /**
465
- * Create token
466
- *
467
- * Returns a token with a secret key for creating a session. Use the user ID and secret and submit a request to the [PUT /account/sessions/token](https://appconda.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process.
468
-
469
- *
470
- * @param {string} userId
471
- * @param {number} length
472
- * @param {number} expire
473
- * @throws {AppcondaException}
474
- * @returns {Promise<Models.Token>}
475
- */
476
- createToken(userId: string, length?: number, expire?: number): Promise<Models.Token>;
477
- /**
478
- * Update email verification
479
- *
480
- * Update the user email verification status by its unique ID.
481
- *
482
- * @param {string} userId
483
- * @param {boolean} emailVerification
484
- * @throws {AppcondaException}
485
- * @returns {Promise<Models.User<Preferences>>}
486
- */
487
- updateEmailVerification<Preferences extends Models.Preferences>(userId: string, emailVerification: boolean): Promise<Models.User<Preferences>>;
488
- /**
489
- * Update phone verification
490
- *
491
- * Update the user phone verification status by its unique ID.
492
- *
493
- * @param {string} userId
494
- * @param {boolean} phoneVerification
495
- * @throws {AppcondaException}
496
- * @returns {Promise<Models.User<Preferences>>}
497
- */
498
- updatePhoneVerification<Preferences extends Models.Preferences>(userId: string, phoneVerification: boolean): Promise<Models.User<Preferences>>;
499
- }