@zernio/node 0.2.739 → 0.2.740

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -26528,7 +26528,7 @@ type ListPhoneNumberCountriesResponse = ({
26528
26528
  */
26529
26529
  fulfilment?: 'instant' | 'request';
26530
26530
  /**
26531
- * Out of stock but orderable anyway. Submit KYC as usual (POST /v1/phone-numbers/kyc) and the carrier sources the number after review, usually about 3 weeks and never guaranteed. Only document tiers (3/4) qualify, and nothing is billed until the number is active.
26531
+ * Out of stock but orderable anyway. Submit KYC as usual (POST /v1/phone-numbers/kyc): we buy regular stock the moment it returns, otherwise the carrier sources the number. Usually 2 to 4 weeks, never guaranteed. Only document tiers (3/4) qualify, and nothing is billed until the number is active.
26532
26532
  */
26533
26533
  preOrderable?: boolean;
26534
26534
  }>;
@@ -26605,7 +26605,7 @@ type CheckPhoneNumberAvailabilityResponse = ({
26605
26605
  */
26606
26606
  available?: boolean;
26607
26607
  /**
26608
- * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and the carrier sources the number after review (usually about 3 weeks, never guaranteed). Only document tiers (3/4) qualify.
26608
+ * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and we buy regular stock the moment it returns, otherwise the carrier sources the number (usually 2 to 4 weeks, never guaranteed). Only document tiers (3/4) qualify.
26609
26609
  */
26610
26610
  preOrderable?: boolean;
26611
26611
  addressConstraint?: 'geo' | 'country' | 'none';
@@ -26873,7 +26873,7 @@ type CheckWhatsAppNumberAvailabilityResponse = ({
26873
26873
  */
26874
26874
  available?: boolean;
26875
26875
  /**
26876
- * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and the carrier sources the number after review (usually about 3 weeks, never guaranteed). Only document tiers (3/4) qualify.
26876
+ * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and we buy regular stock the moment it returns, otherwise the carrier sources the number (usually 2 to 4 weeks, never guaranteed). Only document tiers (3/4) qualify.
26877
26877
  */
26878
26878
  preOrderable?: boolean;
26879
26879
  addressConstraint?: 'geo' | 'country' | 'none';
@@ -27058,7 +27058,7 @@ type SubmitPhoneNumberKycData = {
27058
27058
  type SubmitPhoneNumberKycResponse = ({
27059
27059
  status?: 'kyc_submitted' | 'kyc_reused' | 'kyc_already_submitted';
27060
27060
  /**
27061
- * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until the carrier sources it (usually about 3 weeks) and is not billed until active. A pre-order is one number: `quantity` above 1 is rejected with 400.
27061
+ * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until we get it, from regular stock the moment it returns or sourced by the carrier (usually 2 to 4 weeks), and is not billed until active. Releasing it (DELETE /v1/phone-numbers/{id}) cancels the pre-order. A pre-order is one number: `quantity` above 1 is rejected with 400.
27062
27062
  */
27063
27063
  preOrder?: boolean;
27064
27064
  /**
@@ -27822,7 +27822,7 @@ type SubmitWhatsAppNumberKycData = {
27822
27822
  type SubmitWhatsAppNumberKycResponse = ({
27823
27823
  status?: 'kyc_submitted' | 'kyc_reused' | 'kyc_already_submitted';
27824
27824
  /**
27825
- * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until the carrier sources it (usually about 3 weeks) and is not billed until active. A pre-order is one number: `quantity` above 1 is rejected with 400.
27825
+ * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until we get it, from regular stock the moment it returns or sourced by the carrier (usually 2 to 4 weeks), and is not billed until active. Releasing it (DELETE /v1/phone-numbers/{id}) cancels the pre-order. A pre-order is one number: `quantity` above 1 is rejected with 400.
27826
27826
  */
27827
27827
  preOrder?: boolean;
27828
27828
  /**
@@ -34278,7 +34278,7 @@ type GetAdCommentsResponse = ({
34278
34278
  */
34279
34279
  effectiveStoryId?: string;
34280
34280
  /**
34281
- * TikTok-only video item ID. Null when the ad and comments do not expose it.
34281
+ * TikTok-only video item ID from stored ad fields or returned comments. Null does not prevent listing; ad details are not fetched to populate it.
34282
34282
  */
34283
34283
  tiktokItemId?: (string) | null;
34284
34284
  /**
package/dist/index.d.ts CHANGED
@@ -26528,7 +26528,7 @@ type ListPhoneNumberCountriesResponse = ({
26528
26528
  */
26529
26529
  fulfilment?: 'instant' | 'request';
26530
26530
  /**
26531
- * Out of stock but orderable anyway. Submit KYC as usual (POST /v1/phone-numbers/kyc) and the carrier sources the number after review, usually about 3 weeks and never guaranteed. Only document tiers (3/4) qualify, and nothing is billed until the number is active.
26531
+ * Out of stock but orderable anyway. Submit KYC as usual (POST /v1/phone-numbers/kyc): we buy regular stock the moment it returns, otherwise the carrier sources the number. Usually 2 to 4 weeks, never guaranteed. Only document tiers (3/4) qualify, and nothing is billed until the number is active.
26532
26532
  */
26533
26533
  preOrderable?: boolean;
26534
26534
  }>;
@@ -26605,7 +26605,7 @@ type CheckPhoneNumberAvailabilityResponse = ({
26605
26605
  */
26606
26606
  available?: boolean;
26607
26607
  /**
26608
- * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and the carrier sources the number after review (usually about 3 weeks, never guaranteed). Only document tiers (3/4) qualify.
26608
+ * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and we buy regular stock the moment it returns, otherwise the carrier sources the number (usually 2 to 4 weeks, never guaranteed). Only document tiers (3/4) qualify.
26609
26609
  */
26610
26610
  preOrderable?: boolean;
26611
26611
  addressConstraint?: 'geo' | 'country' | 'none';
@@ -26873,7 +26873,7 @@ type CheckWhatsAppNumberAvailabilityResponse = ({
26873
26873
  */
26874
26874
  available?: boolean;
26875
26875
  /**
26876
- * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and the carrier sources the number after review (usually about 3 weeks, never guaranteed). Only document tiers (3/4) qualify.
26876
+ * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and we buy regular stock the moment it returns, otherwise the carrier sources the number (usually 2 to 4 weeks, never guaranteed). Only document tiers (3/4) qualify.
26877
26877
  */
26878
26878
  preOrderable?: boolean;
26879
26879
  addressConstraint?: 'geo' | 'country' | 'none';
@@ -27058,7 +27058,7 @@ type SubmitPhoneNumberKycData = {
27058
27058
  type SubmitPhoneNumberKycResponse = ({
27059
27059
  status?: 'kyc_submitted' | 'kyc_reused' | 'kyc_already_submitted';
27060
27060
  /**
27061
- * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until the carrier sources it (usually about 3 weeks) and is not billed until active. A pre-order is one number: `quantity` above 1 is rejected with 400.
27061
+ * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until we get it, from regular stock the moment it returns or sourced by the carrier (usually 2 to 4 weeks), and is not billed until active. Releasing it (DELETE /v1/phone-numbers/{id}) cancels the pre-order. A pre-order is one number: `quantity` above 1 is rejected with 400.
27062
27062
  */
27063
27063
  preOrder?: boolean;
27064
27064
  /**
@@ -27822,7 +27822,7 @@ type SubmitWhatsAppNumberKycData = {
27822
27822
  type SubmitWhatsAppNumberKycResponse = ({
27823
27823
  status?: 'kyc_submitted' | 'kyc_reused' | 'kyc_already_submitted';
27824
27824
  /**
27825
- * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until the carrier sources it (usually about 3 weeks) and is not billed until active. A pre-order is one number: `quantity` above 1 is rejected with 400.
27825
+ * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until we get it, from regular stock the moment it returns or sourced by the carrier (usually 2 to 4 weeks), and is not billed until active. Releasing it (DELETE /v1/phone-numbers/{id}) cancels the pre-order. A pre-order is one number: `quantity` above 1 is rejected with 400.
27826
27826
  */
27827
27827
  preOrder?: boolean;
27828
27828
  /**
@@ -34278,7 +34278,7 @@ type GetAdCommentsResponse = ({
34278
34278
  */
34279
34279
  effectiveStoryId?: string;
34280
34280
  /**
34281
- * TikTok-only video item ID. Null when the ad and comments do not expose it.
34281
+ * TikTok-only video item ID from stored ad fields or returned comments. Null does not prevent listing; ad details are not fetched to populate it.
34282
34282
  */
34283
34283
  tiktokItemId?: (string) | null;
34284
34284
  /**
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@zernio/node",
39
- version: "0.2.739",
39
+ version: "0.2.740",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@zernio/node",
8
- version: "0.2.739",
8
+ version: "0.2.740",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.739",
3
+ "version": "0.2.740",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9027,12 +9027,22 @@ export const updateAdTrackingTags = <ThrowOnError extends boolean = false>(optio
9027
9027
  * each page to this ad. A page can be empty while `pagination.hasMore` is true.
9028
9028
  * Reuse `pagination.cursor` with the same `limit`; the cursor retains the date window.
9029
9029
  * `placement` is Meta-only and returns a 400 for TikTok.
9030
+ * Listing needs no identity or video item ID. When the ad group is stored, each
9031
+ * page makes one comment-list call and no ad-detail lookup, including for external
9032
+ * ads that TikTok no longer returns from ad details. `meta.tiktokItemId: null`
9033
+ * does not prevent listing. If the ad group is missing, Zernio fetches ad details;
9034
+ * unavailable details return 404 ad_not_found, and no ad group returns 400 ad_not_commentable.
9030
9035
  *
9031
9036
  * TikTok returns replies as separate comments with `parentId`; nested reply fetching
9032
- * is not supported. `canReply` requires a first-level comment and an identity with
9033
- * comment-management permission. `canDelete` reflects TikTok's own-comment deletion
9034
- * capability. `canHide` is supported and `canLike` is false. Use the ad comment
9035
- * reply, hide and delete operations below to moderate TikTok comments.
9037
+ * is not supported. `canReply` requires a first-level comment, comment-management
9038
+ * permission, a video item ID and a supported TT_USER or CUSTOMIZED_USER identity.
9039
+ * `canDelete` requires TikTok's own-comment deletion capability, a video item ID
9040
+ * and a supported identity. Both flags are false when identity or item is unknown.
9041
+ * Listing uses stored and comment-specific fields without fetching identity.
9042
+ * A direct reply or delete request can lazily resolve missing fields and succeed
9043
+ * even after a false flag. `canHide` is true because visibility changes need only
9044
+ * advertiser and comment IDs. `canLike` is false. Use the ad comment reply, hide
9045
+ * and delete operations below to moderate TikTok comments.
9036
9046
  * Other platforms return feature_not_available.
9037
9047
  *
9038
9048
  * Requires the Ads add-on. Response shape matches GET /v1/inbox/comments/{postId}.
@@ -9055,6 +9065,14 @@ export const getAdComments = <ThrowOnError extends boolean = false>(options: Opt
9055
9065
  * Reply to an ad comment
9056
9066
  * Reply to a first-level TikTok ad comment. Requires a TT_USER or CUSTOMIZED_USER identity with comment-management permission. Replies to replies are rejected. The response commentId identifies the new reply. This operation is not idempotent; do not blindly retry an uncertain response.
9057
9067
  *
9068
+ * Unknown identity and video item fields are resolved only when needed for this
9069
+ * action, then persisted for reuse. Comment-specific fields take precedence.
9070
+ * If TikTok no longer returns the ad needed to resolve identity, 404 ad_not_found
9071
+ * directs you to check deletion or archival in TikTok Ads Manager. Listing can
9072
+ * still succeed. Unsupported or unavailable identity returns 403 feature_not_available.
9073
+ * Denied access to ad details returns 403 insufficient_permissions with reconnect
9074
+ * guidance and the upstream platformError.
9075
+ *
9058
9076
  * Requires Ads access. The ad is resolved within the caller's accessible profiles.
9059
9077
  * Before moderation, Zernio verifies that the comment belongs to this ad using
9060
9078
  * TikTok's ad-group comment listing. The default search window is the last 30 days.
@@ -9073,7 +9091,7 @@ export const replyToAdComment = <ThrowOnError extends boolean = false>(options:
9073
9091
 
9074
9092
  /**
9075
9093
  * Hide or unhide an ad comment
9076
- * Hide or restore a TikTok ad comment. Send hidden=true to hide it or hidden=false to make it public again.
9094
+ * Hide or restore a TikTok ad comment. Send hidden=true to hide it or hidden=false to make it public again. Identity and video item ID are not required; no identity lookup is performed.
9077
9095
  *
9078
9096
  * Requires Ads access. The ad is resolved within the caller's accessible profiles.
9079
9097
  * Before moderation, Zernio verifies that the comment belongs to this ad using
@@ -9095,6 +9113,14 @@ export const hideAdComment = <ThrowOnError extends boolean = false>(options: Opt
9095
9113
  * Delete an ad comment
9096
9114
  * Delete your own TikTok ad comment or reply. TikTok must return can_delete=true for the comment. Other users' comments can be hidden instead.
9097
9115
  *
9116
+ * Unknown identity and video item fields are resolved only when needed for this
9117
+ * action, then persisted for reuse. Comment-specific fields take precedence.
9118
+ * If TikTok no longer returns the ad needed to resolve identity, 404 ad_not_found
9119
+ * directs you to check deletion or archival in TikTok Ads Manager. Listing can
9120
+ * still succeed. Unsupported or unavailable identity returns 403 feature_not_available.
9121
+ * Denied access to ad details returns 403 insufficient_permissions with reconnect
9122
+ * guidance and the upstream platformError.
9123
+ *
9098
9124
  * Requires Ads access. The ad is resolved within the caller's accessible profiles.
9099
9125
  * Before moderation, Zernio verifies that the comment belongs to this ad using
9100
9126
  * TikTok's ad-group comment listing. The default search window is the last 30 days.
@@ -26401,7 +26401,7 @@ export type ListPhoneNumberCountriesResponse = ({
26401
26401
  */
26402
26402
  fulfilment?: 'instant' | 'request';
26403
26403
  /**
26404
- * Out of stock but orderable anyway. Submit KYC as usual (POST /v1/phone-numbers/kyc) and the carrier sources the number after review, usually about 3 weeks and never guaranteed. Only document tiers (3/4) qualify, and nothing is billed until the number is active.
26404
+ * Out of stock but orderable anyway. Submit KYC as usual (POST /v1/phone-numbers/kyc): we buy regular stock the moment it returns, otherwise the carrier sources the number. Usually 2 to 4 weeks, never guaranteed. Only document tiers (3/4) qualify, and nothing is billed until the number is active.
26405
26405
  */
26406
26406
  preOrderable?: boolean;
26407
26407
  }>;
@@ -26484,7 +26484,7 @@ export type CheckPhoneNumberAvailabilityResponse = ({
26484
26484
  */
26485
26485
  available?: boolean;
26486
26486
  /**
26487
- * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and the carrier sources the number after review (usually about 3 weeks, never guaranteed). Only document tiers (3/4) qualify.
26487
+ * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and we buy regular stock the moment it returns, otherwise the carrier sources the number (usually 2 to 4 weeks, never guaranteed). Only document tiers (3/4) qualify.
26488
26488
  */
26489
26489
  preOrderable?: boolean;
26490
26490
  addressConstraint?: 'geo' | 'country' | 'none';
@@ -26766,7 +26766,7 @@ export type CheckWhatsAppNumberAvailabilityResponse = ({
26766
26766
  */
26767
26767
  available?: boolean;
26768
26768
  /**
26769
- * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and the carrier sources the number after review (usually about 3 weeks, never guaranteed). Only document tiers (3/4) qualify.
26769
+ * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and we buy regular stock the moment it returns, otherwise the carrier sources the number (usually 2 to 4 weeks, never guaranteed). Only document tiers (3/4) qualify.
26770
26770
  */
26771
26771
  preOrderable?: boolean;
26772
26772
  addressConstraint?: 'geo' | 'country' | 'none';
@@ -26957,7 +26957,7 @@ export type SubmitPhoneNumberKycData = {
26957
26957
  export type SubmitPhoneNumberKycResponse = ({
26958
26958
  status?: 'kyc_submitted' | 'kyc_reused' | 'kyc_already_submitted';
26959
26959
  /**
26960
- * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until the carrier sources it (usually about 3 weeks) and is not billed until active. A pre-order is one number: `quantity` above 1 is rejected with 400.
26960
+ * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until we get it, from regular stock the moment it returns or sourced by the carrier (usually 2 to 4 weeks), and is not billed until active. Releasing it (DELETE /v1/phone-numbers/{id}) cancels the pre-order. A pre-order is one number: `quantity` above 1 is rejected with 400.
26961
26961
  */
26962
26962
  preOrder?: boolean;
26963
26963
  /**
@@ -27774,7 +27774,7 @@ export type SubmitWhatsAppNumberKycData = {
27774
27774
  export type SubmitWhatsAppNumberKycResponse = ({
27775
27775
  status?: 'kyc_submitted' | 'kyc_reused' | 'kyc_already_submitted';
27776
27776
  /**
27777
- * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until the carrier sources it (usually about 3 weeks) and is not billed until active. A pre-order is one number: `quantity` above 1 is rejected with 400.
27777
+ * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until we get it, from regular stock the moment it returns or sourced by the carrier (usually 2 to 4 weeks), and is not billed until active. Releasing it (DELETE /v1/phone-numbers/{id}) cancels the pre-order. A pre-order is one number: `quantity` above 1 is rejected with 400.
27778
27778
  */
27779
27779
  preOrder?: boolean;
27780
27780
  /**
@@ -34734,7 +34734,7 @@ export type GetAdCommentsResponse = ({
34734
34734
  */
34735
34735
  effectiveStoryId?: string;
34736
34736
  /**
34737
- * TikTok-only video item ID. Null when the ad and comments do not expose it.
34737
+ * TikTok-only video item ID from stored ad fields or returned comments. Null does not prevent listing; ad details are not fetched to populate it.
34738
34738
  */
34739
34739
  tiktokItemId?: (string) | null;
34740
34740
  /**