@acedatacloud/sdk 2026.722.0 → 2026.727.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.mts CHANGED
@@ -177,7 +177,18 @@ declare class Chat {
177
177
  constructor(transport: Transport);
178
178
  }
179
179
 
180
- /** Task polling abstraction. */
180
+ /**
181
+ * Task polling for long-running operations.
182
+ *
183
+ * A generation call always returns a handle, never sometimes a handle and
184
+ * sometimes a plain object — the caller decides whether to wait. When the server
185
+ * answers synchronously (some endpoints do for fast or cached results) the
186
+ * handle is born already complete, so `wait()` returns immediately rather than
187
+ * polling for something that has already arrived.
188
+ *
189
+ * Kept behaviourally identical to the Python and Go implementations; a
190
+ * divergence here is a cross-language bug that only shows up in production.
191
+ */
181
192
 
182
193
  interface TaskHandleOptions {
183
194
  pollInterval?: number;
@@ -188,7 +199,11 @@ declare class TaskHandle {
188
199
  private pollEndpoint;
189
200
  private transport;
190
201
  private _result;
191
- constructor(taskId: string, pollEndpoint: string, transport: Transport);
202
+ constructor(taskId: string, pollEndpoint: string, transport: Transport, submitted?: Record<string, unknown>);
203
+ get done(): boolean;
204
+ /** Artifact URLs, once completed. */
205
+ urls(): string[];
206
+ progress(): number | null;
192
207
  get(): Promise<Record<string, unknown>>;
193
208
  isCompleted(): Promise<boolean>;
194
209
  wait(opts?: TaskHandleOptions): Promise<Record<string, unknown>>;
package/dist/index.d.ts CHANGED
@@ -177,7 +177,18 @@ declare class Chat {
177
177
  constructor(transport: Transport);
178
178
  }
179
179
 
180
- /** Task polling abstraction. */
180
+ /**
181
+ * Task polling for long-running operations.
182
+ *
183
+ * A generation call always returns a handle, never sometimes a handle and
184
+ * sometimes a plain object — the caller decides whether to wait. When the server
185
+ * answers synchronously (some endpoints do for fast or cached results) the
186
+ * handle is born already complete, so `wait()` returns immediately rather than
187
+ * polling for something that has already arrived.
188
+ *
189
+ * Kept behaviourally identical to the Python and Go implementations; a
190
+ * divergence here is a cross-language bug that only shows up in production.
191
+ */
181
192
 
182
193
  interface TaskHandleOptions {
183
194
  pollInterval?: number;
@@ -188,7 +199,11 @@ declare class TaskHandle {
188
199
  private pollEndpoint;
189
200
  private transport;
190
201
  private _result;
191
- constructor(taskId: string, pollEndpoint: string, transport: Transport);
202
+ constructor(taskId: string, pollEndpoint: string, transport: Transport, submitted?: Record<string, unknown>);
203
+ get done(): boolean;
204
+ /** Artifact URLs, once completed. */
205
+ urls(): string[];
206
+ progress(): number | null;
192
207
  get(): Promise<Record<string, unknown>>;
193
208
  isCompleted(): Promise<boolean>;
194
209
  wait(opts?: TaskHandleOptions): Promise<Record<string, unknown>>;