ugcinc 4.9.0 → 4.10.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.
Files changed (2) hide show
  1. package/dist/posts.d.ts +15 -0
  2. package/package.json +1 -1
package/dist/posts.d.ts CHANGED
@@ -1,5 +1,18 @@
1
1
  import { BaseClient } from './base';
2
2
  import type { ApiResponse } from './types';
3
+ /**
4
+ * Why a post failed, as a stable, client-safe category.
5
+ *
6
+ * - `device_error` — the posting device was unavailable or did not respond
7
+ * - `network_error` — the connection dropped while posting
8
+ * - `upload_interrupted` — the upload started but could not be confirmed finished
9
+ * - `account_issue` — the social account was not in a usable state
10
+ * - `capacity_deferred` — no posting capacity was available; the post will be retried
11
+ * - `platform_change` — the social app's interface changed and the post could not complete
12
+ * - `unconfirmed` — posting finished but publication could not be confirmed
13
+ * - `unknown` — the post failed for an unrecognized reason
14
+ */
15
+ export type PostFailCategory = 'device_error' | 'network_error' | 'upload_interrupted' | 'account_issue' | 'capacity_deferred' | 'platform_change' | 'unconfirmed' | 'unknown';
3
16
  export type PostType = 'video' | 'slideshow';
4
17
  export type PostStatus = 'draft' | 'scheduled' | 'pending' | 'complete' | 'failed' | 'retrying' | 'deleting' | 'deleted' | 'hidden' | 'require-approval';
5
18
  /**
@@ -184,6 +197,8 @@ export declare class PostsClient extends BaseClient {
184
197
  post_id: string;
185
198
  status: string;
186
199
  postUrl?: string;
200
+ /** Set when status is "failed"; null otherwise. */
201
+ fail_category: PostFailCategory | null;
187
202
  }>>;
188
203
  /**
189
204
  * Create a video post
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "4.9.0",
3
+ "version": "4.10.0",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",