@corsair-dev/abyssale 0.1.0 → 0.1.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/README.md +37 -0
- package/dist/cache-banner.d.ts +18 -0
- package/dist/cache-banner.d.ts.map +1 -0
- package/dist/endpoints/generation.d.ts +20 -0
- package/dist/endpoints/generation.d.ts.map +1 -0
- package/dist/endpoints/index.d.ts +1 -0
- package/dist/endpoints/index.d.ts.map +1 -1
- package/dist/endpoints/shared.d.ts +1 -1
- package/dist/endpoints/shared.d.ts.map +1 -1
- package/dist/endpoints/types.d.ts +261 -0
- package/dist/endpoints/types.d.ts.map +1 -1
- package/dist/index.d.ts +249 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/schema/database.d.ts +56 -0
- package/dist/schema/database.d.ts.map +1 -1
- package/dist/schema/index.d.ts +29 -1
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/webhooks/banners.d.ts +4 -0
- package/dist/webhooks/banners.d.ts.map +1 -0
- package/dist/webhooks/designs.d.ts +3 -0
- package/dist/webhooks/designs.d.ts.map +1 -0
- package/dist/webhooks/exports.d.ts +3 -0
- package/dist/webhooks/exports.d.ts.map +1 -0
- package/dist/webhooks/index.d.ts +196 -0
- package/dist/webhooks/index.d.ts.map +1 -0
- package/dist/webhooks/types.d.ts +131 -0
- package/dist/webhooks/types.d.ts.map +1 -0
- package/dist/webhooks.test.d.ts +2 -0
- package/dist/webhooks.test.d.ts.map +1 -0
- package/package.json +9 -3
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @corsair-dev/abyssale
|
|
2
|
+
|
|
3
|
+
Abyssale plugin for Corsair.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @corsair-dev/abyssale
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Endpoints
|
|
12
|
+
|
|
13
|
+
| Operation | Operation ID | Risk | Description |
|
|
14
|
+
|-----------|--------------|------|-------------|
|
|
15
|
+
| `auth.test` | `abyssale.api.auth.test` | `read` | Test Abyssale API key authentication validity |
|
|
16
|
+
| `designs.list` | `abyssale.api.designs.list` | `read` | Get a list of designs in Abyssale |
|
|
17
|
+
| `fonts.list` | `abyssale.api.fonts.list` | `read` | Get a list of available fonts in Abyssale |
|
|
18
|
+
| `generation.batch` | `abyssale.api.generation.batch` | `write` | Start an asynchronous multi-format generation from an Abyssale design |
|
|
19
|
+
| `generation.image` | `abyssale.api.generation.image` | `write` | Synchronously generate a single image from an Abyssale design |
|
|
20
|
+
| `generation.status` | `abyssale.api.generation.status` | `read` | Poll the status of an asynchronous generation request |
|
|
21
|
+
| `projects.create` | `abyssale.api.projects.create` | `write` | Create a new project in Abyssale |
|
|
22
|
+
|
|
23
|
+
## Auth
|
|
24
|
+
|
|
25
|
+
Auth: API key. Corsair prompts your tenant for credentials on first use.
|
|
26
|
+
|
|
27
|
+
## Webhooks
|
|
28
|
+
|
|
29
|
+
Handles 4 webhook events. See the reference for payloads and `webhookHooks`.
|
|
30
|
+
|
|
31
|
+
## Reference
|
|
32
|
+
|
|
33
|
+
Full docs, types, and examples: https://docs.corsair.dev/plugins/abyssale
|
|
34
|
+
|
|
35
|
+
## License
|
|
36
|
+
|
|
37
|
+
Apache-2.0
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { AbyssaleBanner } from './schema/database';
|
|
2
|
+
type CacheCtx = {
|
|
3
|
+
db: {
|
|
4
|
+
banners?: {
|
|
5
|
+
upsertByEntityId: (entityId: string, data: AbyssaleBanner) => Promise<{
|
|
6
|
+
id?: string;
|
|
7
|
+
} | null | undefined>;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Mirrors a generated visual into the plugin cache. Best-effort: a caching
|
|
13
|
+
* failure must never fail an otherwise successful generation or webhook.
|
|
14
|
+
* Returns the corsair entity id (empty string when caching is unavailable).
|
|
15
|
+
*/
|
|
16
|
+
export declare function cacheBanner(ctx: CacheCtx, banner: AbyssaleBanner): Promise<string>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=cache-banner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-banner.d.ts","sourceRoot":"","sources":["../cache-banner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,KAAK,QAAQ,GAAG;IACf,EAAE,EAAE;QACH,OAAO,CAAC,EAAE;YACT,gBAAgB,EAAE,CACjB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,cAAc,KAChB,OAAO,CAAC;gBAAE,EAAE,CAAC,EAAE,MAAM,CAAA;aAAE,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;SACjD,CAAC;KACF,CAAC;CACF,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,WAAW,CAChC,GAAG,EAAE,QAAQ,EACb,MAAM,EAAE,cAAc,GACpB,OAAO,CAAC,MAAM,CAAC,CAUjB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AbyssaleEndpoints } from '..';
|
|
2
|
+
/**
|
|
3
|
+
* Synchronous generation — one image per call, static designs only. The render
|
|
4
|
+
* is hard-capped at 10 s provider-side; heavier output (video, GIF, HTML5,
|
|
5
|
+
* print PDF) belongs to `generateBatch`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const generateImage: AbyssaleEndpoints['generateImage'];
|
|
8
|
+
/**
|
|
9
|
+
* Asynchronous generation — many formats in one call. Returns a
|
|
10
|
+
* `generation_request_id` immediately; results arrive via the `NEW_BANNER_BATCH`
|
|
11
|
+
* webhook or by polling `getGenerationRequest`.
|
|
12
|
+
*/
|
|
13
|
+
export declare const generateBatch: AbyssaleEndpoints['generateBatch'];
|
|
14
|
+
/**
|
|
15
|
+
* Polls an async generation request (`202` + `is_finalized: false` while it
|
|
16
|
+
* runs, `200` + `is_finalized: true` when complete). Banners are cached only
|
|
17
|
+
* once finalized so partial results never masquerade as final ones.
|
|
18
|
+
*/
|
|
19
|
+
export declare const getGenerationRequest: AbyssaleEndpoints['getGenerationRequest'];
|
|
20
|
+
//# sourceMappingURL=generation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generation.d.ts","sourceRoot":"","sources":["../../endpoints/generation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,IAAI,CAAC;AAS5C;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,iBAAiB,CAAC,eAAe,CA2B5D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,iBAAiB,CAAC,eAAe,CA4B5D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,CAAC,sBAAsB,CA0BzE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,cAAc,SAAS,CAAC"}
|
|
@@ -15,7 +15,7 @@ export declare function parseOutput<K extends keyof typeof AbyssaleEndpointOutpu
|
|
|
15
15
|
* `ctx.db` narrows each client to its own entity schema; this helper is
|
|
16
16
|
* entity-agnostic, so the map is widened through `unknown`.
|
|
17
17
|
*/
|
|
18
|
-
export declare function cacheEntities(ctx: AbyssaleContext, entity: 'projects' | 'designs' | 'fonts', items: ReadonlyArray<{
|
|
18
|
+
export declare function cacheEntities(ctx: AbyssaleContext, entity: 'projects' | 'designs' | 'fonts' | 'banners', items: ReadonlyArray<{
|
|
19
19
|
id?: string;
|
|
20
20
|
}>): Promise<void>;
|
|
21
21
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../endpoints/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAC1C,OAAO,EACN,4BAA4B,EAC5B,6BAA6B,EAC7B,MAAM,SAAS,CAAC;AAEjB;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,OAAO,4BAA4B,EAC7E,SAAS,EAAE,CAAC,EACZ,KAAK,EAAE,OAAO,GAIT,UAAU,CAAC,CAAC,OAAO,4BAA4B,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAClE;AAED,wBAAgB,WAAW,CAC1B,CAAC,SAAS,MAAM,OAAO,6BAA6B,EACnD,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,GACmC,UAAU,CACxE,CAAC,OAAO,6BAA6B,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAClD,CACD;AASD;;;;;;GAMG;AACH,wBAAsB,aAAa,CAClC,GAAG,EAAE,eAAe,EACpB,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../endpoints/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAC1C,OAAO,EACN,4BAA4B,EAC5B,6BAA6B,EAC7B,MAAM,SAAS,CAAC;AAEjB;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,OAAO,4BAA4B,EAC7E,SAAS,EAAE,CAAC,EACZ,KAAK,EAAE,OAAO,GAIT,UAAU,CAAC,CAAC,OAAO,4BAA4B,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAClE;AAED,wBAAgB,WAAW,CAC1B,CAAC,SAAS,MAAM,OAAO,6BAA6B,EACnD,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,GACmC,UAAU,CACxE,CAAC,OAAO,6BAA6B,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAClD,CACD;AASD;;;;;;GAMG;AACH,wBAAsB,aAAa,CAClC,GAAG,EAAE,eAAe,EACpB,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EACpD,KAAK,EAAE,aAAa,CAAC;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GACnC,OAAO,CAAC,IAAI,CAAC,CAef"}
|
|
@@ -60,17 +60,155 @@ declare const TestAuthResponseSchema: z.ZodObject<{
|
|
|
60
60
|
version: z.ZodOptional<z.ZodString>;
|
|
61
61
|
}, z.core.$loose>;
|
|
62
62
|
export type TestAuthResponse = z.infer<typeof TestAuthResponseSchema>;
|
|
63
|
+
/** Generate Single Image — synchronous, static designs only. */
|
|
64
|
+
declare const GenerateImageInputSchema: z.ZodObject<{
|
|
65
|
+
designId: z.ZodString;
|
|
66
|
+
elements: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{}, z.core.$loose>>>;
|
|
67
|
+
template_format_name: z.ZodOptional<z.ZodString>;
|
|
68
|
+
image_file_type: z.ZodOptional<z.ZodEnum<{
|
|
69
|
+
png: "png";
|
|
70
|
+
jpeg: "jpeg";
|
|
71
|
+
webp: "webp";
|
|
72
|
+
avif: "avif";
|
|
73
|
+
pdf: "pdf";
|
|
74
|
+
auto: "auto";
|
|
75
|
+
}>>;
|
|
76
|
+
file_compression_level: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
original_visual_id: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type GenerateImageInput = z.infer<typeof GenerateImageInputSchema>;
|
|
80
|
+
declare const GenerateImageResponseSchema: z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
sharing_id: z.ZodOptional<z.ZodString>;
|
|
84
|
+
file: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
type: z.ZodOptional<z.ZodString>;
|
|
86
|
+
url: z.ZodOptional<z.ZodString>;
|
|
87
|
+
cdn_url: z.ZodOptional<z.ZodString>;
|
|
88
|
+
fallback_image_url: z.ZodOptional<z.ZodString>;
|
|
89
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$loose>>;
|
|
91
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
id: z.ZodOptional<z.ZodString>;
|
|
93
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
96
|
+
}, z.core.$loose>>;
|
|
97
|
+
template: z.ZodOptional<z.ZodObject<{
|
|
98
|
+
id: z.ZodOptional<z.ZodString>;
|
|
99
|
+
name: z.ZodOptional<z.ZodString>;
|
|
100
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
102
|
+
}, z.core.$loose>>;
|
|
103
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
104
|
+
id: z.ZodOptional<z.ZodString>;
|
|
105
|
+
name: z.ZodOptional<z.ZodString>;
|
|
106
|
+
}, z.core.$loose>>;
|
|
107
|
+
}, z.core.$loose>;
|
|
108
|
+
export type GenerateImageResponse = z.infer<typeof GenerateImageResponseSchema>;
|
|
109
|
+
/** Asynchronous multi-format generation (images, videos, GIFs, HTML5, PDFs). */
|
|
110
|
+
declare const GenerateBatchInputSchema: z.ZodObject<{
|
|
111
|
+
designId: z.ZodString;
|
|
112
|
+
elements: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{}, z.core.$loose>>>;
|
|
113
|
+
template_format_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
114
|
+
callback_url: z.ZodOptional<z.ZodString>;
|
|
115
|
+
image_file_type: z.ZodOptional<z.ZodEnum<{
|
|
116
|
+
png: "png";
|
|
117
|
+
jpeg: "jpeg";
|
|
118
|
+
webp: "webp";
|
|
119
|
+
avif: "avif";
|
|
120
|
+
pdf: "pdf";
|
|
121
|
+
auto: "auto";
|
|
122
|
+
gif: "gif";
|
|
123
|
+
html5: "html5";
|
|
124
|
+
mp4: "mp4";
|
|
125
|
+
}>>;
|
|
126
|
+
file_compression_level: z.ZodOptional<z.ZodNumber>;
|
|
127
|
+
html5: z.ZodOptional<z.ZodObject<{
|
|
128
|
+
page_title: z.ZodOptional<z.ZodString>;
|
|
129
|
+
click_tag: z.ZodOptional<z.ZodString>;
|
|
130
|
+
ad_network: z.ZodOptional<z.ZodString>;
|
|
131
|
+
include_backup_image: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
+
repeat: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
}, z.core.$loose>>;
|
|
134
|
+
gif: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
max_fps: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
repeat: z.ZodOptional<z.ZodBoolean>;
|
|
137
|
+
}, z.core.$loose>>;
|
|
138
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
139
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
}, z.core.$loose>>;
|
|
141
|
+
print: z.ZodOptional<z.ZodObject<{
|
|
142
|
+
color_profile: z.ZodOptional<z.ZodString>;
|
|
143
|
+
display_crop_marks: z.ZodOptional<z.ZodBoolean>;
|
|
144
|
+
}, z.core.$loose>>;
|
|
145
|
+
original_visual_id: z.ZodOptional<z.ZodString>;
|
|
146
|
+
pages: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{}, z.core.$loose>>>;
|
|
147
|
+
}, z.core.$strip>;
|
|
148
|
+
export type GenerateBatchInput = z.infer<typeof GenerateBatchInputSchema>;
|
|
149
|
+
declare const GenerateBatchResponseSchema: z.ZodObject<{
|
|
150
|
+
generation_request_id: z.ZodString;
|
|
151
|
+
}, z.core.$loose>;
|
|
152
|
+
export type GenerateBatchResponse = z.infer<typeof GenerateBatchResponseSchema>;
|
|
153
|
+
/** Poll an asynchronous generation request; branch on `is_finalized`. */
|
|
154
|
+
declare const GetGenerationRequestInputSchema: z.ZodObject<{
|
|
155
|
+
generationRequestId: z.ZodString;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
export type GetGenerationRequestInput = z.infer<typeof GetGenerationRequestInputSchema>;
|
|
158
|
+
declare const GetGenerationRequestResponseSchema: z.ZodObject<{
|
|
159
|
+
is_finalized: z.ZodBoolean;
|
|
160
|
+
id: z.ZodString;
|
|
161
|
+
banners: z.ZodArray<z.ZodObject<{
|
|
162
|
+
id: z.ZodString;
|
|
163
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
sharing_id: z.ZodOptional<z.ZodString>;
|
|
165
|
+
file: z.ZodOptional<z.ZodObject<{
|
|
166
|
+
type: z.ZodOptional<z.ZodString>;
|
|
167
|
+
url: z.ZodOptional<z.ZodString>;
|
|
168
|
+
cdn_url: z.ZodOptional<z.ZodString>;
|
|
169
|
+
fallback_image_url: z.ZodOptional<z.ZodString>;
|
|
170
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
171
|
+
}, z.core.$loose>>;
|
|
172
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
173
|
+
id: z.ZodOptional<z.ZodString>;
|
|
174
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
176
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
177
|
+
}, z.core.$loose>>;
|
|
178
|
+
template: z.ZodOptional<z.ZodObject<{
|
|
179
|
+
id: z.ZodOptional<z.ZodString>;
|
|
180
|
+
name: z.ZodOptional<z.ZodString>;
|
|
181
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
182
|
+
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
183
|
+
}, z.core.$loose>>;
|
|
184
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
185
|
+
id: z.ZodOptional<z.ZodString>;
|
|
186
|
+
name: z.ZodOptional<z.ZodString>;
|
|
187
|
+
}, z.core.$loose>>;
|
|
188
|
+
}, z.core.$loose>>;
|
|
189
|
+
errors: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
190
|
+
template_format_name: z.ZodString;
|
|
191
|
+
reason: z.ZodString;
|
|
192
|
+
}, z.core.$loose>>>>;
|
|
193
|
+
}, z.core.$loose>;
|
|
194
|
+
export type GetGenerationRequestResponse = z.infer<typeof GetGenerationRequestResponseSchema>;
|
|
63
195
|
export type AbyssaleEndpointInputs = {
|
|
64
196
|
createProject: CreateProjectInput;
|
|
65
197
|
getDesigns: GetDesignsInput;
|
|
66
198
|
getFonts: GetFontsInput;
|
|
67
199
|
testAuth: TestAuthInput;
|
|
200
|
+
generateImage: GenerateImageInput;
|
|
201
|
+
generateBatch: GenerateBatchInput;
|
|
202
|
+
getGenerationRequest: GetGenerationRequestInput;
|
|
68
203
|
};
|
|
69
204
|
export type AbyssaleEndpointOutputs = {
|
|
70
205
|
createProject: CreateProjectResponse;
|
|
71
206
|
getDesigns: GetDesignsResponse;
|
|
72
207
|
getFonts: GetFontsResponse;
|
|
73
208
|
testAuth: TestAuthResponse;
|
|
209
|
+
generateImage: GenerateImageResponse;
|
|
210
|
+
generateBatch: GenerateBatchResponse;
|
|
211
|
+
getGenerationRequest: GetGenerationRequestResponse;
|
|
74
212
|
};
|
|
75
213
|
export declare const AbyssaleEndpointInputSchemas: {
|
|
76
214
|
readonly createProject: z.ZodObject<{
|
|
@@ -92,6 +230,62 @@ export declare const AbyssaleEndpointInputSchemas: {
|
|
|
92
230
|
}>>;
|
|
93
231
|
}, z.core.$strip>;
|
|
94
232
|
readonly testAuth: z.ZodObject<{}, z.core.$strip>;
|
|
233
|
+
readonly generateImage: z.ZodObject<{
|
|
234
|
+
designId: z.ZodString;
|
|
235
|
+
elements: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{}, z.core.$loose>>>;
|
|
236
|
+
template_format_name: z.ZodOptional<z.ZodString>;
|
|
237
|
+
image_file_type: z.ZodOptional<z.ZodEnum<{
|
|
238
|
+
png: "png";
|
|
239
|
+
jpeg: "jpeg";
|
|
240
|
+
webp: "webp";
|
|
241
|
+
avif: "avif";
|
|
242
|
+
pdf: "pdf";
|
|
243
|
+
auto: "auto";
|
|
244
|
+
}>>;
|
|
245
|
+
file_compression_level: z.ZodOptional<z.ZodNumber>;
|
|
246
|
+
original_visual_id: z.ZodOptional<z.ZodString>;
|
|
247
|
+
}, z.core.$strip>;
|
|
248
|
+
readonly generateBatch: z.ZodObject<{
|
|
249
|
+
designId: z.ZodString;
|
|
250
|
+
elements: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{}, z.core.$loose>>>;
|
|
251
|
+
template_format_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
252
|
+
callback_url: z.ZodOptional<z.ZodString>;
|
|
253
|
+
image_file_type: z.ZodOptional<z.ZodEnum<{
|
|
254
|
+
png: "png";
|
|
255
|
+
jpeg: "jpeg";
|
|
256
|
+
webp: "webp";
|
|
257
|
+
avif: "avif";
|
|
258
|
+
pdf: "pdf";
|
|
259
|
+
auto: "auto";
|
|
260
|
+
gif: "gif";
|
|
261
|
+
html5: "html5";
|
|
262
|
+
mp4: "mp4";
|
|
263
|
+
}>>;
|
|
264
|
+
file_compression_level: z.ZodOptional<z.ZodNumber>;
|
|
265
|
+
html5: z.ZodOptional<z.ZodObject<{
|
|
266
|
+
page_title: z.ZodOptional<z.ZodString>;
|
|
267
|
+
click_tag: z.ZodOptional<z.ZodString>;
|
|
268
|
+
ad_network: z.ZodOptional<z.ZodString>;
|
|
269
|
+
include_backup_image: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
+
repeat: z.ZodOptional<z.ZodBoolean>;
|
|
271
|
+
}, z.core.$loose>>;
|
|
272
|
+
gif: z.ZodOptional<z.ZodObject<{
|
|
273
|
+
max_fps: z.ZodOptional<z.ZodNumber>;
|
|
274
|
+
repeat: z.ZodOptional<z.ZodBoolean>;
|
|
275
|
+
}, z.core.$loose>>;
|
|
276
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
277
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
278
|
+
}, z.core.$loose>>;
|
|
279
|
+
print: z.ZodOptional<z.ZodObject<{
|
|
280
|
+
color_profile: z.ZodOptional<z.ZodString>;
|
|
281
|
+
display_crop_marks: z.ZodOptional<z.ZodBoolean>;
|
|
282
|
+
}, z.core.$loose>>;
|
|
283
|
+
original_visual_id: z.ZodOptional<z.ZodString>;
|
|
284
|
+
pages: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{}, z.core.$loose>>>;
|
|
285
|
+
}, z.core.$strip>;
|
|
286
|
+
readonly getGenerationRequest: z.ZodObject<{
|
|
287
|
+
generationRequestId: z.ZodString;
|
|
288
|
+
}, z.core.$strip>;
|
|
95
289
|
};
|
|
96
290
|
export declare const AbyssaleEndpointOutputSchemas: {
|
|
97
291
|
readonly createProject: z.ZodObject<{
|
|
@@ -127,6 +321,73 @@ export declare const AbyssaleEndpointOutputSchemas: {
|
|
|
127
321
|
company: z.ZodString;
|
|
128
322
|
version: z.ZodOptional<z.ZodString>;
|
|
129
323
|
}, z.core.$loose>;
|
|
324
|
+
readonly generateImage: z.ZodObject<{
|
|
325
|
+
id: z.ZodString;
|
|
326
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
327
|
+
sharing_id: z.ZodOptional<z.ZodString>;
|
|
328
|
+
file: z.ZodOptional<z.ZodObject<{
|
|
329
|
+
type: z.ZodOptional<z.ZodString>;
|
|
330
|
+
url: z.ZodOptional<z.ZodString>;
|
|
331
|
+
cdn_url: z.ZodOptional<z.ZodString>;
|
|
332
|
+
fallback_image_url: z.ZodOptional<z.ZodString>;
|
|
333
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
334
|
+
}, z.core.$loose>>;
|
|
335
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
336
|
+
id: z.ZodOptional<z.ZodString>;
|
|
337
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
338
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
339
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
340
|
+
}, z.core.$loose>>;
|
|
341
|
+
template: z.ZodOptional<z.ZodObject<{
|
|
342
|
+
id: z.ZodOptional<z.ZodString>;
|
|
343
|
+
name: z.ZodOptional<z.ZodString>;
|
|
344
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
345
|
+
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
346
|
+
}, z.core.$loose>>;
|
|
347
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
348
|
+
id: z.ZodOptional<z.ZodString>;
|
|
349
|
+
name: z.ZodOptional<z.ZodString>;
|
|
350
|
+
}, z.core.$loose>>;
|
|
351
|
+
}, z.core.$loose>;
|
|
352
|
+
readonly generateBatch: z.ZodObject<{
|
|
353
|
+
generation_request_id: z.ZodString;
|
|
354
|
+
}, z.core.$loose>;
|
|
355
|
+
readonly getGenerationRequest: z.ZodObject<{
|
|
356
|
+
is_finalized: z.ZodBoolean;
|
|
357
|
+
id: z.ZodString;
|
|
358
|
+
banners: z.ZodArray<z.ZodObject<{
|
|
359
|
+
id: z.ZodString;
|
|
360
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
361
|
+
sharing_id: z.ZodOptional<z.ZodString>;
|
|
362
|
+
file: z.ZodOptional<z.ZodObject<{
|
|
363
|
+
type: z.ZodOptional<z.ZodString>;
|
|
364
|
+
url: z.ZodOptional<z.ZodString>;
|
|
365
|
+
cdn_url: z.ZodOptional<z.ZodString>;
|
|
366
|
+
fallback_image_url: z.ZodOptional<z.ZodString>;
|
|
367
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
368
|
+
}, z.core.$loose>>;
|
|
369
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
370
|
+
id: z.ZodOptional<z.ZodString>;
|
|
371
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
372
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
373
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
374
|
+
}, z.core.$loose>>;
|
|
375
|
+
template: z.ZodOptional<z.ZodObject<{
|
|
376
|
+
id: z.ZodOptional<z.ZodString>;
|
|
377
|
+
name: z.ZodOptional<z.ZodString>;
|
|
378
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
379
|
+
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
380
|
+
}, z.core.$loose>>;
|
|
381
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
382
|
+
id: z.ZodOptional<z.ZodString>;
|
|
383
|
+
name: z.ZodOptional<z.ZodString>;
|
|
384
|
+
}, z.core.$loose>>;
|
|
385
|
+
}, z.core.$loose>>;
|
|
386
|
+
errors: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
387
|
+
template_format_name: z.ZodString;
|
|
388
|
+
reason: z.ZodString;
|
|
389
|
+
}, z.core.$loose>>>>;
|
|
390
|
+
}, z.core.$loose>;
|
|
130
391
|
};
|
|
131
392
|
export {};
|
|
132
393
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../endpoints/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../endpoints/types.ts"],"names":[],"mappings":"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"}
|