@gofynd/fdk-client-javascript 3.3.6 → 3.4.1

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 (54) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
  4. package/sdk/application/Catalog/CatalogApplicationClient.js +24 -5
  5. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -0
  6. package/sdk/application/Logistic/LogisticApplicationClient.js +44 -0
  7. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +115 -47
  8. package/sdk/partner/Logistics/LogisticsPartnerModel.js +67 -35
  9. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +5 -0
  10. package/sdk/partner/Webhook/WebhookPartnerModel.js +2 -0
  11. package/sdk/platform/Cart/CartPlatformModel.d.ts +454 -12
  12. package/sdk/platform/Cart/CartPlatformModel.js +457 -10
  13. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
  14. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +4 -1
  15. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +9 -0
  16. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +4 -0
  17. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +4 -2
  18. package/sdk/platform/Catalog/CatalogPlatformClient.js +16 -3
  19. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +33 -2
  20. package/sdk/platform/Catalog/CatalogPlatformModel.js +17 -2
  21. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +5 -0
  22. package/sdk/platform/Catalog/CatalogPlatformValidator.js +2 -0
  23. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +2 -0
  24. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +2 -0
  25. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +17 -1
  26. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +15 -0
  27. package/sdk/platform/Content/ContentPlatformModel.d.ts +14 -19
  28. package/sdk/platform/Content/ContentPlatformModel.js +6 -20
  29. package/sdk/platform/Order/OrderPlatformModel.d.ts +237 -17
  30. package/sdk/platform/Order/OrderPlatformModel.js +388 -14
  31. package/sdk/platform/Order/OrderPlatformValidator.d.ts +15 -15
  32. package/sdk/platform/Order/OrderPlatformValidator.js +9 -9
  33. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -5
  34. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +4 -3
  35. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +97 -1
  36. package/sdk/platform/Payment/PaymentPlatformModel.js +273 -0
  37. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +124 -1
  38. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +800 -33
  39. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +139 -1
  40. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +125 -0
  41. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +2 -2
  42. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +8 -2
  43. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1033 -113
  44. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +613 -35
  45. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +12 -0
  46. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +5 -0
  47. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +36 -0
  48. package/sdk/platform/User/UserPlatformApplicationClient.js +251 -0
  49. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +38 -1
  50. package/sdk/platform/User/UserPlatformApplicationValidator.js +42 -0
  51. package/sdk/platform/User/UserPlatformModel.d.ts +430 -10
  52. package/sdk/platform/User/UserPlatformModel.js +276 -7
  53. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +10 -0
  54. package/sdk/platform/Webhook/WebhookPlatformModel.js +4 -0
@@ -11,7 +11,14 @@ export = UserPlatformModel;
11
11
  * @property {string} [description] - The description of the attribute.
12
12
  * @property {string} [application_id] - The application ID.
13
13
  * @property {string} [type] - The attribute type.
14
- * @property {boolean} [multi_value] - Whether the attribute supports multiple values.
14
+ * @property {string} [icon] - Optional icon representation for this attribute.
15
+ * Defaults to an empty string.
16
+ * @property {string[]} [ordering_channels] - Ordering Channels where this
17
+ * attribute should be visible.
18
+ * @property {AttributeMaskingProperties} [masking]
19
+ * @property {AttributeRegistrationProperties} [registration]
20
+ * @property {boolean} [is_multi_value] - Indicates if this attribute can accept
21
+ * multiple values.
15
22
  * @property {boolean} [customer_editable] - Whether the attribute is customer-editable.
16
23
  * @property {boolean} [encrypted] - Whether the attribute is encrypted.
17
24
  * @property {boolean} [pinned] - Whether the attribute is pinned.
@@ -30,7 +37,14 @@ export = UserPlatformModel;
30
37
  * @property {string} [description] - The description of the attribute.
31
38
  * @property {string} [application_id] - The application ID.
32
39
  * @property {string} [type] - The attribute type.
33
- * @property {boolean} [multi_value] - Whether the attribute supports multiple values.
40
+ * @property {string} [icon] - Optional icon representation for this attribute.
41
+ * Defaults to an empty string.
42
+ * @property {string[]} [ordering_channels] - Ordering Channels where this
43
+ * attribute should be visible.
44
+ * @property {AttributeMaskingProperties} [masking]
45
+ * @property {AttributeRegistrationProperties} [registration]
46
+ * @property {boolean} [is_multi_value] - Indicates if this attribute can accept
47
+ * multiple values.
34
48
  * @property {boolean} [customer_editable] - Whether the attribute is customer-editable.
35
49
  * @property {boolean} [encrypted] - Whether the attribute is encrypted.
36
50
  * @property {boolean} [pinned] - Whether the attribute is pinned.
@@ -43,22 +57,60 @@ export = UserPlatformModel;
43
57
  * @property {string} [modified_at] - The last modification date of the
44
58
  * attribute definition.
45
59
  */
60
+ /**
61
+ * @typedef AttributeMaskingProperties
62
+ * @property {boolean} [enabled] - Indicates if PII masking is editable for this
63
+ * attribute.
64
+ * @property {string} [type] - Indicates the PII masking options available
65
+ * default or others
66
+ */
67
+ /**
68
+ * @typedef AttributeRegistrationProperties
69
+ * @property {boolean} [enabled] - Indicates if an attribute is editable when
70
+ * customer registers for a storefront.
71
+ * @property {string} [type] - Indicates if this attribute is mandatory or
72
+ * optional when customer registers for a storefront.
73
+ */
46
74
  /**
47
75
  * @typedef UserAttributeDefinitionValidation
48
76
  * @property {string} [type] - The type of validation.
49
77
  * @property {Object} [value] - The validation value.
50
78
  */
79
+ /**
80
+ * @typedef BulkUserAttribute
81
+ * @property {boolean} [success] - This describes the status of the API response
82
+ * @property {UserAttribute[]} [attributes]
83
+ */
51
84
  /**
52
85
  * @typedef UserAttribute
53
86
  * @property {string} [_id] - The unique identifier for the attribute definition.
54
87
  * @property {string} [name] - The name of user attribute definition.
55
88
  * @property {string} [user_id] - The unique identifier for the user.
56
89
  * @property {string} [application_id] - The application ID.
90
+ * @property {string} [user_attribute_definition_id] - The unique id of the
91
+ * attribute definition.
92
+ * @property {string} [created_at] - The time when attribute value is created
93
+ * for a user in ISO format.
94
+ * @property {string} [updated_at] - The time when attribute value is updated
95
+ * for a user in ISO format.
57
96
  * @property {string} [type] - The attribute type.
58
97
  * @property {boolean} [customer_overridden] - Whether the attribute is customer-editable.
59
98
  * @property {Object} [attribute]
60
99
  * @property {string} [updated_by]
61
100
  */
101
+ /**
102
+ * @typedef CreateBulkUserAttribute
103
+ * @property {BulkUserAttributeRequestBody[]} attributes - This is an array of
104
+ * objects containing id of attribute definitions and the respective values to
105
+ * created or updated
106
+ */
107
+ /**
108
+ * @typedef BulkUserAttributeRequestBody
109
+ * @property {string} definition_id - Theis is an unique id of user attribute definition
110
+ * @property {Object} value - Attribute values to be create or updated. Can be a
111
+ * single value or an array of values. Types supported: string, number, array
112
+ * of string, or array of number.
113
+ */
62
114
  /**
63
115
  * @typedef CreateUserAttribute
64
116
  * @property {boolean} [customer_overridden]
@@ -69,8 +121,15 @@ export = UserPlatformModel;
69
121
  * @property {string} [name]
70
122
  * @property {string} [slug]
71
123
  * @property {string} [description]
72
- * @property {string} [type]
73
- * @property {boolean} [multi_value]
124
+ * @property {string} [type] - The attribute type.
125
+ * @property {string} [icon] - Optional icon representation for this attribute.
126
+ * Defaults to an empty string.
127
+ * @property {string[]} [ordering_channels] - Ordering Channels where this
128
+ * attribute should be visible.
129
+ * @property {AttributeMaskingProperties} [masking]
130
+ * @property {AttributeRegistrationProperties} [registration]
131
+ * @property {boolean} [is_multi_value] - Indicates if this attribute can accept
132
+ * multiple values.
74
133
  * @property {boolean} [customer_editable]
75
134
  * @property {boolean} [encrypted]
76
135
  * @property {boolean} [pinned]
@@ -181,6 +240,7 @@ export = UserPlatformModel;
181
240
  /**
182
241
  * @typedef PaginationSchema
183
242
  * @property {number} [size] - The number of items per page.
243
+ * @property {number} [total] - The total number of items across all pages.
184
244
  * @property {number} [item_total] - The total number of items across all pages.
185
245
  * @property {boolean} [has_next] - Indicates whether there are more pages to retrieve.
186
246
  * @property {string} [type] - The type of pagination used (eg Number).
@@ -259,6 +319,76 @@ export = UserPlatformModel;
259
319
  * @property {string} [type]
260
320
  * @property {string} [value]
261
321
  */
322
+ /**
323
+ * @typedef DeleteBulkUserAttribute
324
+ * @property {string[]} [definition_ids] - List of user attribute definition IDs
325
+ * for which the corresponding values should be deleted.
326
+ */
327
+ /**
328
+ * @typedef UserAttributeFilter
329
+ * @property {UserAttributeFilterQuery} [query]
330
+ */
331
+ /**
332
+ * @typedef UserAttributeFilterQuery
333
+ * @property {string} type - Logical condition type to apply between multiple
334
+ * attribute filters.
335
+ * @property {number} limit - Number of results to return per page.
336
+ * @property {number} page - Page number to fetch.
337
+ * @property {string} [email] - Filter users by their exact email address.
338
+ * @property {string} [phone] - Filter users by their exact phone number.
339
+ * @property {string[]} [definition_ids] - List of user attribute definition IDs
340
+ * to fetch attributes values available for each user.
341
+ * @property {UserAttributeFilterRequestConditions[]} conditions - List of
342
+ * filtering conditions to apply on user attributes.
343
+ */
344
+ /**
345
+ * @typedef UserAttributeFilterRequestConditions
346
+ * @property {string} definition_id - ID of the user attribute definition to filter on.
347
+ * @property {string} type - Filter operation to apply on the attribute value.
348
+ * Supported operations include:
349
+ *
350
+ * - `eq`: Equal to - `ne`: Not equal to - `gt`: Greater than (or is after for
351
+ * dates) - `lt`: Less than (or is before for dates) - `gte`: Greater than
352
+ * or equal to - `lte`: Less than or equal to - `cnt`: Contains (for
353
+ * strings) - `nct`: Does not contain (for strings) - `is`: Matches
354
+ * exactly (for strings) - `nis`: Does not match exactly (for strings) -
355
+ * `sw`: Starts with (for strings) - `ew`: Ends with (for strings) -
356
+ * `btw`: Between two values (for date and datetime types) - `in`: Value
357
+ * exists in given list - `nin`: Value does not exist in given list
358
+ *
359
+ * @property {Object} value - Values to be used in filtering the attribute. Can
360
+ * be a single value or an array of values. Types supported: string, number,
361
+ * array of string, or array of number.
362
+ */
363
+ /**
364
+ * @typedef UserAttributeFiltered
365
+ * @property {UserAttributeFilteredList[]} [items] - List of user objects that
366
+ * match the filter criteria.
367
+ * @property {PaginationSchema} [page]
368
+ */
369
+ /**
370
+ * @typedef UserAttributeFilteredList
371
+ * @property {string} [_id] - Unique ID of the user.
372
+ * @property {string} [username] - Generated username for the user.
373
+ * @property {UserPhoneNumbers[]} [phone_numbers] - List of phone numbers
374
+ * associated with the user.
375
+ * @property {UserEmails[]} [emails] - List of emails associated with the user.
376
+ * @property {string} [gender] - Gender of the user.
377
+ * @property {boolean} [active] - Whether the user account is active.
378
+ * @property {boolean} [archive] - Whether the user account is archived.
379
+ * @property {string} [status] - Status of the user account.
380
+ * @property {UserAttribute[]} [attributes]
381
+ * @property {string} [first_name] - First name of the user.
382
+ * @property {string} [last_name] - Last name of the user.
383
+ * @property {string} [account_type] - Type of user account.
384
+ * @property {string} [profile_pic_url] - URL to user's profile picture.
385
+ * @property {boolean} [has_old_password_hash] - Whether user has legacy password format.
386
+ * @property {string} [user_id] - Unique user ID.
387
+ * @property {string} [application_id] - Application ID associated with the user.
388
+ * @property {boolean} [is_encrypted] - Whether the user data is encrypted.
389
+ * @property {string} [created_at] - Timestamp of user creation.
390
+ * @property {string} [updated_at] - Timestamp of last update.
391
+ */
262
392
  /**
263
393
  * @typedef CreateUserGroup
264
394
  * @property {ConditionsSchema[]} [conditions]
@@ -561,7 +691,7 @@ export = UserPlatformModel;
561
691
  declare class UserPlatformModel {
562
692
  }
563
693
  declare namespace UserPlatformModel {
564
- export { SuccessMessage, UserAttributeDefinition, UserAttributeDefinitionDetails, UserAttributeDefinitionValidation, UserAttribute, CreateUserAttribute, CreateUserAttributeDefinition, CreateStoreFrontUsersPayload, BulkUserExportSchema, BulkActionModel, CreatedBySchema, BulkActionLinkSchema, FileLinks, BulkActionCountSchema, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, BulkActionPaginationSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema, APIError, SessionListResponseInfo, Conditions, UserResponseErrorSchema, UserGroupResponseSchema, UserGroupListResponseSchema, ConditionsSchema, CreateUserGroup, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, GetUserTimeline, UserTimeline, Facebook, Accountkit, Google, SessionExpiry, UpdateUserGroupSchema, PartialUserGroupUpdateSchema, UserGroupUpdateData, UpdateUserRequestSchema, UserEmails, UserPhoneNumbers, UserSchema, UserSearchSchema, PhoneNumber, Email, UserConsent, PrivacyPolicyConsentSchema };
694
+ export { SuccessMessage, UserAttributeDefinition, UserAttributeDefinitionDetails, AttributeMaskingProperties, AttributeRegistrationProperties, UserAttributeDefinitionValidation, BulkUserAttribute, UserAttribute, CreateBulkUserAttribute, BulkUserAttributeRequestBody, CreateUserAttribute, CreateUserAttributeDefinition, CreateStoreFrontUsersPayload, BulkUserExportSchema, BulkActionModel, CreatedBySchema, BulkActionLinkSchema, FileLinks, BulkActionCountSchema, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, BulkActionPaginationSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema, APIError, SessionListResponseInfo, Conditions, UserResponseErrorSchema, UserGroupResponseSchema, UserGroupListResponseSchema, ConditionsSchema, DeleteBulkUserAttribute, UserAttributeFilter, UserAttributeFilterQuery, UserAttributeFilterRequestConditions, UserAttributeFiltered, UserAttributeFilteredList, CreateUserGroup, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, GetUserTimeline, UserTimeline, Facebook, Accountkit, Google, SessionExpiry, UpdateUserGroupSchema, PartialUserGroupUpdateSchema, UserGroupUpdateData, UpdateUserRequestSchema, UserEmails, UserPhoneNumbers, UserSchema, UserSearchSchema, PhoneNumber, Email, UserConsent, PrivacyPolicyConsentSchema };
565
695
  }
566
696
  /** @returns {SuccessMessage} */
567
697
  declare function SuccessMessage(): SuccessMessage;
@@ -596,9 +726,22 @@ type UserAttributeDefinition = {
596
726
  */
597
727
  type?: string;
598
728
  /**
599
- * - Whether the attribute supports multiple values.
729
+ * - Optional icon representation for this attribute.
730
+ * Defaults to an empty string.
731
+ */
732
+ icon?: string;
733
+ /**
734
+ * - Ordering Channels where this
735
+ * attribute should be visible.
600
736
  */
601
- multi_value?: boolean;
737
+ ordering_channels?: string[];
738
+ masking?: AttributeMaskingProperties;
739
+ registration?: AttributeRegistrationProperties;
740
+ /**
741
+ * - Indicates if this attribute can accept
742
+ * multiple values.
743
+ */
744
+ is_multi_value?: boolean;
602
745
  /**
603
746
  * - Whether the attribute is customer-editable.
604
747
  */
@@ -661,9 +804,22 @@ type UserAttributeDefinitionDetails = {
661
804
  */
662
805
  type?: string;
663
806
  /**
664
- * - Whether the attribute supports multiple values.
807
+ * - Optional icon representation for this attribute.
808
+ * Defaults to an empty string.
809
+ */
810
+ icon?: string;
811
+ /**
812
+ * - Ordering Channels where this
813
+ * attribute should be visible.
814
+ */
815
+ ordering_channels?: string[];
816
+ masking?: AttributeMaskingProperties;
817
+ registration?: AttributeRegistrationProperties;
818
+ /**
819
+ * - Indicates if this attribute can accept
820
+ * multiple values.
665
821
  */
666
- multi_value?: boolean;
822
+ is_multi_value?: boolean;
667
823
  /**
668
824
  * - Whether the attribute is customer-editable.
669
825
  */
@@ -703,6 +859,34 @@ type UserAttributeDefinitionDetails = {
703
859
  */
704
860
  modified_at?: string;
705
861
  };
862
+ /** @returns {AttributeMaskingProperties} */
863
+ declare function AttributeMaskingProperties(): AttributeMaskingProperties;
864
+ type AttributeMaskingProperties = {
865
+ /**
866
+ * - Indicates if PII masking is editable for this
867
+ * attribute.
868
+ */
869
+ enabled?: boolean;
870
+ /**
871
+ * - Indicates the PII masking options available
872
+ * default or others
873
+ */
874
+ type?: string;
875
+ };
876
+ /** @returns {AttributeRegistrationProperties} */
877
+ declare function AttributeRegistrationProperties(): AttributeRegistrationProperties;
878
+ type AttributeRegistrationProperties = {
879
+ /**
880
+ * - Indicates if an attribute is editable when
881
+ * customer registers for a storefront.
882
+ */
883
+ enabled?: boolean;
884
+ /**
885
+ * - Indicates if this attribute is mandatory or
886
+ * optional when customer registers for a storefront.
887
+ */
888
+ type?: string;
889
+ };
706
890
  /** @returns {UserAttributeDefinitionValidation} */
707
891
  declare function UserAttributeDefinitionValidation(): UserAttributeDefinitionValidation;
708
892
  type UserAttributeDefinitionValidation = {
@@ -715,6 +899,15 @@ type UserAttributeDefinitionValidation = {
715
899
  */
716
900
  value?: any;
717
901
  };
902
+ /** @returns {BulkUserAttribute} */
903
+ declare function BulkUserAttribute(): BulkUserAttribute;
904
+ type BulkUserAttribute = {
905
+ /**
906
+ * - This describes the status of the API response
907
+ */
908
+ success?: boolean;
909
+ attributes?: UserAttribute[];
910
+ };
718
911
  /** @returns {UserAttribute} */
719
912
  declare function UserAttribute(): UserAttribute;
720
913
  type UserAttribute = {
@@ -734,6 +927,21 @@ type UserAttribute = {
734
927
  * - The application ID.
735
928
  */
736
929
  application_id?: string;
930
+ /**
931
+ * - The unique id of the
932
+ * attribute definition.
933
+ */
934
+ user_attribute_definition_id?: string;
935
+ /**
936
+ * - The time when attribute value is created
937
+ * for a user in ISO format.
938
+ */
939
+ created_at?: string;
940
+ /**
941
+ * - The time when attribute value is updated
942
+ * for a user in ISO format.
943
+ */
944
+ updated_at?: string;
737
945
  /**
738
946
  * - The attribute type.
739
947
  */
@@ -745,6 +953,30 @@ type UserAttribute = {
745
953
  attribute?: any;
746
954
  updated_by?: string;
747
955
  };
956
+ /** @returns {CreateBulkUserAttribute} */
957
+ declare function CreateBulkUserAttribute(): CreateBulkUserAttribute;
958
+ type CreateBulkUserAttribute = {
959
+ /**
960
+ * - This is an array of
961
+ * objects containing id of attribute definitions and the respective values to
962
+ * created or updated
963
+ */
964
+ attributes: BulkUserAttributeRequestBody[];
965
+ };
966
+ /** @returns {BulkUserAttributeRequestBody} */
967
+ declare function BulkUserAttributeRequestBody(): BulkUserAttributeRequestBody;
968
+ type BulkUserAttributeRequestBody = {
969
+ /**
970
+ * - Theis is an unique id of user attribute definition
971
+ */
972
+ definition_id: string;
973
+ /**
974
+ * - Attribute values to be create or updated. Can be a
975
+ * single value or an array of values. Types supported: string, number, array
976
+ * of string, or array of number.
977
+ */
978
+ value: any;
979
+ };
748
980
  /** @returns {CreateUserAttribute} */
749
981
  declare function CreateUserAttribute(): CreateUserAttribute;
750
982
  type CreateUserAttribute = {
@@ -757,8 +989,27 @@ type CreateUserAttributeDefinition = {
757
989
  name?: string;
758
990
  slug?: string;
759
991
  description?: string;
992
+ /**
993
+ * - The attribute type.
994
+ */
760
995
  type?: string;
761
- multi_value?: boolean;
996
+ /**
997
+ * - Optional icon representation for this attribute.
998
+ * Defaults to an empty string.
999
+ */
1000
+ icon?: string;
1001
+ /**
1002
+ * - Ordering Channels where this
1003
+ * attribute should be visible.
1004
+ */
1005
+ ordering_channels?: string[];
1006
+ masking?: AttributeMaskingProperties;
1007
+ registration?: AttributeRegistrationProperties;
1008
+ /**
1009
+ * - Indicates if this attribute can accept
1010
+ * multiple values.
1011
+ */
1012
+ is_multi_value?: boolean;
762
1013
  customer_editable?: boolean;
763
1014
  encrypted?: boolean;
764
1015
  pinned?: boolean;
@@ -952,6 +1203,10 @@ type PaginationSchema = {
952
1203
  * - The number of items per page.
953
1204
  */
954
1205
  size?: number;
1206
+ /**
1207
+ * - The total number of items across all pages.
1208
+ */
1209
+ total?: number;
955
1210
  /**
956
1211
  * - The total number of items across all pages.
957
1212
  */
@@ -1055,6 +1310,171 @@ type ConditionsSchema = {
1055
1310
  type?: string;
1056
1311
  value?: string;
1057
1312
  };
1313
+ /** @returns {DeleteBulkUserAttribute} */
1314
+ declare function DeleteBulkUserAttribute(): DeleteBulkUserAttribute;
1315
+ type DeleteBulkUserAttribute = {
1316
+ /**
1317
+ * - List of user attribute definition IDs
1318
+ * for which the corresponding values should be deleted.
1319
+ */
1320
+ definition_ids?: string[];
1321
+ };
1322
+ /** @returns {UserAttributeFilter} */
1323
+ declare function UserAttributeFilter(): UserAttributeFilter;
1324
+ type UserAttributeFilter = {
1325
+ query?: UserAttributeFilterQuery;
1326
+ };
1327
+ /** @returns {UserAttributeFilterQuery} */
1328
+ declare function UserAttributeFilterQuery(): UserAttributeFilterQuery;
1329
+ type UserAttributeFilterQuery = {
1330
+ /**
1331
+ * - Logical condition type to apply between multiple
1332
+ * attribute filters.
1333
+ */
1334
+ type: string;
1335
+ /**
1336
+ * - Number of results to return per page.
1337
+ */
1338
+ limit: number;
1339
+ /**
1340
+ * - Page number to fetch.
1341
+ */
1342
+ page: number;
1343
+ /**
1344
+ * - Filter users by their exact email address.
1345
+ */
1346
+ email?: string;
1347
+ /**
1348
+ * - Filter users by their exact phone number.
1349
+ */
1350
+ phone?: string;
1351
+ /**
1352
+ * - List of user attribute definition IDs
1353
+ * to fetch attributes values available for each user.
1354
+ */
1355
+ definition_ids?: string[];
1356
+ /**
1357
+ * - List of
1358
+ * filtering conditions to apply on user attributes.
1359
+ */
1360
+ conditions: UserAttributeFilterRequestConditions[];
1361
+ };
1362
+ /** @returns {UserAttributeFilterRequestConditions} */
1363
+ declare function UserAttributeFilterRequestConditions(): UserAttributeFilterRequestConditions;
1364
+ type UserAttributeFilterRequestConditions = {
1365
+ /**
1366
+ * - ID of the user attribute definition to filter on.
1367
+ */
1368
+ definition_id: string;
1369
+ /**
1370
+ * - Filter operation to apply on the attribute value.
1371
+ * Supported operations include:
1372
+ *
1373
+ * - `eq`: Equal to - `ne`: Not equal to - `gt`: Greater than (or is after for
1374
+ * dates) - `lt`: Less than (or is before for dates) - `gte`: Greater than
1375
+ * or equal to - `lte`: Less than or equal to - `cnt`: Contains (for
1376
+ * strings) - `nct`: Does not contain (for strings) - `is`: Matches
1377
+ * exactly (for strings) - `nis`: Does not match exactly (for strings) -
1378
+ * `sw`: Starts with (for strings) - `ew`: Ends with (for strings) -
1379
+ * `btw`: Between two values (for date and datetime types) - `in`: Value
1380
+ * exists in given list - `nin`: Value does not exist in given list
1381
+ */
1382
+ type: string;
1383
+ /**
1384
+ * - Values to be used in filtering the attribute. Can
1385
+ * be a single value or an array of values. Types supported: string, number,
1386
+ * array of string, or array of number.
1387
+ */
1388
+ value: any;
1389
+ };
1390
+ /** @returns {UserAttributeFiltered} */
1391
+ declare function UserAttributeFiltered(): UserAttributeFiltered;
1392
+ type UserAttributeFiltered = {
1393
+ /**
1394
+ * - List of user objects that
1395
+ * match the filter criteria.
1396
+ */
1397
+ items?: UserAttributeFilteredList[];
1398
+ page?: PaginationSchema;
1399
+ };
1400
+ /** @returns {UserAttributeFilteredList} */
1401
+ declare function UserAttributeFilteredList(): UserAttributeFilteredList;
1402
+ type UserAttributeFilteredList = {
1403
+ /**
1404
+ * - Unique ID of the user.
1405
+ */
1406
+ _id?: string;
1407
+ /**
1408
+ * - Generated username for the user.
1409
+ */
1410
+ username?: string;
1411
+ /**
1412
+ * - List of phone numbers
1413
+ * associated with the user.
1414
+ */
1415
+ phone_numbers?: UserPhoneNumbers[];
1416
+ /**
1417
+ * - List of emails associated with the user.
1418
+ */
1419
+ emails?: UserEmails[];
1420
+ /**
1421
+ * - Gender of the user.
1422
+ */
1423
+ gender?: string;
1424
+ /**
1425
+ * - Whether the user account is active.
1426
+ */
1427
+ active?: boolean;
1428
+ /**
1429
+ * - Whether the user account is archived.
1430
+ */
1431
+ archive?: boolean;
1432
+ /**
1433
+ * - Status of the user account.
1434
+ */
1435
+ status?: string;
1436
+ attributes?: UserAttribute[];
1437
+ /**
1438
+ * - First name of the user.
1439
+ */
1440
+ first_name?: string;
1441
+ /**
1442
+ * - Last name of the user.
1443
+ */
1444
+ last_name?: string;
1445
+ /**
1446
+ * - Type of user account.
1447
+ */
1448
+ account_type?: string;
1449
+ /**
1450
+ * - URL to user's profile picture.
1451
+ */
1452
+ profile_pic_url?: string;
1453
+ /**
1454
+ * - Whether user has legacy password format.
1455
+ */
1456
+ has_old_password_hash?: boolean;
1457
+ /**
1458
+ * - Unique user ID.
1459
+ */
1460
+ user_id?: string;
1461
+ /**
1462
+ * - Application ID associated with the user.
1463
+ */
1464
+ application_id?: string;
1465
+ /**
1466
+ * - Whether the user data is encrypted.
1467
+ */
1468
+ is_encrypted?: boolean;
1469
+ /**
1470
+ * - Timestamp of user creation.
1471
+ */
1472
+ created_at?: string;
1473
+ /**
1474
+ * - Timestamp of last update.
1475
+ */
1476
+ updated_at?: string;
1477
+ };
1058
1478
  /** @returns {CreateUserGroup} */
1059
1479
  declare function CreateUserGroup(): CreateUserGroup;
1060
1480
  type CreateUserGroup = {