@tailor-platform/function-types 0.8.1 → 0.8.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @tailor-platform/function-types
2
2
 
3
+ ## 0.8.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#150](https://github.com/tailor-platform/function/pull/150) [`02134c6`](https://github.com/tailor-platform/function/commit/02134c6ce2014a7f82440650c4d4f9345be96f7b) Thanks [@k1LoW](https://github.com/k1LoW)! - Add `userByName` method to `tailor.idp.Client` for fetching a user by name
8
+
9
+ ## 0.8.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#131](https://github.com/tailor-platform/function/pull/131) [`cdac331`](https://github.com/tailor-platform/function/commit/cdac3319608f5b6b425545ceaae795088bfb7047) Thanks [@k1LoW](https://github.com/k1LoW)! - Make `password` optional in `CreateUserInput` and add `clearPassword` to `UpdateUserInput`
14
+
3
15
  ## 0.8.1
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/function-types",
3
- "version": "0.8.1",
3
+ "version": "0.8.3",
4
4
  "description": "TypeScript types for Tailor Platform Function service",
5
5
  "repository": {
6
6
  "type": "git",
package/tailor.d.ts CHANGED
@@ -333,8 +333,8 @@ declare namespace tailor.idp {
333
333
  interface CreateUserInput {
334
334
  /** The user's name (typically email) */
335
335
  name: string;
336
- /** The user's password */
337
- password: string;
336
+ /** The user's password. If omitted, the user is created without a password (cannot log in with any password). */
337
+ password?: string;
338
338
  /** Whether the user is disabled */
339
339
  disabled?: boolean;
340
340
  }
@@ -347,8 +347,10 @@ declare namespace tailor.idp {
347
347
  id: string;
348
348
  /** New name for the user */
349
349
  name?: string;
350
- /** New password for the user */
350
+ /** New password for the user. Cannot be used with clearPassword. */
351
351
  password?: string;
352
+ /** If true, remove the user's password. Cannot be used with password. */
353
+ clearPassword?: boolean;
352
354
  /** New disabled status for the user */
353
355
  disabled?: boolean;
354
356
  }
@@ -379,6 +381,11 @@ declare namespace tailor.idp {
379
381
  */
380
382
  user(userId: string): Promise<User>;
381
383
 
384
+ /**
385
+ * Get a user by name.
386
+ */
387
+ userByName(name: string): Promise<User>;
388
+
382
389
  /**
383
390
  * Create a new user.
384
391
  */