@getlatedev/node 0.2.1318 → 0.2.1320
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/README.md +3 -0
- package/dist/index.d.mts +63 -2
- package/dist/index.d.ts +63 -2
- package/dist/index.js +22 -1
- package/dist/index.mjs +22 -1
- package/package.json +1 -1
- package/src/client.ts +6 -0
- package/src/generated/sdk.gen.ts +34 -1
- package/src/generated/types.gen.ts +68 -1
|
@@ -22865,7 +22865,7 @@ export type GetConnectUrlData = {
|
|
|
22865
22865
|
*/
|
|
22866
22866
|
welcome?: boolean;
|
|
22867
22867
|
/**
|
|
22868
|
-
* Welcome screen only (`welcome=true`): a URL-encoded JSON object that restyles and rewords the screen. All keys are optional. Copy: `heading` (up to 120 characters), `trustLine`, `consentLine` and `statusLine` (up to 200 each, `statusLine` being the line above the button), `buttonLabel` (up to 30, the label of the link the button becomes if the redirect stalls); each may contain the placeholders `{brand}` and `{platform}`. Style: `primaryColor` (the button), `accentColor` (the header gradient, built as a scale of that colour, and the icons), `pageColor`, `cardColor` and `textColor` as `#RRGGBB`, `cornerRadius` as an integer from 0 to 24 (pixels), `font` as `sans`, `serif` or `mono`. A `primaryColor` here wins over the `primaryColor` parameter. Unknown keys, invalid JSON or an invalid value are a 400 `INVALID_FIELD_VALUE`. Rejected when the welcome screen is not shown. Example: `{"heading":"Link your {platform} to {brand}","cardColor":"#FFF7ED","cornerRadius":12}`.
|
|
22868
|
+
* Welcome screen only (`welcome=true`): a URL-encoded JSON object that restyles and rewords the screen. All keys are optional. Copy: `heading` (up to 120 characters), `trustLine`, `consentLine` and `statusLine` (up to 200 each, `statusLine` being the line above the button), `buttonLabel` (up to 30, the label of the link the button becomes if the redirect stalls), and for the closing page shown when there is no `redirect_url`, `successHeading` and `errorHeading` (up to 120) and `successBody` and `errorBody` (up to 200); each may contain the placeholders `{brand}` and `{platform}`. Style: `primaryColor` (the button), `accentColor` (the header gradient, built as a scale of that colour, and the icons), `pageColor`, `cardColor` and `textColor` as `#RRGGBB`, `cornerRadius` as an integer from 0 to 24 (pixels), `font` as `sans`, `serif` or `mono`, `bannerStyle` as `halftone` (default), `solid` (a flat tint of `accentColor`) or `plain` (no banner fill). Icons: `trustLineIcon` (default `shield`) and `consentLineIcon` (default `link`), each one of `shield`, `lock`, `link`, `check`, `user`, `sparkles` or `none`. Visibility: `hide`, an array of any of `heading`, `trustLine`, `consentLine`, `statusLine`, `successBody` and `errorBody`, removes those lines from the screens. Links: `termsUrl` and `privacyUrl` (https, up to 2048 characters) add small Terms and Privacy links at the bottom of every hosted screen. A `primaryColor` here wins over the `primaryColor` parameter. Unknown keys, invalid JSON or an invalid value are a 400 `INVALID_FIELD_VALUE`. Rejected when the welcome screen is not shown. Example: `{"heading":"Link your {platform} to {brand}","cardColor":"#FFF7ED","cornerRadius":12}`.
|
|
22869
22869
|
*/
|
|
22870
22870
|
welcomeTheme?: string;
|
|
22871
22871
|
};
|
|
@@ -31589,6 +31589,73 @@ export type AcceptConversationRequestResponse = ({
|
|
|
31589
31589
|
|
|
31590
31590
|
export type AcceptConversationRequestError = (ErrorResponse | unknown);
|
|
31591
31591
|
|
|
31592
|
+
export type ListInboxLabelsData = {
|
|
31593
|
+
query: {
|
|
31594
|
+
/**
|
|
31595
|
+
* Facebook social account ID
|
|
31596
|
+
*/
|
|
31597
|
+
accountId: string;
|
|
31598
|
+
};
|
|
31599
|
+
};
|
|
31600
|
+
|
|
31601
|
+
export type ListInboxLabelsResponse = ({
|
|
31602
|
+
labels?: Array<{
|
|
31603
|
+
/**
|
|
31604
|
+
* Meta label id
|
|
31605
|
+
*/
|
|
31606
|
+
id?: string;
|
|
31607
|
+
name?: string;
|
|
31608
|
+
}>;
|
|
31609
|
+
});
|
|
31610
|
+
|
|
31611
|
+
export type ListInboxLabelsError = (ErrorResponse | unknown);
|
|
31612
|
+
|
|
31613
|
+
export type CreateInboxLabelData = {
|
|
31614
|
+
body: {
|
|
31615
|
+
/**
|
|
31616
|
+
* Facebook social account ID
|
|
31617
|
+
*/
|
|
31618
|
+
accountId: string;
|
|
31619
|
+
/**
|
|
31620
|
+
* Label name
|
|
31621
|
+
*/
|
|
31622
|
+
name: string;
|
|
31623
|
+
};
|
|
31624
|
+
};
|
|
31625
|
+
|
|
31626
|
+
export type CreateInboxLabelResponse = ({
|
|
31627
|
+
label?: {
|
|
31628
|
+
/**
|
|
31629
|
+
* Meta label id
|
|
31630
|
+
*/
|
|
31631
|
+
id?: string;
|
|
31632
|
+
name?: string;
|
|
31633
|
+
};
|
|
31634
|
+
});
|
|
31635
|
+
|
|
31636
|
+
export type CreateInboxLabelError = (ErrorResponse | unknown);
|
|
31637
|
+
|
|
31638
|
+
export type DeleteInboxLabelData = {
|
|
31639
|
+
path: {
|
|
31640
|
+
/**
|
|
31641
|
+
* Meta label id
|
|
31642
|
+
*/
|
|
31643
|
+
labelId: string;
|
|
31644
|
+
};
|
|
31645
|
+
query: {
|
|
31646
|
+
/**
|
|
31647
|
+
* Facebook social account ID
|
|
31648
|
+
*/
|
|
31649
|
+
accountId: string;
|
|
31650
|
+
};
|
|
31651
|
+
};
|
|
31652
|
+
|
|
31653
|
+
export type DeleteInboxLabelResponse = ({
|
|
31654
|
+
success?: boolean;
|
|
31655
|
+
});
|
|
31656
|
+
|
|
31657
|
+
export type DeleteInboxLabelError = (ErrorResponse | unknown);
|
|
31658
|
+
|
|
31592
31659
|
export type MarkConversationReadData = {
|
|
31593
31660
|
body: {
|
|
31594
31661
|
/**
|