@liaisongroup/assist-api-js-client 1.5.94 → 1.5.96

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/dist/openapi.d.ts CHANGED
@@ -2058,6 +2058,14 @@ declare namespace Components {
2058
2058
  *
2059
2059
  */
2060
2060
  send_invitation?: boolean;
2061
+ /**
2062
+ * The URL the set password email should send the user to in order to set their password.
2063
+ * The API will append a token to the URL as a query parameter (e.g. `https://localhost:3000/set-password?token=123456`).
2064
+ *
2065
+ * example:
2066
+ * https://localhost:3000/set-password
2067
+ */
2068
+ set_password_destination_url?: string; // uri
2061
2069
  active?: UserAttributes.Properties.Active;
2062
2070
  availability?: "online" | "offline";
2063
2071
  status?: UserAttributes.Properties.Status;
@@ -3728,6 +3736,30 @@ declare namespace Paths {
3728
3736
  export type $422 = Components.Schemas.SimpleErrors;
3729
3737
  }
3730
3738
  }
3739
+ namespace UpdatePasswordSet {
3740
+ namespace Parameters {
3741
+ export type Token = string; // uuid
3742
+ }
3743
+ export interface PathParameters {
3744
+ token: Parameters.Token /* uuid */;
3745
+ }
3746
+ export interface RequestBody {
3747
+ password: string;
3748
+ password_confirmation: string;
3749
+ client_id: string;
3750
+ client_secret: string;
3751
+ }
3752
+ namespace Responses {
3753
+ export interface $200 {
3754
+ /**
3755
+ * A message indicating that the password has been set.
3756
+ */
3757
+ message?: string;
3758
+ }
3759
+ export type $410 = Components.Schemas.SimpleErrors;
3760
+ export type $422 = Components.Schemas.SimpleErrors;
3761
+ }
3762
+ }
3731
3763
  namespace UpdateRole {
3732
3764
  namespace Parameters {
3733
3765
  export type Id = string; // uuid
@@ -4033,6 +4065,14 @@ export interface OperationMethods {
4033
4065
  data?: Paths.UpdatePasswordReset.RequestBody,
4034
4066
  config?: AxiosRequestConfig
4035
4067
  ): OperationResponse<Paths.UpdatePasswordReset.Responses.$200>
4068
+ /**
4069
+ * update_password_set - Update password set
4070
+ */
4071
+ 'update_password_set'(
4072
+ parameters?: Parameters<Paths.UpdatePasswordSet.PathParameters> | null,
4073
+ data?: Paths.UpdatePasswordSet.RequestBody,
4074
+ config?: AxiosRequestConfig
4075
+ ): OperationResponse<Paths.UpdatePasswordSet.Responses.$200>
4036
4076
  /**
4037
4077
  * get_actions - Get actions
4038
4078
  */
@@ -5055,6 +5095,16 @@ export interface PathsDictionary {
5055
5095
  config?: AxiosRequestConfig
5056
5096
  ): OperationResponse<Paths.UpdatePasswordReset.Responses.$200>
5057
5097
  }
5098
+ ['/password_sets/{token}']: {
5099
+ /**
5100
+ * update_password_set - Update password set
5101
+ */
5102
+ 'put'(
5103
+ parameters?: Parameters<Paths.UpdatePasswordSet.PathParameters> | null,
5104
+ data?: Paths.UpdatePasswordSet.RequestBody,
5105
+ config?: AxiosRequestConfig
5106
+ ): OperationResponse<Paths.UpdatePasswordSet.Responses.$200>
5107
+ }
5058
5108
  ['/actions']: {
5059
5109
  /**
5060
5110
  * get_actions - Get actions
package/dist/openapi.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Liaison Assist API",
5
5
  "description": "![Hero](./hero.svg)\n",
6
- "version": "0.0.323",
6
+ "version": "0.0.325",
7
7
  "license": {
8
8
  "name": "MIT",
9
9
  "url": "https://opensource.org/licenses/MIT"
@@ -1008,6 +1008,94 @@
1008
1008
  }
1009
1009
  }
1010
1010
  },
1011
+ "/password_sets/{token}": {
1012
+ "put": {
1013
+ "operationId": "update_password_set",
1014
+ "summary": "Update password set",
1015
+ "tags": [
1016
+ "Password Sets"
1017
+ ],
1018
+ "security": [],
1019
+ "parameters": [
1020
+ {
1021
+ "name": "token",
1022
+ "in": "path",
1023
+ "required": true,
1024
+ "schema": {
1025
+ "type": "string",
1026
+ "format": "uuid"
1027
+ }
1028
+ }
1029
+ ],
1030
+ "requestBody": {
1031
+ "content": {
1032
+ "application/json": {
1033
+ "schema": {
1034
+ "type": "object",
1035
+ "required": [
1036
+ "password",
1037
+ "password_confirmation",
1038
+ "client_id",
1039
+ "client_secret"
1040
+ ],
1041
+ "properties": {
1042
+ "password": {
1043
+ "type": "string"
1044
+ },
1045
+ "password_confirmation": {
1046
+ "type": "string"
1047
+ },
1048
+ "client_id": {
1049
+ "type": "string"
1050
+ },
1051
+ "client_secret": {
1052
+ "type": "string"
1053
+ }
1054
+ }
1055
+ }
1056
+ }
1057
+ }
1058
+ },
1059
+ "responses": {
1060
+ "200": {
1061
+ "description": "OK",
1062
+ "content": {
1063
+ "application/json": {
1064
+ "schema": {
1065
+ "type": "object",
1066
+ "properties": {
1067
+ "message": {
1068
+ "type": "string",
1069
+ "description": "A message indicating that the password has been set."
1070
+ }
1071
+ }
1072
+ }
1073
+ }
1074
+ }
1075
+ },
1076
+ "410": {
1077
+ "description": "Gone",
1078
+ "content": {
1079
+ "application/json": {
1080
+ "schema": {
1081
+ "$ref": "#/components/schemas/SimpleErrors"
1082
+ }
1083
+ }
1084
+ }
1085
+ },
1086
+ "422": {
1087
+ "description": "Unprocessable Entity",
1088
+ "content": {
1089
+ "application/json": {
1090
+ "schema": {
1091
+ "$ref": "#/components/schemas/SimpleErrors"
1092
+ }
1093
+ }
1094
+ }
1095
+ }
1096
+ }
1097
+ }
1098
+ },
1011
1099
  "/actions": {
1012
1100
  "get": {
1013
1101
  "operationId": "get_actions",
@@ -14385,6 +14473,12 @@
14385
14473
  "default": false,
14386
14474
  "description": "Can be set to true to send an invitation email to the user upon creation\n"
14387
14475
  },
14476
+ "set_password_destination_url": {
14477
+ "type": "string",
14478
+ "format": "uri",
14479
+ "description": "The URL the set password email should send the user to in order to set their password.\nThe API will append a token to the URL as a query parameter (e.g. `https://localhost:3000/set-password?token=123456`).\n",
14480
+ "example": "https://localhost:3000/set-password"
14481
+ },
14388
14482
  "active": {
14389
14483
  "$ref": "#/components/schemas/UserAttributes/properties/active"
14390
14484
  },
@@ -18327,6 +18327,7 @@ export declare const UserCreateAttributes: z.ZodObject<{
18327
18327
  password: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
18328
18328
  password_required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
18329
18329
  send_invitation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
18330
+ set_password_destination_url: z.ZodOptional<z.ZodString>;
18330
18331
  active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
18331
18332
  availability: z.ZodDefault<z.ZodOptional<z.ZodEnum<["online", "offline"]>>>;
18332
18333
  status: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
@@ -18343,6 +18344,7 @@ export declare const UserCreateAttributes: z.ZodObject<{
18343
18344
  status?: string | null | undefined;
18344
18345
  root?: boolean | undefined;
18345
18346
  role_ids?: string[] | undefined;
18347
+ set_password_destination_url?: string | undefined;
18346
18348
  }, {
18347
18349
  email: string;
18348
18350
  name: string;
@@ -18354,6 +18356,7 @@ export declare const UserCreateAttributes: z.ZodObject<{
18354
18356
  role_ids?: string[] | undefined;
18355
18357
  password_required?: boolean | undefined;
18356
18358
  send_invitation?: boolean | undefined;
18359
+ set_password_destination_url?: string | undefined;
18357
18360
  }>;
18358
18361
  export declare const User: z.ZodObject<{
18359
18362
  data: z.ZodObject<{
@@ -599,6 +599,7 @@ export const UserCreateAttributes = z.object({
599
599
  password: z.union([z.string(), z.null()]).optional(),
600
600
  password_required: z.boolean().optional().default(false),
601
601
  send_invitation: z.boolean().optional().default(false),
602
+ set_password_destination_url: z.string().url().optional(),
602
603
  active: active.optional().default(true),
603
604
  availability: z.enum(["online", "offline"]).optional().default("offline"),
604
605
  status: status.optional(),
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.5.94",
2
+ "version": "1.5.96",
3
3
  "name": "@liaisongroup/assist-api-js-client",
4
4
  "license": "MIT",
5
5
  "repository": {