@readyfor/api-client-readyfor 1.180.0 → 1.182.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.
@@ -514,6 +514,7 @@ export declare const PatchEngagementSettingsProfileUnprocessableEntityErrors: z.
514
514
  base: z.ZodOptional<z.ZodArray<z.ZodString>>;
515
515
  }, z.core.$strip>;
516
516
  export declare const PostEngagementSettingsPasswordUnprocessableEntityErrors: z.ZodObject<{
517
+ currentPassword: z.ZodOptional<z.ZodArray<z.ZodString>>;
517
518
  password: z.ZodOptional<z.ZodArray<z.ZodString>>;
518
519
  base: z.ZodOptional<z.ZodArray<z.ZodString>>;
519
520
  }, z.core.$strip>;
@@ -1853,6 +1854,7 @@ export declare const PatchEngagementSettingsProfileUnprocessableEntity: z.ZodObj
1853
1854
  }, z.core.$strip>;
1854
1855
  export declare const PostEngagementSettingsPasswordUnprocessableEntity: z.ZodObject<{
1855
1856
  errors: z.ZodObject<{
1857
+ currentPassword: z.ZodOptional<z.ZodArray<z.ZodString>>;
1856
1858
  password: z.ZodOptional<z.ZodArray<z.ZodString>>;
1857
1859
  base: z.ZodOptional<z.ZodArray<z.ZodString>>;
1858
1860
  }, z.core.$strip>;
@@ -4319,6 +4321,7 @@ export declare const PatchEngagementSettingsProfile_422_response: z.ZodUnion<rea
4319
4321
  }, z.core.$strip>]>;
4320
4322
  export declare const PostEngagementSettingsPassword_422_response: z.ZodUnion<readonly [z.ZodObject<{
4321
4323
  errors: z.ZodObject<{
4324
+ currentPassword: z.ZodOptional<z.ZodArray<z.ZodString>>;
4322
4325
  password: z.ZodOptional<z.ZodArray<z.ZodString>>;
4323
4326
  base: z.ZodOptional<z.ZodArray<z.ZodString>>;
4324
4327
  }, z.core.$strip>;
@@ -4766,6 +4769,7 @@ export declare const PutEngagementSettingsPaymentCertificateAddresseeResponse: z
4766
4769
  addressee: z.ZodString;
4767
4770
  }, z.core.$strip>;
4768
4771
  export declare const PostEngagementSettingsPasswordRequestBody: z.ZodObject<{
4772
+ currentPassword: z.ZodString;
4769
4773
  password: z.ZodString;
4770
4774
  }, z.core.$strip>;
4771
4775
  export declare const PatchEngagementSettingsEmailNotificationsRequest: z.ZodObject<{
@@ -451,6 +451,7 @@ const PatchEngagementSettingsProfileUnprocessableEntityErrors = zod.z.object({
451
451
  base: zod.z.optional(zod.z.array(zod.z.string()))
452
452
  });
453
453
  const PostEngagementSettingsPasswordUnprocessableEntityErrors = zod.z.object({
454
+ currentPassword: zod.z.optional(zod.z.array(zod.z.string())),
454
455
  password: zod.z.optional(zod.z.array(zod.z.string())),
455
456
  base: zod.z.optional(zod.z.array(zod.z.string()))
456
457
  });
@@ -2686,7 +2687,10 @@ const GetEngagementSettingsProfile = zod.z.object({
2686
2687
  });
2687
2688
  const PutEngagementSettingsPaymentCertificateAddresseeRequest = zod.z.object({ addressee: zod.z.string() });
2688
2689
  const PutEngagementSettingsPaymentCertificateAddresseeResponse = zod.z.object({ addressee: zod.z.string() });
2689
- const PostEngagementSettingsPasswordRequestBody = zod.z.object({ password: zod.z.string() });
2690
+ const PostEngagementSettingsPasswordRequestBody = zod.z.object({
2691
+ currentPassword: zod.z.string(),
2692
+ password: zod.z.string()
2693
+ });
2690
2694
  const PatchEngagementSettingsEmailNotificationsRequest = zod.z.object({
2691
2695
  subscriptionToken: zod.z.optional(zod.z.string()),
2692
2696
  receiveNotification: zod.z.boolean(),
@@ -450,6 +450,7 @@ const PatchEngagementSettingsProfileUnprocessableEntityErrors = z.object({
450
450
  base: z.optional(z.array(z.string()))
451
451
  });
452
452
  const PostEngagementSettingsPasswordUnprocessableEntityErrors = z.object({
453
+ currentPassword: z.optional(z.array(z.string())),
453
454
  password: z.optional(z.array(z.string())),
454
455
  base: z.optional(z.array(z.string()))
455
456
  });
@@ -2685,7 +2686,10 @@ const GetEngagementSettingsProfile = z.object({
2685
2686
  });
2686
2687
  const PutEngagementSettingsPaymentCertificateAddresseeRequest = z.object({ addressee: z.string() });
2687
2688
  const PutEngagementSettingsPaymentCertificateAddresseeResponse = z.object({ addressee: z.string() });
2688
- const PostEngagementSettingsPasswordRequestBody = z.object({ password: z.string() });
2689
+ const PostEngagementSettingsPasswordRequestBody = z.object({
2690
+ currentPassword: z.string(),
2691
+ password: z.string()
2692
+ });
2689
2693
  const PatchEngagementSettingsEmailNotificationsRequest = z.object({
2690
2694
  subscriptionToken: z.optional(z.string()),
2691
2695
  receiveNotification: z.boolean(),
@@ -4227,7 +4227,7 @@ export interface paths {
4227
4227
  "/api/v1/my/engagement/settings/password": {
4228
4228
  /**
4229
4229
  * パスワードを変更する
4230
- * @description パスワードを設定していないユーザーは、この操作で新しく設定する
4230
+ * @description 現在のパスワードを照合してから変更する。パスワードを設定していないユーザーは 422 になるため、FE はパスワード設定用のメールを案内する(設定は `isPasswordUser` で判定する)
4231
4231
  */
4232
4232
  post: operations["PostEngagementSettingsPassword"];
4233
4233
  };
@@ -12672,13 +12672,8 @@ export interface components {
12672
12672
  * PostEngagementSettingsPasswordUnprocessableEntity
12673
12673
  * @example {
12674
12674
  * "errors": {
12675
- * "password": [
12676
- * "password",
12677
- * "password"
12678
- * ],
12679
- * "base": [
12680
- * "base",
12681
- * "base"
12675
+ * "currentPassword": [
12676
+ * "が正しくありません"
12682
12677
  * ]
12683
12678
  * }
12684
12679
  * }
@@ -12689,10 +12684,16 @@ export interface components {
12689
12684
  /**
12690
12685
  * PostEngagementSettingsPasswordRequestBody
12691
12686
  * @example {
12692
- * "password": "password"
12687
+ * "password": "password",
12688
+ * "currentPassword": "currentPassword"
12693
12689
  * }
12694
12690
  */
12695
12691
  PostEngagementSettingsPasswordRequestBody: {
12692
+ /**
12693
+ * Format: password
12694
+ * @description 現在のパスワード。サーバが照合し、一致しなければ 422 の errors.currentPassword で返す
12695
+ */
12696
+ currentPassword: string;
12696
12697
  /**
12697
12698
  * Format: password
12698
12699
  * @description 長さと使える文字はサーバが検証し、満たさなければ 422 の errors.password で返す
@@ -20079,18 +20080,21 @@ export interface components {
20079
20080
  };
20080
20081
  /**
20081
20082
  * PostEngagementSettingsPasswordUnprocessableEntityErrors
20083
+ * @description currentPassword と password が同時に入ることはない
20082
20084
  * @example {
20083
- * "password": [
20084
- * "password",
20085
- * "password"
20086
- * ],
20087
- * "base": [
20088
- * "base",
20089
- * "base"
20085
+ * "currentPassword": [
20086
+ * "が正しくありません"
20090
20087
  * ]
20091
20088
  * }
20092
20089
  */
20093
20090
  PostEngagementSettingsPasswordUnprocessableEntityErrors: {
20091
+ /**
20092
+ * @description 現在のパスワードの照合に失敗した場合のエラー。次のいずれかが入る
20093
+ * - 一致しない: が正しくありません
20094
+ * - パスワードを設定していないユーザー: が設定されていません。パスワードを設定してから変更してください
20095
+ * - 照合の失敗が上限(10 分に 5 回)を超えた: の確認に何度も失敗したため、しばらく時間をおいてから再度お試しください
20096
+ */
20097
+ currentPassword?: string[];
20094
20098
  password?: string[];
20095
20099
  /**
20096
20100
  * @description password 以外の項目の検証で保存に失敗した場合など、
@@ -25118,13 +25122,14 @@ export interface operations {
25118
25122
  };
25119
25123
  /**
25120
25124
  * パスワードを変更する
25121
- * @description パスワードを設定していないユーザーは、この操作で新しく設定する
25125
+ * @description 現在のパスワードを照合してから変更する。パスワードを設定していないユーザーは 422 になるため、FE はパスワード設定用のメールを案内する(設定は `isPasswordUser` で判定する)
25122
25126
  */
25123
25127
  PostEngagementSettingsPassword: {
25124
25128
  requestBody: {
25125
25129
  content: {
25126
25130
  /**
25127
25131
  * @example {
25132
+ * "currentPassword": "currentPassword123",
25128
25133
  * "password": "newPassword123"
25129
25134
  * }
25130
25135
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readyfor/api-client-readyfor",
3
- "version": "1.180.0",
3
+ "version": "1.182.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -34,14 +34,14 @@
34
34
  "swr": "2.5.1",
35
35
  "use-sync-external-store": "1.7.0",
36
36
  "zod": "^4.3.6",
37
- "@readyfor/api-client-base": "1.180.0"
37
+ "@readyfor/api-client-base": "1.182.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": ">=18.x <=19.x",
41
41
  "swr": "^2.3.3",
42
42
  "use-sync-external-store": "^1.2.2",
43
43
  "zod": "^4",
44
- "@readyfor/api-client-base": "1.180.0"
44
+ "@readyfor/api-client-base": "1.182.0"
45
45
  },
46
46
  "peerDependenciesMeta": {
47
47
  "react": {