skapi-js 2.2.7 → 2.2.8

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/skapi.d.mts CHANGED
@@ -343,6 +343,8 @@ type NewsletterGroup = {
343
343
  */
344
344
  endpoint: string;
345
345
  };
346
+ /** The public visibility flags: set when an account is created, the user's own afterwards; never changed by an admin's updateUserAttributes(). */
347
+ type UserVisibilityFlag = 'email_public' | 'phone_number_public' | 'address_public' | 'gender_public' | 'birthdate_public';
346
348
  type UserAttributes = {
347
349
  /** User's name */
348
350
  name?: string;
@@ -1336,9 +1338,10 @@ type Types_UploadFilesResult = UploadFilesResult;
1336
1338
  type Types_UserAttributes = UserAttributes;
1337
1339
  type Types_UserProfile = UserProfile;
1338
1340
  type Types_UserPublic = UserPublic;
1341
+ type Types_UserVisibilityFlag = UserVisibilityFlag;
1339
1342
  type Types_WebSocketMessage = WebSocketMessage;
1340
1343
  declare namespace Types {
1341
- export type { Types_BinaryFile as BinaryFile, Types_Condition as Condition, Types_Connection as Connection, Types_ConnectionInfo as ConnectionInfo, Types_DatabaseResponse as DatabaseResponse, Types_DelRecordQuery as DelRecordQuery, Types_EncryptionOptions as EncryptionOptions, Types_FetchOptions as FetchOptions, Types_FileInfo as FileInfo, Types_FileUploadError as FileUploadError, Types_Form as Form, Types_GetRecordQuery as GetRecordQuery, Types_Index as Index, Types_Newsletter as Newsletter, Types_NewsletterGroup as NewsletterGroup, Types_PostRecordConfig as PostRecordConfig, Types_PostRecordsItem as PostRecordsItem, Types_PostRecordsResult as PostRecordsResult, Types_ProgressCallback as ProgressCallback, Types_RTCConnector as RTCConnector, Types_RTCConnectorParams as RTCConnectorParams, Types_RTCEvent as RTCEvent, Types_RTCIceOption as RTCIceOption, Types_RTCReceiverParams as RTCReceiverParams, Types_RTCResolved as RTCResolved, Types_RealtimeCallback as RealtimeCallback, Types_RecordData as RecordData, Types_RecordEncryptionInfo as RecordEncryptionInfo, Types_RequestHistory as RequestHistory, Types_Subscription as Subscription, Types_Table as Table, Types_Tag as Tag, Types_Ticket as Ticket, Types_TicketAction as TicketAction, Types_TicketCondition as TicketCondition, Types_TicketConditionOperator as TicketConditionOperator, Types_TicketConditionRow as TicketConditionRow, Types_TicketError as TicketError, Types_TicketErrorCode as TicketErrorCode, Types_TicketReceipt as TicketReceipt, Types_TicketResponseCondition as TicketResponseCondition, Types_TicketSignatureCondition as TicketSignatureCondition, Types_UniqueId as UniqueId, Types_UploadFilesParams as UploadFilesParams, Types_UploadFilesResult as UploadFilesResult, Types_UserAttributes as UserAttributes, Types_UserProfile as UserProfile, Types_UserPublic as UserPublic, Types_WebSocketMessage as WebSocketMessage };
1344
+ export type { Types_BinaryFile as BinaryFile, Types_Condition as Condition, Types_Connection as Connection, Types_ConnectionInfo as ConnectionInfo, Types_DatabaseResponse as DatabaseResponse, Types_DelRecordQuery as DelRecordQuery, Types_EncryptionOptions as EncryptionOptions, Types_FetchOptions as FetchOptions, Types_FileInfo as FileInfo, Types_FileUploadError as FileUploadError, Types_Form as Form, Types_GetRecordQuery as GetRecordQuery, Types_Index as Index, Types_Newsletter as Newsletter, Types_NewsletterGroup as NewsletterGroup, Types_PostRecordConfig as PostRecordConfig, Types_PostRecordsItem as PostRecordsItem, Types_PostRecordsResult as PostRecordsResult, Types_ProgressCallback as ProgressCallback, Types_RTCConnector as RTCConnector, Types_RTCConnectorParams as RTCConnectorParams, Types_RTCEvent as RTCEvent, Types_RTCIceOption as RTCIceOption, Types_RTCReceiverParams as RTCReceiverParams, Types_RTCResolved as RTCResolved, Types_RealtimeCallback as RealtimeCallback, Types_RecordData as RecordData, Types_RecordEncryptionInfo as RecordEncryptionInfo, Types_RequestHistory as RequestHistory, Types_Subscription as Subscription, Types_Table as Table, Types_Tag as Tag, Types_Ticket as Ticket, Types_TicketAction as TicketAction, Types_TicketCondition as TicketCondition, Types_TicketConditionOperator as TicketConditionOperator, Types_TicketConditionRow as TicketConditionRow, Types_TicketError as TicketError, Types_TicketErrorCode as TicketErrorCode, Types_TicketReceipt as TicketReceipt, Types_TicketResponseCondition as TicketResponseCondition, Types_TicketSignatureCondition as TicketSignatureCondition, Types_UniqueId as UniqueId, Types_UploadFilesParams as UploadFilesParams, Types_UploadFilesResult as UploadFilesResult, Types_UserAttributes as UserAttributes, Types_UserProfile as UserProfile, Types_UserPublic as UserPublic, Types_UserVisibilityFlag as UserVisibilityFlag, Types_WebSocketMessage as WebSocketMessage };
1342
1345
  }
1343
1346
 
1344
1347
  declare function terminatePendingRequests(): void;
@@ -2274,10 +2277,10 @@ declare class Skapi {
2274
2277
  * login another account holds without having verified the address blocks
2275
2278
  * nothing; it is removed, and that account keeps the login ID it was created
2276
2279
  * with.
2277
- * @param params Target user_id and the attributes to update.
2280
+ * @param params Target user_id and the attributes to update. Not the `*_public` visibility flags: they are set when the account is created and are the user's own afterwards; the backend refuses them from an admin.
2278
2281
  * @returns A promise that resolves to Promise<'SUCCESS: User attributes updated.'>.
2279
2282
  */
2280
- updateUserAttributes(params: UserAttributes & {
2283
+ updateUserAttributes(params: Omit<UserAttributes, UserVisibilityFlag> & {
2281
2284
  user_id: string;
2282
2285
  }): Promise<'SUCCESS: User attributes updated.'>;
2283
2286
  /**
package/dist/skapi.d.ts CHANGED
@@ -343,6 +343,8 @@ type NewsletterGroup = {
343
343
  */
344
344
  endpoint: string;
345
345
  };
346
+ /** The public visibility flags: set when an account is created, the user's own afterwards; never changed by an admin's updateUserAttributes(). */
347
+ type UserVisibilityFlag = 'email_public' | 'phone_number_public' | 'address_public' | 'gender_public' | 'birthdate_public';
346
348
  type UserAttributes = {
347
349
  /** User's name */
348
350
  name?: string;
@@ -1336,9 +1338,10 @@ type Types_UploadFilesResult = UploadFilesResult;
1336
1338
  type Types_UserAttributes = UserAttributes;
1337
1339
  type Types_UserProfile = UserProfile;
1338
1340
  type Types_UserPublic = UserPublic;
1341
+ type Types_UserVisibilityFlag = UserVisibilityFlag;
1339
1342
  type Types_WebSocketMessage = WebSocketMessage;
1340
1343
  declare namespace Types {
1341
- export type { Types_BinaryFile as BinaryFile, Types_Condition as Condition, Types_Connection as Connection, Types_ConnectionInfo as ConnectionInfo, Types_DatabaseResponse as DatabaseResponse, Types_DelRecordQuery as DelRecordQuery, Types_EncryptionOptions as EncryptionOptions, Types_FetchOptions as FetchOptions, Types_FileInfo as FileInfo, Types_FileUploadError as FileUploadError, Types_Form as Form, Types_GetRecordQuery as GetRecordQuery, Types_Index as Index, Types_Newsletter as Newsletter, Types_NewsletterGroup as NewsletterGroup, Types_PostRecordConfig as PostRecordConfig, Types_PostRecordsItem as PostRecordsItem, Types_PostRecordsResult as PostRecordsResult, Types_ProgressCallback as ProgressCallback, Types_RTCConnector as RTCConnector, Types_RTCConnectorParams as RTCConnectorParams, Types_RTCEvent as RTCEvent, Types_RTCIceOption as RTCIceOption, Types_RTCReceiverParams as RTCReceiverParams, Types_RTCResolved as RTCResolved, Types_RealtimeCallback as RealtimeCallback, Types_RecordData as RecordData, Types_RecordEncryptionInfo as RecordEncryptionInfo, Types_RequestHistory as RequestHistory, Types_Subscription as Subscription, Types_Table as Table, Types_Tag as Tag, Types_Ticket as Ticket, Types_TicketAction as TicketAction, Types_TicketCondition as TicketCondition, Types_TicketConditionOperator as TicketConditionOperator, Types_TicketConditionRow as TicketConditionRow, Types_TicketError as TicketError, Types_TicketErrorCode as TicketErrorCode, Types_TicketReceipt as TicketReceipt, Types_TicketResponseCondition as TicketResponseCondition, Types_TicketSignatureCondition as TicketSignatureCondition, Types_UniqueId as UniqueId, Types_UploadFilesParams as UploadFilesParams, Types_UploadFilesResult as UploadFilesResult, Types_UserAttributes as UserAttributes, Types_UserProfile as UserProfile, Types_UserPublic as UserPublic, Types_WebSocketMessage as WebSocketMessage };
1344
+ export type { Types_BinaryFile as BinaryFile, Types_Condition as Condition, Types_Connection as Connection, Types_ConnectionInfo as ConnectionInfo, Types_DatabaseResponse as DatabaseResponse, Types_DelRecordQuery as DelRecordQuery, Types_EncryptionOptions as EncryptionOptions, Types_FetchOptions as FetchOptions, Types_FileInfo as FileInfo, Types_FileUploadError as FileUploadError, Types_Form as Form, Types_GetRecordQuery as GetRecordQuery, Types_Index as Index, Types_Newsletter as Newsletter, Types_NewsletterGroup as NewsletterGroup, Types_PostRecordConfig as PostRecordConfig, Types_PostRecordsItem as PostRecordsItem, Types_PostRecordsResult as PostRecordsResult, Types_ProgressCallback as ProgressCallback, Types_RTCConnector as RTCConnector, Types_RTCConnectorParams as RTCConnectorParams, Types_RTCEvent as RTCEvent, Types_RTCIceOption as RTCIceOption, Types_RTCReceiverParams as RTCReceiverParams, Types_RTCResolved as RTCResolved, Types_RealtimeCallback as RealtimeCallback, Types_RecordData as RecordData, Types_RecordEncryptionInfo as RecordEncryptionInfo, Types_RequestHistory as RequestHistory, Types_Subscription as Subscription, Types_Table as Table, Types_Tag as Tag, Types_Ticket as Ticket, Types_TicketAction as TicketAction, Types_TicketCondition as TicketCondition, Types_TicketConditionOperator as TicketConditionOperator, Types_TicketConditionRow as TicketConditionRow, Types_TicketError as TicketError, Types_TicketErrorCode as TicketErrorCode, Types_TicketReceipt as TicketReceipt, Types_TicketResponseCondition as TicketResponseCondition, Types_TicketSignatureCondition as TicketSignatureCondition, Types_UniqueId as UniqueId, Types_UploadFilesParams as UploadFilesParams, Types_UploadFilesResult as UploadFilesResult, Types_UserAttributes as UserAttributes, Types_UserProfile as UserProfile, Types_UserPublic as UserPublic, Types_UserVisibilityFlag as UserVisibilityFlag, Types_WebSocketMessage as WebSocketMessage };
1342
1345
  }
1343
1346
 
1344
1347
  declare function terminatePendingRequests(): void;
@@ -2274,10 +2277,10 @@ declare class Skapi {
2274
2277
  * login another account holds without having verified the address blocks
2275
2278
  * nothing; it is removed, and that account keeps the login ID it was created
2276
2279
  * with.
2277
- * @param params Target user_id and the attributes to update.
2280
+ * @param params Target user_id and the attributes to update. Not the `*_public` visibility flags: they are set when the account is created and are the user's own afterwards; the backend refuses them from an admin.
2278
2281
  * @returns A promise that resolves to Promise<'SUCCESS: User attributes updated.'>.
2279
2282
  */
2280
- updateUserAttributes(params: UserAttributes & {
2283
+ updateUserAttributes(params: Omit<UserAttributes, UserVisibilityFlag> & {
2281
2284
  user_id: string;
2282
2285
  }): Promise<'SUCCESS: User attributes updated.'>;
2283
2286
  /**