@getanyapi/sdk 0.77.2 → 0.78.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/index.d.cts CHANGED
@@ -12954,7 +12954,7 @@ declare class EmailNamespace {
12954
12954
  *
12955
12955
  * Find a person's work email address from their name and company domain.
12956
12956
  *
12957
- * Price: $0.0154 per request.
12957
+ * Price: $0.0308 per request.
12958
12958
  *
12959
12959
  * @example
12960
12960
  * const res = await client.email.find({ person: { domain: "google.com", firstName: "Damien", surname: "Neil" } });
@@ -58060,6 +58060,10 @@ interface TwitterSearchUsersInput {
58060
58060
  * Keyword to match against X (Twitter) handles, display names, and profile bios. This is the People tab of X search: pass a topic ('ai agents'), a name ('Elon Musk'), or a handle ('openai') and get back accounts, not posts. Use twitter.search for posts.
58061
58061
  */
58062
58062
  query: string;
58063
+ /**
58064
+ * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `location`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
58065
+ */
58066
+ requireFields?: ("canDm" | "listedCount" | "location")[];
58063
58067
  /**
58064
58068
  * Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
58065
58069
  */
@@ -58075,9 +58079,9 @@ interface TwitterSearchUsersUser {
58075
58079
  */
58076
58080
  bio: string;
58077
58081
  /**
58078
- * Whether the account accepts direct messages.
58082
+ * Whether the account accepts direct messages; null when the serving source does not return it. Name it in requireFields to be served by a source that does.
58079
58083
  */
58080
- canDm?: boolean;
58084
+ canDm?: boolean | null;
58081
58085
  /**
58082
58086
  * Profile banner image URL of the account.
58083
58087
  */
@@ -58099,13 +58103,13 @@ interface TwitterSearchUsersUser {
58099
58103
  */
58100
58104
  id: string;
58101
58105
  /**
58102
- * Number of public lists the account appears on.
58106
+ * Number of public lists the account appears on; null when the serving source does not return it. Name it in requireFields to be served by a source that does.
58103
58107
  */
58104
- listedCount?: number;
58108
+ listedCount?: number | null;
58105
58109
  /**
58106
- * The account's self-reported location (may be empty).
58110
+ * The account's self-reported location (may be empty); null when the serving source does not return locations. Name it in requireFields to be served by a source that does.
58107
58111
  */
58108
- location: string;
58112
+ location: string | null;
58109
58113
  /**
58110
58114
  * The account's display name. Populated whenever the provider has data for the entity.
58111
58115
  */
package/dist/index.d.ts CHANGED
@@ -12954,7 +12954,7 @@ declare class EmailNamespace {
12954
12954
  *
12955
12955
  * Find a person's work email address from their name and company domain.
12956
12956
  *
12957
- * Price: $0.0154 per request.
12957
+ * Price: $0.0308 per request.
12958
12958
  *
12959
12959
  * @example
12960
12960
  * const res = await client.email.find({ person: { domain: "google.com", firstName: "Damien", surname: "Neil" } });
@@ -58060,6 +58060,10 @@ interface TwitterSearchUsersInput {
58060
58060
  * Keyword to match against X (Twitter) handles, display names, and profile bios. This is the People tab of X search: pass a topic ('ai agents'), a name ('Elon Musk'), or a handle ('openai') and get back accounts, not posts. Use twitter.search for posts.
58061
58061
  */
58062
58062
  query: string;
58063
+ /**
58064
+ * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `location`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
58065
+ */
58066
+ requireFields?: ("canDm" | "listedCount" | "location")[];
58063
58067
  /**
58064
58068
  * Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
58065
58069
  */
@@ -58075,9 +58079,9 @@ interface TwitterSearchUsersUser {
58075
58079
  */
58076
58080
  bio: string;
58077
58081
  /**
58078
- * Whether the account accepts direct messages.
58082
+ * Whether the account accepts direct messages; null when the serving source does not return it. Name it in requireFields to be served by a source that does.
58079
58083
  */
58080
- canDm?: boolean;
58084
+ canDm?: boolean | null;
58081
58085
  /**
58082
58086
  * Profile banner image URL of the account.
58083
58087
  */
@@ -58099,13 +58103,13 @@ interface TwitterSearchUsersUser {
58099
58103
  */
58100
58104
  id: string;
58101
58105
  /**
58102
- * Number of public lists the account appears on.
58106
+ * Number of public lists the account appears on; null when the serving source does not return it. Name it in requireFields to be served by a source that does.
58103
58107
  */
58104
- listedCount?: number;
58108
+ listedCount?: number | null;
58105
58109
  /**
58106
- * The account's self-reported location (may be empty).
58110
+ * The account's self-reported location (may be empty); null when the serving source does not return locations. Name it in requireFields to be served by a source that does.
58107
58111
  */
58108
- location: string;
58112
+ location: string | null;
58109
58113
  /**
58110
58114
  * The account's display name. Populated whenever the provider has data for the entity.
58111
58115
  */
package/dist/index.js CHANGED
@@ -1959,7 +1959,7 @@ var EmailNamespace = class {
1959
1959
  *
1960
1960
  * Find a person's work email address from their name and company domain.
1961
1961
  *
1962
- * Price: $0.0154 per request.
1962
+ * Price: $0.0308 per request.
1963
1963
  *
1964
1964
  * @example
1965
1965
  * const res = await client.email.find({ person: { domain: "google.com", firstName: "Damien", surname: "Neil" } });