arky-sdk 0.9.11 → 0.9.12
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/{admin-CAwQrMOX.d.cts → admin-D8HiRDCl.d.cts} +154 -14
- package/dist/{admin-BKXmDIVk.d.ts → admin-Dnnv18wN.d.ts} +154 -14
- package/dist/admin.cjs +64 -1
- package/dist/admin.cjs.map +1 -1
- package/dist/admin.d.cts +3 -3
- package/dist/admin.d.ts +3 -3
- package/dist/admin.js +64 -1
- package/dist/admin.js.map +1 -1
- package/dist/{api-DJI3S6XA.d.cts → api-D4lMmvF0.d.cts} +144 -11
- package/dist/{api-DJI3S6XA.d.ts → api-D4lMmvF0.d.ts} +144 -11
- package/dist/{index-u-gjHnKs.d.cts → index-BS2x278C.d.cts} +1 -1
- package/dist/{index-BaSBPLdF.d.ts → index-Be8suRwP.d.ts} +1 -1
- package/dist/index.cjs +72 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +72 -1
- package/dist/index.js.map +1 -1
- package/dist/storefront.cjs +8 -0
- package/dist/storefront.cjs.map +1 -1
- package/dist/storefront.d.cts +6 -4
- package/dist/storefront.d.ts +6 -4
- package/dist/storefront.js +8 -0
- package/dist/storefront.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils.d.cts +2 -2
- package/dist/utils.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { w as GetCurrentCartParams, R as RequestOptions$1, C as Cart, x as GetCartParams, U as UpdateCartParams, y as AddCartItemParams, z as RemoveCartItemParams, D as ClearCartParams, Q as QuoteCartParams, f as OrderQuote, H as CheckoutCartParams, O as OrderCheckoutResult,
|
|
2
|
-
import { f as formatPayment, a as formatMinor, g as getCurrencySymbol, b as getCurrencyName, i as isValidKey, v as validateKey, t as toKey, n as nameToKey, c as getAvailableStock, d as getReservedStock, h as hasStock, e as getInventoryAt, j as getFirstAvailableFCId } from './index-
|
|
1
|
+
import { w as GetCurrentCartParams, R as RequestOptions$1, C as Cart, x as GetCartParams, U as UpdateCartParams, y as AddCartItemParams, z as RemoveCartItemParams, D as ClearCartParams, Q as QuoteCartParams, f as OrderQuote, H as CheckoutCartParams, O as OrderCheckoutResult, ad as Contact, k as Store, M as Market, ae as UpdateAccountContactParams, af as AccountUpdateResponse, ag as DeleteAccountParams, ah as GetMeParams, ai as Account, aj as SearchAccountsParams, ak as MagicLinkVerifyParams, al as AuthToken, am as CreateStoreParams, an as UpdateStoreParams, ao as DeleteStoreParams, ap as GetStoreParams, aq as GetStoresParams, o as PaginatedResponse, ar as GetSubscriptionPlansParams, as as SubscriptionPlan, at as SubscribeParams, au as CreatePortalSessionParams, av as AddMemberParams, aw as RemoveMemberParams, ax as ListBuildHooksParams, ay as BuildHook, az as CreateBuildHookParams, aA as UpdateBuildHookParams, aB as DeleteBuildHookParams, aC as TestWebhookParams, aD as ListWebhooksParams, aE as Webhook, aF as CreateWebhookParams, aG as UpdateWebhookParams, aH as DeleteWebhookParams, aI as StoreRuntimeConfig, aJ as FindStoreMediaParams, aK as Media, L as Location, aL as CreateLocationParams, aM as UpdateLocationParams, aN as DeleteLocationParams, aO as CreateMarketParams, aP as UpdateMarketParams, aQ as DeleteMarketParams, aR as ListPaymentProvidersParams, aS as PaymentProvider, aT as RefreshPaymentProvidersParams, aU as ConnectStripePaymentProviderParams, aV as StripePaymentProviderConnectResponse, aW as DeletePaymentProviderParams, aX as GetMediaParams, aY as UploadStoreMediaParams, aZ as DeleteStoreMediaParams, a_ as GetStoreMediaParams, a$ as UpdateMediaParams, b0 as TrackEmailOpenParams, b1 as TriggerNotificationParams, b2 as CreateMailboxParams, b3 as Mailbox, b4 as UpdateMailboxParams, b5 as GetMailboxParams, b6 as TestMailboxParams, b7 as TestMailboxResult, b8 as PrepareMailboxParams, b9 as FindMailboxesParams, ba as GetSocialCapabilitiesParams, bb as SocialProviderCapability, bc as ListSocialAccountsParams, bd as SocialAccount, be as ConnectSocialAccountParams, bf as SocialConnectResponse, bg as GetSocialOAuthAttemptParams, bh as SocialOAuthCallbackResponse, bi as SelectSocialDestinationParams, bj as DeleteSocialAccountParams, bk as CreateSocialPublicationParams, bl as SocialPublicationMutationResponse, bm as UpdateSocialPublicationParams, bn as GetSocialPublicationParams, bo as SocialPublication, bp as FindSocialPublicationsParams, bq as ValidateSocialPublicationParams, br as SocialPublicationValidation, bs as ScheduleSocialPublicationParams, bt as CancelSocialPublicationParams, bu as GetSocialPublicationCommentsParams, bv as SocialPublicationComment, bw as SyncSocialPublicationCommentsParams, bx as GetSocialPublicationCommentThreadParams, by as SyncSocialPublicationCommentThreadParams, bz as FindSocialPublicationCommentsParams, bA as ClassifySocialPublicationCommentsParams, bB as SocialPublicationCommentClassificationResult, bC as ReplySocialPublicationCommentParams, bD as SocialPublicationCommentReplyResponse, bE as GetSocialPublicationMetricsParams, bF as SocialPublicationMetricSnapshot, bG as SyncSocialPublicationMetricsParams, bH as SyncSocialEngagementParams, bI as SocialPublicationEngagementSyncResult, bJ as CreateCollectionParams, l as Collection, bK as UpdateCollectionParams, bL as DeleteCollectionParams, G as GetCollectionParams, bM as GetCollectionsParams, bN as CreateEntryParams, a as CollectionEntry, bO as UpdateEntryParams, bP as DeleteEntryParams, m as GetEntryParams, n as GetEntriesParams, bQ as CreateFormParams, b as Form, bR as UpdateFormParams, bS as DeleteFormParams, p as GetFormParams, bT as GetFormsParams, q as SubmitFormParams, r as FormSubmission, bU as GetFormSubmissionsParams, bV as GetFormSubmissionParams, bW as UpdateFormSubmissionParams, bX as CreateTaxonomyParams, T as Taxonomy, bY as UpdateTaxonomyParams, bZ as DeleteTaxonomyParams, s as GetTaxonomyParams, b_ as GetTaxonomiesParams, t as GetTaxonomyChildrenParams, b$ as CreateEmailTemplateParams, c0 as EmailTemplate, c1 as UpdateEmailTemplateParams, c2 as DeleteEmailTemplateParams, c3 as GetEmailTemplateParams, c4 as GetEmailTemplatesParams, c5 as PreviewEmailTemplateParams, c6 as PreviewEmailTemplateResponse, c7 as CreateProductParams, c as Product, c8 as UpdateProductParams, c9 as DeleteProductParams, u as GetProductParams, v as GetProductsParams, ca as UpdateOrderParams, J as Order, I as GetOrderParams, K as GetOrdersParams, cb as GetQuoteParams, cc as ProcessOrderRefundParams, cd as ProcessOrderRefundResponse, N as DownloadDigitalAccessParams, V as DigitalAccessDownloadResponse, ce as GetShippingRatesParams, cf as ShippingRate, cg as ShipParams, ch as ShipResult, ci as RefundShippingLabelParams, cj as ShippingLabelRefund, ck as CreateCartParams, cl as FindCartsParams, cm as CreateServiceParams, S as Service, cn as UpdateServiceParams, co as DeleteServiceParams, W as GetServiceParams, X as GetServicesParams, _ as GetAvailabilityParams, e as AvailabilityResponse, Y as FindServiceProvidersParams, cp as ServiceProvider, cq as CreateServiceProviderParams, cr as UpdateServiceProviderParams, cs as DeleteServiceProviderParams, ct as CreateProviderParams, d as Provider, cu as UpdateProviderParams, cv as DeleteProviderParams, $ as GetProviderParams, a0 as GetProvidersParams, cw as CreatePromoCodeParams, cx as PromoCode, cy as UpdatePromoCodeParams, cz as DeletePromoCodeParams, cA as GetPromoCodeParams, cB as GetPromoCodesParams, cC as CreateContactParams, cD as Contact$1, cE as GetContactParams, j as ContactDetail, cF as FindContactsParams, cG as UpdateContactParams, cH as MergeContactsParams, cI as ImportContactsParams, cJ as ImportContactsResult, cK as CreateContactListParams, a2 as ContactList, cL as UpdateContactListParams, a1 as GetContactListParams, a3 as FindContactListsParams, cM as ImportContactsIntoContactListParams, cN as ImportContactsIntoContactListResult, cO as ImportContactListPreviewParams, cP as ImportContactsPreviewResult, cQ as AddContactListContactParams, cR as ContactListMember, cS as UpdateContactListContactParams, cT as RemoveContactListContactParams, cU as FindContactListContactsParams, cV as Action, cW as FindActionsParams, cX as CreateCampaignParams, cY as Campaign, cZ as UpdateCampaignParams, c_ as GetCampaignParams, c$ as FindCampaignsParams, d0 as LaunchCampaignParams, d1 as DuplicateCampaignParams, d2 as GetCampaignLaunchReadinessParams, d3 as CampaignLaunchReadiness, d4 as ImportCampaignEnrollmentsParams, d5 as CampaignEnrollmentImportResult, d6 as GenerateOutreachPersonalizedDraftsParams, d7 as FindCampaignEnrollmentsParams, d8 as CampaignEnrollment, d9 as GetCampaignEnrollmentConversationParams, da as CampaignEnrollmentConversationResponse, db as UpdateCampaignEnrollmentParams, dc as UpdateCampaignEnrollmentDraftParams, dd as UpdateCampaignEnrollmentStepExecutionParams, de as ReplyCampaignEnrollmentParams, df as StopCampaignEnrollmentParams, dg as FindCampaignMessagesParams, dh as CampaignMessage, di as UpdateCampaignMessageParams, dj as CreateSuppressionParams, dk as Suppression, dl as UpdateSuppressionParams, dm as GetSuppressionParams, dn as FindSuppressionsParams, dp as CreateLeadResearchRunParams, dq as LeadResearchRun, dr as FindLeadResearchRunsParams, ds as GetLeadResearchRunParams, dt as UpdateLeadResearchRunParams, du as CancelLeadResearchRunParams, dv as SendLeadResearchMessageParams, dw as SendLeadResearchMessageResult, dx as FindLeadResearchMessagesParams, dy as LeadResearchMessage, dz as ValidateLeadEmailParams, dA as LeadEmailValidationResult, dB as CreateWorkflowParams, dC as Workflow, dD as UpdateWorkflowParams, dE as DeleteWorkflowParams, dF as GetWorkflowParams, dG as GetWorkflowsParams, dH as TriggerWorkflowParams, dI as WorkflowExecution, dJ as GetWorkflowExecutionsParams, dK as GetWorkflowExecutionParams, dL as GetWorkflowAccountsParams, dM as WorkflowAccount, dN as GetWorkflowAccountConnectUrlParams, dO as WorkflowAccountConnectUrl, dP as ConnectWorkflowAccountParams, dQ as DeleteWorkflowAccountParams, a4 as SubscribeContactListParams, a5 as ContactListSubscribeResponse, a6 as ContactListAccessParams, a7 as ContactListAccessResponse, a8 as ContactListContentAccessParams, a9 as ContactListContentAccessResponse } from './api-D4lMmvF0.cjs';
|
|
2
|
+
import { f as formatPayment, a as formatMinor, g as getCurrencySymbol, b as getCurrencyName, i as isValidKey, v as validateKey, t as toKey, n as nameToKey, c as getAvailableStock, d as getReservedStock, h as hasStock, e as getInventoryAt, j as getFirstAvailableFCId } from './index-BS2x278C.cjs';
|
|
3
3
|
|
|
4
4
|
interface CartApi {
|
|
5
5
|
current(params?: GetCurrentCartParams, options?: RequestOptions$1): Promise<Cart>;
|
|
@@ -355,6 +355,9 @@ interface AnalyticsResponse {
|
|
|
355
355
|
blocks?: AnalyticsBlockResponse[];
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
+
type SupportAgentStatus = "draft" | "active" | "archived";
|
|
359
|
+
type SupportChannelStatus = "draft" | "active" | "disabled" | "archived";
|
|
360
|
+
type SupportChannelType = "web" | "whatsapp" | "instagram" | "email" | "sms" | "viber";
|
|
358
361
|
interface SupportAgentNode {
|
|
359
362
|
type: "message" | "input" | "ai_handoff" | "action";
|
|
360
363
|
text?: string;
|
|
@@ -395,18 +398,92 @@ interface SupportAgent {
|
|
|
395
398
|
key: string;
|
|
396
399
|
store_id: string;
|
|
397
400
|
name: string;
|
|
398
|
-
status:
|
|
401
|
+
status: SupportAgentStatus;
|
|
399
402
|
entry_node_id: string;
|
|
400
403
|
nodes: Record<string, SupportAgentNode>;
|
|
401
404
|
edges: SupportAgentEdge[];
|
|
402
405
|
ai_config?: SupportAgentAiConfig;
|
|
406
|
+
channel_ids: string[];
|
|
407
|
+
notes?: string | null;
|
|
403
408
|
created_at: number;
|
|
404
409
|
updated_at: number;
|
|
405
410
|
}
|
|
411
|
+
type SupportChannelConfig = {
|
|
412
|
+
type: "web";
|
|
413
|
+
widget_key: string;
|
|
414
|
+
allowed_origins?: string[];
|
|
415
|
+
} | {
|
|
416
|
+
type: "whatsapp";
|
|
417
|
+
phone_number_id: string;
|
|
418
|
+
business_account_id?: string | null;
|
|
419
|
+
display_phone_number?: string | null;
|
|
420
|
+
webhook_verify_token_secret_id?: string | null;
|
|
421
|
+
access_token_secret_id?: string | null;
|
|
422
|
+
} | {
|
|
423
|
+
type: "instagram";
|
|
424
|
+
page_id: string;
|
|
425
|
+
instagram_business_account_id?: string | null;
|
|
426
|
+
access_token_secret_id?: string | null;
|
|
427
|
+
} | {
|
|
428
|
+
type: "email";
|
|
429
|
+
mailbox_id: string;
|
|
430
|
+
} | {
|
|
431
|
+
type: "sms";
|
|
432
|
+
phone_e164: string;
|
|
433
|
+
account_ref?: string | null;
|
|
434
|
+
access_token_secret_id?: string | null;
|
|
435
|
+
} | {
|
|
436
|
+
type: "viber";
|
|
437
|
+
bot_id: string;
|
|
438
|
+
account_ref?: string | null;
|
|
439
|
+
access_token_secret_id?: string | null;
|
|
440
|
+
};
|
|
441
|
+
interface SupportChannel {
|
|
442
|
+
id: string;
|
|
443
|
+
store_id: string;
|
|
444
|
+
key: string;
|
|
445
|
+
name: string;
|
|
446
|
+
status: SupportChannelStatus;
|
|
447
|
+
channel_type: SupportChannelType;
|
|
448
|
+
config: SupportChannelConfig;
|
|
449
|
+
created_at: number;
|
|
450
|
+
updated_at: number;
|
|
451
|
+
}
|
|
452
|
+
type SupportConversationChannelContext = {
|
|
453
|
+
type: "web";
|
|
454
|
+
visitor_id?: string | null;
|
|
455
|
+
session_id?: string | null;
|
|
456
|
+
} | {
|
|
457
|
+
type: "whatsapp";
|
|
458
|
+
wa_id: string;
|
|
459
|
+
phone_e164?: string | null;
|
|
460
|
+
conversation_id?: string | null;
|
|
461
|
+
} | {
|
|
462
|
+
type: "instagram";
|
|
463
|
+
ig_user_id: string;
|
|
464
|
+
thread_id?: string | null;
|
|
465
|
+
} | {
|
|
466
|
+
type: "email";
|
|
467
|
+
thread_id: string;
|
|
468
|
+
reply_to: string;
|
|
469
|
+
message_id?: string | null;
|
|
470
|
+
references: string[];
|
|
471
|
+
} | {
|
|
472
|
+
type: "sms";
|
|
473
|
+
phone_e164: string;
|
|
474
|
+
} | {
|
|
475
|
+
type: "viber";
|
|
476
|
+
user_id: string;
|
|
477
|
+
conversation_id?: string | null;
|
|
478
|
+
phone_e164?: string | null;
|
|
479
|
+
};
|
|
406
480
|
interface SupportConversation {
|
|
407
481
|
id: string;
|
|
408
482
|
store_id: string;
|
|
409
483
|
agent_id?: string;
|
|
484
|
+
channel_id?: string | null;
|
|
485
|
+
channel_type: SupportChannelType;
|
|
486
|
+
channel_context: SupportConversationChannelContext;
|
|
410
487
|
current_node_id?: string;
|
|
411
488
|
contact_id?: string;
|
|
412
489
|
assigned_account_id?: string | null;
|
|
@@ -433,6 +510,10 @@ interface SupportConversationResponse {
|
|
|
433
510
|
interface StartSupportConversationParams {
|
|
434
511
|
store_id: string;
|
|
435
512
|
agent_key?: string;
|
|
513
|
+
channel_id?: string;
|
|
514
|
+
visitor_id?: string;
|
|
515
|
+
session_id?: string;
|
|
516
|
+
contact_id?: string;
|
|
436
517
|
metadata?: Record<string, unknown>;
|
|
437
518
|
}
|
|
438
519
|
interface SendSupportMessageParams {
|
|
@@ -446,6 +527,15 @@ interface SendSupportMessageParams {
|
|
|
446
527
|
content: string;
|
|
447
528
|
};
|
|
448
529
|
}
|
|
530
|
+
interface ReceiveSupportChannelMessageParams {
|
|
531
|
+
store_id: string;
|
|
532
|
+
channel_id: string;
|
|
533
|
+
channel_context: SupportConversationChannelContext;
|
|
534
|
+
external_message_id?: string;
|
|
535
|
+
content: string;
|
|
536
|
+
metadata?: Record<string, unknown>;
|
|
537
|
+
received_at?: number;
|
|
538
|
+
}
|
|
449
539
|
interface ReplySupportConversationParams {
|
|
450
540
|
store_id: string;
|
|
451
541
|
conversation_id: string;
|
|
@@ -468,25 +558,63 @@ interface GetSupportConversationParams {
|
|
|
468
558
|
after_created_at?: number;
|
|
469
559
|
after_id?: string;
|
|
470
560
|
}
|
|
561
|
+
interface FindSupportConversationsParams {
|
|
562
|
+
store_id: string;
|
|
563
|
+
status?: string;
|
|
564
|
+
agent_id?: string;
|
|
565
|
+
channel_id?: string;
|
|
566
|
+
channel_type?: SupportChannelType;
|
|
567
|
+
query?: string;
|
|
568
|
+
limit?: number;
|
|
569
|
+
cursor?: string;
|
|
570
|
+
}
|
|
471
571
|
interface CreateSupportAgentParams {
|
|
472
572
|
store_id: string;
|
|
473
573
|
key: string;
|
|
474
574
|
name: string;
|
|
475
|
-
status?:
|
|
575
|
+
status?: SupportAgentStatus;
|
|
476
576
|
entry_node_id: string;
|
|
477
577
|
nodes: Record<string, SupportAgentNode>;
|
|
478
578
|
edges: SupportAgentEdge[];
|
|
479
579
|
ai_config?: SupportAgentAiConfig;
|
|
580
|
+
channel_ids?: string[];
|
|
581
|
+
notes?: string | null;
|
|
480
582
|
}
|
|
481
583
|
interface UpdateSupportAgentParams {
|
|
482
584
|
store_id: string;
|
|
483
585
|
id: string;
|
|
484
586
|
name?: string;
|
|
485
|
-
status?:
|
|
587
|
+
status?: SupportAgentStatus;
|
|
486
588
|
entry_node_id?: string;
|
|
487
589
|
nodes?: Record<string, SupportAgentNode>;
|
|
488
590
|
edges?: SupportAgentEdge[];
|
|
489
591
|
ai_config?: SupportAgentAiConfig;
|
|
592
|
+
channel_ids?: string[];
|
|
593
|
+
notes?: string | null;
|
|
594
|
+
}
|
|
595
|
+
interface CreateSupportChannelParams {
|
|
596
|
+
store_id: string;
|
|
597
|
+
key: string;
|
|
598
|
+
name: string;
|
|
599
|
+
status?: SupportChannelStatus;
|
|
600
|
+
channel_type: SupportChannelType;
|
|
601
|
+
config: SupportChannelConfig;
|
|
602
|
+
}
|
|
603
|
+
interface UpdateSupportChannelParams {
|
|
604
|
+
store_id: string;
|
|
605
|
+
id: string;
|
|
606
|
+
key?: string;
|
|
607
|
+
name?: string;
|
|
608
|
+
status?: SupportChannelStatus;
|
|
609
|
+
channel_type?: SupportChannelType;
|
|
610
|
+
config?: SupportChannelConfig;
|
|
611
|
+
}
|
|
612
|
+
interface FindSupportChannelsParams {
|
|
613
|
+
store_id: string;
|
|
614
|
+
status?: SupportChannelStatus;
|
|
615
|
+
channel_type?: SupportChannelType;
|
|
616
|
+
limit?: number;
|
|
617
|
+
cursor?: string;
|
|
490
618
|
}
|
|
491
619
|
|
|
492
620
|
interface TimelineParams {
|
|
@@ -951,6 +1079,9 @@ declare function createAdmin(config: CreateAdminConfig): {
|
|
|
951
1079
|
rates: ShippingRate[];
|
|
952
1080
|
}>;
|
|
953
1081
|
ship: (params: ShipParams, options?: RequestOptions$1) => Promise<ShipResult>;
|
|
1082
|
+
refundShippingLabel: (params: RefundShippingLabelParams, options?: RequestOptions$1) => Promise<{
|
|
1083
|
+
refund: ShippingLabelRefund;
|
|
1084
|
+
}>;
|
|
954
1085
|
};
|
|
955
1086
|
cart: {
|
|
956
1087
|
create: (params: CreateCartParams, options?: RequestOptions$1) => Promise<Cart>;
|
|
@@ -1102,6 +1233,21 @@ declare function createAdmin(config: CreateAdminConfig): {
|
|
|
1102
1233
|
deleteAccount: (params: DeleteWorkflowAccountParams, options?: RequestOptions$1) => Promise<boolean>;
|
|
1103
1234
|
};
|
|
1104
1235
|
support: {
|
|
1236
|
+
createChannel: (params: CreateSupportChannelParams, opts?: RequestOptions$1) => Promise<SupportChannel>;
|
|
1237
|
+
getChannel: (params: {
|
|
1238
|
+
store_id: string;
|
|
1239
|
+
id: string;
|
|
1240
|
+
}, opts?: RequestOptions$1) => Promise<SupportChannel>;
|
|
1241
|
+
findChannels: (params: FindSupportChannelsParams, opts?: RequestOptions$1) => Promise<{
|
|
1242
|
+
items: SupportChannel[];
|
|
1243
|
+
cursor?: string;
|
|
1244
|
+
}>;
|
|
1245
|
+
updateChannel: (params: UpdateSupportChannelParams, opts?: RequestOptions$1) => Promise<SupportChannel>;
|
|
1246
|
+
deleteChannel: (params: {
|
|
1247
|
+
store_id: string;
|
|
1248
|
+
id: string;
|
|
1249
|
+
}, opts?: RequestOptions$1) => Promise<void>;
|
|
1250
|
+
receiveChannelMessage: (params: ReceiveSupportChannelMessageParams, opts?: RequestOptions$1) => Promise<SupportConversationResponse>;
|
|
1105
1251
|
createAgent: (params: CreateSupportAgentParams, opts?: RequestOptions$1) => Promise<SupportAgent>;
|
|
1106
1252
|
getAgent: (params: {
|
|
1107
1253
|
store_id: string;
|
|
@@ -1121,14 +1267,7 @@ declare function createAdmin(config: CreateAdminConfig): {
|
|
|
1121
1267
|
store_id: string;
|
|
1122
1268
|
id: string;
|
|
1123
1269
|
}, opts?: RequestOptions$1) => Promise<void>;
|
|
1124
|
-
findConversations: (params: {
|
|
1125
|
-
store_id: string;
|
|
1126
|
-
status?: string;
|
|
1127
|
-
agent_id?: string;
|
|
1128
|
-
query?: string;
|
|
1129
|
-
limit?: number;
|
|
1130
|
-
cursor?: string;
|
|
1131
|
-
}, opts?: RequestOptions$1) => Promise<{
|
|
1270
|
+
findConversations: (params: FindSupportConversationsParams, opts?: RequestOptions$1) => Promise<{
|
|
1132
1271
|
items: SupportConversation[];
|
|
1133
1272
|
cursor?: string;
|
|
1134
1273
|
}>;
|
|
@@ -1322,6 +1461,7 @@ declare function createStorefront(config: CreateStorefrontConfig): {
|
|
|
1322
1461
|
find(params?: FindContactListsParams, options?: RequestOptions$1): Promise<PaginatedResponse<ContactList>>;
|
|
1323
1462
|
subscribe(params: SubscribeContactListParams, options?: RequestOptions$1): Promise<ContactListSubscribeResponse>;
|
|
1324
1463
|
checkAccess(params: ContactListAccessParams, options?: RequestOptions$1): Promise<ContactListAccessResponse>;
|
|
1464
|
+
checkContentAccess(params: ContactListContentAccessParams, options?: RequestOptions$1): Promise<ContactListContentAccessResponse>;
|
|
1325
1465
|
unsubscribe(token: string, options?: RequestOptions$1): Promise<{
|
|
1326
1466
|
success: boolean;
|
|
1327
1467
|
}>;
|
|
@@ -1393,4 +1533,4 @@ declare function createStorefront(config: CreateStorefrontConfig): {
|
|
|
1393
1533
|
};
|
|
1394
1534
|
};
|
|
1395
1535
|
|
|
1396
|
-
export { type AnalyticsActionReportKey as $, type AuthStateListener as A, type CartControllerListener as B, type CreateStorefrontConfig as C, type CartControllerQuoteParams as D, type ExperimentUseResponse as E, type CartControllerRefreshParams as F, type GetSupportConversationParams as G, type CartControllerRemoveItemParams as H, type IdentifyResponse as I, type CartControllerState as J, type CartControllerUpdateParams as K, type CommonActionKey as L, type HttpClientConfig as M, createCartController as N, createStorefront as O, type ActionFeedCategory as P, type ActionFeedCursor as Q, type ActionFeedData as R, type StartSupportConversationParams as S, type TrackActionParams as T, type UseExperimentParams as U, type VerifyResponse as V, type ActionFeedItem as W, type ActionFeedSummary as X, type AdminSession as Y, type AdminSessionInternal as Z, type AdminSessionUpdater as _, type ContactSession as a, type AnalyticsBlockRequest as a0, type AnalyticsBlockResponse as a1, type AnalyticsBreakdownData as a2, type AnalyticsBreakdownItem as a3, type AnalyticsBreakdownReportKey as a4, type AnalyticsCompositeReportKey as a5, type AnalyticsMetricData as a6, type AnalyticsMetricReportKey as a7, type AnalyticsReport as a8, type AnalyticsReportKey as a9, type
|
|
1536
|
+
export { type AnalyticsActionReportKey as $, type AuthStateListener as A, type CartControllerListener as B, type CreateStorefrontConfig as C, type CartControllerQuoteParams as D, type ExperimentUseResponse as E, type CartControllerRefreshParams as F, type GetSupportConversationParams as G, type CartControllerRemoveItemParams as H, type IdentifyResponse as I, type CartControllerState as J, type CartControllerUpdateParams as K, type CommonActionKey as L, type HttpClientConfig as M, createCartController as N, createStorefront as O, type ActionFeedCategory as P, type ActionFeedCursor as Q, type ActionFeedData as R, type StartSupportConversationParams as S, type TrackActionParams as T, type UseExperimentParams as U, type VerifyResponse as V, type ActionFeedItem as W, type ActionFeedSummary as X, type AdminSession as Y, type AdminSessionInternal as Z, type AdminSessionUpdater as _, type ContactSession as a, type UpdateSupportChannelParams as a$, type AnalyticsBlockRequest as a0, type AnalyticsBlockResponse as a1, type AnalyticsBreakdownData as a2, type AnalyticsBreakdownItem as a3, type AnalyticsBreakdownReportKey as a4, type AnalyticsCompositeReportKey as a5, type AnalyticsMetricData as a6, type AnalyticsMetricReportKey as a7, type AnalyticsReport as a8, type AnalyticsReportKey as a9, type GetExperimentParams as aA, type LocationCountry as aB, type LocationState as aC, type OutreachFunnelData as aD, type OutreachFunnelStage as aE, type OutreachOverviewData as aF, type ReceiveSupportChannelMessageParams as aG, type ReplySupportConversationParams as aH, type ResolveSupportConversationParams as aI, type RevenueByCurrencyData as aJ, SDK_VERSION as aK, SUPPORTED_FRAMEWORKS as aL, type SupportAction as aM, type SupportAgent as aN, type SupportAgentAiConfig as aO, type SupportAgentEdge as aP, type SupportAgentNode as aQ, type SupportAgentStatus as aR, type SupportChannel as aS, type SupportChannelConfig as aT, type SupportChannelStatus as aU, type SupportChannelType as aV, type SupportConversation as aW, type SupportConversationChannelContext as aX, type SupportMessage as aY, type TimelineParams as aZ, type UpdateExperimentParams as a_, type AnalyticsReportRequest as aa, type AnalyticsRequest as ab, type AnalyticsResponse as ac, type AnalyticsTimeRange as ad, type ApiConfig as ae, type AssignSupportConversationParams as af, type BusinessOverviewData as ag, type ContactFunnelData as ah, type ContactFunnelStage as ai, type ContactSessionInternal as aj, type ContactSessionUpdater as ak, type CreateAdminConfig as al, type CreateExperimentParams as am, type CreateSupportChannelParams as an, type DataHealthData as ao, type EdgeTrigger as ap, type EntityStatusOverviewData as aq, type Experiment as ar, type ExperimentResults as as, type ExperimentStatus as at, type ExperimentVariant as au, type ExperimentVariantResult as av, type FindExperimentsParams as aw, type FindSupportChannelsParams as ax, type FindSupportConversationsParams as ay, type GetCountriesResponse as az, type ContactToken as b, type WorkflowTool as b0, type WorkflowToolOperation as b1, type WorkflowToolResource as b2, createAdmin as b3, type CartController as c, type SupportConversationResponse as d, type SendSupportMessageParams as e, formatBlockValue as f, getBlockLabel as g, extractBlockValues as h, findTimeZone as i, humanize as j, categorify as k, formatDate as l, getSvgContentForAstro as m, fetchSvgContent as n, injectSvgIntoElement as o, prepareBlocksForSubmission as p, type StorefrontAction as q, type AuthStorage as r, slugify as s, COMMON_ACTION_KEYS as t, type CartApi as u, validatePhoneNumber as v, type CartControllerAddItemParams as w, type CartControllerCheckoutParams as x, type CartControllerClearParams as y, type CartControllerInitParams as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { w as GetCurrentCartParams, R as RequestOptions$1, C as Cart, x as GetCartParams, U as UpdateCartParams, y as AddCartItemParams, z as RemoveCartItemParams, D as ClearCartParams, Q as QuoteCartParams, f as OrderQuote, H as CheckoutCartParams, O as OrderCheckoutResult,
|
|
2
|
-
import { f as formatPayment, a as formatMinor, g as getCurrencySymbol, b as getCurrencyName, i as isValidKey, v as validateKey, t as toKey, n as nameToKey, c as getAvailableStock, d as getReservedStock, h as hasStock, e as getInventoryAt, j as getFirstAvailableFCId } from './index-
|
|
1
|
+
import { w as GetCurrentCartParams, R as RequestOptions$1, C as Cart, x as GetCartParams, U as UpdateCartParams, y as AddCartItemParams, z as RemoveCartItemParams, D as ClearCartParams, Q as QuoteCartParams, f as OrderQuote, H as CheckoutCartParams, O as OrderCheckoutResult, ad as Contact, k as Store, M as Market, ae as UpdateAccountContactParams, af as AccountUpdateResponse, ag as DeleteAccountParams, ah as GetMeParams, ai as Account, aj as SearchAccountsParams, ak as MagicLinkVerifyParams, al as AuthToken, am as CreateStoreParams, an as UpdateStoreParams, ao as DeleteStoreParams, ap as GetStoreParams, aq as GetStoresParams, o as PaginatedResponse, ar as GetSubscriptionPlansParams, as as SubscriptionPlan, at as SubscribeParams, au as CreatePortalSessionParams, av as AddMemberParams, aw as RemoveMemberParams, ax as ListBuildHooksParams, ay as BuildHook, az as CreateBuildHookParams, aA as UpdateBuildHookParams, aB as DeleteBuildHookParams, aC as TestWebhookParams, aD as ListWebhooksParams, aE as Webhook, aF as CreateWebhookParams, aG as UpdateWebhookParams, aH as DeleteWebhookParams, aI as StoreRuntimeConfig, aJ as FindStoreMediaParams, aK as Media, L as Location, aL as CreateLocationParams, aM as UpdateLocationParams, aN as DeleteLocationParams, aO as CreateMarketParams, aP as UpdateMarketParams, aQ as DeleteMarketParams, aR as ListPaymentProvidersParams, aS as PaymentProvider, aT as RefreshPaymentProvidersParams, aU as ConnectStripePaymentProviderParams, aV as StripePaymentProviderConnectResponse, aW as DeletePaymentProviderParams, aX as GetMediaParams, aY as UploadStoreMediaParams, aZ as DeleteStoreMediaParams, a_ as GetStoreMediaParams, a$ as UpdateMediaParams, b0 as TrackEmailOpenParams, b1 as TriggerNotificationParams, b2 as CreateMailboxParams, b3 as Mailbox, b4 as UpdateMailboxParams, b5 as GetMailboxParams, b6 as TestMailboxParams, b7 as TestMailboxResult, b8 as PrepareMailboxParams, b9 as FindMailboxesParams, ba as GetSocialCapabilitiesParams, bb as SocialProviderCapability, bc as ListSocialAccountsParams, bd as SocialAccount, be as ConnectSocialAccountParams, bf as SocialConnectResponse, bg as GetSocialOAuthAttemptParams, bh as SocialOAuthCallbackResponse, bi as SelectSocialDestinationParams, bj as DeleteSocialAccountParams, bk as CreateSocialPublicationParams, bl as SocialPublicationMutationResponse, bm as UpdateSocialPublicationParams, bn as GetSocialPublicationParams, bo as SocialPublication, bp as FindSocialPublicationsParams, bq as ValidateSocialPublicationParams, br as SocialPublicationValidation, bs as ScheduleSocialPublicationParams, bt as CancelSocialPublicationParams, bu as GetSocialPublicationCommentsParams, bv as SocialPublicationComment, bw as SyncSocialPublicationCommentsParams, bx as GetSocialPublicationCommentThreadParams, by as SyncSocialPublicationCommentThreadParams, bz as FindSocialPublicationCommentsParams, bA as ClassifySocialPublicationCommentsParams, bB as SocialPublicationCommentClassificationResult, bC as ReplySocialPublicationCommentParams, bD as SocialPublicationCommentReplyResponse, bE as GetSocialPublicationMetricsParams, bF as SocialPublicationMetricSnapshot, bG as SyncSocialPublicationMetricsParams, bH as SyncSocialEngagementParams, bI as SocialPublicationEngagementSyncResult, bJ as CreateCollectionParams, l as Collection, bK as UpdateCollectionParams, bL as DeleteCollectionParams, G as GetCollectionParams, bM as GetCollectionsParams, bN as CreateEntryParams, a as CollectionEntry, bO as UpdateEntryParams, bP as DeleteEntryParams, m as GetEntryParams, n as GetEntriesParams, bQ as CreateFormParams, b as Form, bR as UpdateFormParams, bS as DeleteFormParams, p as GetFormParams, bT as GetFormsParams, q as SubmitFormParams, r as FormSubmission, bU as GetFormSubmissionsParams, bV as GetFormSubmissionParams, bW as UpdateFormSubmissionParams, bX as CreateTaxonomyParams, T as Taxonomy, bY as UpdateTaxonomyParams, bZ as DeleteTaxonomyParams, s as GetTaxonomyParams, b_ as GetTaxonomiesParams, t as GetTaxonomyChildrenParams, b$ as CreateEmailTemplateParams, c0 as EmailTemplate, c1 as UpdateEmailTemplateParams, c2 as DeleteEmailTemplateParams, c3 as GetEmailTemplateParams, c4 as GetEmailTemplatesParams, c5 as PreviewEmailTemplateParams, c6 as PreviewEmailTemplateResponse, c7 as CreateProductParams, c as Product, c8 as UpdateProductParams, c9 as DeleteProductParams, u as GetProductParams, v as GetProductsParams, ca as UpdateOrderParams, J as Order, I as GetOrderParams, K as GetOrdersParams, cb as GetQuoteParams, cc as ProcessOrderRefundParams, cd as ProcessOrderRefundResponse, N as DownloadDigitalAccessParams, V as DigitalAccessDownloadResponse, ce as GetShippingRatesParams, cf as ShippingRate, cg as ShipParams, ch as ShipResult, ci as RefundShippingLabelParams, cj as ShippingLabelRefund, ck as CreateCartParams, cl as FindCartsParams, cm as CreateServiceParams, S as Service, cn as UpdateServiceParams, co as DeleteServiceParams, W as GetServiceParams, X as GetServicesParams, _ as GetAvailabilityParams, e as AvailabilityResponse, Y as FindServiceProvidersParams, cp as ServiceProvider, cq as CreateServiceProviderParams, cr as UpdateServiceProviderParams, cs as DeleteServiceProviderParams, ct as CreateProviderParams, d as Provider, cu as UpdateProviderParams, cv as DeleteProviderParams, $ as GetProviderParams, a0 as GetProvidersParams, cw as CreatePromoCodeParams, cx as PromoCode, cy as UpdatePromoCodeParams, cz as DeletePromoCodeParams, cA as GetPromoCodeParams, cB as GetPromoCodesParams, cC as CreateContactParams, cD as Contact$1, cE as GetContactParams, j as ContactDetail, cF as FindContactsParams, cG as UpdateContactParams, cH as MergeContactsParams, cI as ImportContactsParams, cJ as ImportContactsResult, cK as CreateContactListParams, a2 as ContactList, cL as UpdateContactListParams, a1 as GetContactListParams, a3 as FindContactListsParams, cM as ImportContactsIntoContactListParams, cN as ImportContactsIntoContactListResult, cO as ImportContactListPreviewParams, cP as ImportContactsPreviewResult, cQ as AddContactListContactParams, cR as ContactListMember, cS as UpdateContactListContactParams, cT as RemoveContactListContactParams, cU as FindContactListContactsParams, cV as Action, cW as FindActionsParams, cX as CreateCampaignParams, cY as Campaign, cZ as UpdateCampaignParams, c_ as GetCampaignParams, c$ as FindCampaignsParams, d0 as LaunchCampaignParams, d1 as DuplicateCampaignParams, d2 as GetCampaignLaunchReadinessParams, d3 as CampaignLaunchReadiness, d4 as ImportCampaignEnrollmentsParams, d5 as CampaignEnrollmentImportResult, d6 as GenerateOutreachPersonalizedDraftsParams, d7 as FindCampaignEnrollmentsParams, d8 as CampaignEnrollment, d9 as GetCampaignEnrollmentConversationParams, da as CampaignEnrollmentConversationResponse, db as UpdateCampaignEnrollmentParams, dc as UpdateCampaignEnrollmentDraftParams, dd as UpdateCampaignEnrollmentStepExecutionParams, de as ReplyCampaignEnrollmentParams, df as StopCampaignEnrollmentParams, dg as FindCampaignMessagesParams, dh as CampaignMessage, di as UpdateCampaignMessageParams, dj as CreateSuppressionParams, dk as Suppression, dl as UpdateSuppressionParams, dm as GetSuppressionParams, dn as FindSuppressionsParams, dp as CreateLeadResearchRunParams, dq as LeadResearchRun, dr as FindLeadResearchRunsParams, ds as GetLeadResearchRunParams, dt as UpdateLeadResearchRunParams, du as CancelLeadResearchRunParams, dv as SendLeadResearchMessageParams, dw as SendLeadResearchMessageResult, dx as FindLeadResearchMessagesParams, dy as LeadResearchMessage, dz as ValidateLeadEmailParams, dA as LeadEmailValidationResult, dB as CreateWorkflowParams, dC as Workflow, dD as UpdateWorkflowParams, dE as DeleteWorkflowParams, dF as GetWorkflowParams, dG as GetWorkflowsParams, dH as TriggerWorkflowParams, dI as WorkflowExecution, dJ as GetWorkflowExecutionsParams, dK as GetWorkflowExecutionParams, dL as GetWorkflowAccountsParams, dM as WorkflowAccount, dN as GetWorkflowAccountConnectUrlParams, dO as WorkflowAccountConnectUrl, dP as ConnectWorkflowAccountParams, dQ as DeleteWorkflowAccountParams, a4 as SubscribeContactListParams, a5 as ContactListSubscribeResponse, a6 as ContactListAccessParams, a7 as ContactListAccessResponse, a8 as ContactListContentAccessParams, a9 as ContactListContentAccessResponse } from './api-D4lMmvF0.js';
|
|
2
|
+
import { f as formatPayment, a as formatMinor, g as getCurrencySymbol, b as getCurrencyName, i as isValidKey, v as validateKey, t as toKey, n as nameToKey, c as getAvailableStock, d as getReservedStock, h as hasStock, e as getInventoryAt, j as getFirstAvailableFCId } from './index-Be8suRwP.js';
|
|
3
3
|
|
|
4
4
|
interface CartApi {
|
|
5
5
|
current(params?: GetCurrentCartParams, options?: RequestOptions$1): Promise<Cart>;
|
|
@@ -355,6 +355,9 @@ interface AnalyticsResponse {
|
|
|
355
355
|
blocks?: AnalyticsBlockResponse[];
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
+
type SupportAgentStatus = "draft" | "active" | "archived";
|
|
359
|
+
type SupportChannelStatus = "draft" | "active" | "disabled" | "archived";
|
|
360
|
+
type SupportChannelType = "web" | "whatsapp" | "instagram" | "email" | "sms" | "viber";
|
|
358
361
|
interface SupportAgentNode {
|
|
359
362
|
type: "message" | "input" | "ai_handoff" | "action";
|
|
360
363
|
text?: string;
|
|
@@ -395,18 +398,92 @@ interface SupportAgent {
|
|
|
395
398
|
key: string;
|
|
396
399
|
store_id: string;
|
|
397
400
|
name: string;
|
|
398
|
-
status:
|
|
401
|
+
status: SupportAgentStatus;
|
|
399
402
|
entry_node_id: string;
|
|
400
403
|
nodes: Record<string, SupportAgentNode>;
|
|
401
404
|
edges: SupportAgentEdge[];
|
|
402
405
|
ai_config?: SupportAgentAiConfig;
|
|
406
|
+
channel_ids: string[];
|
|
407
|
+
notes?: string | null;
|
|
403
408
|
created_at: number;
|
|
404
409
|
updated_at: number;
|
|
405
410
|
}
|
|
411
|
+
type SupportChannelConfig = {
|
|
412
|
+
type: "web";
|
|
413
|
+
widget_key: string;
|
|
414
|
+
allowed_origins?: string[];
|
|
415
|
+
} | {
|
|
416
|
+
type: "whatsapp";
|
|
417
|
+
phone_number_id: string;
|
|
418
|
+
business_account_id?: string | null;
|
|
419
|
+
display_phone_number?: string | null;
|
|
420
|
+
webhook_verify_token_secret_id?: string | null;
|
|
421
|
+
access_token_secret_id?: string | null;
|
|
422
|
+
} | {
|
|
423
|
+
type: "instagram";
|
|
424
|
+
page_id: string;
|
|
425
|
+
instagram_business_account_id?: string | null;
|
|
426
|
+
access_token_secret_id?: string | null;
|
|
427
|
+
} | {
|
|
428
|
+
type: "email";
|
|
429
|
+
mailbox_id: string;
|
|
430
|
+
} | {
|
|
431
|
+
type: "sms";
|
|
432
|
+
phone_e164: string;
|
|
433
|
+
account_ref?: string | null;
|
|
434
|
+
access_token_secret_id?: string | null;
|
|
435
|
+
} | {
|
|
436
|
+
type: "viber";
|
|
437
|
+
bot_id: string;
|
|
438
|
+
account_ref?: string | null;
|
|
439
|
+
access_token_secret_id?: string | null;
|
|
440
|
+
};
|
|
441
|
+
interface SupportChannel {
|
|
442
|
+
id: string;
|
|
443
|
+
store_id: string;
|
|
444
|
+
key: string;
|
|
445
|
+
name: string;
|
|
446
|
+
status: SupportChannelStatus;
|
|
447
|
+
channel_type: SupportChannelType;
|
|
448
|
+
config: SupportChannelConfig;
|
|
449
|
+
created_at: number;
|
|
450
|
+
updated_at: number;
|
|
451
|
+
}
|
|
452
|
+
type SupportConversationChannelContext = {
|
|
453
|
+
type: "web";
|
|
454
|
+
visitor_id?: string | null;
|
|
455
|
+
session_id?: string | null;
|
|
456
|
+
} | {
|
|
457
|
+
type: "whatsapp";
|
|
458
|
+
wa_id: string;
|
|
459
|
+
phone_e164?: string | null;
|
|
460
|
+
conversation_id?: string | null;
|
|
461
|
+
} | {
|
|
462
|
+
type: "instagram";
|
|
463
|
+
ig_user_id: string;
|
|
464
|
+
thread_id?: string | null;
|
|
465
|
+
} | {
|
|
466
|
+
type: "email";
|
|
467
|
+
thread_id: string;
|
|
468
|
+
reply_to: string;
|
|
469
|
+
message_id?: string | null;
|
|
470
|
+
references: string[];
|
|
471
|
+
} | {
|
|
472
|
+
type: "sms";
|
|
473
|
+
phone_e164: string;
|
|
474
|
+
} | {
|
|
475
|
+
type: "viber";
|
|
476
|
+
user_id: string;
|
|
477
|
+
conversation_id?: string | null;
|
|
478
|
+
phone_e164?: string | null;
|
|
479
|
+
};
|
|
406
480
|
interface SupportConversation {
|
|
407
481
|
id: string;
|
|
408
482
|
store_id: string;
|
|
409
483
|
agent_id?: string;
|
|
484
|
+
channel_id?: string | null;
|
|
485
|
+
channel_type: SupportChannelType;
|
|
486
|
+
channel_context: SupportConversationChannelContext;
|
|
410
487
|
current_node_id?: string;
|
|
411
488
|
contact_id?: string;
|
|
412
489
|
assigned_account_id?: string | null;
|
|
@@ -433,6 +510,10 @@ interface SupportConversationResponse {
|
|
|
433
510
|
interface StartSupportConversationParams {
|
|
434
511
|
store_id: string;
|
|
435
512
|
agent_key?: string;
|
|
513
|
+
channel_id?: string;
|
|
514
|
+
visitor_id?: string;
|
|
515
|
+
session_id?: string;
|
|
516
|
+
contact_id?: string;
|
|
436
517
|
metadata?: Record<string, unknown>;
|
|
437
518
|
}
|
|
438
519
|
interface SendSupportMessageParams {
|
|
@@ -446,6 +527,15 @@ interface SendSupportMessageParams {
|
|
|
446
527
|
content: string;
|
|
447
528
|
};
|
|
448
529
|
}
|
|
530
|
+
interface ReceiveSupportChannelMessageParams {
|
|
531
|
+
store_id: string;
|
|
532
|
+
channel_id: string;
|
|
533
|
+
channel_context: SupportConversationChannelContext;
|
|
534
|
+
external_message_id?: string;
|
|
535
|
+
content: string;
|
|
536
|
+
metadata?: Record<string, unknown>;
|
|
537
|
+
received_at?: number;
|
|
538
|
+
}
|
|
449
539
|
interface ReplySupportConversationParams {
|
|
450
540
|
store_id: string;
|
|
451
541
|
conversation_id: string;
|
|
@@ -468,25 +558,63 @@ interface GetSupportConversationParams {
|
|
|
468
558
|
after_created_at?: number;
|
|
469
559
|
after_id?: string;
|
|
470
560
|
}
|
|
561
|
+
interface FindSupportConversationsParams {
|
|
562
|
+
store_id: string;
|
|
563
|
+
status?: string;
|
|
564
|
+
agent_id?: string;
|
|
565
|
+
channel_id?: string;
|
|
566
|
+
channel_type?: SupportChannelType;
|
|
567
|
+
query?: string;
|
|
568
|
+
limit?: number;
|
|
569
|
+
cursor?: string;
|
|
570
|
+
}
|
|
471
571
|
interface CreateSupportAgentParams {
|
|
472
572
|
store_id: string;
|
|
473
573
|
key: string;
|
|
474
574
|
name: string;
|
|
475
|
-
status?:
|
|
575
|
+
status?: SupportAgentStatus;
|
|
476
576
|
entry_node_id: string;
|
|
477
577
|
nodes: Record<string, SupportAgentNode>;
|
|
478
578
|
edges: SupportAgentEdge[];
|
|
479
579
|
ai_config?: SupportAgentAiConfig;
|
|
580
|
+
channel_ids?: string[];
|
|
581
|
+
notes?: string | null;
|
|
480
582
|
}
|
|
481
583
|
interface UpdateSupportAgentParams {
|
|
482
584
|
store_id: string;
|
|
483
585
|
id: string;
|
|
484
586
|
name?: string;
|
|
485
|
-
status?:
|
|
587
|
+
status?: SupportAgentStatus;
|
|
486
588
|
entry_node_id?: string;
|
|
487
589
|
nodes?: Record<string, SupportAgentNode>;
|
|
488
590
|
edges?: SupportAgentEdge[];
|
|
489
591
|
ai_config?: SupportAgentAiConfig;
|
|
592
|
+
channel_ids?: string[];
|
|
593
|
+
notes?: string | null;
|
|
594
|
+
}
|
|
595
|
+
interface CreateSupportChannelParams {
|
|
596
|
+
store_id: string;
|
|
597
|
+
key: string;
|
|
598
|
+
name: string;
|
|
599
|
+
status?: SupportChannelStatus;
|
|
600
|
+
channel_type: SupportChannelType;
|
|
601
|
+
config: SupportChannelConfig;
|
|
602
|
+
}
|
|
603
|
+
interface UpdateSupportChannelParams {
|
|
604
|
+
store_id: string;
|
|
605
|
+
id: string;
|
|
606
|
+
key?: string;
|
|
607
|
+
name?: string;
|
|
608
|
+
status?: SupportChannelStatus;
|
|
609
|
+
channel_type?: SupportChannelType;
|
|
610
|
+
config?: SupportChannelConfig;
|
|
611
|
+
}
|
|
612
|
+
interface FindSupportChannelsParams {
|
|
613
|
+
store_id: string;
|
|
614
|
+
status?: SupportChannelStatus;
|
|
615
|
+
channel_type?: SupportChannelType;
|
|
616
|
+
limit?: number;
|
|
617
|
+
cursor?: string;
|
|
490
618
|
}
|
|
491
619
|
|
|
492
620
|
interface TimelineParams {
|
|
@@ -951,6 +1079,9 @@ declare function createAdmin(config: CreateAdminConfig): {
|
|
|
951
1079
|
rates: ShippingRate[];
|
|
952
1080
|
}>;
|
|
953
1081
|
ship: (params: ShipParams, options?: RequestOptions$1) => Promise<ShipResult>;
|
|
1082
|
+
refundShippingLabel: (params: RefundShippingLabelParams, options?: RequestOptions$1) => Promise<{
|
|
1083
|
+
refund: ShippingLabelRefund;
|
|
1084
|
+
}>;
|
|
954
1085
|
};
|
|
955
1086
|
cart: {
|
|
956
1087
|
create: (params: CreateCartParams, options?: RequestOptions$1) => Promise<Cart>;
|
|
@@ -1102,6 +1233,21 @@ declare function createAdmin(config: CreateAdminConfig): {
|
|
|
1102
1233
|
deleteAccount: (params: DeleteWorkflowAccountParams, options?: RequestOptions$1) => Promise<boolean>;
|
|
1103
1234
|
};
|
|
1104
1235
|
support: {
|
|
1236
|
+
createChannel: (params: CreateSupportChannelParams, opts?: RequestOptions$1) => Promise<SupportChannel>;
|
|
1237
|
+
getChannel: (params: {
|
|
1238
|
+
store_id: string;
|
|
1239
|
+
id: string;
|
|
1240
|
+
}, opts?: RequestOptions$1) => Promise<SupportChannel>;
|
|
1241
|
+
findChannels: (params: FindSupportChannelsParams, opts?: RequestOptions$1) => Promise<{
|
|
1242
|
+
items: SupportChannel[];
|
|
1243
|
+
cursor?: string;
|
|
1244
|
+
}>;
|
|
1245
|
+
updateChannel: (params: UpdateSupportChannelParams, opts?: RequestOptions$1) => Promise<SupportChannel>;
|
|
1246
|
+
deleteChannel: (params: {
|
|
1247
|
+
store_id: string;
|
|
1248
|
+
id: string;
|
|
1249
|
+
}, opts?: RequestOptions$1) => Promise<void>;
|
|
1250
|
+
receiveChannelMessage: (params: ReceiveSupportChannelMessageParams, opts?: RequestOptions$1) => Promise<SupportConversationResponse>;
|
|
1105
1251
|
createAgent: (params: CreateSupportAgentParams, opts?: RequestOptions$1) => Promise<SupportAgent>;
|
|
1106
1252
|
getAgent: (params: {
|
|
1107
1253
|
store_id: string;
|
|
@@ -1121,14 +1267,7 @@ declare function createAdmin(config: CreateAdminConfig): {
|
|
|
1121
1267
|
store_id: string;
|
|
1122
1268
|
id: string;
|
|
1123
1269
|
}, opts?: RequestOptions$1) => Promise<void>;
|
|
1124
|
-
findConversations: (params: {
|
|
1125
|
-
store_id: string;
|
|
1126
|
-
status?: string;
|
|
1127
|
-
agent_id?: string;
|
|
1128
|
-
query?: string;
|
|
1129
|
-
limit?: number;
|
|
1130
|
-
cursor?: string;
|
|
1131
|
-
}, opts?: RequestOptions$1) => Promise<{
|
|
1270
|
+
findConversations: (params: FindSupportConversationsParams, opts?: RequestOptions$1) => Promise<{
|
|
1132
1271
|
items: SupportConversation[];
|
|
1133
1272
|
cursor?: string;
|
|
1134
1273
|
}>;
|
|
@@ -1322,6 +1461,7 @@ declare function createStorefront(config: CreateStorefrontConfig): {
|
|
|
1322
1461
|
find(params?: FindContactListsParams, options?: RequestOptions$1): Promise<PaginatedResponse<ContactList>>;
|
|
1323
1462
|
subscribe(params: SubscribeContactListParams, options?: RequestOptions$1): Promise<ContactListSubscribeResponse>;
|
|
1324
1463
|
checkAccess(params: ContactListAccessParams, options?: RequestOptions$1): Promise<ContactListAccessResponse>;
|
|
1464
|
+
checkContentAccess(params: ContactListContentAccessParams, options?: RequestOptions$1): Promise<ContactListContentAccessResponse>;
|
|
1325
1465
|
unsubscribe(token: string, options?: RequestOptions$1): Promise<{
|
|
1326
1466
|
success: boolean;
|
|
1327
1467
|
}>;
|
|
@@ -1393,4 +1533,4 @@ declare function createStorefront(config: CreateStorefrontConfig): {
|
|
|
1393
1533
|
};
|
|
1394
1534
|
};
|
|
1395
1535
|
|
|
1396
|
-
export { type AnalyticsActionReportKey as $, type AuthStateListener as A, type CartControllerListener as B, type CreateStorefrontConfig as C, type CartControllerQuoteParams as D, type ExperimentUseResponse as E, type CartControllerRefreshParams as F, type GetSupportConversationParams as G, type CartControllerRemoveItemParams as H, type IdentifyResponse as I, type CartControllerState as J, type CartControllerUpdateParams as K, type CommonActionKey as L, type HttpClientConfig as M, createCartController as N, createStorefront as O, type ActionFeedCategory as P, type ActionFeedCursor as Q, type ActionFeedData as R, type StartSupportConversationParams as S, type TrackActionParams as T, type UseExperimentParams as U, type VerifyResponse as V, type ActionFeedItem as W, type ActionFeedSummary as X, type AdminSession as Y, type AdminSessionInternal as Z, type AdminSessionUpdater as _, type ContactSession as a, type AnalyticsBlockRequest as a0, type AnalyticsBlockResponse as a1, type AnalyticsBreakdownData as a2, type AnalyticsBreakdownItem as a3, type AnalyticsBreakdownReportKey as a4, type AnalyticsCompositeReportKey as a5, type AnalyticsMetricData as a6, type AnalyticsMetricReportKey as a7, type AnalyticsReport as a8, type AnalyticsReportKey as a9, type
|
|
1536
|
+
export { type AnalyticsActionReportKey as $, type AuthStateListener as A, type CartControllerListener as B, type CreateStorefrontConfig as C, type CartControllerQuoteParams as D, type ExperimentUseResponse as E, type CartControllerRefreshParams as F, type GetSupportConversationParams as G, type CartControllerRemoveItemParams as H, type IdentifyResponse as I, type CartControllerState as J, type CartControllerUpdateParams as K, type CommonActionKey as L, type HttpClientConfig as M, createCartController as N, createStorefront as O, type ActionFeedCategory as P, type ActionFeedCursor as Q, type ActionFeedData as R, type StartSupportConversationParams as S, type TrackActionParams as T, type UseExperimentParams as U, type VerifyResponse as V, type ActionFeedItem as W, type ActionFeedSummary as X, type AdminSession as Y, type AdminSessionInternal as Z, type AdminSessionUpdater as _, type ContactSession as a, type UpdateSupportChannelParams as a$, type AnalyticsBlockRequest as a0, type AnalyticsBlockResponse as a1, type AnalyticsBreakdownData as a2, type AnalyticsBreakdownItem as a3, type AnalyticsBreakdownReportKey as a4, type AnalyticsCompositeReportKey as a5, type AnalyticsMetricData as a6, type AnalyticsMetricReportKey as a7, type AnalyticsReport as a8, type AnalyticsReportKey as a9, type GetExperimentParams as aA, type LocationCountry as aB, type LocationState as aC, type OutreachFunnelData as aD, type OutreachFunnelStage as aE, type OutreachOverviewData as aF, type ReceiveSupportChannelMessageParams as aG, type ReplySupportConversationParams as aH, type ResolveSupportConversationParams as aI, type RevenueByCurrencyData as aJ, SDK_VERSION as aK, SUPPORTED_FRAMEWORKS as aL, type SupportAction as aM, type SupportAgent as aN, type SupportAgentAiConfig as aO, type SupportAgentEdge as aP, type SupportAgentNode as aQ, type SupportAgentStatus as aR, type SupportChannel as aS, type SupportChannelConfig as aT, type SupportChannelStatus as aU, type SupportChannelType as aV, type SupportConversation as aW, type SupportConversationChannelContext as aX, type SupportMessage as aY, type TimelineParams as aZ, type UpdateExperimentParams as a_, type AnalyticsReportRequest as aa, type AnalyticsRequest as ab, type AnalyticsResponse as ac, type AnalyticsTimeRange as ad, type ApiConfig as ae, type AssignSupportConversationParams as af, type BusinessOverviewData as ag, type ContactFunnelData as ah, type ContactFunnelStage as ai, type ContactSessionInternal as aj, type ContactSessionUpdater as ak, type CreateAdminConfig as al, type CreateExperimentParams as am, type CreateSupportChannelParams as an, type DataHealthData as ao, type EdgeTrigger as ap, type EntityStatusOverviewData as aq, type Experiment as ar, type ExperimentResults as as, type ExperimentStatus as at, type ExperimentVariant as au, type ExperimentVariantResult as av, type FindExperimentsParams as aw, type FindSupportChannelsParams as ax, type FindSupportConversationsParams as ay, type GetCountriesResponse as az, type ContactToken as b, type WorkflowTool as b0, type WorkflowToolOperation as b1, type WorkflowToolResource as b2, createAdmin as b3, type CartController as c, type SupportConversationResponse as d, type SendSupportMessageParams as e, formatBlockValue as f, getBlockLabel as g, extractBlockValues as h, findTimeZone as i, humanize as j, categorify as k, formatDate as l, getSvgContentForAstro as m, fetchSvgContent as n, injectSvgIntoElement as o, prepareBlocksForSubmission as p, type StorefrontAction as q, type AuthStorage as r, slugify as s, COMMON_ACTION_KEYS as t, type CartApi as u, validatePhoneNumber as v, type CartControllerAddItemParams as w, type CartControllerCheckoutParams as x, type CartControllerClearParams as y, type CartControllerInitParams as z };
|