@sparkvault/sdk-js 14.0.0 → 14.1.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.
@@ -0,0 +1,106 @@
1
+ import type { ResolvedConfig } from '../../config';
2
+ import type { ResumeUploadOptions, SendUploadOptions, UploadSession } from '../../ingots/types';
3
+ import type { HelpDeskAttachmentDownload, HelpDeskAttachmentInput, HelpDeskAttachmentUpload, HelpDeskConnectOptions, HelpDeskCreateTicketOptions, HelpDeskCustomer, HelpDeskCustomerPatch, HelpDeskDesk, HelpDeskDraft, HelpDeskListTicketsOptions, HelpDeskPinChallenge, HelpDeskReplyCreated, HelpDeskReplyOptions, HelpDeskRequestContext, HelpDeskSession, HelpDeskSessionChange, HelpDeskTicketCreated, HelpDeskTicketDetail, HelpDeskTicketList, HelpDeskTimeline, HelpDeskVerifyPinOptions, HelpDeskExternalChallenge } from './types';
4
+ /**
5
+ * One desk's customer client. Sessions stay in memory unless a host supplies a
6
+ * provider. A provider must supply an hdt_ token, not a website identity JWT.
7
+ */
8
+ export declare class HelpDeskClient {
9
+ readonly desk: Readonly<HelpDeskDesk>;
10
+ private readonly http;
11
+ private readonly transfers;
12
+ private readonly provider?;
13
+ private readonly assertionProvider?;
14
+ private authentication;
15
+ private verifiedRequesterId;
16
+ private provedSession;
17
+ private readonly renewedTokens;
18
+ private authorityRevision;
19
+ private readonly listeners;
20
+ private session;
21
+ private token;
22
+ private revision;
23
+ private constructor();
24
+ /** Discover a desk by its configured host, before any customer credentials are sent. */
25
+ static connect(config: ResolvedConfig, options: HelpDeskConnectOptions): Promise<HelpDeskClient>;
26
+ /**
27
+ * Install a customer session answer. A company provider verifies restored
28
+ * sessions again before use. Null stays signed out until refreshSession()
29
+ * or authenticate() explicitly resumes the provider.
30
+ */
31
+ setSession(session: HelpDeskSession | null): void;
32
+ private installSession;
33
+ clearSession(): void;
34
+ /**
35
+ * Observe identity changes and explicit clear/refresh actions. A first provider
36
+ * discovery is distinguished from a host replacing the customer during lookup.
37
+ */
38
+ subscribeSession(listener: (change: HelpDeskSessionChange) => void): () => void;
39
+ /** Explicitly refresh the host-managed session, for example after a backend handoff. */
40
+ refreshSession(): Promise<string | null>;
41
+ /** Whether company identity can be established without customer interaction. */
42
+ get hasIdentityProvider(): boolean;
43
+ /** @internal Read an installed server-proven company bearer without invoking any identity provider. */
44
+ verifiedSessionTokenFor(requesterId: string): string | null;
45
+ getSessionToken(): Promise<string | null>;
46
+ private rememberToken;
47
+ private send;
48
+ private establish;
49
+ /** A public, short-lived challenge from the help desk's own Entropy service. */
50
+ startExternalChallenge(): Promise<HelpDeskExternalChallenge>;
51
+ /** Exchange only a purpose-specific company assertion, never an ordinary website token. */
52
+ completeExternal(options: {
53
+ assertion: string;
54
+ nonce: string;
55
+ }): Promise<HelpDeskSession>;
56
+ private exchangeExternal;
57
+ /** Silently establish/renew a company session. Concurrent calls share one proof. */
58
+ authenticate(): Promise<HelpDeskSession | null>;
59
+ private acceptExternalSession;
60
+ /** Mint an opaque hosted-portal code from an assertion binding the registered redirect challenge. */
61
+ createExternalHandoff(options: {
62
+ assertion: string;
63
+ nonce: string;
64
+ redirectOrigin: string;
65
+ }): Promise<{
66
+ code: string;
67
+ expires_at: number;
68
+ }>;
69
+ /** Redeem a hosted code only with the initiating browser's original verifier and nonce. */
70
+ redeemExternal(options: {
71
+ code: string;
72
+ nonce: string;
73
+ verifier: string;
74
+ }): Promise<HelpDeskSession>;
75
+ startPin(email: string): Promise<HelpDeskPinChallenge>;
76
+ verifyPin(options: HelpDeskVerifyPinOptions): Promise<HelpDeskSession>;
77
+ /** Identity completion still requires a server-approved desk portal origin. */
78
+ completeIdentity(options: {
79
+ token: string;
80
+ }): Promise<HelpDeskSession>;
81
+ getMe(): Promise<HelpDeskCustomer>;
82
+ updateMe(patch: HelpDeskCustomerPatch, context?: HelpDeskRequestContext): Promise<HelpDeskCustomer>;
83
+ createDraft(context?: HelpDeskRequestContext): Promise<HelpDeskDraft>;
84
+ /** Retrying the same draft ID recovers the original ticket after a lost response. */
85
+ createTicket(options: HelpDeskCreateTicketOptions, context?: HelpDeskRequestContext): Promise<HelpDeskTicketCreated>;
86
+ listTickets(options?: HelpDeskListTicketsOptions): Promise<HelpDeskTicketList>;
87
+ getTicket(number: number, options?: {
88
+ response?: string;
89
+ }): Promise<HelpDeskTicketDetail>;
90
+ listEvents(number: number, cursor?: string): Promise<HelpDeskTimeline>;
91
+ /** Replies have no client idempotency key: reconcile an uncertain response before retrying. */
92
+ replyToTicket(number: number, options: HelpDeskReplyOptions, context?: HelpDeskRequestContext): Promise<HelpDeskReplyCreated>;
93
+ resolveTicket(number: number, context?: HelpDeskRequestContext): Promise<void>;
94
+ muteTicket(number: number, muted: boolean, context?: HelpDeskRequestContext): Promise<void>;
95
+ /** Send an already-issued attachment directly to Forge, resolving only after publication is confirmed. */
96
+ sendAttachment(uploadUrl: string, file: File | Blob, options?: SendUploadOptions): Promise<void>;
97
+ /** Check/resume the original transfer; receiving every byte alone is not proof the attachment is published. */
98
+ resumeAttachment(session: UploadSession, file: File | Blob, options?: ResumeUploadOptions): Promise<void>;
99
+ initiateDraftAttachment(ticketId: string, file: HelpDeskAttachmentInput, context?: HelpDeskRequestContext): Promise<HelpDeskAttachmentUpload>;
100
+ cancelDraftAttachment(ticketId: string, attachmentId: string, context?: HelpDeskRequestContext): Promise<void>;
101
+ initiateTicketAttachment(number: number, file: HelpDeskAttachmentInput, context?: HelpDeskRequestContext): Promise<HelpDeskAttachmentUpload>;
102
+ cancelTicketAttachment(number: number, attachmentId: string, context?: HelpDeskRequestContext): Promise<void>;
103
+ attachmentDownload(attachmentId: string, number: number): Promise<HelpDeskAttachmentDownload>;
104
+ /** Revoke this bearer, clearing only the session whose logout completed. */
105
+ logout(): Promise<void>;
106
+ }
@@ -0,0 +1,18 @@
1
+ import type { HelpDeskClient } from './client';
2
+ export interface FormUploadContext {
3
+ draftId: string;
4
+ expectedSessionToken: string;
5
+ }
6
+ /** The picker owns each file's transfer; it publishes only IDs whose Forge receipt has confirmed storage. */
7
+ export declare function createFormAttachments(client: HelpDeskClient, prefix: string, context: () => Promise<FormUploadContext | null>): {
8
+ element: HTMLDivElement;
9
+ readonly attachmentIds: string[];
10
+ readonly unresolved: boolean;
11
+ readonly busy: boolean;
12
+ start(): Promise<void>;
13
+ lock(value: boolean): void;
14
+ disablePicking(value: boolean): void;
15
+ renewSession(previousToken: string, nextToken: string): void;
16
+ clear: (preserveComplete?: boolean) => void;
17
+ destroy(preserveComplete?: boolean): void;
18
+ };
@@ -0,0 +1,33 @@
1
+ import type { HelpDeskSession, HelpDeskTicketCreated } from './types';
2
+ /** The injected form's state; uncertain sends keep an exact snapshot until recovered. */
3
+ export type HelpDeskFormState = 'authenticating' | 'editing' | 'verifying' | 'submitting' | 'uncertain' | 'success' | 'destroyed';
4
+ export interface HelpDeskFormOptions {
5
+ /** The element (or selector) to replace with a ticket form. */
6
+ target: string | HTMLElement;
7
+ /** Optional subject to begin a new request with. */
8
+ subject?: string;
9
+ /** Optional safe-markup description to begin a new request with. */
10
+ body?: string;
11
+ /** Show the default file picker when the desk permits customer uploads. Defaults to true. */
12
+ attachments?: boolean;
13
+ /**
14
+ * Ask host code for a server-issued help desk session. This callback must
15
+ * not construct a session from a browser-supplied user ID or email address.
16
+ * Return null to use the desk's existing verification or hosted sign-in.
17
+ */
18
+ onAuthRequired?: () => HelpDeskSession | null | Promise<HelpDeskSession | null>;
19
+ /** Called only after the service confirms the ticket. Callback errors never retry it. */
20
+ onSuccess?: (ticket: HelpDeskTicketCreated) => void;
21
+ /** Called after a failed request; uncertain sends retain a read-only exact snapshot for recovery. */
22
+ onError?: (error: Error) => void;
23
+ onStateChange?: (state: HelpDeskFormState) => void;
24
+ /** Called when the customer chooses Cancel, after the form is destroyed. */
25
+ onCancel?: () => void;
26
+ }
27
+ export interface HelpDeskFormHandle {
28
+ /** Remove the form and suppress pending UI updates and callbacks; does not log out. */
29
+ destroy(): void;
30
+ /** Clear the completed/idle form. Ignored while a request is pending or its send outcome is uncertain. */
31
+ reset(): void;
32
+ getState(): HelpDeskFormState;
33
+ }
@@ -0,0 +1,8 @@
1
+ import type { HelpDeskClient } from './client';
2
+ import type { HelpDeskFormHandle, HelpDeskFormOptions } from './form-types';
3
+ /**
4
+ * Inject a ticket form using only the requester's customer API. Authentication
5
+ * is the desk's email-code flow or an explicit host-provided customer session.
6
+ * Files use the same direct resumable Forge ceremony as the hosted portal.
7
+ */
8
+ export declare function mountHelpDeskForm(client: HelpDeskClient, options: HelpDeskFormOptions): HelpDeskFormHandle;
@@ -0,0 +1,31 @@
1
+ /** Customer ticket APIs and optional UI, isolated from Core/operator credentials. */
2
+ import type { ResolvedConfig } from '../../config';
3
+ import { HelpDeskClient } from './client';
4
+ import type { HelpDeskConnectOptions } from './types';
5
+ import type { HelpDeskFormHandle, HelpDeskFormOptions } from './form-types';
6
+ /** One-call website setup. No browser secrets or identity assertions are configured here. */
7
+ export type HelpDeskMountFormOptions = HelpDeskConnectOptions & HelpDeskFormOptions;
8
+ export type HelpDeskOpenFormOptions = HelpDeskConnectOptions & Omit<HelpDeskFormOptions, 'target'>;
9
+ export declare class HelpDeskModule {
10
+ private readonly config;
11
+ constructor(config: ResolvedConfig);
12
+ /** Resolve a configured desk host and obtain its customer-only, headless API. */
13
+ connect(options: HelpDeskConnectOptions): Promise<HelpDeskClient>;
14
+ /**
15
+ * Inject a ticket form, including email-code verification where the desk
16
+ * enables it. A custom onAuthRequired callback may supply a server-issued
17
+ * help desk session. Destroy the returned handle on unmount/account change.
18
+ */
19
+ mountForm(options: HelpDeskMountFormOptions): Promise<HelpDeskFormHandle>;
20
+ /** Inject a form over an already-connected client that the host also drives headlessly. */
21
+ mountClientForm(client: HelpDeskClient, options: HelpDeskFormOptions): HelpDeskFormHandle;
22
+ /** Open a ticket form in the SDK's accessible modal. */
23
+ openForm(options: HelpDeskOpenFormOptions): Promise<HelpDeskFormHandle>;
24
+ /** Open a modal over a client whose company session the host also drives headlessly. */
25
+ openClientForm(client: HelpDeskClient, options?: Omit<HelpDeskFormOptions, 'target'>): HelpDeskFormHandle;
26
+ /** Bind existing support buttons, including ones added later. Cleanup closes this binding's form. */
27
+ attach(selector: string, options: HelpDeskOpenFormOptions): () => void;
28
+ }
29
+ export { HelpDeskClient } from './client';
30
+ export type * from './types';
31
+ export type * from './form-types';
@@ -0,0 +1,8 @@
1
+ import type { HelpDeskClient } from './client';
2
+ import type { HelpDeskFormHandle, HelpDeskFormOptions } from './form-types';
3
+ export type HelpDeskOpenFormOptions = Omit<HelpDeskFormOptions, 'target'> & {
4
+ /** Blur the page behind the modal; defaults to true. */
5
+ backdropBlur?: boolean;
6
+ };
7
+ /** Open the same customer form in the SDK's shared dismissible modal shell. */
8
+ export declare function openHelpDeskForm(client: HelpDeskClient, options?: HelpDeskOpenFormOptions): HelpDeskFormHandle;
@@ -0,0 +1,2 @@
1
+ /** Scoped styles for the optional inline help desk form. */
2
+ export declare function injectHelpDeskFormStyles(): void;
@@ -0,0 +1,195 @@
1
+ /** Customer-only help desk contracts. Response fields retain the API's names. */
2
+ export interface HelpDeskIdentityRequest {
3
+ /** Server-generated nonce. The company backend must include it in its signed assertion. */
4
+ nonce: string;
5
+ audience: string;
6
+ deskId: string;
7
+ }
8
+ export interface HelpDeskExternalChallenge {
9
+ nonce: string;
10
+ /** Held only by the initiating browser; used for hosted PKCE redemption, never sent to the company. */
11
+ verifier: string;
12
+ expires_at: number;
13
+ }
14
+ export interface HelpDeskExternalIdentity {
15
+ issuer: string;
16
+ key_id: string;
17
+ assertion_audience: string;
18
+ session_ttl_seconds: number;
19
+ handoff_url?: string | null;
20
+ sign_in_url?: string | null;
21
+ guest_email?: boolean;
22
+ }
23
+ export interface HelpDeskConnectOptions {
24
+ /** The configured help desk hostname, for example support.example.com. */
25
+ host: string;
26
+ /** A help desk hdt_ bearer provider. Core access tokens and API keys are never used. */
27
+ getSessionToken?: () => string | null | Promise<string | null>;
28
+ /** Obtain a purpose-specific JWT from the signed-in company's backend. No customer consent is shown. */
29
+ getIdentityAssertion?: (request: HelpDeskIdentityRequest) => string | null | Promise<string | null>;
30
+ /** Same-origin backend endpoint accepting POST {nonce,audience,desk_id}; returns {assertion} or {data:{assertion}}. */
31
+ identityEndpoint?: string;
32
+ }
33
+ export interface HelpDeskDesk {
34
+ kind: 'desk';
35
+ desk_id: string;
36
+ handle: string;
37
+ canonical_host: string;
38
+ sending_host: string;
39
+ organization_name: string | null;
40
+ branding: {
41
+ color: string | null;
42
+ logo_url: string | null;
43
+ logo_dark_url: string | null;
44
+ icon_url?: string | null;
45
+ };
46
+ auth_mode: 'email_pin' | 'identity' | 'identity_unavailable' | 'external_sso' | 'external_unavailable';
47
+ identity: {
48
+ issuer_account_id: string;
49
+ client_id: string;
50
+ } | null;
51
+ external_identity?: HelpDeskExternalIdentity | null;
52
+ customer_can_mark_resolved: boolean;
53
+ customer_can_attach_files: boolean;
54
+ knowledge_base_enabled: boolean;
55
+ portal_client: string;
56
+ }
57
+ export interface HelpDeskCustomer {
58
+ requester_id: string;
59
+ email: string;
60
+ display_name: string | null;
61
+ assurance: 'identity' | 'email_pin' | 'external_sso';
62
+ /** Company-session mailbox proof asserted by the trusted server. False forbids update emails. */
63
+ email_verified?: boolean;
64
+ email_updates?: boolean;
65
+ needs_display_name: boolean;
66
+ }
67
+ export interface HelpDeskSession {
68
+ token: string;
69
+ /** Absolute expiry in Unix seconds. */
70
+ expires_at: number;
71
+ customer: HelpDeskCustomer;
72
+ }
73
+ /** Why customer-specific UI is being told to reconsider its current session. */
74
+ export interface HelpDeskSessionChange {
75
+ source: 'provider' | 'set' | 'clear' | 'refresh' | 'external' | 'renew';
76
+ /** Present only for a company proof verified by the server, never a decoded browser JWT. */
77
+ requesterId?: string;
78
+ previousRequesterId?: string;
79
+ /** True only for a proof initiated by this client's company-provider flow. */
80
+ automatic?: boolean;
81
+ }
82
+ export interface HelpDeskPinChallenge {
83
+ challenge_id: string;
84
+ binding_secret: string;
85
+ expires_at: number;
86
+ }
87
+ export interface HelpDeskVerifyPinOptions {
88
+ challengeId: string;
89
+ bindingSecret: string;
90
+ code: string;
91
+ }
92
+ export interface HelpDeskCustomerPatch {
93
+ display_name?: string;
94
+ email_updates?: boolean;
95
+ }
96
+ /** Refuse a write if its customer changed while the host composed the request. */
97
+ export interface HelpDeskRequestContext {
98
+ expectedSessionToken?: string;
99
+ }
100
+ export interface HelpDeskDraft {
101
+ ticket_id: string;
102
+ }
103
+ export interface HelpDeskTicketCreated {
104
+ ticket_id: string;
105
+ number: number;
106
+ }
107
+ export interface HelpDeskCreateTicketOptions {
108
+ /** Reuse the same draft ID after a failed/uncertain send; never create another draft to retry. */
109
+ ticketId: string;
110
+ subject: string;
111
+ /** Help desk safe markup, not HTML. */
112
+ body: string;
113
+ attachments?: string[];
114
+ }
115
+ export interface HelpDeskTicket {
116
+ number: number;
117
+ subject: string;
118
+ status: 'open' | 'waiting_on_customer' | 'on_hold' | 'closed';
119
+ close_reason: 'resolved' | 'duplicate' | null;
120
+ awaiting_first_response: boolean;
121
+ created_at: number;
122
+ last_public_activity_at: number | null;
123
+ muted: boolean;
124
+ can_resolve?: boolean;
125
+ feedback?: Record<string, unknown>;
126
+ }
127
+ /** Customer-visible events. Internal operator notes are never included. */
128
+ export interface HelpDeskEvent {
129
+ event_id: string;
130
+ type: string;
131
+ seq: number;
132
+ created_at: number;
133
+ actor: {
134
+ kind: string;
135
+ label: string | null;
136
+ avatar_handle: string | null;
137
+ };
138
+ body: unknown | null;
139
+ attachments: Array<Record<string, unknown>>;
140
+ status?: {
141
+ from: string | null;
142
+ to: string | null;
143
+ };
144
+ merged?: {
145
+ number: number | null;
146
+ };
147
+ left_out?: {
148
+ files: Array<{
149
+ reason: string;
150
+ content_type: string;
151
+ size: number;
152
+ }>;
153
+ count: number;
154
+ };
155
+ }
156
+ export interface HelpDeskListTicketsOptions {
157
+ status?: 'open' | 'closed';
158
+ number?: number;
159
+ cursor?: string;
160
+ }
161
+ export interface HelpDeskTicketList {
162
+ items: HelpDeskTicket[];
163
+ next_cursor: string | null;
164
+ }
165
+ export interface HelpDeskTimeline {
166
+ events: HelpDeskEvent[];
167
+ next_cursor: string | null;
168
+ }
169
+ export interface HelpDeskTicketDetail extends HelpDeskTimeline {
170
+ ticket: HelpDeskTicket;
171
+ }
172
+ export interface HelpDeskReplyOptions {
173
+ body: string;
174
+ attachments?: string[];
175
+ }
176
+ export interface HelpDeskReplyCreated {
177
+ event_id: string;
178
+ }
179
+ export interface HelpDeskAttachmentInput {
180
+ name: string;
181
+ size: number;
182
+ }
183
+ export interface HelpDeskAttachmentUpload {
184
+ attachment_id: string;
185
+ ingot_id: string;
186
+ forge_url: string;
187
+ expires_at: number;
188
+ max_bytes: number;
189
+ pending_until: number;
190
+ }
191
+ export interface HelpDeskAttachmentDownload {
192
+ url: string;
193
+ expires_at: number;
194
+ disposition: string;
195
+ }
@@ -3,12 +3,13 @@
3
3
  *
4
4
  * Namespace for SparkVault first-party products. Each product is a
5
5
  * self-contained surface (UI + API) the account can enable independently.
6
- * Currently exposes `identity`; future products attach here alongside it.
6
+ * Identity, Notify, and the customer-facing Help Desk attach here.
7
7
  */
8
8
  import type { ResolvedConfig } from '../config';
9
9
  import { HttpClient } from '../http';
10
10
  import { IdentityModule } from './identity';
11
11
  import { NotifyProductModule } from './notify';
12
+ import { HelpDeskModule } from './help-desk';
12
13
  export declare class ProductsModule {
13
14
  /** Identity verification product (passkey, OTP, SparkLink, social). */
14
15
  readonly identity: IdentityModule;
@@ -18,6 +19,8 @@ export declare class ProductsModule {
18
19
  * recipient's own inbox.
19
20
  */
20
21
  readonly notify: NotifyProductModule;
22
+ /** Customer-only help desk API and optional injected ticket form. */
23
+ readonly helpDesk: HelpDeskModule;
21
24
  /**
22
25
  * `http` defaults to a client over the same resolved config so constructing
23
26
  * this module standalone stays a one-argument call.
@@ -26,5 +29,9 @@ export declare class ProductsModule {
26
29
  }
27
30
  export { IdentityModule } from './identity';
28
31
  export { NotifyProductModule, NOTIFY_PRESETS, buildNotifyPresetSend } from './notify';
32
+ export { HelpDeskModule, HelpDeskClient } from './help-desk';
33
+ export type * from './help-desk/types';
34
+ export type * from './help-desk/form-types';
35
+ export type { HelpDeskMountFormOptions, HelpDeskOpenFormOptions } from './help-desk';
29
36
  export type { SignInOptions, SignInResult, VerifyOptions, AttachOptions, VerifyResult, TokenClaims, } from './identity';
30
37
  export type { NotifyChannel, NotifyDeliveryMode, NotifyVerificationLevel, NotifyInteraction, NotifyPresetCategory, NotifyCategory, NotifyPresetName, NotifyPresetSendOptions, NotifyPreset, NotifyRecipient, NotifyRecipientRef, NotifySendContent, NotifyIngotRef, NotifySendPolicy, NotifyEscalation, CreateNotifySendOptions, NotifySendResult, NotifyInboxView, NotifyInboxMarkState, NotifyInboxBulkMarkState, NotifyInboxRow, ListNotifyInboxOptions, ListNotifyInboxResponse, MarkNotifyInboxStateOptions, MarkNotifyInboxStateResponse, MarkNotifyInboxAllOptions, MarkNotifyInboxAllResponse, NotifySendStatus, NotifySendStatusRecipient, NotifyRecipientState, NotifySuppressionReason, NotifySendStatusCounts, NotifySendState, NotifySendSummary, ListNotifySendsOptions, ListNotifySendsResponse, NotifyRecallMode, RecallNotifySendOptions, RecallNotifySendResponse, NotifyReceipt, NotifyReportableVerificationLevel, NotifyReceiptEventType, NotifySendReceipt, ListNotifyReceiptsOptions, ListNotifyReceiptsResponse, NotifySendReceiptsResponse, NotifyConfig, NotifyConfigCategory, NotifyConfigDelivery, NotifyConfigDeliveryPatch, NotifyConfigRealtimeFallbackDelay, NotifyConfigReliability, NotifyConfigHistory, NotifyConfigSecurity, NotifyConfigEvents, NotifyConfigEventsRead, NotifyConfigPatch, NotifyConfigOverrides, NotifyConfigResponse, NotifyDestinationKind, NotifyDestinationState, NotifyDestinationSkipReason, NotifyDestinationFailureReason, NotifyDestinationReason, NotifySendStatusDestination, NotifySendSummaryDestination, NotifyWebhookDestination, NotifyWebhookDestinationRead, NotifySlackDestination, NotifyTeamsDestination, NotifyTeamsDestinationRead, NotifyConfigDestinations, NotifyConfigDestinationsPatch, } from './notify';