@acedatacloud/sdk 2026.722.0 → 2026.727.1

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,8 +199,20 @@ 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;
207
+ /**
208
+ * Fetch current task state, remembering it once terminal.
209
+ *
210
+ * A caller that drives its own poll loop — checking status between polls so it
211
+ * can report progress — only ever calls this. Without recording here, urls()
212
+ * and result() stay empty after the task has plainly finished.
213
+ */
192
214
  get(): Promise<Record<string, unknown>>;
215
+ private accept;
193
216
  isCompleted(): Promise<boolean>;
194
217
  wait(opts?: TaskHandleOptions): Promise<Record<string, unknown>>;
195
218
  get result(): Record<string, unknown> | null;
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,8 +199,20 @@ 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;
207
+ /**
208
+ * Fetch current task state, remembering it once terminal.
209
+ *
210
+ * A caller that drives its own poll loop — checking status between polls so it
211
+ * can report progress — only ever calls this. Without recording here, urls()
212
+ * and result() stay empty after the task has plainly finished.
213
+ */
192
214
  get(): Promise<Record<string, unknown>>;
215
+ private accept;
193
216
  isCompleted(): Promise<boolean>;
194
217
  wait(opts?: TaskHandleOptions): Promise<Record<string, unknown>>;
195
218
  get result(): Record<string, unknown> | null;