@casual-simulation/aux-runtime 3.3.11-alpha.11060020867 → 3.3.11

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.
@@ -10727,6 +10727,22 @@ export interface ListWebhooksOptions extends RecordActionOptions {
10727
10727
  }
10728
10728
 
10729
10729
 
10730
+ /**
10731
+ * Defines an interface that represents the options for a list action.
10732
+ *
10733
+ * @dochash types/records/notifications
10734
+ * @docName ListNotificationsOptions
10735
+ */
10736
+ export interface ListNotificationsOptions extends RecordActionOptions {
10737
+ /**
10738
+ * The order that items should be sorted in.
10739
+ * - "ascending" means that the items should be sorted in alphebatically ascending order by address.
10740
+ * - "descending" means that the items should be sorted in alphebatically descending order by address.
10741
+ */
10742
+ sort?: 'ascending' | 'descending';
10743
+ }
10744
+
10745
+
10730
10746
  export interface WebhookRecord extends CrudRecord {
10731
10747
  /**
10732
10748
  * The resource kind of the webhook target.
@@ -10766,6 +10782,209 @@ export interface WebhookRecord extends CrudRecord {
10766
10782
  userId?: string | null;
10767
10783
  }
10768
10784
 
10785
+ /**
10786
+ * Defines a record that represents a notification.
10787
+ * That is, a way for users to be notified of something.
10788
+ */
10789
+ export interface NotificationRecord extends CrudRecord {
10790
+ /**
10791
+ * The description of the notification.
10792
+ */
10793
+ description: string | null;
10794
+ }
10795
+
10796
+ export type SubscribeToNotificationResult =
10797
+ | SubscribeToNotificationSuccess
10798
+ | SubscribeToNotificationFailure;
10799
+
10800
+ export interface SubscribeToNotificationSuccess {
10801
+ success: true;
10802
+
10803
+ /**
10804
+ * The ID of the subscription that was created.
10805
+ */
10806
+ subscriptionId: string;
10807
+ }
10808
+
10809
+ export interface SubscribeToNotificationFailure {
10810
+ success: false;
10811
+ errorCode: KnownErrorCodes;
10812
+ errorMessage: string;
10813
+ }
10814
+
10815
+
10816
+ export type UnsubscribeToNotificationResult =
10817
+ | UnsubscribeToNotificationSuccess
10818
+ | UnsubscribeToNotificationFailure;
10819
+
10820
+ export interface UnsubscribeToNotificationSuccess {
10821
+ success: true;
10822
+ }
10823
+
10824
+ export interface UnsubscribeToNotificationFailure {
10825
+ success: false;
10826
+ errorCode: KnownErrorCodes;
10827
+ errorMessage: string;
10828
+ }
10829
+
10830
+
10831
+ export type SendNotificationResult =
10832
+ | SendNotificationSuccess
10833
+ | SendNotificationFailure;
10834
+
10835
+ export interface SendNotificationSuccess {
10836
+ success: true;
10837
+ }
10838
+
10839
+ export interface SendNotificationFailure {
10840
+ success: false;
10841
+ errorCode: KnownErrorCodes;
10842
+ errorMessage: string;
10843
+ }
10844
+
10845
+ /**
10846
+ * Defines an active subscription to a notification.
10847
+ */
10848
+ export interface NotificationSubscription {
10849
+ /**
10850
+ * The ID of the subscription.
10851
+ */
10852
+ id: string;
10853
+
10854
+ /**
10855
+ * The name of the record that the subscription is for.
10856
+ */
10857
+ recordName: string;
10858
+
10859
+ /**
10860
+ * The address of the notification in the record.
10861
+ */
10862
+ notificationAddress: string;
10863
+
10864
+ /**
10865
+ * The ID of the user that is subscribed.
10866
+ * If null, then notifications should only be sent to the specified push subscription.
10867
+ */
10868
+ userId: string | null;
10869
+
10870
+ /**
10871
+ * The push subscription that the notification should be sent to.
10872
+ * If null, then notifications should be sent to all push subscriptions for the user.
10873
+ */
10874
+ pushSubscriptionId: string | null;
10875
+ }
10876
+
10877
+ export type ListSubscriptionsResult =
10878
+ | ListSubscriptionsSuccess
10879
+ | ListSubscriptionsFailure;
10880
+
10881
+ export interface ListSubscriptionsSuccess {
10882
+ success: true;
10883
+
10884
+ /**
10885
+ * The list of subscriptions.
10886
+ */
10887
+ subscriptions: NotificationSubscription[];
10888
+ }
10889
+
10890
+ export interface ListSubscriptionsFailure {
10891
+ success: false;
10892
+ errorCode: KnownErrorCodes;
10893
+ errorMessage: string;
10894
+ }
10895
+
10896
+
10897
+ export interface PushNotificationPayload {
10898
+ /**
10899
+ * The title of the push notification.
10900
+ *
10901
+ * See https://web.dev/articles/push-notifications-display-a-notification#title_and_body_options
10902
+ */
10903
+ title: string;
10904
+
10905
+ /**
10906
+ * The body of the push notification.
10907
+ *
10908
+ * See https://web.dev/articles/push-notifications-display-a-notification#title_and_body_options for more information.
10909
+ */
10910
+ body?: string;
10911
+
10912
+ /**
10913
+ * The URL to the icon that should displayed for the push notification.
10914
+ *
10915
+ * See https://web.dev/articles/push-notifications-display-a-notification#icon for more information.
10916
+ */
10917
+ icon?: string;
10918
+
10919
+ /**
10920
+ * The URL to the image that should be used for the badge of the push notification.
10921
+ *
10922
+ * See https://web.dev/articles/push-notifications-display-a-notification#badge for more information.
10923
+ */
10924
+ badge?: string;
10925
+
10926
+ /**
10927
+ * Whether the push notification should be silent.
10928
+ */
10929
+ silent?: boolean;
10930
+
10931
+ /**
10932
+ * The tag for the notification.
10933
+ *
10934
+ * See https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification#tag
10935
+ */
10936
+ tag?: string;
10937
+ /**
10938
+ * The timestamp for the notification.
10939
+ *
10940
+ * See https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification#timestamp
10941
+ */
10942
+ timestamp?: number;
10943
+
10944
+ /**
10945
+ * The action that should be performed when the notification is clicked.
10946
+ */
10947
+ action?: PushNotificationAction;
10948
+
10949
+ /**
10950
+ * The actions that should be displayed on the notification.
10951
+ */
10952
+ actions?: PushNotificationActionOption[];
10953
+ }
10954
+
10955
+ export type PushNotificationAction = PushNotificationOpenUrlAction | PushNotificationWebhookAction;
10956
+
10957
+ export interface PushNotificationOpenUrlAction {
10958
+ type: 'open_url';
10959
+ url: string;
10960
+ }
10961
+
10962
+ export interface PushNotificationWebhookAction {
10963
+ type: 'webhook';
10964
+ method: 'GET' | 'POST';
10965
+ url: string;
10966
+ headers?: Record<string, string>;
10967
+ }
10968
+
10969
+ export interface PushNotificationActionOption {
10970
+ title: string;
10971
+ icon?: string;
10972
+ action: PushNotificationAction;
10973
+ }
10974
+
10975
+ /**
10976
+ * Defines an interface that represents the options for sending a notification.
10977
+ *
10978
+ * @dochash types/records/notifications
10979
+ * @docName SendNotificationOptions
10980
+ */
10981
+ export interface SendNotificationOptions extends RecordActionOptions {
10982
+ /**
10983
+ * The topic that the notification is for.
10984
+ * Topics can be used to replace existing notifications with a new notification.
10985
+ */
10986
+ topic?: string;
10987
+ }
10769
10988
 
10770
10989
  interface Ai {
10771
10990
  /**
@@ -12852,6 +13071,215 @@ interface Os {
12852
13071
  options?: ListWebhooksOptions
12853
13072
  ): Promise<CrudListItemsResult<WebhookRecord>>;
12854
13073
 
13074
+ /**
13075
+ * Creates or updates a [notification](glossary:notification-record) in the given record using the given options.
13076
+ *
13077
+ * Returns a promise that resolves with an object that contains whether the operation succeeded.
13078
+ *
13079
+ * @param recordName the name of the record.
13080
+ * @param notification the notification that should be created or updated.
13081
+ * @param options the options that should be used.
13082
+ *
13083
+ * @example Create a notification that anyone can subscribe to.
13084
+ * await os.recordNotification('myRecord', {
13085
+ * address: 'notificationAddress',
13086
+ * description: 'my notification',
13087
+ * markers: ['publicRead']
13088
+ * });
13089
+ *
13090
+ * @example Create a private notification.
13091
+ * await os.recordNotification('myRecord', {
13092
+ * address: 'notificationAddress',
13093
+ * description: 'my notification',
13094
+ * markers: ['private']
13095
+ * });
13096
+ *
13097
+ * @dochash actions/os/records
13098
+ * @docgroup 06-records
13099
+ * @docname os.recordNotification
13100
+ */
13101
+ recordNotification(
13102
+ recordName: string,
13103
+ notification: NotificationRecord,
13104
+ options?: RecordActionOptions
13105
+ ): Promise<CrudRecordItemResult>;
13106
+
13107
+ /**
13108
+ * Gets the [notification](glossary:notification-record) from the given record.
13109
+ *
13110
+ * Returns a promise that resolves with the notification data.
13111
+ *
13112
+ * @param recordName the name of the record.
13113
+ * @param address the address of the notification.
13114
+ * @param options the options to use.
13115
+ *
13116
+ * @dochash actions/os/records
13117
+ * @docgroup 06-records
13118
+ * @docname os.getWebhook
13119
+ */
13120
+ getNotification(
13121
+ recordName: string,
13122
+ address: string,
13123
+ options?: RecordActionOptions
13124
+ ): Promise<CrudGetItemResult<NotificationRecord>>;
13125
+
13126
+ /**
13127
+ * Deletes the [notification](glossary:notification-record) from the given record.
13128
+ * @param recordName the name of the record.
13129
+ * @param address the address of the notification.
13130
+ * @param options the options to use.
13131
+ *
13132
+ * @dochash actions/os/records
13133
+ * @docgroup 06-records
13134
+ * @docname os.eraseNotification
13135
+ */
13136
+ eraseNotification(
13137
+ recordName: string,
13138
+ address: string,
13139
+ options?: RecordActionOptions
13140
+ ): Promise<CrudEraseItemResult>;
13141
+
13142
+ /**
13143
+ * Lists the notifications that are in the given record.
13144
+ * @param recordName the name of the record.
13145
+ * @param startingAddress the address after which items will be included in the list.
13146
+ * Since items are ordered within the record by address, this can be used as way to iterate through all the webhooks items in a record.
13147
+ * If omitted, then the list will start with the first item.
13148
+ * @param options the options to use.
13149
+ *
13150
+ * @dochash actions/os/records
13151
+ * @docgroup 06-records
13152
+ * @docname os.listNotifications
13153
+ */
13154
+ listNotifications(
13155
+ recordName: string,
13156
+ startingAddress?: string,
13157
+ options?: ListNotificationsOptions
13158
+ ): Promise<CrudListItemsResult<NotificationRecord>>;
13159
+
13160
+ /**
13161
+ * Lists the webhooks that are in the given record.
13162
+ * @param recordName the name of the record.
13163
+ * @param marker The marker that needs to be assigned to the data items that should be included in the list.
13164
+ * e.g. Using "publicRead" will return all data items with the "publicRead" marker.
13165
+ * @param startingAddress the address after which items will be included in the list.
13166
+ * Since items are ordered within the record by address, this can be used as way to iterate through all the webhooks items in a record.
13167
+ * If omitted, then the list will start with the first item.
13168
+ * @param options the options to use.
13169
+ *
13170
+ * @dochash actions/os/records
13171
+ * @docgroup 06-records
13172
+ * @docname os.listNotificationsByMarker
13173
+ */
13174
+ listNotificationsByMarker(
13175
+ recordName: string,
13176
+ marker: string,
13177
+ startingAddress?: string,
13178
+ options?: ListNotificationsOptions
13179
+ ): Promise<CrudListItemsResult<NotificationRecord>>;
13180
+
13181
+ /**
13182
+ * Subscribes to the given notification in the given record.
13183
+ *
13184
+ * Returns a promise that resolves when the operation is complete.
13185
+ *
13186
+ * @param recordName the name of the record.
13187
+ * @param address the address of the notification that should be subscribed to.
13188
+ * @param options the options to use.
13189
+ *
13190
+ * @example Subscribe to a notification.
13191
+ * await os.subscribeToNotification('myRecord', 'myNotificationAddress');
13192
+ *
13193
+ * @dochash actions/os/records
13194
+ * @docgroup 06-records
13195
+ * @docname os.subscribeToNotification
13196
+ */
13197
+ subscribeToNotification(
13198
+ recordName: string,
13199
+ address: string,
13200
+ options?: RecordActionOptions
13201
+ ): Promise<SubscribeToNotificationResult>;
13202
+
13203
+ /**
13204
+ * Unsubscribes from the given notification subscription.
13205
+ *
13206
+ * Returns a promise that resolves when the operation is complete.
13207
+ *
13208
+ * @param subscriptionId the ID of the subscription.
13209
+ * @param options the options to use.
13210
+ *
13211
+ * @dochash actions/os/records
13212
+ * @docgroup 06-records
13213
+ * @docname os.unsubscribeFromNotification
13214
+ */
13215
+ unsubscribeFromNotification(
13216
+ subscriptionId: string,
13217
+ options?: RecordActionOptions
13218
+ ): Promise<UnsubscribeToNotificationResult>;
13219
+
13220
+ /**
13221
+ * Sends a notification to all subscribers of the given notification in the given record.
13222
+ *
13223
+ * Returns a promise that resolves with the result of the operation.
13224
+ *
13225
+ * @param recordName the name of the record.
13226
+ * @param address the address of the notification.
13227
+ * @param payload the payload to send.
13228
+ * @param options the options to use.
13229
+ *
13230
+ * @example Send a notification.
13231
+ * await os.sendNotification('myRecord', 'myNotificationAddress', {
13232
+ * title: 'Hello',
13233
+ * body: 'This is your first notification!',
13234
+ * });
13235
+ *
13236
+ * @dochash actions/os/records
13237
+ * @docgroup 06-records
13238
+ * @docname os.sendNotification
13239
+ */
13240
+ sendNotification(
13241
+ recordName: string,
13242
+ address: string,
13243
+ payload: PushNotificationPayload,
13244
+ options?: SendNotificationOptions
13245
+ ): Promise<SendNotificationResult>;
13246
+
13247
+ /**
13248
+ * Gets the list of subscriptions for the given notification in the given record.
13249
+ *
13250
+ * @param recordName the name of the record.
13251
+ * @param address the address of the notification.
13252
+ * @param options the options to use.
13253
+ *
13254
+ * @example List notification subscriptions.
13255
+ * const result = await os.listNotificationSubscriptions('myRecord', 'myNotificationAddress');
13256
+ *
13257
+ * @dochash actions/os/records
13258
+ * @docgroup 06-records
13259
+ * @docname os.listNotificationSubscriptions
13260
+ */
13261
+ listNotificationSubscriptions(
13262
+ recordName: string,
13263
+ address: string,
13264
+ options?: RecordActionOptions
13265
+ ): Promise<ListSubscriptionsResult>;
13266
+
13267
+ /**
13268
+ * Gets the list of notification subscriptions for the current user.
13269
+ *
13270
+ * @param options the options to use.
13271
+ *
13272
+ * @example List the current user's notification subscriptions.
13273
+ * const result = await os.listUserNotificationSubscriptions();
13274
+ *
13275
+ * @dochash actions/os/records
13276
+ * @docgroup 06-records
13277
+ * @docname os.listUserNotificationSubscriptions
13278
+ */
13279
+ listUserNotificationSubscriptions(
13280
+ options?: RecordActionOptions
13281
+ ): Promise<ListSubscriptionsResult>;
13282
+
12855
13283
  /**
12856
13284
  * Records the given data as a file.
12857
13285
  * @param recordKey The record that the file should be recorded in.
@@ -1,8 +1,8 @@
1
- import type { AIChatMessage, PublicRecordKeyPolicy, RecordFileFailure, WebhookRecord } from '@casual-simulation/aux-records';
1
+ import type { AIChatMessage, PublicRecordKeyPolicy, RecordFileFailure, WebhookRecord, NotificationRecord, PushNotificationPayload } from '@casual-simulation/aux-records';
2
2
  import type { RecordsClientActions } from '@casual-simulation/aux-records/RecordsClient';
3
3
  import { APPROVED_SYMBOL, AsyncAction, AvailablePermissions } from '@casual-simulation/aux-common';
4
4
  export type RecordsActions = RecordsAsyncActions;
5
- export type RecordsAsyncActions = RecordDataAction | GetRecordDataAction | ListRecordDataAction | ListRecordDataByMarkerAction | EraseRecordDataAction | RecordFileAction | GetFileAction | EraseFileAction | RecordEventAction | GetEventCountAction | AIChatAction | AIChatStreamAction | AIGenerateImageAction | AIGenerateSkyboxAction | AIHumeGetAccessTokenAction | AISloydGenerateModelAction | ListUserStudiosAction | GetPublicRecordKeyAction | GrantRecordPermissionAction | RevokeRecordPermissionAction | GrantInstAdminPermissionAction | GrantRoleAction | RevokeRoleAction | JoinRoomAction | LeaveRoomAction | SetRoomOptionsAction | GetRoomOptionsAction | GetRoomTrackOptionsAction | SetRoomTrackOptionsAction | GetRoomRemoteOptionsAction | RecordsCallProcedureAction;
5
+ export type RecordsAsyncActions = RecordDataAction | GetRecordDataAction | ListRecordDataAction | ListRecordDataByMarkerAction | EraseRecordDataAction | RecordFileAction | GetFileAction | EraseFileAction | RecordEventAction | GetEventCountAction | AIChatAction | AIChatStreamAction | AIGenerateImageAction | AIGenerateSkyboxAction | AIHumeGetAccessTokenAction | AISloydGenerateModelAction | ListUserStudiosAction | GetPublicRecordKeyAction | GrantRecordPermissionAction | RevokeRecordPermissionAction | GrantInstAdminPermissionAction | GrantRoleAction | RevokeRoleAction | JoinRoomAction | LeaveRoomAction | SetRoomOptionsAction | GetRoomOptionsAction | GetRoomTrackOptionsAction | SetRoomTrackOptionsAction | GetRoomRemoteOptionsAction | RecordsCallProcedureAction | SubscribeToNotificationAction;
6
6
  /**
7
7
  * An event that is used to chat with an AI.
8
8
  */
@@ -436,11 +436,25 @@ export interface RecordsCallProcedureAction extends RecordsAction {
436
436
  */
437
437
  procedure: Partial<RecordsClientActions>;
438
438
  }
439
+ /**
440
+ * Defines an event that attempts to subscribe to a notification.
441
+ */
442
+ export interface SubscribeToNotificationAction extends RecordsAction {
443
+ type: 'subscribe_to_notification';
444
+ /**
445
+ * The name of the record.
446
+ */
447
+ recordName: string;
448
+ /**
449
+ * The address of the notification.
450
+ */
451
+ address: string;
452
+ }
439
453
  /**
440
454
  * Defines an interface that represents the options for a list data action.
441
455
  *
442
- * @dochash types/records/data
443
- * @docName ListDataOptions
456
+ * @dochash types/records/webhooks
457
+ * @docName ListWebhooksOptions
444
458
  */
445
459
  export interface ListWebhooksOptions extends RecordActionOptions {
446
460
  /**
@@ -450,6 +464,33 @@ export interface ListWebhooksOptions extends RecordActionOptions {
450
464
  */
451
465
  sort?: 'ascending' | 'descending';
452
466
  }
467
+ /**
468
+ * Defines an interface that represents the options for a list action.
469
+ *
470
+ * @dochash types/records/notifications
471
+ * @docName ListNotificationsOptions
472
+ */
473
+ export interface ListNotificationsOptions extends RecordActionOptions {
474
+ /**
475
+ * The order that items should be sorted in.
476
+ * - "ascending" means that the items should be sorted in alphebatically ascending order by address.
477
+ * - "descending" means that the items should be sorted in alphebatically descending order by address.
478
+ */
479
+ sort?: 'ascending' | 'descending';
480
+ }
481
+ /**
482
+ * Defines an interface that represents the options for sending a notification.
483
+ *
484
+ * @dochash types/records/notifications
485
+ * @docName SendNotificationOptions
486
+ */
487
+ export interface SendNotificationOptions extends RecordActionOptions {
488
+ /**
489
+ * The topic that the notification is for.
490
+ * Topics can be used to replace existing notifications with a new notification.
491
+ */
492
+ topic?: string;
493
+ }
453
494
  export interface RecordFileActionOptions extends RecordActionOptions {
454
495
  /**
455
496
  * The markers that should be applied to the record.
@@ -1138,6 +1179,86 @@ export declare function listWebhooksByMarker(recordName: string, marker: string,
1138
1179
  * @param taskId The ID of the task.
1139
1180
  */
1140
1181
  export declare function eraseWebhook(recordName: string, address: string, options: RecordActionOptions, taskId?: number | string): RecordsCallProcedureAction;
1182
+ /**
1183
+ * Creates a SubscribeToNotificationAction.
1184
+ * @param recordName The name of the record.
1185
+ * @param address The address of the notification to subscribe to.
1186
+ * @param options The options that should be used for the action.
1187
+ * @param taskId The ID of the async task.
1188
+ */
1189
+ export declare function subscribeToNotification(recordName: string, address: string, options: RecordActionOptions, taskId?: number | string): SubscribeToNotificationAction;
1190
+ /**
1191
+ * Creates an action that is able to unsubscribe from a notification.
1192
+ * @param subscriptionId The ID of the subscription.
1193
+ * @param options The options that should be used for the action.
1194
+ * @param taskId The ID of the async task.
1195
+ */
1196
+ export declare function unsubscribeFromNotification(subscriptionId: string, options: RecordActionOptions, taskId?: number | string): RecordsCallProcedureAction;
1197
+ /**
1198
+ * Creates an action that is able to record a notification.
1199
+ * @param recordName The name of the record.
1200
+ * @param item The item to record.
1201
+ * @param options The options.
1202
+ * @param taskId The ID of the async task.
1203
+ */
1204
+ export declare function recordNotification(recordName: string, item: NotificationRecord, options: RecordActionOptions, taskId?: number | string): RecordsCallProcedureAction;
1205
+ /**
1206
+ * Creates an action that is able to get information about a notification.
1207
+ * @param recordName The name of the record.
1208
+ * @param address The address of the notification.
1209
+ * @param options The options.
1210
+ * @param taskId The ID of the async task.
1211
+ */
1212
+ export declare function getNotification(recordName: string, address: string, options: RecordActionOptions, taskId?: number | string): RecordsCallProcedureAction;
1213
+ /**
1214
+ * Creates an action that is able to list the notifications in a record.
1215
+ * @param recordName The name of the record.
1216
+ * @param startingAddress The address that the list should start with.
1217
+ * @param options The options.
1218
+ * @param taskId The ID of the async task.
1219
+ */
1220
+ export declare function listNotifications(recordName: string, startingAddress: string, options: RecordActionOptions, taskId?: number | string): RecordsCallProcedureAction;
1221
+ /**
1222
+ * Creates an action that is able to list the notifications in a record.
1223
+ * @param recordName The name of the record.
1224
+ * @param marker The marker.
1225
+ * @param startingAddress The address that the list should start with.
1226
+ * @param options The options.
1227
+ * @param taskId The ID of the async task.
1228
+ */
1229
+ export declare function listNotificationsByMarker(recordName: string, marker: string, startingAddress: string, options: ListNotificationsOptions, taskId?: number | string): RecordsCallProcedureAction;
1230
+ /**
1231
+ * Creates an action that is able to erase a notification.
1232
+ * @param recordName The name of the record.
1233
+ * @param address The address of the notification.
1234
+ * @param options The options.
1235
+ * @param taskId The ID of the async task.
1236
+ */
1237
+ export declare function eraseNotification(recordName: string, address: string, options: RecordActionOptions, taskId?: number | string): RecordsCallProcedureAction;
1238
+ /**
1239
+ * Creates an action that can be used to send a notification.
1240
+ * @param recordName The name of the record.
1241
+ * @param address The address of the notification.
1242
+ * @param payload The payload to send.
1243
+ * @param options The options.
1244
+ * @param taskId The ID of the task.
1245
+ */
1246
+ export declare function sendNotification(recordName: string, address: string, payload: PushNotificationPayload, options: SendNotificationOptions, taskId?: number | string): RecordsCallProcedureAction;
1247
+ /**
1248
+ * Creates an action that can be used to list the notification subscriptions for a record.
1249
+ * @param recordName The name of the record.
1250
+ * @param address The address of the notification.
1251
+ * @param options The options.
1252
+ * @param taskId The ID of the task.
1253
+ */
1254
+ export declare function listNotificationSubscriptions(recordName: string, address: string, options: RecordActionOptions, taskId?: number | string): RecordsCallProcedureAction;
1255
+ /**
1256
+ * Creates an action that can be used to list the notification subscriptions a user.
1257
+ * @param userId The ID of the user.
1258
+ * @param options The options.
1259
+ * @param taskId The ID of the task.
1260
+ */
1261
+ export declare function listUserNotificationSubscriptions(options: RecordActionOptions, taskId?: number | string): RecordsCallProcedureAction;
1141
1262
  /**
1142
1263
  * Creates a RecordFileAction.
1143
1264
  * @param recordKey The key that should be used to access the record.