@cimplify/sdk 0.89.0 → 0.90.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/advanced.d.mts +3 -3
- package/dist/advanced.d.ts +3 -3
- package/dist/{chunk-DENWOZEA.mjs → chunk-2UDEWILL.mjs} +46 -8
- package/dist/{chunk-T2CJ67QV.js → chunk-BN4V4ONE.js} +46 -8
- package/dist/{chunk-JHJTXAPS.js → chunk-JVWFIFQ7.js} +4 -4
- package/dist/{chunk-ROBTTS3Q.js → chunk-KJP4U6L3.js} +28 -1
- package/dist/{chunk-M4ALCELT.mjs → chunk-NGE37REW.mjs} +2 -2
- package/dist/{chunk-APBLFZ2I.mjs → chunk-NNGKC3MM.mjs} +28 -1
- package/dist/chunk-U4MW6PYU.mjs +23 -0
- package/dist/chunk-XREIZ56K.js +26 -0
- package/dist/{client-CqZgdUtw.d.ts → client-CR1f94wY.d.ts} +81 -6
- package/dist/{client-CUbwb6Om.d.ts → client-CqpOcbin.d.ts} +2 -2
- package/dist/{client-CAY2NbRG.d.mts → client-DMttx1xk.d.mts} +2 -2
- package/dist/{client-D8ZFs-sq.d.mts → client-YiSelM7x.d.mts} +81 -6
- package/dist/{index-Bc5qUxAt.d.ts → index-CxTVu0HZ.d.ts} +3 -3
- package/dist/{index-CmWOz9bi.d.mts → index-DD9z396M.d.mts} +3 -3
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +17 -10
- package/dist/index.mjs +8 -2
- package/dist/mock/cli.mjs +49 -1
- package/dist/mock/library.js +49 -1
- package/dist/mock/library.mjs +49 -1
- package/dist/mock/msw.js +49 -1
- package/dist/mock/msw.mjs +49 -1
- package/dist/{payment-Dcgb9n1n.d.mts → payment-5d8FTA1q.d.mts} +1 -1
- package/dist/{payment-Xq0WDZXh.d.ts → payment-BX7ccIKY.d.ts} +1 -1
- package/dist/{price-DAAjKgAp.d.ts → price-DtfP_Xfq.d.ts} +1 -1
- package/dist/{price--Ma_WO5_.d.mts → price-arl_4Rzn.d.mts} +1 -1
- package/dist/{product-BakHcsP2.d.mts → product-DZX4QuKS.d.mts} +57 -2
- package/dist/{product-BakHcsP2.d.ts → product-DZX4QuKS.d.ts} +57 -2
- package/dist/react.d.mts +405 -7
- package/dist/react.d.ts +405 -7
- package/dist/react.js +2325 -69
- package/dist/react.mjs +2303 -67
- package/dist/{server-Bk_hlefX.d.mts → server-BceZMxcK.d.mts} +8 -1
- package/dist/{server-Bei5lBrc.d.ts → server-DoJGSC7L.d.ts} +8 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +2 -2
- package/dist/server.mjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +3 -2
- package/dist/testing/msw.mjs +2 -1
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +23 -22
- package/dist/testing/suite.mjs +4 -3
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/testing.js +79 -78
- package/dist/testing.mjs +5 -4
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/package.json +4 -1
- package/registry/chat-widget.json +1 -1
- package/registry/product-customizer.json +1 -1
|
@@ -1686,12 +1686,18 @@ interface components {
|
|
|
1686
1686
|
id: string;
|
|
1687
1687
|
status: string;
|
|
1688
1688
|
ai_enabled: boolean;
|
|
1689
|
+
needs_human_review: boolean;
|
|
1689
1690
|
/** Format: int32 */
|
|
1690
1691
|
message_count: number;
|
|
1691
1692
|
/** Format: date-time */
|
|
1692
1693
|
created_at: string;
|
|
1693
1694
|
/** Format: date-time */
|
|
1694
1695
|
last_message_at?: string | null;
|
|
1696
|
+
/**
|
|
1697
|
+
* Format: date-time
|
|
1698
|
+
* @description Team-wide read watermark; which agent read is not on this wire.
|
|
1699
|
+
*/
|
|
1700
|
+
team_read_at?: string | null;
|
|
1695
1701
|
};
|
|
1696
1702
|
ChatConversationResponse: {
|
|
1697
1703
|
conversation: components["schemas"]["ChatConversation"];
|
|
@@ -1704,9 +1710,20 @@ interface components {
|
|
|
1704
1710
|
content_type: components["schemas"]["ContentType"];
|
|
1705
1711
|
attachments: Record<string, never>;
|
|
1706
1712
|
metadata: Record<string, never>;
|
|
1713
|
+
reply_to?: null | components["schemas"]["ChatReplyContext"];
|
|
1707
1714
|
/** Format: date-time */
|
|
1708
1715
|
created_at: string;
|
|
1709
1716
|
};
|
|
1717
|
+
/**
|
|
1718
|
+
* @description Server-resolved quote context. Self-contained on purpose: the widget's
|
|
1719
|
+
* local id space doesn't survive reloads, so a bare reference would only
|
|
1720
|
+
* resolve for same-session messages.
|
|
1721
|
+
*/
|
|
1722
|
+
ChatReplyContext: {
|
|
1723
|
+
id: string;
|
|
1724
|
+
sender_type: components["schemas"]["SenderType"];
|
|
1725
|
+
preview: string;
|
|
1726
|
+
};
|
|
1710
1727
|
CheckoutApiResponse: {
|
|
1711
1728
|
order_id: string;
|
|
1712
1729
|
order_number: string;
|
|
@@ -2778,6 +2795,19 @@ interface components {
|
|
|
2778
2795
|
logo?: string | null;
|
|
2779
2796
|
currency: string;
|
|
2780
2797
|
is_open: boolean;
|
|
2798
|
+
description?: string | null;
|
|
2799
|
+
phone?: string | null;
|
|
2800
|
+
/**
|
|
2801
|
+
* Format: date-time
|
|
2802
|
+
* @description Next opening moment; present when the store is closed.
|
|
2803
|
+
*/
|
|
2804
|
+
opens_at?: string | null;
|
|
2805
|
+
/**
|
|
2806
|
+
* Format: date-time
|
|
2807
|
+
* @description Current closing moment; present when the store is open.
|
|
2808
|
+
*/
|
|
2809
|
+
closes_at?: string | null;
|
|
2810
|
+
hours: components["schemas"]["LiteDayHoursView"][];
|
|
2781
2811
|
};
|
|
2782
2812
|
LiteBootstrapCategoryView: {
|
|
2783
2813
|
id: string;
|
|
@@ -2785,12 +2815,26 @@ interface components {
|
|
|
2785
2815
|
};
|
|
2786
2816
|
LiteBootstrapLocationView: {
|
|
2787
2817
|
id: string;
|
|
2818
|
+
name?: string | null;
|
|
2819
|
+
area?: string | null;
|
|
2788
2820
|
};
|
|
2789
2821
|
LiteBootstrapView: {
|
|
2790
2822
|
business: components["schemas"]["LiteBootstrapBusinessView"];
|
|
2791
2823
|
categories: components["schemas"]["LiteBootstrapCategoryView"][];
|
|
2792
2824
|
location?: null | components["schemas"]["LiteBootstrapLocationView"];
|
|
2793
2825
|
};
|
|
2826
|
+
LiteDayHoursView: {
|
|
2827
|
+
/**
|
|
2828
|
+
* Format: int32
|
|
2829
|
+
* @description Day of week, 0 = Sunday.
|
|
2830
|
+
*/
|
|
2831
|
+
day: number;
|
|
2832
|
+
ranges: components["schemas"]["LiteHoursRangeView"][];
|
|
2833
|
+
};
|
|
2834
|
+
LiteHoursRangeView: {
|
|
2835
|
+
start: string;
|
|
2836
|
+
end: string;
|
|
2837
|
+
};
|
|
2794
2838
|
LiteResourceResponseView: {
|
|
2795
2839
|
resource: components["schemas"]["LiteResourceView"];
|
|
2796
2840
|
tab?: Record<string, never> | null;
|
|
@@ -4063,10 +4107,19 @@ interface components {
|
|
|
4063
4107
|
* `client_id` is a widget-supplied idempotency key; passed through to
|
|
4064
4108
|
* `CreateMessage.external_id`, so a retried POST with the same id
|
|
4065
4109
|
* returns the originally created message instead of inserting twice.
|
|
4110
|
+
* `reply_to_message_id` quotes another message by the id the customer
|
|
4111
|
+
* actually has — `ChatMessageResponse.id`.
|
|
4066
4112
|
*/
|
|
4067
4113
|
SendMessageBody: {
|
|
4068
4114
|
content: string;
|
|
4069
4115
|
client_id?: string | null;
|
|
4116
|
+
reply_to_message_id?: string | null;
|
|
4117
|
+
/**
|
|
4118
|
+
* @description Ids of image uploads made via `/api/v1/uploads` — the only way to
|
|
4119
|
+
* attach media. The server stores the durable storage reference and
|
|
4120
|
+
* presigns at read time.
|
|
4121
|
+
*/
|
|
4122
|
+
upload_ids?: string[];
|
|
4070
4123
|
};
|
|
4071
4124
|
/** @enum {string} */
|
|
4072
4125
|
SenderType: "customer" | "agent" | "system" | "bot";
|
|
@@ -4752,6 +4805,10 @@ interface Product {
|
|
|
4752
4805
|
type: ProductType;
|
|
4753
4806
|
render_hint?: ProductRenderHint;
|
|
4754
4807
|
display_mode?: DisplayMode;
|
|
4808
|
+
/** Present on list payloads too — the menu serializes these on every item. */
|
|
4809
|
+
variants?: VariantView[];
|
|
4810
|
+
variant_axes?: VariantAxisWithValues[];
|
|
4811
|
+
add_on_ids?: string[];
|
|
4755
4812
|
inventory_type: InventoryType;
|
|
4756
4813
|
variant_strategy: VariantStrategy;
|
|
4757
4814
|
inventory_status?: {
|
|
@@ -4962,9 +5019,7 @@ interface RelatedProductView {
|
|
|
4962
5019
|
}
|
|
4963
5020
|
interface ProductWithDetails extends Product {
|
|
4964
5021
|
category?: Category;
|
|
4965
|
-
variants?: VariantView[];
|
|
4966
5022
|
add_ons?: AddOnWithOptions[];
|
|
4967
|
-
variant_axes?: VariantAxisWithValues[];
|
|
4968
5023
|
location_prices?: LocationProductPrice[];
|
|
4969
5024
|
location_availability?: ProductAvailability[];
|
|
4970
5025
|
time_profiles?: ProductTimeProfile[];
|
|
@@ -1686,12 +1686,18 @@ interface components {
|
|
|
1686
1686
|
id: string;
|
|
1687
1687
|
status: string;
|
|
1688
1688
|
ai_enabled: boolean;
|
|
1689
|
+
needs_human_review: boolean;
|
|
1689
1690
|
/** Format: int32 */
|
|
1690
1691
|
message_count: number;
|
|
1691
1692
|
/** Format: date-time */
|
|
1692
1693
|
created_at: string;
|
|
1693
1694
|
/** Format: date-time */
|
|
1694
1695
|
last_message_at?: string | null;
|
|
1696
|
+
/**
|
|
1697
|
+
* Format: date-time
|
|
1698
|
+
* @description Team-wide read watermark; which agent read is not on this wire.
|
|
1699
|
+
*/
|
|
1700
|
+
team_read_at?: string | null;
|
|
1695
1701
|
};
|
|
1696
1702
|
ChatConversationResponse: {
|
|
1697
1703
|
conversation: components["schemas"]["ChatConversation"];
|
|
@@ -1704,9 +1710,20 @@ interface components {
|
|
|
1704
1710
|
content_type: components["schemas"]["ContentType"];
|
|
1705
1711
|
attachments: Record<string, never>;
|
|
1706
1712
|
metadata: Record<string, never>;
|
|
1713
|
+
reply_to?: null | components["schemas"]["ChatReplyContext"];
|
|
1707
1714
|
/** Format: date-time */
|
|
1708
1715
|
created_at: string;
|
|
1709
1716
|
};
|
|
1717
|
+
/**
|
|
1718
|
+
* @description Server-resolved quote context. Self-contained on purpose: the widget's
|
|
1719
|
+
* local id space doesn't survive reloads, so a bare reference would only
|
|
1720
|
+
* resolve for same-session messages.
|
|
1721
|
+
*/
|
|
1722
|
+
ChatReplyContext: {
|
|
1723
|
+
id: string;
|
|
1724
|
+
sender_type: components["schemas"]["SenderType"];
|
|
1725
|
+
preview: string;
|
|
1726
|
+
};
|
|
1710
1727
|
CheckoutApiResponse: {
|
|
1711
1728
|
order_id: string;
|
|
1712
1729
|
order_number: string;
|
|
@@ -2778,6 +2795,19 @@ interface components {
|
|
|
2778
2795
|
logo?: string | null;
|
|
2779
2796
|
currency: string;
|
|
2780
2797
|
is_open: boolean;
|
|
2798
|
+
description?: string | null;
|
|
2799
|
+
phone?: string | null;
|
|
2800
|
+
/**
|
|
2801
|
+
* Format: date-time
|
|
2802
|
+
* @description Next opening moment; present when the store is closed.
|
|
2803
|
+
*/
|
|
2804
|
+
opens_at?: string | null;
|
|
2805
|
+
/**
|
|
2806
|
+
* Format: date-time
|
|
2807
|
+
* @description Current closing moment; present when the store is open.
|
|
2808
|
+
*/
|
|
2809
|
+
closes_at?: string | null;
|
|
2810
|
+
hours: components["schemas"]["LiteDayHoursView"][];
|
|
2781
2811
|
};
|
|
2782
2812
|
LiteBootstrapCategoryView: {
|
|
2783
2813
|
id: string;
|
|
@@ -2785,12 +2815,26 @@ interface components {
|
|
|
2785
2815
|
};
|
|
2786
2816
|
LiteBootstrapLocationView: {
|
|
2787
2817
|
id: string;
|
|
2818
|
+
name?: string | null;
|
|
2819
|
+
area?: string | null;
|
|
2788
2820
|
};
|
|
2789
2821
|
LiteBootstrapView: {
|
|
2790
2822
|
business: components["schemas"]["LiteBootstrapBusinessView"];
|
|
2791
2823
|
categories: components["schemas"]["LiteBootstrapCategoryView"][];
|
|
2792
2824
|
location?: null | components["schemas"]["LiteBootstrapLocationView"];
|
|
2793
2825
|
};
|
|
2826
|
+
LiteDayHoursView: {
|
|
2827
|
+
/**
|
|
2828
|
+
* Format: int32
|
|
2829
|
+
* @description Day of week, 0 = Sunday.
|
|
2830
|
+
*/
|
|
2831
|
+
day: number;
|
|
2832
|
+
ranges: components["schemas"]["LiteHoursRangeView"][];
|
|
2833
|
+
};
|
|
2834
|
+
LiteHoursRangeView: {
|
|
2835
|
+
start: string;
|
|
2836
|
+
end: string;
|
|
2837
|
+
};
|
|
2794
2838
|
LiteResourceResponseView: {
|
|
2795
2839
|
resource: components["schemas"]["LiteResourceView"];
|
|
2796
2840
|
tab?: Record<string, never> | null;
|
|
@@ -4063,10 +4107,19 @@ interface components {
|
|
|
4063
4107
|
* `client_id` is a widget-supplied idempotency key; passed through to
|
|
4064
4108
|
* `CreateMessage.external_id`, so a retried POST with the same id
|
|
4065
4109
|
* returns the originally created message instead of inserting twice.
|
|
4110
|
+
* `reply_to_message_id` quotes another message by the id the customer
|
|
4111
|
+
* actually has — `ChatMessageResponse.id`.
|
|
4066
4112
|
*/
|
|
4067
4113
|
SendMessageBody: {
|
|
4068
4114
|
content: string;
|
|
4069
4115
|
client_id?: string | null;
|
|
4116
|
+
reply_to_message_id?: string | null;
|
|
4117
|
+
/**
|
|
4118
|
+
* @description Ids of image uploads made via `/api/v1/uploads` — the only way to
|
|
4119
|
+
* attach media. The server stores the durable storage reference and
|
|
4120
|
+
* presigns at read time.
|
|
4121
|
+
*/
|
|
4122
|
+
upload_ids?: string[];
|
|
4070
4123
|
};
|
|
4071
4124
|
/** @enum {string} */
|
|
4072
4125
|
SenderType: "customer" | "agent" | "system" | "bot";
|
|
@@ -4752,6 +4805,10 @@ interface Product {
|
|
|
4752
4805
|
type: ProductType;
|
|
4753
4806
|
render_hint?: ProductRenderHint;
|
|
4754
4807
|
display_mode?: DisplayMode;
|
|
4808
|
+
/** Present on list payloads too — the menu serializes these on every item. */
|
|
4809
|
+
variants?: VariantView[];
|
|
4810
|
+
variant_axes?: VariantAxisWithValues[];
|
|
4811
|
+
add_on_ids?: string[];
|
|
4755
4812
|
inventory_type: InventoryType;
|
|
4756
4813
|
variant_strategy: VariantStrategy;
|
|
4757
4814
|
inventory_status?: {
|
|
@@ -4962,9 +5019,7 @@ interface RelatedProductView {
|
|
|
4962
5019
|
}
|
|
4963
5020
|
interface ProductWithDetails extends Product {
|
|
4964
5021
|
category?: Category;
|
|
4965
|
-
variants?: VariantView[];
|
|
4966
5022
|
add_ons?: AddOnWithOptions[];
|
|
4967
|
-
variant_axes?: VariantAxisWithValues[];
|
|
4968
5023
|
location_prices?: LocationProductPrice[];
|
|
4969
5024
|
location_availability?: ProductAvailability[];
|
|
4970
5025
|
time_profiles?: ProductTimeProfile[];
|