@xfloor/floor-memory-sdk-ts 1.0.13 → 1.0.14

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
- # @xfloor/floor-memory-sdk-ts@1.0.13
2
- A TypeScript SDK client for the localhost API.
1
+ # @xfloor/floor-memory-sdk-ts@1.0.14
2
+ A TypeScript SDK client for the appfloor.in API.
3
3
 
4
4
  ### Usage
5
5
 
@@ -47,7 +47,7 @@ example().catch(console.error);
47
47
 
48
48
  ### API Endpoints
49
49
 
50
- All URIs are relative to *http://localhost*
50
+ All URIs are relative to *https://appfloor.in*
51
51
 
52
52
  | Class | Method | HTTP request |
53
53
 
@@ -92,12 +92,12 @@ Get the conversational threads
92
92
  Conversations
93
93
  *DefaultApi*
94
94
 
95
- | [**makeFloorPrivate**](docs/DefaultApi.md#makefloorprivate) | **POST** /api/memory/make/floor/private |
95
+ | [**makeFloorPrivate**](docs/DefaultApi.md#makefloorprivate) | **POST** /api/memory/make/floor/private/{floor_id} |
96
96
 
97
97
  Make floor Private
98
98
  *DefaultApi*
99
99
 
100
- | [**makeFloorPublic**](docs/DefaultApi.md#makefloorpublic) | **POST** /api/memory/make/floor/public |
100
+ | [**makeFloorPublic**](docs/DefaultApi.md#makefloorpublic) | **POST** /api/memory/make/floor/public/{floor_id} |
101
101
 
102
102
  Make floor public
103
103
  *DefaultApi*
@@ -122,7 +122,7 @@ Reset Password
122
122
  Send Sign-In Validation Code (OTP)
123
123
  *DefaultApi*
124
124
 
125
- | [**sendValidationCode**](docs/DefaultApi.md#sendvalidationcodeoperation) | **POST** /auth-service/send/validation/code |
125
+ | [**sendValidationCode**](docs/DefaultApi.md#sendvalidationcode) | **POST** /auth-service/send/validation/code |
126
126
 
127
127
  Send Validation code
128
128
  *DefaultApi*
@@ -214,7 +214,6 @@ Query (Primary API)
214
214
  - [ResetPassword400Response](docs/ResetPassword400Response.md)
215
215
  - [SendSignInValidationCode200Response](docs/SendSignInValidationCode200Response.md)
216
216
  - [SendValidationCode200Response](docs/SendValidationCode200Response.md)
217
- - [SendValidationCodeRequest](docs/SendValidationCodeRequest.md)
218
217
  - [SignInWithEmail200Response](docs/SignInWithEmail200Response.md)
219
218
  - [SignInWithEmail200ResponsePodInfo](docs/SignInWithEmail200ResponsePodInfo.md)
220
219
  - [SignInWithEmail200ResponseProfile](docs/SignInWithEmail200ResponseProfile.md)
@@ -245,7 +244,7 @@ and is automatically generated by the
245
244
  [OpenAPI Generator](https://openapi-generator.tech) project:
246
245
 
247
246
  - API version: `1.0.0`
248
- - Package version: `1.0.13`
247
+ - Package version: `1.0.14`
249
248
  - Generator version: `7.18.0`
250
249
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
251
250
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime';
15
- import type { ChangePassword200Response, ConversationThreads200Response, GetConversations200Response, GetFloorInformation200Response, ResetPassword200Response, SendSignInValidationCode200Response, SendValidationCode200Response, SendValidationCodeRequest, SignInWithEmail200Response, SignUp200Response, UserDetails, ValidateCodeRequest } from '../models/index';
15
+ import type { ChangePassword200Response, ConversationThreads200Response, GetConversations200Response, GetFloorInformation200Response, ResetPassword200Response, SendSignInValidationCode200Response, SendValidationCode200Response, SignInWithEmail200Response, SignUp200Response, UserDetails, ValidateCodeRequest } from '../models/index';
16
16
  export interface ApiDeveloperCreateAppPostRequest {
17
17
  inputInfo: string;
18
18
  icon?: Blob;
@@ -74,8 +74,12 @@ export interface SendSignInValidationCodeRequest {
74
74
  mobileNumber?: string;
75
75
  emailId?: string;
76
76
  }
77
- export interface SendValidationCodeOperationRequest {
78
- sendValidationCodeRequest: SendValidationCodeRequest;
77
+ export interface SendValidationCodeRequest {
78
+ mode: string;
79
+ userId?: string;
80
+ mobileNumber?: string;
81
+ emailId?: string;
82
+ appId?: string;
79
83
  }
80
84
  export interface SignInWithEmailRequest {
81
85
  emailId: string;
@@ -84,7 +88,10 @@ export interface SignInWithEmailRequest {
84
88
  appId?: string;
85
89
  }
86
90
  export interface SignInWithMobileNumberRequest {
87
- body: object;
91
+ mobileNumber: string;
92
+ passCode: string;
93
+ loginType: string;
94
+ appId?: string;
88
95
  }
89
96
  export interface SignUpRequest {
90
97
  name: string;
@@ -234,12 +241,12 @@ export declare class DefaultApi extends runtime.BaseAPI {
234
241
  * Generates and sends a one-time validation code to the user for verification of sensitive or critical account operations. This API is used across multiple authentication and account-management flows. The validation code is delivered to the user via the appropriate channel (**email or mobile number**), based on the requested operation mode and the input provided. The generated code is **time-bound**, **single-use**, and must be validated using the corresponding verification APIs to complete the requested action. --- ### **Usage Scenarios (Mode Definition)** | Mode | Purpose | | ---- | ----------------------------- | | `0` | Email or mobile number change | | `1` | Password change | | `2` | Delete account | | `3` | Clear account | | `4` | Signup Verification | | `5` | Using OTP for Login | | `6` | OTP for forgot password | **Mode `4` – Signup Verification** For login verification, the validation code is sent to **either the email ID or the mobile number provided in the request**. At least **one of email or mobile number must be supplied** for this mode. --- ### **Behavior** * Generates a secure, one-time validation code * Sends the code to the appropriate channel: * Email or mobile number, depending on the operation mode and input * Associates the code with: * User identity (or login identifier) * Requested operation (`mode`) * Application context (if applicable) * Validation codes are valid for a limited duration and **cannot be reused** --- ### **Authentication** This endpoint requires **Bearer Token authentication**, **except** where explicitly allowed (for example, login-related flows). ``` Authorization: Bearer <access_token> ``` --- ### **Successful Response** On success, the API confirms that the validation code has been generated and successfully dispatched to the user. --- ### **Error Response** The API returns an error response if: * The user does not exist or is not eligible for the requested operation * The requested mode is invalid or unsupported * Required identifiers (email or mobile number for login verification) are missing * Rate limits are exceeded * Authorization fails (where applicable) --- ### **Security Notes (Recommended)** * Validation codes are single-use and time-bound * Rate limiting is enforced to prevent abuse * Repeated failures may trigger temporary blocking or additional verification --- ### **One-Line Summary** > Sends a one-time validation code for secure account and authentication operations, including login via email or mobile number.
235
242
  * Send Validation code
236
243
  */
237
- sendValidationCodeRaw(requestParameters: SendValidationCodeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SendValidationCode200Response>>;
244
+ sendValidationCodeRaw(requestParameters: SendValidationCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SendValidationCode200Response>>;
238
245
  /**
239
246
  * Generates and sends a one-time validation code to the user for verification of sensitive or critical account operations. This API is used across multiple authentication and account-management flows. The validation code is delivered to the user via the appropriate channel (**email or mobile number**), based on the requested operation mode and the input provided. The generated code is **time-bound**, **single-use**, and must be validated using the corresponding verification APIs to complete the requested action. --- ### **Usage Scenarios (Mode Definition)** | Mode | Purpose | | ---- | ----------------------------- | | `0` | Email or mobile number change | | `1` | Password change | | `2` | Delete account | | `3` | Clear account | | `4` | Signup Verification | | `5` | Using OTP for Login | | `6` | OTP for forgot password | **Mode `4` – Signup Verification** For login verification, the validation code is sent to **either the email ID or the mobile number provided in the request**. At least **one of email or mobile number must be supplied** for this mode. --- ### **Behavior** * Generates a secure, one-time validation code * Sends the code to the appropriate channel: * Email or mobile number, depending on the operation mode and input * Associates the code with: * User identity (or login identifier) * Requested operation (`mode`) * Application context (if applicable) * Validation codes are valid for a limited duration and **cannot be reused** --- ### **Authentication** This endpoint requires **Bearer Token authentication**, **except** where explicitly allowed (for example, login-related flows). ``` Authorization: Bearer <access_token> ``` --- ### **Successful Response** On success, the API confirms that the validation code has been generated and successfully dispatched to the user. --- ### **Error Response** The API returns an error response if: * The user does not exist or is not eligible for the requested operation * The requested mode is invalid or unsupported * Required identifiers (email or mobile number for login verification) are missing * Rate limits are exceeded * Authorization fails (where applicable) --- ### **Security Notes (Recommended)** * Validation codes are single-use and time-bound * Rate limiting is enforced to prevent abuse * Repeated failures may trigger temporary blocking or additional verification --- ### **One-Line Summary** > Sends a one-time validation code for secure account and authentication operations, including login via email or mobile number.
240
247
  * Send Validation code
241
248
  */
242
- sendValidationCode(requestParameters: SendValidationCodeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SendValidationCode200Response>;
249
+ sendValidationCode(requestParameters: SendValidationCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SendValidationCode200Response>;
243
250
  /**
244
251
  * Authenticates a user using a registered email ID. The authentication mechanism is determined by the specified `mode`. * When `login_type` is set to **`1`**, the user is authenticated using the provided **password**. * When `login_type` is set to **`2`**, the user is authenticated using a **one-time activation code (OTP)**. For OTP-based authentication (`login_type = 2`), the client **must first invoke the Send Validation Code API** with the appropriate login mode to generate and deliver the activation code to the user. --- ### **Request Body** | Field | Type | Required | Description | | ------------ | ------------- | -------- | ----------------------------------------------------------------- | | `email_id` | string | Yes | Email ID | | `pass_code` | string | Yes | Password/Validation code depending on the login_type| | `login_type` | string | Yes | login type 1 for password 2 for validation code| |`app_id` | string | Yes | App ID | **Field Description** * `email_id` – Registered email address of the user * `pass_code` – password or activation code (this is password if it is 1 and 2 it is validation code) * `app_id` - App ID which is a 13 digit numeric value * `login_type` – Login type * `1` → Password-based login * `2` → Activation code (OTP)–based login --- ### **Behavior Notes** * When `login_type = 2`, password validation is bypassed. * OTP-based login requires a prior call to ` /auth-service/send/sign/in/validation/code`. * If the required credentials for the selected mode are missing or invalid, authentication fails. --- ### **Successful Response** On successful authentication, the user is signed in and a success response is returned as per the authentication flow. --- ### **Error Response** The API returns an error response if: * The email ID is not registered * The password is incorrect (`login_type = 1 `) * The activation code is missing, invalid, or expired (`login_type = 2`) * The mode value is invalid or unsupported --- ### **One-Line Summary** > Signs in a user using an email ID with either password-based or OTP-based authentication, based on the selected mode.
245
252
  * Sign In with email ID
@@ -576,9 +576,6 @@ var DefaultApi = /** @class */ (function (_super) {
576
576
  throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling makeFloorPrivate().');
577
577
  }
578
578
  queryParameters = {};
579
- if (requestParameters['floorId'] != null) {
580
- queryParameters['floor_id'] = requestParameters['floorId'];
581
- }
582
579
  if (requestParameters['userId'] != null) {
583
580
  queryParameters['user_id'] = requestParameters['userId'];
584
581
  }
@@ -596,7 +593,8 @@ var DefaultApi = /** @class */ (function (_super) {
596
593
  }
597
594
  _a.label = 2;
598
595
  case 2:
599
- urlPath = "/api/memory/make/floor/private";
596
+ urlPath = "/api/memory/make/floor/private/{floor_id}";
597
+ urlPath = urlPath.replace("{".concat("floor_id", "}"), encodeURIComponent(String(requestParameters['floorId'])));
600
598
  return [4 /*yield*/, this.request({
601
599
  path: urlPath,
602
600
  method: 'POST',
@@ -648,9 +646,6 @@ var DefaultApi = /** @class */ (function (_super) {
648
646
  throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling makeFloorPublic().');
649
647
  }
650
648
  queryParameters = {};
651
- if (requestParameters['floorId'] != null) {
652
- queryParameters['floor_id'] = requestParameters['floorId'];
653
- }
654
649
  if (requestParameters['userId'] != null) {
655
650
  queryParameters['user_id'] = requestParameters['userId'];
656
651
  }
@@ -668,7 +663,8 @@ var DefaultApi = /** @class */ (function (_super) {
668
663
  }
669
664
  _a.label = 2;
670
665
  case 2:
671
- urlPath = "/api/memory/make/floor/public";
666
+ urlPath = "/api/memory/make/floor/public/{floor_id}";
667
+ urlPath = urlPath.replace("{".concat("floor_id", "}"), encodeURIComponent(String(requestParameters['floorId'])));
672
668
  return [4 /*yield*/, this.request({
673
669
  path: urlPath,
674
670
  method: 'POST',
@@ -785,7 +781,7 @@ var DefaultApi = /** @class */ (function (_super) {
785
781
  */
786
782
  DefaultApi.prototype.renameFloorRaw = function (requestParameters, initOverrides) {
787
783
  return __awaiter(this, void 0, void 0, function () {
788
- var queryParameters, headerParameters, urlPath, response;
784
+ var queryParameters, headerParameters, token, tokenString, urlPath, response;
789
785
  return __generator(this, function (_a) {
790
786
  switch (_a.label) {
791
787
  case 0:
@@ -815,6 +811,16 @@ var DefaultApi = /** @class */ (function (_super) {
815
811
  queryParameters['to'] = requestParameters['to'];
816
812
  }
817
813
  headerParameters = {};
814
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
815
+ token = this.configuration.accessToken;
816
+ return [4 /*yield*/, token("bearer", [])];
817
+ case 1:
818
+ tokenString = _a.sent();
819
+ if (tokenString) {
820
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
821
+ }
822
+ _a.label = 2;
823
+ case 2:
818
824
  urlPath = "/api/memory/change/floor/id";
819
825
  return [4 /*yield*/, this.request({
820
826
  path: urlPath,
@@ -822,7 +828,7 @@ var DefaultApi = /** @class */ (function (_super) {
822
828
  headers: headerParameters,
823
829
  query: queryParameters,
824
830
  }, initOverrides)];
825
- case 1:
831
+ case 3:
826
832
  response = _a.sent();
827
833
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetFloorInformation200ResponseFromJSON)(jsonValue); })];
828
834
  }
@@ -990,16 +996,15 @@ var DefaultApi = /** @class */ (function (_super) {
990
996
  */
991
997
  DefaultApi.prototype.sendValidationCodeRaw = function (requestParameters, initOverrides) {
992
998
  return __awaiter(this, void 0, void 0, function () {
993
- var queryParameters, headerParameters, token, tokenString, urlPath, response;
999
+ var queryParameters, headerParameters, token, tokenString, consumes, canConsumeForm, formParams, useForm, urlPath, response;
994
1000
  return __generator(this, function (_a) {
995
1001
  switch (_a.label) {
996
1002
  case 0:
997
- if (requestParameters['sendValidationCodeRequest'] == null) {
998
- throw new runtime.RequiredError('sendValidationCodeRequest', 'Required parameter "sendValidationCodeRequest" was null or undefined when calling sendValidationCode().');
1003
+ if (requestParameters['mode'] == null) {
1004
+ throw new runtime.RequiredError('mode', 'Required parameter "mode" was null or undefined when calling sendValidationCode().');
999
1005
  }
1000
1006
  queryParameters = {};
1001
1007
  headerParameters = {};
1002
- headerParameters['Content-Type'] = 'application/json';
1003
1008
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1004
1009
  token = this.configuration.accessToken;
1005
1010
  return [4 /*yield*/, token("bearer", [])];
@@ -1010,13 +1015,39 @@ var DefaultApi = /** @class */ (function (_super) {
1010
1015
  }
1011
1016
  _a.label = 2;
1012
1017
  case 2:
1018
+ consumes = [
1019
+ { contentType: 'multipart/form-data' },
1020
+ ];
1021
+ canConsumeForm = runtime.canConsumeForm(consumes);
1022
+ useForm = false;
1023
+ if (useForm) {
1024
+ formParams = new FormData();
1025
+ }
1026
+ else {
1027
+ formParams = new URLSearchParams();
1028
+ }
1029
+ if (requestParameters['userId'] != null) {
1030
+ formParams.append('user_id', requestParameters['userId']);
1031
+ }
1032
+ if (requestParameters['mobileNumber'] != null) {
1033
+ formParams.append('mobile_number', requestParameters['mobileNumber']);
1034
+ }
1035
+ if (requestParameters['mode'] != null) {
1036
+ formParams.append('mode', requestParameters['mode']);
1037
+ }
1038
+ if (requestParameters['emailId'] != null) {
1039
+ formParams.append('email_id', requestParameters['emailId']);
1040
+ }
1041
+ if (requestParameters['appId'] != null) {
1042
+ formParams.append('app_id', requestParameters['appId']);
1043
+ }
1013
1044
  urlPath = "/auth-service/send/validation/code";
1014
1045
  return [4 /*yield*/, this.request({
1015
1046
  path: urlPath,
1016
1047
  method: 'POST',
1017
1048
  headers: headerParameters,
1018
1049
  query: queryParameters,
1019
- body: (0, index_1.SendValidationCodeRequestToJSON)(requestParameters['sendValidationCodeRequest']),
1050
+ body: formParams,
1020
1051
  }, initOverrides)];
1021
1052
  case 3:
1022
1053
  response = _a.sent();
@@ -1136,16 +1167,21 @@ var DefaultApi = /** @class */ (function (_super) {
1136
1167
  */
1137
1168
  DefaultApi.prototype.signInWithMobileNumberRaw = function (requestParameters, initOverrides) {
1138
1169
  return __awaiter(this, void 0, void 0, function () {
1139
- var queryParameters, headerParameters, token, tokenString, urlPath, response;
1170
+ var queryParameters, headerParameters, token, tokenString, consumes, canConsumeForm, formParams, useForm, urlPath, response;
1140
1171
  return __generator(this, function (_a) {
1141
1172
  switch (_a.label) {
1142
1173
  case 0:
1143
- if (requestParameters['body'] == null) {
1144
- throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling signInWithMobileNumber().');
1174
+ if (requestParameters['mobileNumber'] == null) {
1175
+ throw new runtime.RequiredError('mobileNumber', 'Required parameter "mobileNumber" was null or undefined when calling signInWithMobileNumber().');
1176
+ }
1177
+ if (requestParameters['passCode'] == null) {
1178
+ throw new runtime.RequiredError('passCode', 'Required parameter "passCode" was null or undefined when calling signInWithMobileNumber().');
1179
+ }
1180
+ if (requestParameters['loginType'] == null) {
1181
+ throw new runtime.RequiredError('loginType', 'Required parameter "loginType" was null or undefined when calling signInWithMobileNumber().');
1145
1182
  }
1146
1183
  queryParameters = {};
1147
1184
  headerParameters = {};
1148
- headerParameters['Content-Type'] = 'application/json';
1149
1185
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1150
1186
  token = this.configuration.accessToken;
1151
1187
  return [4 /*yield*/, token("bearer", [])];
@@ -1156,13 +1192,36 @@ var DefaultApi = /** @class */ (function (_super) {
1156
1192
  }
1157
1193
  _a.label = 2;
1158
1194
  case 2:
1195
+ consumes = [
1196
+ { contentType: 'multipart/form-data' },
1197
+ ];
1198
+ canConsumeForm = runtime.canConsumeForm(consumes);
1199
+ useForm = false;
1200
+ if (useForm) {
1201
+ formParams = new FormData();
1202
+ }
1203
+ else {
1204
+ formParams = new URLSearchParams();
1205
+ }
1206
+ if (requestParameters['mobileNumber'] != null) {
1207
+ formParams.append('mobile_number', requestParameters['mobileNumber']);
1208
+ }
1209
+ if (requestParameters['passCode'] != null) {
1210
+ formParams.append('pass_code', requestParameters['passCode']);
1211
+ }
1212
+ if (requestParameters['loginType'] != null) {
1213
+ formParams.append('login_type', requestParameters['loginType']);
1214
+ }
1215
+ if (requestParameters['appId'] != null) {
1216
+ formParams.append('app_id', requestParameters['appId']);
1217
+ }
1159
1218
  urlPath = "/auth-service/sign/in/with/mobile/number";
1160
1219
  return [4 /*yield*/, this.request({
1161
1220
  path: urlPath,
1162
1221
  method: 'POST',
1163
1222
  headers: headerParameters,
1164
1223
  query: queryParameters,
1165
- body: requestParameters['body'],
1224
+ body: formParams,
1166
1225
  }, initOverrides)];
1167
1226
  case 3:
1168
1227
  response = _a.sent();
@@ -26,12 +26,12 @@ export interface EditFloorRequest {
26
26
  */
27
27
  export declare class EditFloorApi extends runtime.BaseAPI {
28
28
  /**
29
- * This API updates an existing floor’s profile metadata using **multipart form data**. A floor **can be edited only by its owner**. If the authenticated user is **not the owner of the floor**, the request will be rejected, even if the user is a member or follower of the floor. The API allows the floor owner to update: * Floor **title** * Floor **details/description** * Floor **logo/avatar image** After a successful update, the API returns the **latest floor object**, including the updated avatar and the current list of blocks associated with the floor. --- ## Authorization Rules (Critical) * The caller **must be authenticated** * The caller **must be the owner of the floor** * Members, followers, or pod consumers **cannot** edit the floor * Ownership is validated internally using the authenticated user context > **Ownership is mandatory. There are no partial permissions for this API.** --- ## Content-Type `multipart/form-data` --- ## Request Body (Multipart Form Data) ### Form Fields | Field Name | Type | Required | Description | | ---------- | ------ | ------------ | ---------------------------------------- | | `fid` | String | Recommended* | Immutable internal floor ID | | `floor_id` | String | Optional* | Public / human-readable floor identifier | | `title` | String | Optional | New floor title | | `details` | String | Optional | New floor description | | `logo` | File | Optional | New floor logo image (PNG/JPG/WebP) | * At least **one floor identifier** (`fid` or `floor_id`) must be provided. **Best practice:** Use `fid` as the primary identifier. --- ## Update Rules * At least one of `title`, `details`, or `logo` must be present * Missing update fields result in a validation error * If `logo` is provided, the previous logo is replaced --- ## Response Format `application/json` --- ## Sample Success Response ```json { \"floor_id\": \"my_floor\", \"title\": \"daughter ouch upon yummy clamor\", \"details\": \"nostrud occaecat incididunt dolor adipisicing\", \"fid\": \"86\", \"blocks\": [ { \"bid\": \"83\", \"type\": \"pariatur\", \"title\": \"wherever demobilise acidly refute\" } ], \"avatar\": { \"url\": \"https://legal-availability.name/\", \"id\": \"98\" } } ``` --- ## Error Responses (Authorization Focus) ### Not Floor Owner ```json { \"status\": \"ERROR\", \"message\": \"Only the floor owner can edit this floor\" } ``` ### Floor Not Found ```json { \"status\": \"ERROR\", \"message\": \"Floor not found\" } ``` ### No Update Fields ```json { \"status\": \"ERROR\", \"message\": \"No update fields provided\" } ``` --- ## Notes * This API is **owner-only by design** * Pods and developer tools must operate using **owner credentials** * Blocks are returned for convenience but are **not editable through this API** ---
29
+ * This API updates an existing floor’s profile metadata using **multipart form data**. A floor **can be edited only by its owner**. If the authenticated user is **not the owner of the floor**, the request will be rejected, even if the user is a member or follower of the floor. The API allows the floor owner to update: * Floor **title** * Floor **details/description** * Floor **logo/avatar image** After a successful update, the API returns the **latest floor object**, including the updated avatar and the current list of blocks associated with the floor. --- ## Authorization Rules (Critical) * The caller **must be authenticated** * The caller **must be the owner of the floor** * Members, followers, or pod consumers **cannot** edit the floor * Ownership is validated internally using the authenticated user context > **Ownership is mandatory. There are no partial permissions for this API.** --- ## Content-Type `multipart/form-data` --- ## Request Body (Multipart Form Data) ### Form Fields | Field Name | Type | Required | Description | | ---------- | ------ | ------------ | ---------------------------------------- | | `floor_id` | String | Optional* | Public / human-readable floor identifier | | `title` | String | Optional | New floor title | | `details` | String | Optional | New floor description | | `logo` | File | Optional | New floor logo image (PNG/JPG/WebP) | * At least **one floor identifier** (`fid` or `floor_id`) must be provided. **Best practice:** Use `fid` as the primary identifier. --- ## Update Rules * At least one of `title`, `details`, or `logo` must be present * Missing update fields result in a validation error * If `logo` is provided, the previous logo is replaced --- ## Response Format `application/json` --- ## Sample Success Response ```json { \"floor_id\": \"my_floor\", \"title\": \"daughter ouch upon yummy clamor\", \"details\": \"nostrud occaecat incididunt dolor adipisicing\", \"fid\": \"86\", \"blocks\": [ { \"bid\": \"83\", \"type\": \"pariatur\", \"title\": \"wherever demobilise acidly refute\" } ], \"avatar\": { \"url\": \"https://legal-availability.name/\", \"id\": \"98\" } } ``` --- ## Error Responses (Authorization Focus) ### Not Floor Owner ```json { \"status\": \"ERROR\", \"message\": \"Only the floor owner can edit this floor\" } ``` ### Floor Not Found ```json { \"status\": \"ERROR\", \"message\": \"Floor not found\" } ``` ### No Update Fields ```json { \"status\": \"ERROR\", \"message\": \"No update fields provided\" } ``` --- ## Notes * This API is **owner-only by design** * Pods and developer tools must operate using **owner credentials** * Blocks are returned for convenience but are **not editable through this API** ---
30
30
  * Edit floor
31
31
  */
32
32
  editFloorRaw(requestParameters: EditFloorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetFloorInformation200Response>>;
33
33
  /**
34
- * This API updates an existing floor’s profile metadata using **multipart form data**. A floor **can be edited only by its owner**. If the authenticated user is **not the owner of the floor**, the request will be rejected, even if the user is a member or follower of the floor. The API allows the floor owner to update: * Floor **title** * Floor **details/description** * Floor **logo/avatar image** After a successful update, the API returns the **latest floor object**, including the updated avatar and the current list of blocks associated with the floor. --- ## Authorization Rules (Critical) * The caller **must be authenticated** * The caller **must be the owner of the floor** * Members, followers, or pod consumers **cannot** edit the floor * Ownership is validated internally using the authenticated user context > **Ownership is mandatory. There are no partial permissions for this API.** --- ## Content-Type `multipart/form-data` --- ## Request Body (Multipart Form Data) ### Form Fields | Field Name | Type | Required | Description | | ---------- | ------ | ------------ | ---------------------------------------- | | `fid` | String | Recommended* | Immutable internal floor ID | | `floor_id` | String | Optional* | Public / human-readable floor identifier | | `title` | String | Optional | New floor title | | `details` | String | Optional | New floor description | | `logo` | File | Optional | New floor logo image (PNG/JPG/WebP) | * At least **one floor identifier** (`fid` or `floor_id`) must be provided. **Best practice:** Use `fid` as the primary identifier. --- ## Update Rules * At least one of `title`, `details`, or `logo` must be present * Missing update fields result in a validation error * If `logo` is provided, the previous logo is replaced --- ## Response Format `application/json` --- ## Sample Success Response ```json { \"floor_id\": \"my_floor\", \"title\": \"daughter ouch upon yummy clamor\", \"details\": \"nostrud occaecat incididunt dolor adipisicing\", \"fid\": \"86\", \"blocks\": [ { \"bid\": \"83\", \"type\": \"pariatur\", \"title\": \"wherever demobilise acidly refute\" } ], \"avatar\": { \"url\": \"https://legal-availability.name/\", \"id\": \"98\" } } ``` --- ## Error Responses (Authorization Focus) ### Not Floor Owner ```json { \"status\": \"ERROR\", \"message\": \"Only the floor owner can edit this floor\" } ``` ### Floor Not Found ```json { \"status\": \"ERROR\", \"message\": \"Floor not found\" } ``` ### No Update Fields ```json { \"status\": \"ERROR\", \"message\": \"No update fields provided\" } ``` --- ## Notes * This API is **owner-only by design** * Pods and developer tools must operate using **owner credentials** * Blocks are returned for convenience but are **not editable through this API** ---
34
+ * This API updates an existing floor’s profile metadata using **multipart form data**. A floor **can be edited only by its owner**. If the authenticated user is **not the owner of the floor**, the request will be rejected, even if the user is a member or follower of the floor. The API allows the floor owner to update: * Floor **title** * Floor **details/description** * Floor **logo/avatar image** After a successful update, the API returns the **latest floor object**, including the updated avatar and the current list of blocks associated with the floor. --- ## Authorization Rules (Critical) * The caller **must be authenticated** * The caller **must be the owner of the floor** * Members, followers, or pod consumers **cannot** edit the floor * Ownership is validated internally using the authenticated user context > **Ownership is mandatory. There are no partial permissions for this API.** --- ## Content-Type `multipart/form-data` --- ## Request Body (Multipart Form Data) ### Form Fields | Field Name | Type | Required | Description | | ---------- | ------ | ------------ | ---------------------------------------- | | `floor_id` | String | Optional* | Public / human-readable floor identifier | | `title` | String | Optional | New floor title | | `details` | String | Optional | New floor description | | `logo` | File | Optional | New floor logo image (PNG/JPG/WebP) | * At least **one floor identifier** (`fid` or `floor_id`) must be provided. **Best practice:** Use `fid` as the primary identifier. --- ## Update Rules * At least one of `title`, `details`, or `logo` must be present * Missing update fields result in a validation error * If `logo` is provided, the previous logo is replaced --- ## Response Format `application/json` --- ## Sample Success Response ```json { \"floor_id\": \"my_floor\", \"title\": \"daughter ouch upon yummy clamor\", \"details\": \"nostrud occaecat incididunt dolor adipisicing\", \"fid\": \"86\", \"blocks\": [ { \"bid\": \"83\", \"type\": \"pariatur\", \"title\": \"wherever demobilise acidly refute\" } ], \"avatar\": { \"url\": \"https://legal-availability.name/\", \"id\": \"98\" } } ``` --- ## Error Responses (Authorization Focus) ### Not Floor Owner ```json { \"status\": \"ERROR\", \"message\": \"Only the floor owner can edit this floor\" } ``` ### Floor Not Found ```json { \"status\": \"ERROR\", \"message\": \"Floor not found\" } ``` ### No Update Fields ```json { \"status\": \"ERROR\", \"message\": \"No update fields provided\" } ``` --- ## Notes * This API is **owner-only by design** * Pods and developer tools must operate using **owner credentials** * Blocks are returned for convenience but are **not editable through this API** ---
35
35
  * Edit floor
36
36
  */
37
37
  editFloor(requestParameters: EditFloorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetFloorInformation200Response>;
@@ -78,7 +78,7 @@ var EditFloorApi = /** @class */ (function (_super) {
78
78
  return _super !== null && _super.apply(this, arguments) || this;
79
79
  }
80
80
  /**
81
- * This API updates an existing floor’s profile metadata using **multipart form data**. A floor **can be edited only by its owner**. If the authenticated user is **not the owner of the floor**, the request will be rejected, even if the user is a member or follower of the floor. The API allows the floor owner to update: * Floor **title** * Floor **details/description** * Floor **logo/avatar image** After a successful update, the API returns the **latest floor object**, including the updated avatar and the current list of blocks associated with the floor. --- ## Authorization Rules (Critical) * The caller **must be authenticated** * The caller **must be the owner of the floor** * Members, followers, or pod consumers **cannot** edit the floor * Ownership is validated internally using the authenticated user context > **Ownership is mandatory. There are no partial permissions for this API.** --- ## Content-Type `multipart/form-data` --- ## Request Body (Multipart Form Data) ### Form Fields | Field Name | Type | Required | Description | | ---------- | ------ | ------------ | ---------------------------------------- | | `fid` | String | Recommended* | Immutable internal floor ID | | `floor_id` | String | Optional* | Public / human-readable floor identifier | | `title` | String | Optional | New floor title | | `details` | String | Optional | New floor description | | `logo` | File | Optional | New floor logo image (PNG/JPG/WebP) | * At least **one floor identifier** (`fid` or `floor_id`) must be provided. **Best practice:** Use `fid` as the primary identifier. --- ## Update Rules * At least one of `title`, `details`, or `logo` must be present * Missing update fields result in a validation error * If `logo` is provided, the previous logo is replaced --- ## Response Format `application/json` --- ## Sample Success Response ```json { \"floor_id\": \"my_floor\", \"title\": \"daughter ouch upon yummy clamor\", \"details\": \"nostrud occaecat incididunt dolor adipisicing\", \"fid\": \"86\", \"blocks\": [ { \"bid\": \"83\", \"type\": \"pariatur\", \"title\": \"wherever demobilise acidly refute\" } ], \"avatar\": { \"url\": \"https://legal-availability.name/\", \"id\": \"98\" } } ``` --- ## Error Responses (Authorization Focus) ### Not Floor Owner ```json { \"status\": \"ERROR\", \"message\": \"Only the floor owner can edit this floor\" } ``` ### Floor Not Found ```json { \"status\": \"ERROR\", \"message\": \"Floor not found\" } ``` ### No Update Fields ```json { \"status\": \"ERROR\", \"message\": \"No update fields provided\" } ``` --- ## Notes * This API is **owner-only by design** * Pods and developer tools must operate using **owner credentials** * Blocks are returned for convenience but are **not editable through this API** ---
81
+ * This API updates an existing floor’s profile metadata using **multipart form data**. A floor **can be edited only by its owner**. If the authenticated user is **not the owner of the floor**, the request will be rejected, even if the user is a member or follower of the floor. The API allows the floor owner to update: * Floor **title** * Floor **details/description** * Floor **logo/avatar image** After a successful update, the API returns the **latest floor object**, including the updated avatar and the current list of blocks associated with the floor. --- ## Authorization Rules (Critical) * The caller **must be authenticated** * The caller **must be the owner of the floor** * Members, followers, or pod consumers **cannot** edit the floor * Ownership is validated internally using the authenticated user context > **Ownership is mandatory. There are no partial permissions for this API.** --- ## Content-Type `multipart/form-data` --- ## Request Body (Multipart Form Data) ### Form Fields | Field Name | Type | Required | Description | | ---------- | ------ | ------------ | ---------------------------------------- | | `floor_id` | String | Optional* | Public / human-readable floor identifier | | `title` | String | Optional | New floor title | | `details` | String | Optional | New floor description | | `logo` | File | Optional | New floor logo image (PNG/JPG/WebP) | * At least **one floor identifier** (`fid` or `floor_id`) must be provided. **Best practice:** Use `fid` as the primary identifier. --- ## Update Rules * At least one of `title`, `details`, or `logo` must be present * Missing update fields result in a validation error * If `logo` is provided, the previous logo is replaced --- ## Response Format `application/json` --- ## Sample Success Response ```json { \"floor_id\": \"my_floor\", \"title\": \"daughter ouch upon yummy clamor\", \"details\": \"nostrud occaecat incididunt dolor adipisicing\", \"fid\": \"86\", \"blocks\": [ { \"bid\": \"83\", \"type\": \"pariatur\", \"title\": \"wherever demobilise acidly refute\" } ], \"avatar\": { \"url\": \"https://legal-availability.name/\", \"id\": \"98\" } } ``` --- ## Error Responses (Authorization Focus) ### Not Floor Owner ```json { \"status\": \"ERROR\", \"message\": \"Only the floor owner can edit this floor\" } ``` ### Floor Not Found ```json { \"status\": \"ERROR\", \"message\": \"Floor not found\" } ``` ### No Update Fields ```json { \"status\": \"ERROR\", \"message\": \"No update fields provided\" } ``` --- ## Notes * This API is **owner-only by design** * Pods and developer tools must operate using **owner credentials** * Blocks are returned for convenience but are **not editable through this API** ---
82
82
  * Edit floor
83
83
  */
84
84
  EditFloorApi.prototype.editFloorRaw = function (requestParameters, initOverrides) {
@@ -153,7 +153,7 @@ var EditFloorApi = /** @class */ (function (_super) {
153
153
  });
154
154
  };
155
155
  /**
156
- * This API updates an existing floor’s profile metadata using **multipart form data**. A floor **can be edited only by its owner**. If the authenticated user is **not the owner of the floor**, the request will be rejected, even if the user is a member or follower of the floor. The API allows the floor owner to update: * Floor **title** * Floor **details/description** * Floor **logo/avatar image** After a successful update, the API returns the **latest floor object**, including the updated avatar and the current list of blocks associated with the floor. --- ## Authorization Rules (Critical) * The caller **must be authenticated** * The caller **must be the owner of the floor** * Members, followers, or pod consumers **cannot** edit the floor * Ownership is validated internally using the authenticated user context > **Ownership is mandatory. There are no partial permissions for this API.** --- ## Content-Type `multipart/form-data` --- ## Request Body (Multipart Form Data) ### Form Fields | Field Name | Type | Required | Description | | ---------- | ------ | ------------ | ---------------------------------------- | | `fid` | String | Recommended* | Immutable internal floor ID | | `floor_id` | String | Optional* | Public / human-readable floor identifier | | `title` | String | Optional | New floor title | | `details` | String | Optional | New floor description | | `logo` | File | Optional | New floor logo image (PNG/JPG/WebP) | * At least **one floor identifier** (`fid` or `floor_id`) must be provided. **Best practice:** Use `fid` as the primary identifier. --- ## Update Rules * At least one of `title`, `details`, or `logo` must be present * Missing update fields result in a validation error * If `logo` is provided, the previous logo is replaced --- ## Response Format `application/json` --- ## Sample Success Response ```json { \"floor_id\": \"my_floor\", \"title\": \"daughter ouch upon yummy clamor\", \"details\": \"nostrud occaecat incididunt dolor adipisicing\", \"fid\": \"86\", \"blocks\": [ { \"bid\": \"83\", \"type\": \"pariatur\", \"title\": \"wherever demobilise acidly refute\" } ], \"avatar\": { \"url\": \"https://legal-availability.name/\", \"id\": \"98\" } } ``` --- ## Error Responses (Authorization Focus) ### Not Floor Owner ```json { \"status\": \"ERROR\", \"message\": \"Only the floor owner can edit this floor\" } ``` ### Floor Not Found ```json { \"status\": \"ERROR\", \"message\": \"Floor not found\" } ``` ### No Update Fields ```json { \"status\": \"ERROR\", \"message\": \"No update fields provided\" } ``` --- ## Notes * This API is **owner-only by design** * Pods and developer tools must operate using **owner credentials** * Blocks are returned for convenience but are **not editable through this API** ---
156
+ * This API updates an existing floor’s profile metadata using **multipart form data**. A floor **can be edited only by its owner**. If the authenticated user is **not the owner of the floor**, the request will be rejected, even if the user is a member or follower of the floor. The API allows the floor owner to update: * Floor **title** * Floor **details/description** * Floor **logo/avatar image** After a successful update, the API returns the **latest floor object**, including the updated avatar and the current list of blocks associated with the floor. --- ## Authorization Rules (Critical) * The caller **must be authenticated** * The caller **must be the owner of the floor** * Members, followers, or pod consumers **cannot** edit the floor * Ownership is validated internally using the authenticated user context > **Ownership is mandatory. There are no partial permissions for this API.** --- ## Content-Type `multipart/form-data` --- ## Request Body (Multipart Form Data) ### Form Fields | Field Name | Type | Required | Description | | ---------- | ------ | ------------ | ---------------------------------------- | | `floor_id` | String | Optional* | Public / human-readable floor identifier | | `title` | String | Optional | New floor title | | `details` | String | Optional | New floor description | | `logo` | File | Optional | New floor logo image (PNG/JPG/WebP) | * At least **one floor identifier** (`fid` or `floor_id`) must be provided. **Best practice:** Use `fid` as the primary identifier. --- ## Update Rules * At least one of `title`, `details`, or `logo` must be present * Missing update fields result in a validation error * If `logo` is provided, the previous logo is replaced --- ## Response Format `application/json` --- ## Sample Success Response ```json { \"floor_id\": \"my_floor\", \"title\": \"daughter ouch upon yummy clamor\", \"details\": \"nostrud occaecat incididunt dolor adipisicing\", \"fid\": \"86\", \"blocks\": [ { \"bid\": \"83\", \"type\": \"pariatur\", \"title\": \"wherever demobilise acidly refute\" } ], \"avatar\": { \"url\": \"https://legal-availability.name/\", \"id\": \"98\" } } ``` --- ## Error Responses (Authorization Focus) ### Not Floor Owner ```json { \"status\": \"ERROR\", \"message\": \"Only the floor owner can edit this floor\" } ``` ### Floor Not Found ```json { \"status\": \"ERROR\", \"message\": \"Floor not found\" } ``` ### No Update Fields ```json { \"status\": \"ERROR\", \"message\": \"No update fields provided\" } ``` --- ## Notes * This API is **owner-only by design** * Pods and developer tools must operate using **owner credentials** * Blocks are returned for convenience but are **not editable through this API** ---
157
157
  * Edit floor
158
158
  */
159
159
  EditFloorApi.prototype.editFloor = function (requestParameters, initOverrides) {
@@ -16,7 +16,8 @@ import type { EventResponse } from '../models/index';
16
16
  export interface EventRequest {
17
17
  inputInfo: string;
18
18
  appId: string;
19
- files?: Blob;
19
+ userId: string;
20
+ files?: Array<string>;
20
21
  }
21
22
  /**
22
23
  *
@@ -93,6 +93,9 @@ var EventApi = /** @class */ (function (_super) {
93
93
  if (requestParameters['appId'] == null) {
94
94
  throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling event().');
95
95
  }
96
+ if (requestParameters['userId'] == null) {
97
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling event().');
98
+ }
96
99
  queryParameters = {};
97
100
  headerParameters = {};
98
101
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
@@ -110,8 +113,6 @@ var EventApi = /** @class */ (function (_super) {
110
113
  ];
111
114
  canConsumeForm = runtime.canConsumeForm(consumes);
112
115
  useForm = false;
113
- // use FormData to transmit files using content-type "multipart/form-data"
114
- useForm = canConsumeForm;
115
116
  if (useForm) {
116
117
  formParams = new FormData();
117
118
  }
@@ -119,7 +120,7 @@ var EventApi = /** @class */ (function (_super) {
119
120
  formParams = new URLSearchParams();
120
121
  }
121
122
  if (requestParameters['files'] != null) {
122
- formParams.append('files', requestParameters['files']);
123
+ formParams.append('files', requestParameters['files'].join(runtime.COLLECTION_FORMATS["csv"]));
123
124
  }
124
125
  if (requestParameters['inputInfo'] != null) {
125
126
  formParams.append('input_info', requestParameters['inputInfo']);
@@ -127,6 +128,9 @@ var EventApi = /** @class */ (function (_super) {
127
128
  if (requestParameters['appId'] != null) {
128
129
  formParams.append('app_id', requestParameters['appId']);
129
130
  }
131
+ if (requestParameters['userId'] != null) {
132
+ formParams.append('user_id', requestParameters['userId']);
133
+ }
130
134
  urlPath = "/api/memory/events";
131
135
  return [4 /*yield*/, this.request({
132
136
  path: urlPath,
@@ -29,6 +29,12 @@ export interface SignUp200Response {
29
29
  * @memberof SignUp200Response
30
30
  */
31
31
  success: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof SignUp200Response
36
+ */
37
+ name?: string;
32
38
  }
33
39
  /**
34
40
  * Check if a given object implements the SignUp200Response interface.
@@ -40,6 +40,7 @@ function SignUp200ResponseFromJSONTyped(json, ignoreDiscriminator) {
40
40
  return {
41
41
  'userId': json['user_id'],
42
42
  'success': json['success'],
43
+ 'name': json['name'] == null ? undefined : json['name'],
43
44
  };
44
45
  }
45
46
  function SignUp200ResponseToJSON(json) {
@@ -53,5 +54,6 @@ function SignUp200ResponseToJSONTyped(value, ignoreDiscriminator) {
53
54
  return {
54
55
  'user_id': value['userId'],
55
56
  'success': value['success'],
57
+ 'name': value['name'],
56
58
  };
57
59
  }
@@ -38,7 +38,6 @@ export * from './ResetPassword200Response';
38
38
  export * from './ResetPassword400Response';
39
39
  export * from './SendSignInValidationCode200Response';
40
40
  export * from './SendValidationCode200Response';
41
- export * from './SendValidationCodeRequest';
42
41
  export * from './SignInWithEmail200Response';
43
42
  export * from './SignInWithEmail200ResponsePodInfo';
44
43
  export * from './SignInWithEmail200ResponseProfile';
@@ -56,7 +56,6 @@ __exportStar(require("./ResetPassword200Response"), exports);
56
56
  __exportStar(require("./ResetPassword400Response"), exports);
57
57
  __exportStar(require("./SendSignInValidationCode200Response"), exports);
58
58
  __exportStar(require("./SendValidationCode200Response"), exports);
59
- __exportStar(require("./SendValidationCodeRequest"), exports);
60
59
  __exportStar(require("./SignInWithEmail200Response"), exports);
61
60
  __exportStar(require("./SignInWithEmail200ResponsePodInfo"), exports);
62
61
  __exportStar(require("./SignInWithEmail200ResponseProfile"), exports);
package/dist/runtime.js CHANGED
@@ -82,7 +82,7 @@ exports.querystring = querystring;
82
82
  exports.exists = exists;
83
83
  exports.mapValues = mapValues;
84
84
  exports.canConsumeForm = canConsumeForm;
85
- exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
85
+ exports.BASE_PATH = "https://appfloor.in".replace(/\/+$/, "");
86
86
  var Configuration = /** @class */ (function () {
87
87
  function Configuration(configuration) {
88
88
  if (configuration === void 0) { configuration = {}; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfloor/floor-memory-sdk-ts",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "TypeScript SDK for xFloor Memory APIs (Memory + Registration).",
5
5
  "author": "xFloor",
6
6
  "repository": {
@@ -1,52 +0,0 @@
1
- /**
2
- * Floor Memory
3
- * The set APIs are used to develop Floor pds which can be used as their personal assistants. This set of APIs are divided into two parts.
4
- * - Memory and
5
- * - Registration. The developer has two ways of using the APIs for the app development. Developer can choose to the Registration APIs for using the existing xfloor infracture or can implement custom Registration process. In the case of custom registration process, the developer is bound to provide proper authentication mechanisms and then send the user information to xlfoor.
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- * Contact: contact@ipomo.in
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- /**
15
- *
16
- * @export
17
- * @interface SendValidationCodeRequest
18
- */
19
- export interface SendValidationCodeRequest {
20
- /**
21
- * user id
22
- * @type {string}
23
- * @memberof SendValidationCodeRequest
24
- */
25
- userId?: string;
26
- /**
27
- * Mode - 0 for getting activation code to change email or mobile number, 1 for password change
28
- * @type {string}
29
- * @memberof SendValidationCodeRequest
30
- */
31
- mode: string;
32
- /**
33
- *
34
- * @type {string}
35
- * @memberof SendValidationCodeRequest
36
- */
37
- mobilesNumber?: string;
38
- /**
39
- *
40
- * @type {string}
41
- * @memberof SendValidationCodeRequest
42
- */
43
- emailId?: string;
44
- }
45
- /**
46
- * Check if a given object implements the SendValidationCodeRequest interface.
47
- */
48
- export declare function instanceOfSendValidationCodeRequest(value: object): value is SendValidationCodeRequest;
49
- export declare function SendValidationCodeRequestFromJSON(json: any): SendValidationCodeRequest;
50
- export declare function SendValidationCodeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendValidationCodeRequest;
51
- export declare function SendValidationCodeRequestToJSON(json: any): SendValidationCodeRequest;
52
- export declare function SendValidationCodeRequestToJSONTyped(value?: SendValidationCodeRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,59 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Floor Memory
6
- * The set APIs are used to develop Floor pds which can be used as their personal assistants. This set of APIs are divided into two parts.
7
- * - Memory and
8
- * - Registration. The developer has two ways of using the APIs for the app development. Developer can choose to the Registration APIs for using the existing xfloor infracture or can implement custom Registration process. In the case of custom registration process, the developer is bound to provide proper authentication mechanisms and then send the user information to xlfoor.
9
- *
10
- * The version of the OpenAPI document: 1.0.0
11
- * Contact: contact@ipomo.in
12
- *
13
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
14
- * https://openapi-generator.tech
15
- * Do not edit the class manually.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.instanceOfSendValidationCodeRequest = instanceOfSendValidationCodeRequest;
19
- exports.SendValidationCodeRequestFromJSON = SendValidationCodeRequestFromJSON;
20
- exports.SendValidationCodeRequestFromJSONTyped = SendValidationCodeRequestFromJSONTyped;
21
- exports.SendValidationCodeRequestToJSON = SendValidationCodeRequestToJSON;
22
- exports.SendValidationCodeRequestToJSONTyped = SendValidationCodeRequestToJSONTyped;
23
- /**
24
- * Check if a given object implements the SendValidationCodeRequest interface.
25
- */
26
- function instanceOfSendValidationCodeRequest(value) {
27
- if (!('mode' in value) || value['mode'] === undefined)
28
- return false;
29
- return true;
30
- }
31
- function SendValidationCodeRequestFromJSON(json) {
32
- return SendValidationCodeRequestFromJSONTyped(json, false);
33
- }
34
- function SendValidationCodeRequestFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- 'userId': json['user_id'] == null ? undefined : json['user_id'],
40
- 'mode': json['mode'],
41
- 'mobilesNumber': json['mobiles_number'] == null ? undefined : json['mobiles_number'],
42
- 'emailId': json['email_id'] == null ? undefined : json['email_id'],
43
- };
44
- }
45
- function SendValidationCodeRequestToJSON(json) {
46
- return SendValidationCodeRequestToJSONTyped(json, false);
47
- }
48
- function SendValidationCodeRequestToJSONTyped(value, ignoreDiscriminator) {
49
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
- if (value == null) {
51
- return value;
52
- }
53
- return {
54
- 'user_id': value['userId'],
55
- 'mode': value['mode'],
56
- 'mobiles_number': value['mobilesNumber'],
57
- 'email_id': value['emailId'],
58
- };
59
- }