@sparkvault/sdk-js 15.14.2 → 15.15.0
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/index.cjs +9 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +57 -11
- package/dist/index.mjs +9 -5
- package/dist/index.mjs.map +1 -1
- package/dist/products/index.d.ts +1 -1
- package/dist/products/notify/index.d.ts +8 -4
- package/dist/products/notify/types.d.ts +48 -6
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/vaults/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1313,6 +1313,20 @@ type NotifyDestinationReason = NotifyDestinationSkipReason | NotifyDestinationFa
|
|
|
1313
1313
|
* start it (`deadline_reached`).
|
|
1314
1314
|
*/
|
|
1315
1315
|
type NotifyDestinationTransportReason = 'network' | 'timeout' | 'unsent' | 'deadline_reached';
|
|
1316
|
+
/**
|
|
1317
|
+
* Why `updateConfig` refused a patch that lacks a field: the `details.reason`
|
|
1318
|
+
* of its 400 `VALIDATION_ERROR`, beside `details.missing`.
|
|
1319
|
+
*
|
|
1320
|
+
* - `secret_required_on_new_host`: a webhook destination's `url`, or
|
|
1321
|
+
* `events.webhook_url`, moved to another host or port without a new
|
|
1322
|
+
* `secret` beside it (`details.missing: ['secret']`). Saving again with a
|
|
1323
|
+
* new secret lands.
|
|
1324
|
+
* - `destination_incomplete`: the patch names a destination the account does
|
|
1325
|
+
* not hold, which is created with every field of its kind, and it lacks the
|
|
1326
|
+
* ones `details.missing` names. A partial patch of a destination removed
|
|
1327
|
+
* since it was read meets this too: read the config again.
|
|
1328
|
+
*/
|
|
1329
|
+
type NotifyConfigRefusalReason = 'secret_required_on_new_host' | 'destination_incomplete';
|
|
1316
1330
|
/**
|
|
1317
1331
|
* The `reason` beside a test post's `skipped` or `failed`
|
|
1318
1332
|
* (`testDestination`): a skip reason a send status reports, or, beside
|
|
@@ -1967,6 +1981,13 @@ interface NotifySendStatusDestination {
|
|
|
1967
1981
|
* Teams workflow's host. Null when no attempt recorded one.
|
|
1968
1982
|
*/
|
|
1969
1983
|
target: string | null;
|
|
1984
|
+
/**
|
|
1985
|
+
* The Slack channel's name beside its id in `target`, as the Slack
|
|
1986
|
+
* destination's `channel_name` read when the post was decided. Null for a
|
|
1987
|
+
* webhook or Teams post, whose host names itself, and for a Slack post whose
|
|
1988
|
+
* destination held no name.
|
|
1989
|
+
*/
|
|
1990
|
+
target_name: string | null;
|
|
1970
1991
|
}
|
|
1971
1992
|
/**
|
|
1972
1993
|
* A send's delivery state, DERIVED from its counters — the send row itself is
|
|
@@ -2265,8 +2286,9 @@ interface NotifyConfigSecurity {
|
|
|
2265
2286
|
* link-local, and CGNAT addresses are rejected server-side). A patch names only
|
|
2266
2287
|
* what it changes, but a `webhook_url` on another host or port than the
|
|
2267
2288
|
* stored one needs a new `secret` in the same patch (400 `VALIDATION_ERROR`
|
|
2268
|
-
* naming `events.secret`, `details.missing: ['secret']`
|
|
2269
|
-
* follows its URL to a
|
|
2289
|
+
* naming `events.secret`, `details.missing: ['secret']`, `details.reason:
|
|
2290
|
+
* 'secret_required_on_new_host'`): a secret never follows its URL to a
|
|
2291
|
+
* different host. A patch of `events: null` removes the
|
|
2270
2292
|
* webhook, URL and secret together, and no event is sent from then on; a
|
|
2271
2293
|
* `null` for either field alone is refused 400.
|
|
2272
2294
|
*
|
|
@@ -2349,6 +2371,16 @@ interface NotifySlackDestination {
|
|
|
2349
2371
|
/** As `NotifyWebhookDestination['categories']`. */
|
|
2350
2372
|
categories: string[];
|
|
2351
2373
|
}
|
|
2374
|
+
/** The Slack destination as a read returns it: its channel by id and by name. */
|
|
2375
|
+
interface NotifySlackDestinationRead extends NotifySlackDestination {
|
|
2376
|
+
/**
|
|
2377
|
+
* The channel's name, without its `#`, as Slack named it when the last save
|
|
2378
|
+
* naming `channel_id` prepared it, so every such save refreshes it. Set by
|
|
2379
|
+
* the save, never by a patch (one naming it is refused 400). Null until a
|
|
2380
|
+
* save naming `channel_id` captures it.
|
|
2381
|
+
*/
|
|
2382
|
+
channel_name: string | null;
|
|
2383
|
+
}
|
|
2352
2384
|
/** A Microsoft Teams workflow as a destination, posted to through its webhook URL. */
|
|
2353
2385
|
interface NotifyTeamsDestination {
|
|
2354
2386
|
/**
|
|
@@ -2371,17 +2403,20 @@ interface NotifyTeamsDestinationRead {
|
|
|
2371
2403
|
/** The destinations a config read returns, each present only once configured. */
|
|
2372
2404
|
interface NotifyConfigDestinations {
|
|
2373
2405
|
webhook?: NotifyWebhookDestinationRead;
|
|
2374
|
-
slack?:
|
|
2406
|
+
slack?: NotifySlackDestinationRead;
|
|
2375
2407
|
teams?: NotifyTeamsDestinationRead;
|
|
2376
2408
|
}
|
|
2377
2409
|
/**
|
|
2378
2410
|
* A patch of the destinations: null removes the destination of its kind; an
|
|
2379
2411
|
* object creates it, naming every field, or patches the one stored, naming
|
|
2380
|
-
* only what it changes (a credential it leaves out stays as stored)
|
|
2412
|
+
* only what it changes (a credential it leaves out stays as stored); one
|
|
2413
|
+
* created without every field is refused 400 `VALIDATION_ERROR` with
|
|
2414
|
+
* `details.missing` and `details.reason: 'destination_incomplete'`. A webhook
|
|
2381
2415
|
* `url` on another host or port than the stored one needs a new `secret` in
|
|
2382
2416
|
* the same patch (400 `VALIDATION_ERROR` naming
|
|
2383
|
-
* `destinations.webhook.secret`, `details.missing: ['secret']
|
|
2384
|
-
*
|
|
2417
|
+
* `destinations.webhook.secret`, `details.missing: ['secret']`,
|
|
2418
|
+
* `details.reason: 'secret_required_on_new_host'`): a secret never follows its
|
|
2419
|
+
* URL to a different host. (`NotifyConfigRefusalReason`)
|
|
2385
2420
|
*/
|
|
2386
2421
|
interface NotifyConfigDestinationsPatch {
|
|
2387
2422
|
webhook?: Partial<NotifyWebhookDestination> | null;
|
|
@@ -2464,6 +2499,13 @@ type NotifyConfigOverrides = Omit<NotifyConfigPatch, 'events' | 'destinations'>
|
|
|
2464
2499
|
interface NotifyConfigResponse {
|
|
2465
2500
|
effective: NotifyConfig;
|
|
2466
2501
|
overrides: NotifyConfigOverrides;
|
|
2502
|
+
/**
|
|
2503
|
+
* The version of the stored configuration this answer shows: 0 before
|
|
2504
|
+
* anything is saved, one higher with each save that lands. Of two answers
|
|
2505
|
+
* to overlapping saves, which can arrive in either order, the one with the
|
|
2506
|
+
* higher version is the newer configuration.
|
|
2507
|
+
*/
|
|
2508
|
+
version: number;
|
|
2467
2509
|
}
|
|
2468
2510
|
|
|
2469
2511
|
/**
|
|
@@ -2777,10 +2819,13 @@ declare class NotifyProductModule {
|
|
|
2777
2819
|
/**
|
|
2778
2820
|
* The account's effective Notify config (secure defaults deep-merged with its
|
|
2779
2821
|
* overrides) plus the raw override delta, so an editor can show what is
|
|
2780
|
-
* customized versus default
|
|
2822
|
+
* customized versus default, and the `version` of the stored config they
|
|
2823
|
+
* show (0 before anything is saved, one higher with each save). Answers can
|
|
2824
|
+
* arrive out of order, as two overlapping `updateConfig` calls' can: the one
|
|
2825
|
+
* with the higher `version` is the newer config, so keep that one.
|
|
2781
2826
|
*
|
|
2782
2827
|
* @example
|
|
2783
|
-
* const { effective, overrides } = await sv.products.notify.getConfig();
|
|
2828
|
+
* const { effective, overrides, version } = await sv.products.notify.getConfig();
|
|
2784
2829
|
*/
|
|
2785
2830
|
getConfig(): Promise<NotifyConfigResponse>;
|
|
2786
2831
|
/**
|
|
@@ -2811,7 +2856,8 @@ declare class NotifyProductModule {
|
|
|
2811
2856
|
* (`details: { sections, required_role: 'admin' }`). A ladder naming a channel
|
|
2812
2857
|
* other than `in_app` and `email` is refused 403 `NOTIFY_CHANNEL_NOT_AVAILABLE`
|
|
2813
2858
|
* (`details: { field, channels }`); a save that overlapping saves kept
|
|
2814
|
-
* outracing is refused 409 `CONFLICT`: reload and patch again.
|
|
2859
|
+
* outracing is refused 409 `CONFLICT`: reload and patch again. A save answers
|
|
2860
|
+
* as `getConfig` does, its `version` the one this save wrote.
|
|
2815
2861
|
*
|
|
2816
2862
|
* @example
|
|
2817
2863
|
* await sv.products.notify.updateConfig({
|
|
@@ -4910,7 +4956,7 @@ declare class VaultsModule {
|
|
|
4910
4956
|
* Update a vault's upload settings (max size, notification email).
|
|
4911
4957
|
*
|
|
4912
4958
|
* @example
|
|
4913
|
-
* await sv.vaults.updateUploadConfig('vlt_abc', { maxSizeBytes:
|
|
4959
|
+
* await sv.vaults.updateUploadConfig('vlt_abc', { maxSizeBytes: 5 * 1024 ** 4 });
|
|
4914
4960
|
*/
|
|
4915
4961
|
updateUploadConfig(vaultId: string, config: UpdateVaultUploadOptions): Promise<VaultUploadSettings>;
|
|
4916
4962
|
private toggleUploadChannel;
|
|
@@ -6269,4 +6315,4 @@ declare global {
|
|
|
6269
6315
|
}
|
|
6270
6316
|
|
|
6271
6317
|
export { AuthenticationError, AuthorizationError, EntropyModule, FoldersModule, HelpDeskClient, HelpDeskModule, IdentityModule, IdentityProviderError, IngotsModule, MessagingModule, NAME_CONFLICT_POLICIES, NOTIFY_PRESETS, NetworkError, NotifyModule, NotifyProductModule, NotifyProjectsModule, NotifySubscriptionRequiredError, PlanRequiredError, PopupBlockedError, ProductsModule, QuotaExceededError, SparkVault, SparkVaultError, SparksModule, StructuredIngotTypesModule, StructuredIngotsModule, TimeoutError, UnauthorizedError, UsageCreditFundingReviewError, UsageCreditsExhaustedError, UserCancelledError, ValidationError, VaultsModule, buildNotifyPresetSend, SparkVault as default, fetchDownload, isReceivedUploadFailure, logger, setDebugMode };
|
|
6272
|
-
export type { AccessLogRetention, AccessLogsOptions, BatchGetStructuredIngotsOptions, CreateFolderOptions, CreateMessagingConversationOptions, CreateNotifyProjectOptions, CreateNotifySendOptions, CreateSparkOptions, CreateStructuredIngotOptions, CreateStructuredTypeOptions, CreateUploadOptions, CreateVaultOptions, CreatedIngot, CreatedSpark, DeleteIngotOptions, DeleteStructuredIngotOptions, DownloadIngotOptions, EntropyFormat, EntropyResult, FetchDownloadOptions, FetchedDownload, Folder, FolderBreadcrumbItem, FolderContents, FolderPage, GenerateEntropyOptions, GetStructuredIngotOptions, HealthCheckOptions, HealthCheckResult, HelpDeskAttachmentDownload, HelpDeskAttachmentInput, HelpDeskAttachmentUpload, HelpDeskConnectOptions, HelpDeskCreateTicketOptions, HelpDeskCustomer, HelpDeskCustomerPatch, HelpDeskDesk, HelpDeskDraft, HelpDeskEvent, HelpDeskExternalChallenge, HelpDeskExternalIdentity, HelpDeskFormHandle, HelpDeskFormOptions, HelpDeskFormState, HelpDeskIdentityRequest, HelpDeskListTicketsOptions, HelpDeskMountFormOptions, HelpDeskOpenFormOptions, HelpDeskPinChallenge, HelpDeskReplyCreated, HelpDeskReplyOptions, HelpDeskRequestContext, HelpDeskSession, HelpDeskSessionChange, HelpDeskSupportHandle, HelpDeskSupportLauncherOptions, HelpDeskSupportOpenOptions, HelpDeskSupportOptions, HelpDeskSupportStage, HelpDeskSupportState, HelpDeskTicket, HelpDeskTicketCreated, HelpDeskTicketDetail, HelpDeskTicketList, HelpDeskTimeline, HelpDeskVerifyPinOptions, HelpDeskWidgetFormIdentity, HelpDeskWidgetIdentityChallenge, HelpDeskWidgetIdentityOptions, HelpDeskWidgetIdentitySession, AttachOptions as IdentityAttachOptions, ImportStructuredIngotsOptions, Ingot, IngotAccessLog, IngotAccessLogPage, IngotDownload, IngotDownloadLink, IngotHistory, IngotInvitation, IngotInvite, IngotPage, IngotSharingConfig, IngotUpload, IngotVersion, IngotVersionDownloadLink, InitiateMessagingAttachmentOptions, ListContentsOptions, ListFoldersOptions, ListIngotsOptions, ListMessagingInboxOptions, ListNotificationsOptions, ListNotificationsResponse, ListNotifyInboxOptions, ListNotifyInboxResponse, ListNotifyProjectsResponse, ListNotifyReceiptsOptions, ListNotifyReceiptsResponse, ListNotifySendsOptions, ListNotifySendsResponse, ListSparksOptions, MarkAllNotificationsStateOptions, MarkAllNotificationsStateResponse, MarkAllReadResult, MarkNotificationStateOptions, MarkNotificationStateResponse, MarkNotifyInboxAllOptions, MarkNotifyInboxAllResponse, MarkNotifyInboxStateOptions, MarkNotifyInboxStateResponse, MessagingAttachment, MessagingAttachmentDownload, MessagingAttachmentUpload, MessagingContentMessage, MessagingConversation, MessagingConversationCreated, MessagingConversationSettings, MessagingIdentity, MessagingInboxCursor, MessagingInboxEntry, MessagingInboxPage, MessagingInviteResult, MessagingMessage, MessagingMessageReceipt, MessagingParticipant, MessagingParticipantInput, MessagingReadResult, MessagingRecalledMessage, MessagingReceiptToken, MessagingRecipientIdentity, MessagingSendResult, MessagingUnavailableMessage, NameConflictPolicy, NotificationBulkMarkState, NotificationInboxState, NotificationMarkState, NotificationRow, NotificationSender, NotifyCategory, NotifyChannel, NotifyConfig, NotifyConfigCategory, NotifyConfigDelivery, NotifyConfigDeliveryPatch, NotifyConfigDestinations, NotifyConfigDestinationsPatch, NotifyConfigEvents, NotifyConfigEventsRead, NotifyConfigHistory, NotifyConfigOverrides, NotifyConfigPatch, NotifyConfigRealtimeFallbackDelay, NotifyConfigReliability, NotifyConfigResponse, NotifyConfigSecurity, NotifyDeliveryMode, NotifyDestinationFailureReason, NotifyDestinationKind, NotifyDestinationReason, NotifyDestinationSkipReason, NotifyDestinationState, NotifyDestinationTestReason, NotifyDestinationTestResult, NotifyDestinationTransportReason, NotifyEscalation, NotifyInboxBulkMarkState, NotifyInboxMarkState, NotifyInboxRow, NotifyInboxView, NotifyIngotRef, NotifyInteraction, NotifyPreset, NotifyPresetCategory, NotifyPresetName, NotifyPresetSendOptions, NotifyProject, NotifyProjectBilling, NotifyProjectStatus, NotifyProjectSubscriptionPreview, NotifyProjectSubscriptionResponse, NotifyProjectUsage, NotifyRecallMode, NotifyReceipt, NotifyReceiptEventType, NotifyRecipient, NotifyRecipientRef, NotifyRecipientState, NotifyReportableVerificationLevel, NotifySendContent, NotifySendPolicy, NotifySendReceipt, NotifySendReceiptsResponse, NotifySendResult, NotifySendState, NotifySendStatus, NotifySendStatusCounts, NotifySendStatusDestination, NotifySendStatusRecipient, NotifySendSummary, NotifySendSummaryDestination, NotifySlackDestination, NotifySuppressionReason, NotifyTeamsDestination, NotifyTeamsDestinationRead, NotifyVerificationLevel, NotifyWebhookDestination, NotifyWebhookDestinationRead, PatchStructuredIngotOptions, PortableStructuredIngot, PortableStructuredType, PreviewNotifyProjectSubscriptionOptions, PublishStructuredTypeOptions, QuotaResource, ReadMessagingConversationOptions, RecallNotifySendOptions, RecallNotifySendResponse, RegisterWebPushResponse, ReplaceIngotOptions, RestoreStructuredIngotOptions, ResumeUploadOptions, ScheduledVaultDeletion, SearchIngotsOptions, SendMessagingMessageOptions, SendUploadOptions, ShareSparkOptions, SignInOptions, SignInResult, Spark, SparkInviteResend, SparkLinkActionOptions, SparkPage, SparkShare, SparkSummary, SparkVaultConfig, SparkVisibility, StartedVaultDeletion, StructuredAccountActivity, StructuredActivity, StructuredActivityOptions, StructuredActivityPeriod, StructuredActivityTotals, StructuredActivityTotalsWire, StructuredActivityWire, StructuredBinaryPath, StructuredExportOutcome, StructuredImportOutcome, StructuredIngot, StructuredIngotHistory, StructuredIngotMutation, StructuredIngotPrecondition, StructuredIngotSummary, StructuredIngotSummaryWire, StructuredIngotVersion, StructuredIngotWire, StructuredIterateOptions, StructuredJsonValue, StructuredMutationWire, StructuredOutcome, StructuredPage, StructuredPageOptions, StructuredPageWire, StructuredReadOutcome, StructuredTypeCreation, StructuredTypeDefinition, StructuredTypeDefinitionWire, StructuredTypePin, StructuredTypePinWire, StructuredTypeSummary, StructuredTypeSummaryWire, StructuredTypeTransform, StructuredValues, StructuredVaultActivity, SubscribeNotifyProjectOptions, SubscribeWebPushOptions, SubscribeWebPushResult, SubscribeWebPushStatus, TokenClaims, UnreachedAdmin, UnreadCountResponse, UnsealVaultOptions, UnsealedVault, UnsubscribeWebPushResponse, UpdateFolderOptions, UpdateIngotSharingOptions, UpdateNotifyProjectOptions, UpdateVaultUploadOptions, UpdatedVault, UploadAttachOptions, UploadBranding, UploadEnd, UploadIngotOptions, UploadOptions, UploadProgress, UploadResult, UploadSession, Vault, VaultDetail, VaultLifecycle, VaultResealDefaults, VaultResealSettings, VaultResealSettingsResult, VaultSessionExtension, VaultSessionTiming, VaultSharingConfig, VaultSharingOptions, VaultSummary, VaultUploadConfig, VaultUploadSettings, VerifyOptions, VerifyResult, WebPushKeyResponse, WebPushStatus, WebPushStatusOptions, WebPushStatusResult, WebPushSubscriptionInput };
|
|
6318
|
+
export type { AccessLogRetention, AccessLogsOptions, BatchGetStructuredIngotsOptions, CreateFolderOptions, CreateMessagingConversationOptions, CreateNotifyProjectOptions, CreateNotifySendOptions, CreateSparkOptions, CreateStructuredIngotOptions, CreateStructuredTypeOptions, CreateUploadOptions, CreateVaultOptions, CreatedIngot, CreatedSpark, DeleteIngotOptions, DeleteStructuredIngotOptions, DownloadIngotOptions, EntropyFormat, EntropyResult, FetchDownloadOptions, FetchedDownload, Folder, FolderBreadcrumbItem, FolderContents, FolderPage, GenerateEntropyOptions, GetStructuredIngotOptions, HealthCheckOptions, HealthCheckResult, HelpDeskAttachmentDownload, HelpDeskAttachmentInput, HelpDeskAttachmentUpload, HelpDeskConnectOptions, HelpDeskCreateTicketOptions, HelpDeskCustomer, HelpDeskCustomerPatch, HelpDeskDesk, HelpDeskDraft, HelpDeskEvent, HelpDeskExternalChallenge, HelpDeskExternalIdentity, HelpDeskFormHandle, HelpDeskFormOptions, HelpDeskFormState, HelpDeskIdentityRequest, HelpDeskListTicketsOptions, HelpDeskMountFormOptions, HelpDeskOpenFormOptions, HelpDeskPinChallenge, HelpDeskReplyCreated, HelpDeskReplyOptions, HelpDeskRequestContext, HelpDeskSession, HelpDeskSessionChange, HelpDeskSupportHandle, HelpDeskSupportLauncherOptions, HelpDeskSupportOpenOptions, HelpDeskSupportOptions, HelpDeskSupportStage, HelpDeskSupportState, HelpDeskTicket, HelpDeskTicketCreated, HelpDeskTicketDetail, HelpDeskTicketList, HelpDeskTimeline, HelpDeskVerifyPinOptions, HelpDeskWidgetFormIdentity, HelpDeskWidgetIdentityChallenge, HelpDeskWidgetIdentityOptions, HelpDeskWidgetIdentitySession, AttachOptions as IdentityAttachOptions, ImportStructuredIngotsOptions, Ingot, IngotAccessLog, IngotAccessLogPage, IngotDownload, IngotDownloadLink, IngotHistory, IngotInvitation, IngotInvite, IngotPage, IngotSharingConfig, IngotUpload, IngotVersion, IngotVersionDownloadLink, InitiateMessagingAttachmentOptions, ListContentsOptions, ListFoldersOptions, ListIngotsOptions, ListMessagingInboxOptions, ListNotificationsOptions, ListNotificationsResponse, ListNotifyInboxOptions, ListNotifyInboxResponse, ListNotifyProjectsResponse, ListNotifyReceiptsOptions, ListNotifyReceiptsResponse, ListNotifySendsOptions, ListNotifySendsResponse, ListSparksOptions, MarkAllNotificationsStateOptions, MarkAllNotificationsStateResponse, MarkAllReadResult, MarkNotificationStateOptions, MarkNotificationStateResponse, MarkNotifyInboxAllOptions, MarkNotifyInboxAllResponse, MarkNotifyInboxStateOptions, MarkNotifyInboxStateResponse, MessagingAttachment, MessagingAttachmentDownload, MessagingAttachmentUpload, MessagingContentMessage, MessagingConversation, MessagingConversationCreated, MessagingConversationSettings, MessagingIdentity, MessagingInboxCursor, MessagingInboxEntry, MessagingInboxPage, MessagingInviteResult, MessagingMessage, MessagingMessageReceipt, MessagingParticipant, MessagingParticipantInput, MessagingReadResult, MessagingRecalledMessage, MessagingReceiptToken, MessagingRecipientIdentity, MessagingSendResult, MessagingUnavailableMessage, NameConflictPolicy, NotificationBulkMarkState, NotificationInboxState, NotificationMarkState, NotificationRow, NotificationSender, NotifyCategory, NotifyChannel, NotifyConfig, NotifyConfigCategory, NotifyConfigDelivery, NotifyConfigDeliveryPatch, NotifyConfigDestinations, NotifyConfigDestinationsPatch, NotifyConfigEvents, NotifyConfigEventsRead, NotifyConfigHistory, NotifyConfigOverrides, NotifyConfigPatch, NotifyConfigRealtimeFallbackDelay, NotifyConfigRefusalReason, NotifyConfigReliability, NotifyConfigResponse, NotifyConfigSecurity, NotifyDeliveryMode, NotifyDestinationFailureReason, NotifyDestinationKind, NotifyDestinationReason, NotifyDestinationSkipReason, NotifyDestinationState, NotifyDestinationTestReason, NotifyDestinationTestResult, NotifyDestinationTransportReason, NotifyEscalation, NotifyInboxBulkMarkState, NotifyInboxMarkState, NotifyInboxRow, NotifyInboxView, NotifyIngotRef, NotifyInteraction, NotifyPreset, NotifyPresetCategory, NotifyPresetName, NotifyPresetSendOptions, NotifyProject, NotifyProjectBilling, NotifyProjectStatus, NotifyProjectSubscriptionPreview, NotifyProjectSubscriptionResponse, NotifyProjectUsage, NotifyRecallMode, NotifyReceipt, NotifyReceiptEventType, NotifyRecipient, NotifyRecipientRef, NotifyRecipientState, NotifyReportableVerificationLevel, NotifySendContent, NotifySendPolicy, NotifySendReceipt, NotifySendReceiptsResponse, NotifySendResult, NotifySendState, NotifySendStatus, NotifySendStatusCounts, NotifySendStatusDestination, NotifySendStatusRecipient, NotifySendSummary, NotifySendSummaryDestination, NotifySlackDestination, NotifySlackDestinationRead, NotifySuppressionReason, NotifyTeamsDestination, NotifyTeamsDestinationRead, NotifyVerificationLevel, NotifyWebhookDestination, NotifyWebhookDestinationRead, PatchStructuredIngotOptions, PortableStructuredIngot, PortableStructuredType, PreviewNotifyProjectSubscriptionOptions, PublishStructuredTypeOptions, QuotaResource, ReadMessagingConversationOptions, RecallNotifySendOptions, RecallNotifySendResponse, RegisterWebPushResponse, ReplaceIngotOptions, RestoreStructuredIngotOptions, ResumeUploadOptions, ScheduledVaultDeletion, SearchIngotsOptions, SendMessagingMessageOptions, SendUploadOptions, ShareSparkOptions, SignInOptions, SignInResult, Spark, SparkInviteResend, SparkLinkActionOptions, SparkPage, SparkShare, SparkSummary, SparkVaultConfig, SparkVisibility, StartedVaultDeletion, StructuredAccountActivity, StructuredActivity, StructuredActivityOptions, StructuredActivityPeriod, StructuredActivityTotals, StructuredActivityTotalsWire, StructuredActivityWire, StructuredBinaryPath, StructuredExportOutcome, StructuredImportOutcome, StructuredIngot, StructuredIngotHistory, StructuredIngotMutation, StructuredIngotPrecondition, StructuredIngotSummary, StructuredIngotSummaryWire, StructuredIngotVersion, StructuredIngotWire, StructuredIterateOptions, StructuredJsonValue, StructuredMutationWire, StructuredOutcome, StructuredPage, StructuredPageOptions, StructuredPageWire, StructuredReadOutcome, StructuredTypeCreation, StructuredTypeDefinition, StructuredTypeDefinitionWire, StructuredTypePin, StructuredTypePinWire, StructuredTypeSummary, StructuredTypeSummaryWire, StructuredTypeTransform, StructuredValues, StructuredVaultActivity, SubscribeNotifyProjectOptions, SubscribeWebPushOptions, SubscribeWebPushResult, SubscribeWebPushStatus, TokenClaims, UnreachedAdmin, UnreadCountResponse, UnsealVaultOptions, UnsealedVault, UnsubscribeWebPushResponse, UpdateFolderOptions, UpdateIngotSharingOptions, UpdateNotifyProjectOptions, UpdateVaultUploadOptions, UpdatedVault, UploadAttachOptions, UploadBranding, UploadEnd, UploadIngotOptions, UploadOptions, UploadProgress, UploadResult, UploadSession, Vault, VaultDetail, VaultLifecycle, VaultResealDefaults, VaultResealSettings, VaultResealSettingsResult, VaultSessionExtension, VaultSessionTiming, VaultSharingConfig, VaultSharingOptions, VaultSummary, VaultUploadConfig, VaultUploadSettings, VerifyOptions, VerifyResult, WebPushKeyResponse, WebPushStatus, WebPushStatusOptions, WebPushStatusResult, WebPushSubscriptionInput };
|
package/dist/index.mjs
CHANGED
|
@@ -12150,10 +12150,13 @@ class NotifyProductModule {
|
|
|
12150
12150
|
/**
|
|
12151
12151
|
* The account's effective Notify config (secure defaults deep-merged with its
|
|
12152
12152
|
* overrides) plus the raw override delta, so an editor can show what is
|
|
12153
|
-
* customized versus default
|
|
12153
|
+
* customized versus default, and the `version` of the stored config they
|
|
12154
|
+
* show (0 before anything is saved, one higher with each save). Answers can
|
|
12155
|
+
* arrive out of order, as two overlapping `updateConfig` calls' can: the one
|
|
12156
|
+
* with the higher `version` is the newer config, so keep that one.
|
|
12154
12157
|
*
|
|
12155
12158
|
* @example
|
|
12156
|
-
* const { effective, overrides } = await sv.products.notify.getConfig();
|
|
12159
|
+
* const { effective, overrides, version } = await sv.products.notify.getConfig();
|
|
12157
12160
|
*/
|
|
12158
12161
|
async getConfig() {
|
|
12159
12162
|
const response = await this.http.get(this.path `/v1/products/notify/config`);
|
|
@@ -12187,7 +12190,8 @@ class NotifyProductModule {
|
|
|
12187
12190
|
* (`details: { sections, required_role: 'admin' }`). A ladder naming a channel
|
|
12188
12191
|
* other than `in_app` and `email` is refused 403 `NOTIFY_CHANNEL_NOT_AVAILABLE`
|
|
12189
12192
|
* (`details: { field, channels }`); a save that overlapping saves kept
|
|
12190
|
-
* outracing is refused 409 `CONFLICT`: reload and patch again.
|
|
12193
|
+
* outracing is refused 409 `CONFLICT`: reload and patch again. A save answers
|
|
12194
|
+
* as `getConfig` does, its `version` the one this save wrote.
|
|
12191
12195
|
*
|
|
12192
12196
|
* @example
|
|
12193
12197
|
* await sv.products.notify.updateConfig({
|
|
@@ -26232,7 +26236,7 @@ class VaultsModule {
|
|
|
26232
26236
|
* Update a vault's upload settings (max size, notification email).
|
|
26233
26237
|
*
|
|
26234
26238
|
* @example
|
|
26235
|
-
* await sv.vaults.updateUploadConfig('vlt_abc', { maxSizeBytes:
|
|
26239
|
+
* await sv.vaults.updateUploadConfig('vlt_abc', { maxSizeBytes: 5 * 1024 ** 4 });
|
|
26236
26240
|
*/
|
|
26237
26241
|
async updateUploadConfig(vaultId, config) {
|
|
26238
26242
|
const id = requireResourceId(vaultId, 'vaultId');
|
|
@@ -27077,7 +27081,7 @@ class SparkVault {
|
|
|
27077
27081
|
}
|
|
27078
27082
|
/** Get the SDK version */
|
|
27079
27083
|
static get version() {
|
|
27080
|
-
return '15.
|
|
27084
|
+
return '15.15.0';
|
|
27081
27085
|
}
|
|
27082
27086
|
}
|
|
27083
27087
|
if (typeof window !== 'undefined') {
|