dsh-draw 0.2.14 → 0.2.15

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 (40) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README-es.md +16 -4
  3. package/README-hi.md +16 -4
  4. package/README-pt.md +16 -4
  5. package/README-zh.md +16 -4
  6. package/README.md +16 -5
  7. package/lib/client.js +69 -65
  8. package/lib/client.js.map +1 -1
  9. package/lib/index.js +49 -7
  10. package/lib/typert.host.js +1 -1
  11. package/lib/types/client/index.d.ts +12 -0
  12. package/lib/types/client/index.d.ts.map +1 -1
  13. package/lib/types/client/index.js +23 -5
  14. package/lib/types/client/remote.d.ts +110 -31
  15. package/lib/types/client/remote.d.ts.map +1 -1
  16. package/lib/types/client/styles.d.ts.map +1 -1
  17. package/lib/types/client/styles.js +24 -7
  18. package/lib/types/event-gate.d.ts +24 -2
  19. package/lib/types/event-gate.d.ts.map +1 -1
  20. package/lib/types/event-gate.js +31 -3
  21. package/lib/types/index.d.ts.map +1 -1
  22. package/lib/types/index.js +19 -2
  23. package/lib/types/session-events.d.ts.map +1 -1
  24. package/lib/types/session-events.js +9 -2
  25. package/lib/types/typert.host.d.ts +110 -31
  26. package/lib/types/typert.host.d.ts.map +1 -1
  27. package/lib/types/version.d.ts +1 -1
  28. package/lib/types/version.js +1 -1
  29. package/lib/types/wire.d.ts +220 -62
  30. package/lib/types/wire.d.ts.map +1 -1
  31. package/lib/types/wire.js +21 -35
  32. package/lib/{wire-DLW8WmDW.js → wire-BvocRNv3.js} +26 -55
  33. package/package.json +16 -14
  34. package/src/client/index.ts +20 -5
  35. package/src/client/styles.ts +24 -6
  36. package/src/event-gate.ts +45 -3
  37. package/src/index.ts +16 -2
  38. package/src/session-events.ts +9 -2
  39. package/src/version.ts +1 -1
  40. package/src/wire.ts +22 -35
@@ -23,8 +23,8 @@ export declare const TYPERT: Readonly<{
23
23
  }>;
24
24
  readonly parameters: readonly never[];
25
25
  readonly result: Readonly<{
26
- mode: "strict";
27
- typeSymbol: "dsh-draw/types#DrawStatusSnapshot";
26
+ mode: 'strict';
27
+ typeSymbol: string;
28
28
  schema: import("zod").ZodObject<{
29
29
  pluginVersion: import("zod").ZodString;
30
30
  engines: import("zod").ZodArray<import("zod").ZodObject<{
@@ -53,6 +53,34 @@ export declare const TYPERT: Readonly<{
53
53
  requestTimeoutMs: import("zod").ZodNumber;
54
54
  maxImagesPerCall: import("zod").ZodNumber;
55
55
  }, import("zod/v4/core").$strip>;
56
+ create: () => import("zod").ZodObject<{
57
+ pluginVersion: import("zod").ZodString;
58
+ engines: import("zod").ZodArray<import("zod").ZodObject<{
59
+ id: import("zod").ZodString;
60
+ model: import("zod").ZodString;
61
+ baseUrl: import("zod").ZodString;
62
+ apiKeyRef: import("zod").ZodString;
63
+ enabled: import("zod").ZodBoolean;
64
+ preferred: import("zod").ZodBoolean;
65
+ credential: import("zod").ZodObject<{
66
+ configured: import("zod").ZodBoolean;
67
+ source: import("zod").ZodOptional<import("zod").ZodString>;
68
+ writable: import("zod").ZodBoolean;
69
+ }, import("zod/v4/core").$strip>;
70
+ health: import("zod").ZodObject<{
71
+ consecutiveFailures: import("zod").ZodNumber;
72
+ cooldownUntil: import("zod").ZodNullable<import("zod").ZodNumber>;
73
+ lastError: import("zod").ZodNullable<import("zod").ZodString>;
74
+ lastStatus: import("zod").ZodNullable<import("zod").ZodNumber>;
75
+ }, import("zod/v4/core").$strip>;
76
+ }, import("zod/v4/core").$strip>>;
77
+ quota: import("zod").ZodObject<{
78
+ maxGenerationsPerSession: import("zod").ZodNumber;
79
+ maxBytesPerSession: import("zod").ZodNumber;
80
+ }, import("zod/v4/core").$strip>;
81
+ requestTimeoutMs: import("zod").ZodNumber;
82
+ maxImagesPerCall: import("zod").ZodNumber;
83
+ }, import("zod/v4/core").$strip>;
56
84
  }>;
57
85
  readonly sourceLocation: Readonly<{
58
86
  file: "src/wire.ts";
@@ -72,14 +100,15 @@ export declare const TYPERT: Readonly<{
72
100
  wire: string;
73
101
  source: "json";
74
102
  codec: Readonly<{
75
- mode: "strict";
76
- typeSymbol: "dsh-draw/types#EngineId";
103
+ mode: 'strict';
104
+ typeSymbol: string;
77
105
  schema: import("zod").ZodString;
106
+ create: () => import("zod").ZodString;
78
107
  }>;
79
108
  }>[];
80
109
  readonly result: Readonly<{
81
- mode: "strict";
82
- typeSymbol: "dsh-draw/types#DrawProbeResult";
110
+ mode: 'strict';
111
+ typeSymbol: string;
83
112
  schema: import("zod").ZodObject<{
84
113
  engineId: import("zod").ZodString;
85
114
  reachable: import("zod").ZodBoolean;
@@ -88,6 +117,14 @@ export declare const TYPERT: Readonly<{
88
117
  note: import("zod").ZodString;
89
118
  credentialConfigured: import("zod").ZodBoolean;
90
119
  }, import("zod/v4/core").$strip>;
120
+ create: () => import("zod").ZodObject<{
121
+ engineId: import("zod").ZodString;
122
+ reachable: import("zod").ZodBoolean;
123
+ httpStatus: import("zod").ZodNullable<import("zod").ZodNumber>;
124
+ target: import("zod").ZodString;
125
+ note: import("zod").ZodString;
126
+ credentialConfigured: import("zod").ZodBoolean;
127
+ }, import("zod/v4/core").$strip>;
91
128
  }>;
92
129
  readonly sourceLocation: Readonly<{
93
130
  file: "src/wire.ts";
@@ -102,33 +139,30 @@ export declare const TYPERT: Readonly<{
102
139
  readonly invocation: Readonly<{
103
140
  kind: "direct";
104
141
  }>;
105
- readonly parameters: readonly (Readonly<{
106
- name: string;
107
- wire: string;
108
- source: "json";
109
- codec: Readonly<{
110
- mode: "strict";
111
- typeSymbol: "dsh-draw/types#EngineId";
112
- schema: import("zod").ZodString;
113
- }>;
114
- }> | Readonly<{
142
+ readonly parameters: readonly Readonly<{
115
143
  name: string;
116
144
  wire: string;
117
145
  source: "json";
118
146
  codec: Readonly<{
119
- mode: "strict";
120
- typeSymbol: "dsh-draw/types#CredentialValue";
147
+ mode: 'strict';
148
+ typeSymbol: string;
121
149
  schema: import("zod").ZodString;
150
+ create: () => import("zod").ZodString;
122
151
  }>;
123
- }>)[];
152
+ }>[];
124
153
  readonly result: Readonly<{
125
- mode: "strict";
126
- typeSymbol: "dsh-draw/types#CredentialActionResult";
154
+ mode: 'strict';
155
+ typeSymbol: string;
127
156
  schema: import("zod").ZodObject<{
128
157
  engineId: import("zod").ZodString;
129
158
  reference: import("zod").ZodString;
130
159
  note: import("zod").ZodString;
131
160
  }, import("zod/v4/core").$strip>;
161
+ create: () => import("zod").ZodObject<{
162
+ engineId: import("zod").ZodString;
163
+ reference: import("zod").ZodString;
164
+ note: import("zod").ZodString;
165
+ }, import("zod/v4/core").$strip>;
132
166
  }>;
133
167
  readonly sourceLocation: Readonly<{
134
168
  file: "src/wire.ts";
@@ -148,19 +182,25 @@ export declare const TYPERT: Readonly<{
148
182
  wire: string;
149
183
  source: "json";
150
184
  codec: Readonly<{
151
- mode: "strict";
152
- typeSymbol: "dsh-draw/types#EngineId";
185
+ mode: 'strict';
186
+ typeSymbol: string;
153
187
  schema: import("zod").ZodString;
188
+ create: () => import("zod").ZodString;
154
189
  }>;
155
190
  }>[];
156
191
  readonly result: Readonly<{
157
- mode: "strict";
158
- typeSymbol: "dsh-draw/types#CredentialActionResult";
192
+ mode: 'strict';
193
+ typeSymbol: string;
159
194
  schema: import("zod").ZodObject<{
160
195
  engineId: import("zod").ZodString;
161
196
  reference: import("zod").ZodString;
162
197
  note: import("zod").ZodString;
163
198
  }, import("zod/v4/core").$strip>;
199
+ create: () => import("zod").ZodObject<{
200
+ engineId: import("zod").ZodString;
201
+ reference: import("zod").ZodString;
202
+ note: import("zod").ZodString;
203
+ }, import("zod/v4/core").$strip>;
164
204
  }>;
165
205
  readonly sourceLocation: Readonly<{
166
206
  file: "src/wire.ts";
@@ -180,17 +220,18 @@ export declare const TYPERT: Readonly<{
180
220
  wire: string;
181
221
  source: "json";
182
222
  codec: Readonly<{
183
- mode: "strict";
184
- typeSymbol: "dsh-draw/types#SessionId";
223
+ mode: 'strict';
224
+ typeSymbol: string;
185
225
  schema: import("zod").ZodString;
226
+ create: () => import("zod").ZodString;
186
227
  }>;
187
228
  }> | Readonly<{
188
229
  name: string;
189
230
  wire: string;
190
231
  source: "json";
191
232
  codec: Readonly<{
192
- mode: "strict";
193
- typeSymbol: "dsh-draw/types#RegenerateArgs";
233
+ mode: 'strict';
234
+ typeSymbol: string;
194
235
  schema: import("zod").ZodObject<{
195
236
  prompt: import("zod").ZodString;
196
237
  size: import("zod").ZodOptional<import("zod").ZodString>;
@@ -199,11 +240,19 @@ export declare const TYPERT: Readonly<{
199
240
  style: import("zod").ZodOptional<import("zod").ZodString>;
200
241
  engine: import("zod").ZodOptional<import("zod").ZodString>;
201
242
  }, import("zod/v4/core").$loose>;
243
+ create: () => import("zod").ZodObject<{
244
+ prompt: import("zod").ZodString;
245
+ size: import("zod").ZodOptional<import("zod").ZodString>;
246
+ count: import("zod").ZodOptional<import("zod").ZodNumber>;
247
+ quality: import("zod").ZodOptional<import("zod").ZodString>;
248
+ style: import("zod").ZodOptional<import("zod").ZodString>;
249
+ engine: import("zod").ZodOptional<import("zod").ZodString>;
250
+ }, import("zod/v4/core").$loose>;
202
251
  }>;
203
252
  }>)[];
204
253
  readonly result: Readonly<{
205
- mode: "strict";
206
- typeSymbol: "dsh-draw/types#DrawRegenerateResult";
254
+ mode: 'strict';
255
+ typeSymbol: string;
207
256
  schema: import("zod").ZodObject<{
208
257
  engine: import("zod").ZodString;
209
258
  model: import("zod").ZodString;
@@ -234,6 +283,36 @@ export declare const TYPERT: Readonly<{
234
283
  status: import("zod").ZodOptional<import("zod").ZodNumber>;
235
284
  }, import("zod/v4/core").$strip>>;
236
285
  }, import("zod/v4/core").$strip>;
286
+ create: () => import("zod").ZodObject<{
287
+ engine: import("zod").ZodString;
288
+ model: import("zod").ZodString;
289
+ size: import("zod").ZodString;
290
+ images: import("zod").ZodArray<import("zod").ZodObject<{
291
+ attachmentId: import("zod").ZodString;
292
+ mediaType: import("zod").ZodString;
293
+ bytes: import("zod").ZodNumber;
294
+ width: import("zod").ZodNumber;
295
+ height: import("zod").ZodNumber;
296
+ name: import("zod").ZodOptional<import("zod").ZodString>;
297
+ }, import("zod/v4/core").$strip>>;
298
+ quota: import("zod").ZodObject<{
299
+ generations: import("zod").ZodNumber;
300
+ bytes: import("zod").ZodNumber;
301
+ }, import("zod/v4/core").$strip>;
302
+ quotaLimits: import("zod").ZodObject<{
303
+ maxGenerations: import("zod").ZodNumber;
304
+ maxBytes: import("zod").ZodNumber;
305
+ }, import("zod/v4/core").$strip>;
306
+ fallbackUsed: import("zod").ZodBoolean;
307
+ elapsedMs: import("zod").ZodNumber;
308
+ attempts: import("zod").ZodArray<import("zod").ZodObject<{
309
+ engine: import("zod").ZodString;
310
+ phase: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"credential">, import("zod").ZodLiteral<"request">, import("zod").ZodLiteral<"parse">]>>;
311
+ code: import("zod").ZodString;
312
+ message: import("zod").ZodOptional<import("zod").ZodString>;
313
+ status: import("zod").ZodOptional<import("zod").ZodNumber>;
314
+ }, import("zod/v4/core").$strip>>;
315
+ }, import("zod/v4/core").$strip>;
237
316
  }>;
238
317
  readonly sourceLocation: Readonly<{
239
318
  file: "src/wire.ts";
@@ -1 +1 @@
1
- {"version":3,"file":"typert.host.d.ts","sourceRoot":"","sources":["../../src/typert.host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,4EAA4E;AAC5E,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUjB,CAAA"}
1
+ {"version":3,"file":"typert.host.d.ts","sourceRoot":"","sources":["../../src/typert.host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,4EAA4E;AAC5E,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUjB,CAAA"}
@@ -7,5 +7,5 @@
7
7
  * @module dsh-draw/version
8
8
  */
9
9
  /** Plugin version; must equal the `version` field in `package.json`. */
10
- export declare const PLUGIN_VERSION = "0.2.14";
10
+ export declare const PLUGIN_VERSION = "0.2.15";
11
11
  //# sourceMappingURL=version.d.ts.map
@@ -7,4 +7,4 @@
7
7
  * @module dsh-draw/version
8
8
  */
9
9
  /** Plugin version; must equal the `version` field in `package.json`. */
10
- export const PLUGIN_VERSION = '0.2.14';
10
+ export const PLUGIN_VERSION = '0.2.15';