@postrun/js 2.23.0 → 2.24.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/server.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { dA as TokensMintData, ed as PostrunClient, hx as TokensMintResponse } from './types.gen-BKyrVtiG.cjs';
1
+ import { dA as TokensMintData, ed as PostrunClient, hx as TokensMintResponse } from './types.gen-CzfWmp33.cjs';
2
2
 
3
3
  /**
4
4
  * The body for minting a scoped token — the generated request shape (snake_case,
package/dist/server.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { dA as TokensMintData, ed as PostrunClient, hx as TokensMintResponse } from './types.gen-BKyrVtiG.js';
1
+ import { dA as TokensMintData, ed as PostrunClient, hx as TokensMintResponse } from './types.gen-CzfWmp33.js';
2
2
 
3
3
  /**
4
4
  * The body for minting a scoped token — the generated request shape (snake_case,
package/dist/server.js CHANGED
@@ -1,5 +1,5 @@
1
- import { createPostrunClient, tokensMint } from './chunk-ENKRNIUY.js';
2
- import './chunk-K3UUBD7Z.js';
1
+ import { createPostrunClient, tokensMint } from './chunk-4WBAULYQ.js';
2
+ import './chunk-RBHVSFEN.js';
3
3
 
4
4
  // src/server.ts
5
5
  function assertServerOnly() {
@@ -2021,13 +2021,13 @@ type GoogleAdsConversionUserIdentifier = {
2021
2021
  */
2022
2022
  phone_number?: string;
2023
2023
  /**
2024
- * A plaintext postal address. Name fields are hashed; region/postal code are sent in the clear.
2024
+ * A plaintext postal address — all four parts are required. Name fields are hashed; region/postal code are sent in the clear.
2025
2025
  */
2026
2026
  address?: {
2027
- given_name?: string;
2028
- family_name?: string;
2029
- region_code?: string;
2030
- postal_code?: string;
2027
+ given_name: string;
2028
+ family_name: string;
2029
+ region_code: string;
2030
+ postal_code: string;
2031
2031
  };
2032
2032
  };
2033
2033
  /**
@@ -2035,9 +2035,13 @@ type GoogleAdsConversionUserIdentifier = {
2035
2035
  */
2036
2036
  type GoogleAdsConversionEvent = {
2037
2037
  /**
2038
- * When the conversion happened, as an RFC 3339 timestamp (required).
2038
+ * When the conversion happened, as an RFC 3339 timestamp (required). A UTC `Z` or an explicit timezone offset (e.g. +05:30) is accepted.
2039
2039
  */
2040
2040
  event_timestamp: string;
2041
+ /**
2042
+ * Where the conversion happened (required by Google): WEB for a gclid web conversion, or APP / IN_STORE / PHONE / MESSAGE / OTHER.
2043
+ */
2044
+ event_source: 'WEB' | 'APP' | 'IN_STORE' | 'PHONE' | 'MESSAGE' | 'OTHER';
2041
2045
  /**
2042
2046
  * Your unique transaction id for this conversion (Google’s transaction_id). Used to de-duplicate.
2043
2047
  */
@@ -2123,7 +2127,7 @@ type GoogleAdsConversionStatus = {
2123
2127
  */
2124
2128
  request_id: string;
2125
2129
  /**
2126
- * One entry per destination, ordered to match the request’s destinations.
2130
+ * One entry per destination, ordered to match the request’s destinations. EMPTY for the first ~minute after a send, while Google registers the request — poll again until it populates.
2127
2131
  */
2128
2132
  destinations: Array<{
2129
2133
  /**
@@ -2021,13 +2021,13 @@ type GoogleAdsConversionUserIdentifier = {
2021
2021
  */
2022
2022
  phone_number?: string;
2023
2023
  /**
2024
- * A plaintext postal address. Name fields are hashed; region/postal code are sent in the clear.
2024
+ * A plaintext postal address — all four parts are required. Name fields are hashed; region/postal code are sent in the clear.
2025
2025
  */
2026
2026
  address?: {
2027
- given_name?: string;
2028
- family_name?: string;
2029
- region_code?: string;
2030
- postal_code?: string;
2027
+ given_name: string;
2028
+ family_name: string;
2029
+ region_code: string;
2030
+ postal_code: string;
2031
2031
  };
2032
2032
  };
2033
2033
  /**
@@ -2035,9 +2035,13 @@ type GoogleAdsConversionUserIdentifier = {
2035
2035
  */
2036
2036
  type GoogleAdsConversionEvent = {
2037
2037
  /**
2038
- * When the conversion happened, as an RFC 3339 timestamp (required).
2038
+ * When the conversion happened, as an RFC 3339 timestamp (required). A UTC `Z` or an explicit timezone offset (e.g. +05:30) is accepted.
2039
2039
  */
2040
2040
  event_timestamp: string;
2041
+ /**
2042
+ * Where the conversion happened (required by Google): WEB for a gclid web conversion, or APP / IN_STORE / PHONE / MESSAGE / OTHER.
2043
+ */
2044
+ event_source: 'WEB' | 'APP' | 'IN_STORE' | 'PHONE' | 'MESSAGE' | 'OTHER';
2041
2045
  /**
2042
2046
  * Your unique transaction id for this conversion (Google’s transaction_id). Used to de-duplicate.
2043
2047
  */
@@ -2123,7 +2127,7 @@ type GoogleAdsConversionStatus = {
2123
2127
  */
2124
2128
  request_id: string;
2125
2129
  /**
2126
- * One entry per destination, ordered to match the request’s destinations.
2130
+ * One entry per destination, ordered to match the request’s destinations. EMPTY for the first ~minute after a send, while Google registers the request — poll again until it populates.
2127
2131
  */
2128
2132
  destinations: Array<{
2129
2133
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postrun/js",
3
- "version": "2.23.0",
3
+ "version": "2.24.0",
4
4
  "description": "Typed JavaScript client + client-side validation for the Postrun API",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://postrun.ai",