@postrun/js 2.3.0 → 2.5.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 { cM as TokensMintData, fi as PostrunClient, fD as TokensMintResponse } from './types.gen-DozfBQoz.cjs';
1
+ import { cM as TokensMintData, fi as PostrunClient, fD as TokensMintResponse } from './types.gen-BUi197pC.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 { cM as TokensMintData, fi as PostrunClient, fD as TokensMintResponse } from './types.gen-DozfBQoz.js';
1
+ import { cM as TokensMintData, fi as PostrunClient, fD as TokensMintResponse } from './types.gen-BUi197pC.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-YHCKVA2K.js';
2
- import './chunk-ASEHCVE5.js';
1
+ import { createPostrunClient, tokensMint } from './chunk-IK4QXQLM.js';
2
+ import './chunk-LATXGVUG.js';
3
3
 
4
4
  // src/server.ts
5
5
  function assertServerOnly() {
@@ -3224,9 +3224,9 @@ type ConnectionsListAccountsResponse = ConnectionsListAccountsResponses[keyof Co
3224
3224
  type ConnectionsConnectData = {
3225
3225
  body: {
3226
3226
  /**
3227
- * A platform a connection can start an OAuth connect flow for (the v1 launch set: Meta Ads, Google Ads, X, LinkedIn, Facebook Pages, TikTok).
3227
+ * A platform a connection can start an OAuth connect flow for (the v1 launch set: Meta Ads, Google Ads, X, LinkedIn, Facebook Pages, Instagram, TikTok).
3228
3228
  */
3229
- platform: 'meta_ads' | 'google_ads' | 'x' | 'linkedin' | 'facebook_page' | 'tiktok';
3229
+ platform: 'meta_ads' | 'google_ads' | 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
3230
3230
  };
3231
3231
  path: {
3232
3232
  /**
@@ -8100,6 +8100,10 @@ type PostsValidateResponses = {
8100
8100
  got?: string;
8101
8101
  variant_index: number;
8102
8102
  path: Array<string | number>;
8103
+ /**
8104
+ * The platform this issue belongs to. Group/branch on this directly rather than re-deriving from `variant_index` (variant order is canonical, not your channel order).
8105
+ */
8106
+ platform?: 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
8103
8107
  /**
8104
8108
  * Short, friendly, render-this end-user line (the Plaid display_message model). The `code` stays the branch key for customer branching; `message` stays developer-grade. Populated centrally — never at construction sites.
8105
8109
  */
@@ -3224,9 +3224,9 @@ type ConnectionsListAccountsResponse = ConnectionsListAccountsResponses[keyof Co
3224
3224
  type ConnectionsConnectData = {
3225
3225
  body: {
3226
3226
  /**
3227
- * A platform a connection can start an OAuth connect flow for (the v1 launch set: Meta Ads, Google Ads, X, LinkedIn, Facebook Pages, TikTok).
3227
+ * A platform a connection can start an OAuth connect flow for (the v1 launch set: Meta Ads, Google Ads, X, LinkedIn, Facebook Pages, Instagram, TikTok).
3228
3228
  */
3229
- platform: 'meta_ads' | 'google_ads' | 'x' | 'linkedin' | 'facebook_page' | 'tiktok';
3229
+ platform: 'meta_ads' | 'google_ads' | 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
3230
3230
  };
3231
3231
  path: {
3232
3232
  /**
@@ -8100,6 +8100,10 @@ type PostsValidateResponses = {
8100
8100
  got?: string;
8101
8101
  variant_index: number;
8102
8102
  path: Array<string | number>;
8103
+ /**
8104
+ * The platform this issue belongs to. Group/branch on this directly rather than re-deriving from `variant_index` (variant order is canonical, not your channel order).
8105
+ */
8106
+ platform?: 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
8103
8107
  /**
8104
8108
  * Short, friendly, render-this end-user line (the Plaid display_message model). The `code` stays the branch key for customer branching; `message` stays developer-grade. Populated centrally — never at construction sites.
8105
8109
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postrun/js",
3
- "version": "2.3.0",
3
+ "version": "2.5.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",