@postrun/js 0.2.0 → 1.1.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 { cG as TokensMintData, fa as PostrunClient, ft as TokensMintResponse } from './types.gen-lbiXwxGS.cjs';
1
+ import { cG as TokensMintData, fa as PostrunClient, ft as TokensMintResponse } from './types.gen-BHE-5ice.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 { cG as TokensMintData, fa as PostrunClient, ft as TokensMintResponse } from './types.gen-lbiXwxGS.js';
1
+ import { cG as TokensMintData, fa as PostrunClient, ft as TokensMintResponse } from './types.gen-BHE-5ice.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-H2IIX5BP.js';
2
- import './chunk-VGR3BQCT.js';
1
+ import { createPostrunClient, tokensMint } from './chunk-YMVIGQGW.js';
2
+ import './chunk-4AAUQJXR.js';
3
3
 
4
4
  // src/server.ts
5
5
  function assertServerOnly() {
@@ -3456,6 +3456,18 @@ type ConnectionsConnectResponses = {
3456
3456
  * Short-lived scoped token (connections read/write on this profile) the hosted page uses to drive the public discover/select API.
3457
3457
  */
3458
3458
  connect_token: string;
3459
+ /**
3460
+ * The raw Nango connect-session token to pass to `nango.auth()` for the embedded (no-redirect) flow. ~30-min short-lived scoped bearer — keep in client memory, never log.
3461
+ */
3462
+ connect_session_token: string;
3463
+ /**
3464
+ * The Nango integration id for the platform, the first argument to `nango.auth()` (e.g. `facebook` for Meta, `twitter-v2` for X).
3465
+ */
3466
+ provider_config_key: string;
3467
+ /**
3468
+ * The Nango host the embedded SDK constructs its client with (`new Nango({ host, connectSessionToken })`).
3469
+ */
3470
+ nango_host: string;
3459
3471
  /**
3460
3472
  * ISO-8601 time when the session token expires.
3461
3473
  */
@@ -3731,6 +3743,13 @@ type MediaListResponses = {
3731
3743
  */
3732
3744
  content_type: string | null;
3733
3745
  status: 'uploading' | 'processing' | 'ready' | 'failed';
3746
+ /**
3747
+ * In-pipeline progress: the current step (stage) and a 0–100 bar (percent). Read `status` for the outcome; `percent` can regress on a transient retry.
3748
+ */
3749
+ progress: {
3750
+ stage: 'queued' | 'analyzing' | 'transcoding' | 'done';
3751
+ percent: number;
3752
+ };
3734
3753
  raw: boolean;
3735
3754
  /**
3736
3755
  * Asset-wide failure (the original itself is unusable, so no platform can succeed); null otherwise.
@@ -4079,6 +4098,13 @@ type MediaCreateResponses = {
4079
4098
  */
4080
4099
  content_type: string | null;
4081
4100
  status: 'uploading' | 'processing' | 'ready' | 'failed';
4101
+ /**
4102
+ * In-pipeline progress: the current step (stage) and a 0–100 bar (percent). Read `status` for the outcome; `percent` can regress on a transient retry.
4103
+ */
4104
+ progress: {
4105
+ stage: 'queued' | 'analyzing' | 'transcoding' | 'done';
4106
+ percent: number;
4107
+ };
4082
4108
  raw: boolean;
4083
4109
  /**
4084
4110
  * Asset-wide failure (the original itself is unusable, so no platform can succeed); null otherwise.
@@ -4615,6 +4641,13 @@ type MediaGetResponses = {
4615
4641
  */
4616
4642
  content_type: string | null;
4617
4643
  status: 'uploading' | 'processing' | 'ready' | 'failed';
4644
+ /**
4645
+ * In-pipeline progress: the current step (stage) and a 0–100 bar (percent). Read `status` for the outcome; `percent` can regress on a transient retry.
4646
+ */
4647
+ progress: {
4648
+ stage: 'queued' | 'analyzing' | 'transcoding' | 'done';
4649
+ percent: number;
4650
+ };
4618
4651
  raw: boolean;
4619
4652
  /**
4620
4653
  * Asset-wide failure (the original itself is unusable, so no platform can succeed); null otherwise.
@@ -4928,6 +4961,13 @@ type MediaUpdateResponses = {
4928
4961
  */
4929
4962
  content_type: string | null;
4930
4963
  status: 'uploading' | 'processing' | 'ready' | 'failed';
4964
+ /**
4965
+ * In-pipeline progress: the current step (stage) and a 0–100 bar (percent). Read `status` for the outcome; `percent` can regress on a transient retry.
4966
+ */
4967
+ progress: {
4968
+ stage: 'queued' | 'analyzing' | 'transcoding' | 'done';
4969
+ percent: number;
4970
+ };
4931
4971
  raw: boolean;
4932
4972
  /**
4933
4973
  * Asset-wide failure (the original itself is unusable, so no platform can succeed); null otherwise.
@@ -3456,6 +3456,18 @@ type ConnectionsConnectResponses = {
3456
3456
  * Short-lived scoped token (connections read/write on this profile) the hosted page uses to drive the public discover/select API.
3457
3457
  */
3458
3458
  connect_token: string;
3459
+ /**
3460
+ * The raw Nango connect-session token to pass to `nango.auth()` for the embedded (no-redirect) flow. ~30-min short-lived scoped bearer — keep in client memory, never log.
3461
+ */
3462
+ connect_session_token: string;
3463
+ /**
3464
+ * The Nango integration id for the platform, the first argument to `nango.auth()` (e.g. `facebook` for Meta, `twitter-v2` for X).
3465
+ */
3466
+ provider_config_key: string;
3467
+ /**
3468
+ * The Nango host the embedded SDK constructs its client with (`new Nango({ host, connectSessionToken })`).
3469
+ */
3470
+ nango_host: string;
3459
3471
  /**
3460
3472
  * ISO-8601 time when the session token expires.
3461
3473
  */
@@ -3731,6 +3743,13 @@ type MediaListResponses = {
3731
3743
  */
3732
3744
  content_type: string | null;
3733
3745
  status: 'uploading' | 'processing' | 'ready' | 'failed';
3746
+ /**
3747
+ * In-pipeline progress: the current step (stage) and a 0–100 bar (percent). Read `status` for the outcome; `percent` can regress on a transient retry.
3748
+ */
3749
+ progress: {
3750
+ stage: 'queued' | 'analyzing' | 'transcoding' | 'done';
3751
+ percent: number;
3752
+ };
3734
3753
  raw: boolean;
3735
3754
  /**
3736
3755
  * Asset-wide failure (the original itself is unusable, so no platform can succeed); null otherwise.
@@ -4079,6 +4098,13 @@ type MediaCreateResponses = {
4079
4098
  */
4080
4099
  content_type: string | null;
4081
4100
  status: 'uploading' | 'processing' | 'ready' | 'failed';
4101
+ /**
4102
+ * In-pipeline progress: the current step (stage) and a 0–100 bar (percent). Read `status` for the outcome; `percent` can regress on a transient retry.
4103
+ */
4104
+ progress: {
4105
+ stage: 'queued' | 'analyzing' | 'transcoding' | 'done';
4106
+ percent: number;
4107
+ };
4082
4108
  raw: boolean;
4083
4109
  /**
4084
4110
  * Asset-wide failure (the original itself is unusable, so no platform can succeed); null otherwise.
@@ -4615,6 +4641,13 @@ type MediaGetResponses = {
4615
4641
  */
4616
4642
  content_type: string | null;
4617
4643
  status: 'uploading' | 'processing' | 'ready' | 'failed';
4644
+ /**
4645
+ * In-pipeline progress: the current step (stage) and a 0–100 bar (percent). Read `status` for the outcome; `percent` can regress on a transient retry.
4646
+ */
4647
+ progress: {
4648
+ stage: 'queued' | 'analyzing' | 'transcoding' | 'done';
4649
+ percent: number;
4650
+ };
4618
4651
  raw: boolean;
4619
4652
  /**
4620
4653
  * Asset-wide failure (the original itself is unusable, so no platform can succeed); null otherwise.
@@ -4928,6 +4961,13 @@ type MediaUpdateResponses = {
4928
4961
  */
4929
4962
  content_type: string | null;
4930
4963
  status: 'uploading' | 'processing' | 'ready' | 'failed';
4964
+ /**
4965
+ * In-pipeline progress: the current step (stage) and a 0–100 bar (percent). Read `status` for the outcome; `percent` can regress on a transient retry.
4966
+ */
4967
+ progress: {
4968
+ stage: 'queued' | 'analyzing' | 'transcoding' | 'done';
4969
+ percent: number;
4970
+ };
4931
4971
  raw: boolean;
4932
4972
  /**
4933
4973
  * Asset-wide failure (the original itself is unusable, so no platform can succeed); null otherwise.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postrun/js",
3
- "version": "0.2.0",
3
+ "version": "1.1.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",