skapi-js 2.0.1 → 2.0.3

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
@@ -280,6 +280,29 @@ type Newsletter = {
280
280
  url: string;
281
281
  /** Number users delivered */
282
282
  delivered: number;
283
+ /**
284
+ * Newsletter group the message was sent to.<br>
285
+ * A number for the 0 ~ 99 groups, the group name for a named newsletter group.
286
+ */
287
+ group: number | string;
288
+ };
289
+ type NewsletterGroup = {
290
+ /** Name of the newsletter group. */
291
+ group: string;
292
+ /**
293
+ * Access group required to subscribe to the group and to read its sent mail.<br>
294
+ * 0 is anyone, 1 is any signed in user, 2 ~ 99 is that access group.
295
+ */
296
+ restriction: number;
297
+ /** Display label of the group. Empty string when none was set. */
298
+ name: string;
299
+ /** Number of subscribers of the group. */
300
+ subscribers: number;
301
+ /**
302
+ * E-Mail address a newsletter for this group is sent to.<br>
303
+ * Empty string when the service has no sender e-mail set.
304
+ */
305
+ endpoint: string;
283
306
  };
284
307
  type UserAttributes = {
285
308
  /** User's name */
@@ -538,6 +561,7 @@ type RequestHistory = {
538
561
  error?: any;
539
562
  created: number;
540
563
  updated: number;
564
+ executed?: number;
541
565
  request_body: any;
542
566
  expires?: number;
543
567
  status: 'pending' | 'running' | 'resolved' | 'failed';
@@ -648,6 +672,7 @@ type Types_Form<T> = Form<T>;
648
672
  type Types_GetRecordQuery = GetRecordQuery;
649
673
  type Types_Index = Index;
650
674
  type Types_Newsletter = Newsletter;
675
+ type Types_NewsletterGroup = NewsletterGroup;
651
676
  type Types_PostRecordConfig = PostRecordConfig;
652
677
  type Types_ProgressCallback = ProgressCallback;
653
678
  type Types_RTCConnector = RTCConnector;
@@ -668,7 +693,7 @@ type Types_UserProfile = UserProfile;
668
693
  type Types_UserPublic = UserPublic;
669
694
  type Types_WebSocketMessage = WebSocketMessage;
670
695
  declare namespace Types {
671
- 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_Form as Form, Types_GetRecordQuery as GetRecordQuery, Types_Index as Index, Types_Newsletter as Newsletter, Types_PostRecordConfig as PostRecordConfig, Types_ProgressCallback as ProgressCallback, Types_RTCConnector as RTCConnector, Types_RTCConnectorParams as RTCConnectorParams, Types_RTCEvent as RTCEvent, 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_UniqueId as UniqueId, Types_UserAttributes as UserAttributes, Types_UserProfile as UserProfile, Types_UserPublic as UserPublic, Types_WebSocketMessage as WebSocketMessage };
696
+ 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_Form as Form, Types_GetRecordQuery as GetRecordQuery, Types_Index as Index, Types_Newsletter as Newsletter, Types_NewsletterGroup as NewsletterGroup, Types_PostRecordConfig as PostRecordConfig, Types_ProgressCallback as ProgressCallback, Types_RTCConnector as RTCConnector, Types_RTCConnectorParams as RTCConnectorParams, Types_RTCEvent as RTCEvent, 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_UniqueId as UniqueId, Types_UserAttributes as UserAttributes, Types_UserProfile as UserProfile, Types_UserPublic as UserPublic, Types_WebSocketMessage as WebSocketMessage };
672
697
  }
673
698
 
674
699
  declare function terminatePendingRequests(): void;
@@ -985,6 +1010,28 @@ declare class Skapi {
985
1010
  accessToken?: string;
986
1011
  refreshToken?: string;
987
1012
  }): Promise<UserProfile>;
1013
+ /**
1014
+ * Registers a named newsletter group. Service owner only.
1015
+ * @param params Request parameters.
1016
+ * @returns A promise that resolves to Promise<'SUCCESS: Group registered successfully.'>.
1017
+ */
1018
+ registerNewsletterGroup(params: Form<{
1019
+ /** Name of the newsletter group. 2 ~ 20 lowercase alphanumeric characters, at least one letter, not a reserved name. */
1020
+ group: string;
1021
+ /** Access group required to subscribe. 0 ~ 99. Defaults to 0. */
1022
+ restriction?: number;
1023
+ /** Display label of the group. 60 characters max. */
1024
+ name?: string;
1025
+ }>): Promise<'SUCCESS: Group registered successfully.'>;
1026
+ /**
1027
+ * Deletes a named newsletter group along with every subscription of that group. Service owner only.
1028
+ * @param params Request parameters.
1029
+ * @returns A promise that resolves to Promise<string>, 'SUCCESS: Group has been deleted along with N subscription(s).'.
1030
+ */
1031
+ deleteNewsletterGroup(params: Form<{
1032
+ /** Name of the newsletter group to delete. */
1033
+ group: string;
1034
+ }>): Promise<string>;
988
1035
  /**
989
1036
  * Sends a secure outbound request using a Skapi client secret key.
990
1037
  * @param params Request parameters.
@@ -1309,6 +1356,13 @@ declare class Skapi {
1309
1356
  group: string;
1310
1357
  number_of_users: number;
1311
1358
  }>>;
1359
+ /**
1360
+ * Lists every named newsletter group of the service with its restriction, subscriber count and sending address. Service owner only.
1361
+ * @returns A promise that resolves to Promise<{ groups: NewsletterGroup[] }>.
1362
+ */
1363
+ newsletterGroupEndpoint(): Promise<{
1364
+ groups: NewsletterGroup[];
1365
+ }>;
1312
1366
  /**
1313
1367
  * Sends realtime data to a user or group with optional push notification metadata.
1314
1368
  * @param message Message payload to send.
@@ -1520,11 +1574,13 @@ declare class Skapi {
1520
1574
  }): Promise<string | UserProfile>;
1521
1575
  /**
1522
1576
  * Unsubscribes the user from a newsletter group.
1577
+ * Takes a numeric group, "public", "authorized" or the name of a named newsletter group. null unsubscribes from every group.
1523
1578
  * @param params Request parameters.
1524
1579
  * @returns A promise that resolves to Promise<string>.
1525
1580
  */
1526
1581
  unsubscribeNewsletter(params: {
1527
- group: number | 'public' | 'authorized' | 'admin';
1582
+ /** Numeric group, "public", "authorized" or a named newsletter group. null unsubscribes from every group. */
1583
+ group: number | 'public' | 'authorized' | (string & {}) | null;
1528
1584
  }): Promise<string>;
1529
1585
  /**
1530
1586
  * Registers a web push subscription endpoint for notifications.
@@ -1565,6 +1621,7 @@ declare class Skapi {
1565
1621
  }, user_ids?: string | string[]): Promise<'SUCCESS: Notification sent.'>;
1566
1622
  /**
1567
1623
  * Fetches newsletter delivery records with filters and pagination.
1624
+ * Reads a numeric group, "public", "authorized" or a named newsletter group. A named group is readable by anyone its restriction allows, signed in or not.
1568
1625
  * @param params Request parameters.
1569
1626
  * @param fetchOptions Pagination and fetch behavior options.
1570
1627
  * @returns A promise that resolves to Promise<DatabaseResponse<Newsletter>>.
@@ -1583,26 +1640,29 @@ declare class Skapi {
1583
1640
  * Condition does not work with range.
1584
1641
  */
1585
1642
  condition?: '>' | '>=' | '=' | '<' | '<=' | 'gt' | 'gte' | 'eq' | 'lt' | 'lte';
1586
- group: 'public' | 'authorized' | number;
1643
+ /** Numeric group, "public", "authorized" or a named newsletter group. */
1644
+ group: 'public' | 'authorized' | number | (string & {});
1587
1645
  }, fetchOptions?: FetchOptions): Promise<DatabaseResponse<Newsletter>>;
1588
1646
  /**
1589
1647
  * Gets newsletter subscription status for the requested groups.
1648
+ * Takes a numeric group, "public", "authorized" or a named newsletter group. Omit the group for every group the user is subscribed to.
1590
1649
  * @param params Request parameters.
1591
1650
  * @param fetchOptions Pagination and fetch behavior options.
1592
- * @returns A promise that resolves to Promise<{ active: boolean; timestamp: number; group: number; subscribed_email: string; }[]>.
1651
+ * @returns A promise that resolves to Promise<{ active: boolean; timestamp: number; group: number | string; subscribed_email: string; }[]>.
1593
1652
  */
1594
- getNewsletterSubscription(params: {
1595
- group?: number | 'public' | 'authorized';
1653
+ getNewsletterSubscription(params?: {
1654
+ /** Numeric group, "public", "authorized" or a named newsletter group. Omit or null for every group. */
1655
+ group?: number | 'public' | 'authorized' | (string & {}) | null;
1596
1656
  user_id?: string;
1597
1657
  }, fetchOptions?: FetchOptions): Promise<{
1598
1658
  active: boolean;
1599
1659
  timestamp: number;
1600
- group: number;
1660
+ group: number | string;
1601
1661
  subscribed_email: string;
1602
1662
  }[] | DatabaseResponse<{
1603
1663
  active: boolean;
1604
1664
  timestamp: number;
1605
- group: number;
1665
+ group: number | string;
1606
1666
  subscribed_email: string;
1607
1667
  }>>;
1608
1668
  /**
@@ -1980,12 +2040,14 @@ declare class Skapi {
1980
2040
  }): Promise<'SUCCESS: Unblocked user ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".'>;
1981
2041
  /**
1982
2042
  * Subscribes an email/user to a newsletter group with optional redirect flow.
2043
+ * Takes a numeric group, "public", "authorized" or the name of a named newsletter group registered with registerNewsletterGroup().
1983
2044
  * @param params Request parameters.
1984
2045
  * @returns A promise that resolves to Promise<string>.
1985
2046
  */
1986
2047
  subscribeNewsletter(params: Form<{
1987
2048
  email?: string | string[];
1988
- group: number | 'public' | 'authorized' | 'admin' | (string & {});
2049
+ /** Numeric group, "public", "authorized" or a named newsletter group. */
2050
+ group: number | 'public' | 'authorized' | (string & {});
1989
2051
  redirect?: string;
1990
2052
  }>): Promise<string>;
1991
2053
  /**
@@ -2006,4 +2068,4 @@ declare class SkapiError extends Error {
2006
2068
  });
2007
2069
  }
2008
2070
 
2009
- export { type BinaryFile, type Condition, type Connection, type ConnectionInfo, type DatabaseResponse, type DelRecordQuery, type FetchOptions, type FileInfo, type Form, type GetRecordQuery, type Index, type Newsletter, type PostRecordConfig, type ProgressCallback, type RTCConnector, type RTCConnectorParams, type RTCEvent, type RTCReceiverParams, type RTCResolved, type RealtimeCallback, type RecordData, Skapi, SkapiError, type Subscription, type Table, type Tag, Types, type UniqueId, type UserAttributes, type UserProfile, type UserPublic, type WebSocketMessage };
2071
+ export { type BinaryFile, type Condition, type Connection, type ConnectionInfo, type DatabaseResponse, type DelRecordQuery, type FetchOptions, type FileInfo, type Form, type GetRecordQuery, type Index, type Newsletter, type NewsletterGroup, type PostRecordConfig, type ProgressCallback, type RTCConnector, type RTCConnectorParams, type RTCEvent, type RTCReceiverParams, type RTCResolved, type RealtimeCallback, type RecordData, Skapi, SkapiError, type Subscription, type Table, type Tag, Types, type UniqueId, type UserAttributes, type UserProfile, type UserPublic, type WebSocketMessage };
package/dist/skapi.d.ts CHANGED
@@ -280,6 +280,29 @@ type Newsletter = {
280
280
  url: string;
281
281
  /** Number users delivered */
282
282
  delivered: number;
283
+ /**
284
+ * Newsletter group the message was sent to.<br>
285
+ * A number for the 0 ~ 99 groups, the group name for a named newsletter group.
286
+ */
287
+ group: number | string;
288
+ };
289
+ type NewsletterGroup = {
290
+ /** Name of the newsletter group. */
291
+ group: string;
292
+ /**
293
+ * Access group required to subscribe to the group and to read its sent mail.<br>
294
+ * 0 is anyone, 1 is any signed in user, 2 ~ 99 is that access group.
295
+ */
296
+ restriction: number;
297
+ /** Display label of the group. Empty string when none was set. */
298
+ name: string;
299
+ /** Number of subscribers of the group. */
300
+ subscribers: number;
301
+ /**
302
+ * E-Mail address a newsletter for this group is sent to.<br>
303
+ * Empty string when the service has no sender e-mail set.
304
+ */
305
+ endpoint: string;
283
306
  };
284
307
  type UserAttributes = {
285
308
  /** User's name */
@@ -538,6 +561,7 @@ type RequestHistory = {
538
561
  error?: any;
539
562
  created: number;
540
563
  updated: number;
564
+ executed?: number;
541
565
  request_body: any;
542
566
  expires?: number;
543
567
  status: 'pending' | 'running' | 'resolved' | 'failed';
@@ -648,6 +672,7 @@ type Types_Form<T> = Form<T>;
648
672
  type Types_GetRecordQuery = GetRecordQuery;
649
673
  type Types_Index = Index;
650
674
  type Types_Newsletter = Newsletter;
675
+ type Types_NewsletterGroup = NewsletterGroup;
651
676
  type Types_PostRecordConfig = PostRecordConfig;
652
677
  type Types_ProgressCallback = ProgressCallback;
653
678
  type Types_RTCConnector = RTCConnector;
@@ -668,7 +693,7 @@ type Types_UserProfile = UserProfile;
668
693
  type Types_UserPublic = UserPublic;
669
694
  type Types_WebSocketMessage = WebSocketMessage;
670
695
  declare namespace Types {
671
- 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_Form as Form, Types_GetRecordQuery as GetRecordQuery, Types_Index as Index, Types_Newsletter as Newsletter, Types_PostRecordConfig as PostRecordConfig, Types_ProgressCallback as ProgressCallback, Types_RTCConnector as RTCConnector, Types_RTCConnectorParams as RTCConnectorParams, Types_RTCEvent as RTCEvent, 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_UniqueId as UniqueId, Types_UserAttributes as UserAttributes, Types_UserProfile as UserProfile, Types_UserPublic as UserPublic, Types_WebSocketMessage as WebSocketMessage };
696
+ 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_Form as Form, Types_GetRecordQuery as GetRecordQuery, Types_Index as Index, Types_Newsletter as Newsletter, Types_NewsletterGroup as NewsletterGroup, Types_PostRecordConfig as PostRecordConfig, Types_ProgressCallback as ProgressCallback, Types_RTCConnector as RTCConnector, Types_RTCConnectorParams as RTCConnectorParams, Types_RTCEvent as RTCEvent, 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_UniqueId as UniqueId, Types_UserAttributes as UserAttributes, Types_UserProfile as UserProfile, Types_UserPublic as UserPublic, Types_WebSocketMessage as WebSocketMessage };
672
697
  }
673
698
 
674
699
  declare function terminatePendingRequests(): void;
@@ -985,6 +1010,28 @@ declare class Skapi {
985
1010
  accessToken?: string;
986
1011
  refreshToken?: string;
987
1012
  }): Promise<UserProfile>;
1013
+ /**
1014
+ * Registers a named newsletter group. Service owner only.
1015
+ * @param params Request parameters.
1016
+ * @returns A promise that resolves to Promise<'SUCCESS: Group registered successfully.'>.
1017
+ */
1018
+ registerNewsletterGroup(params: Form<{
1019
+ /** Name of the newsletter group. 2 ~ 20 lowercase alphanumeric characters, at least one letter, not a reserved name. */
1020
+ group: string;
1021
+ /** Access group required to subscribe. 0 ~ 99. Defaults to 0. */
1022
+ restriction?: number;
1023
+ /** Display label of the group. 60 characters max. */
1024
+ name?: string;
1025
+ }>): Promise<'SUCCESS: Group registered successfully.'>;
1026
+ /**
1027
+ * Deletes a named newsletter group along with every subscription of that group. Service owner only.
1028
+ * @param params Request parameters.
1029
+ * @returns A promise that resolves to Promise<string>, 'SUCCESS: Group has been deleted along with N subscription(s).'.
1030
+ */
1031
+ deleteNewsletterGroup(params: Form<{
1032
+ /** Name of the newsletter group to delete. */
1033
+ group: string;
1034
+ }>): Promise<string>;
988
1035
  /**
989
1036
  * Sends a secure outbound request using a Skapi client secret key.
990
1037
  * @param params Request parameters.
@@ -1309,6 +1356,13 @@ declare class Skapi {
1309
1356
  group: string;
1310
1357
  number_of_users: number;
1311
1358
  }>>;
1359
+ /**
1360
+ * Lists every named newsletter group of the service with its restriction, subscriber count and sending address. Service owner only.
1361
+ * @returns A promise that resolves to Promise<{ groups: NewsletterGroup[] }>.
1362
+ */
1363
+ newsletterGroupEndpoint(): Promise<{
1364
+ groups: NewsletterGroup[];
1365
+ }>;
1312
1366
  /**
1313
1367
  * Sends realtime data to a user or group with optional push notification metadata.
1314
1368
  * @param message Message payload to send.
@@ -1520,11 +1574,13 @@ declare class Skapi {
1520
1574
  }): Promise<string | UserProfile>;
1521
1575
  /**
1522
1576
  * Unsubscribes the user from a newsletter group.
1577
+ * Takes a numeric group, "public", "authorized" or the name of a named newsletter group. null unsubscribes from every group.
1523
1578
  * @param params Request parameters.
1524
1579
  * @returns A promise that resolves to Promise<string>.
1525
1580
  */
1526
1581
  unsubscribeNewsletter(params: {
1527
- group: number | 'public' | 'authorized' | 'admin';
1582
+ /** Numeric group, "public", "authorized" or a named newsletter group. null unsubscribes from every group. */
1583
+ group: number | 'public' | 'authorized' | (string & {}) | null;
1528
1584
  }): Promise<string>;
1529
1585
  /**
1530
1586
  * Registers a web push subscription endpoint for notifications.
@@ -1565,6 +1621,7 @@ declare class Skapi {
1565
1621
  }, user_ids?: string | string[]): Promise<'SUCCESS: Notification sent.'>;
1566
1622
  /**
1567
1623
  * Fetches newsletter delivery records with filters and pagination.
1624
+ * Reads a numeric group, "public", "authorized" or a named newsletter group. A named group is readable by anyone its restriction allows, signed in or not.
1568
1625
  * @param params Request parameters.
1569
1626
  * @param fetchOptions Pagination and fetch behavior options.
1570
1627
  * @returns A promise that resolves to Promise<DatabaseResponse<Newsletter>>.
@@ -1583,26 +1640,29 @@ declare class Skapi {
1583
1640
  * Condition does not work with range.
1584
1641
  */
1585
1642
  condition?: '>' | '>=' | '=' | '<' | '<=' | 'gt' | 'gte' | 'eq' | 'lt' | 'lte';
1586
- group: 'public' | 'authorized' | number;
1643
+ /** Numeric group, "public", "authorized" or a named newsletter group. */
1644
+ group: 'public' | 'authorized' | number | (string & {});
1587
1645
  }, fetchOptions?: FetchOptions): Promise<DatabaseResponse<Newsletter>>;
1588
1646
  /**
1589
1647
  * Gets newsletter subscription status for the requested groups.
1648
+ * Takes a numeric group, "public", "authorized" or a named newsletter group. Omit the group for every group the user is subscribed to.
1590
1649
  * @param params Request parameters.
1591
1650
  * @param fetchOptions Pagination and fetch behavior options.
1592
- * @returns A promise that resolves to Promise<{ active: boolean; timestamp: number; group: number; subscribed_email: string; }[]>.
1651
+ * @returns A promise that resolves to Promise<{ active: boolean; timestamp: number; group: number | string; subscribed_email: string; }[]>.
1593
1652
  */
1594
- getNewsletterSubscription(params: {
1595
- group?: number | 'public' | 'authorized';
1653
+ getNewsletterSubscription(params?: {
1654
+ /** Numeric group, "public", "authorized" or a named newsletter group. Omit or null for every group. */
1655
+ group?: number | 'public' | 'authorized' | (string & {}) | null;
1596
1656
  user_id?: string;
1597
1657
  }, fetchOptions?: FetchOptions): Promise<{
1598
1658
  active: boolean;
1599
1659
  timestamp: number;
1600
- group: number;
1660
+ group: number | string;
1601
1661
  subscribed_email: string;
1602
1662
  }[] | DatabaseResponse<{
1603
1663
  active: boolean;
1604
1664
  timestamp: number;
1605
- group: number;
1665
+ group: number | string;
1606
1666
  subscribed_email: string;
1607
1667
  }>>;
1608
1668
  /**
@@ -1980,12 +2040,14 @@ declare class Skapi {
1980
2040
  }): Promise<'SUCCESS: Unblocked user ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".'>;
1981
2041
  /**
1982
2042
  * Subscribes an email/user to a newsletter group with optional redirect flow.
2043
+ * Takes a numeric group, "public", "authorized" or the name of a named newsletter group registered with registerNewsletterGroup().
1983
2044
  * @param params Request parameters.
1984
2045
  * @returns A promise that resolves to Promise<string>.
1985
2046
  */
1986
2047
  subscribeNewsletter(params: Form<{
1987
2048
  email?: string | string[];
1988
- group: number | 'public' | 'authorized' | 'admin' | (string & {});
2049
+ /** Numeric group, "public", "authorized" or a named newsletter group. */
2050
+ group: number | 'public' | 'authorized' | (string & {});
1989
2051
  redirect?: string;
1990
2052
  }>): Promise<string>;
1991
2053
  /**
@@ -2006,4 +2068,4 @@ declare class SkapiError extends Error {
2006
2068
  });
2007
2069
  }
2008
2070
 
2009
- export { type BinaryFile, type Condition, type Connection, type ConnectionInfo, type DatabaseResponse, type DelRecordQuery, type FetchOptions, type FileInfo, type Form, type GetRecordQuery, type Index, type Newsletter, type PostRecordConfig, type ProgressCallback, type RTCConnector, type RTCConnectorParams, type RTCEvent, type RTCReceiverParams, type RTCResolved, type RealtimeCallback, type RecordData, Skapi, SkapiError, type Subscription, type Table, type Tag, Types, type UniqueId, type UserAttributes, type UserProfile, type UserPublic, type WebSocketMessage };
2071
+ export { type BinaryFile, type Condition, type Connection, type ConnectionInfo, type DatabaseResponse, type DelRecordQuery, type FetchOptions, type FileInfo, type Form, type GetRecordQuery, type Index, type Newsletter, type NewsletterGroup, type PostRecordConfig, type ProgressCallback, type RTCConnector, type RTCConnectorParams, type RTCEvent, type RTCReceiverParams, type RTCResolved, type RealtimeCallback, type RecordData, Skapi, SkapiError, type Subscription, type Table, type Tag, Types, type UniqueId, type UserAttributes, type UserProfile, type UserPublic, type WebSocketMessage };