samva 0.22.0 → 0.22.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 +1 -1
- package/dist/effect/analytics.d.ts +6 -41
- package/dist/effect/api-keys.d.ts +8 -236
- package/dist/effect/attachments.d.ts +4 -43
- package/dist/effect/brands.d.ts +6 -155
- package/dist/effect/campaigns.d.ts +12 -868
- package/dist/effect/contact-groups.d.ts +10 -135
- package/dist/effect/contacts.d.ts +21 -727
- package/dist/effect/conversations.d.ts +13 -681
- package/dist/effect/custom-fields.d.ts +4 -44
- package/dist/effect/email.d.ts +61 -1299
- package/dist/effect/events.d.ts +2 -32
- package/dist/effect/extension-installations.d.ts +9 -213
- package/dist/effect/extensions.d.ts +5 -95
- package/dist/effect/feedback.d.ts +1 -4
- package/dist/effect/internal/client.d.ts +5 -1
- package/dist/effect/internal/operation.d.ts +3 -3
- package/dist/effect/internal/send.d.ts +3 -3
- package/dist/effect/journeys.d.ts +167 -1836
- package/dist/effect/mailboxes.d.ts +60 -2362
- package/dist/effect/media.d.ts +5 -66
- package/dist/effect/messages.d.ts +9 -264
- package/dist/effect/namespaces.d.ts +8 -55
- package/dist/effect/operations.d.ts +3 -84
- package/dist/effect/organizations.d.ts +7 -161
- package/dist/effect/scheduled-messages.d.ts +5 -401
- package/dist/effect/subscriptions.d.ts +1 -4
- package/dist/effect/templates.d.ts +34 -1506
- package/dist/effect/unsubscribe-groups.d.ts +9 -70
- package/dist/effect/webhooks.d.ts +11 -141
- package/dist/effect/whoami.d.ts +1 -46
- package/dist/package.js +1 -1
- package/package.json +7 -7
|
@@ -9,35 +9,7 @@ export declare const list: ((input?: {
|
|
|
9
9
|
readonly projectId?: string | null | undefined;
|
|
10
10
|
readonly namespaceId?: string | null | undefined;
|
|
11
11
|
readonly shared?: "false" | "true" | null | undefined;
|
|
12
|
-
} | undefined) => import("
|
|
13
|
-
readonly items: readonly {
|
|
14
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
15
|
-
readonly slug: string;
|
|
16
|
-
readonly name: string;
|
|
17
|
-
readonly channel: "email";
|
|
18
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
19
|
-
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
20
|
-
readonly shared: boolean;
|
|
21
|
-
readonly entryPath: string;
|
|
22
|
-
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
23
|
-
readonly isActive: boolean;
|
|
24
|
-
readonly publishedAt: string | null;
|
|
25
|
-
readonly brand: {
|
|
26
|
-
readonly slug: string;
|
|
27
|
-
readonly digest: string;
|
|
28
|
-
readonly stale: boolean;
|
|
29
|
-
} | null;
|
|
30
|
-
readonly fromDefault: {
|
|
31
|
-
readonly email: string;
|
|
32
|
-
readonly name?: string | null;
|
|
33
|
-
} | null;
|
|
34
|
-
readonly usageCount: number;
|
|
35
|
-
readonly lastUsedAt: string | null;
|
|
36
|
-
readonly createdAt: string;
|
|
37
|
-
readonly updatedAt: string;
|
|
38
|
-
}[];
|
|
39
|
-
readonly nextCursor: string | null;
|
|
40
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
12
|
+
} | undefined) => import("./internal/operation").OperationResult<"templatesList">) & {
|
|
41
13
|
readonly pages: (input?: {
|
|
42
14
|
readonly limit?: string | null | undefined;
|
|
43
15
|
readonly cursor?: string | null | undefined;
|
|
@@ -126,110 +98,13 @@ export declare const create: (input: {
|
|
|
126
98
|
readonly namespaceId?: string | null | undefined;
|
|
127
99
|
readonly shared?: boolean | null | undefined;
|
|
128
100
|
readonly idempotencyKey: string;
|
|
129
|
-
}) => import("
|
|
130
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
131
|
-
readonly slug: string;
|
|
132
|
-
readonly name: string;
|
|
133
|
-
readonly channel: "email";
|
|
134
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
135
|
-
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
136
|
-
readonly shared: boolean;
|
|
137
|
-
readonly entryPath: string;
|
|
138
|
-
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
139
|
-
readonly isActive: boolean;
|
|
140
|
-
readonly publishedAt: string | null;
|
|
141
|
-
readonly brand: {
|
|
142
|
-
readonly slug: string;
|
|
143
|
-
readonly digest: string;
|
|
144
|
-
readonly stale: boolean;
|
|
145
|
-
} | null;
|
|
146
|
-
readonly fromDefault: {
|
|
147
|
-
readonly email: string;
|
|
148
|
-
readonly name?: string | null;
|
|
149
|
-
} | null;
|
|
150
|
-
readonly usageCount: number;
|
|
151
|
-
readonly lastUsedAt: string | null;
|
|
152
|
-
readonly createdAt: string;
|
|
153
|
-
readonly updatedAt: string;
|
|
154
|
-
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
155
|
-
readonly description: string | null;
|
|
156
|
-
readonly category: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null;
|
|
157
|
-
readonly replyToDefault: readonly string[] | null;
|
|
158
|
-
readonly trackingDefault: {
|
|
159
|
-
readonly opens?: boolean | null;
|
|
160
|
-
readonly clicks?: boolean | null;
|
|
161
|
-
} | null;
|
|
162
|
-
readonly email: {
|
|
163
|
-
readonly subject: string;
|
|
164
|
-
readonly preheader: string | null;
|
|
165
|
-
readonly headers: {
|
|
166
|
-
readonly [x: string]: string;
|
|
167
|
-
} | null;
|
|
168
|
-
} | null;
|
|
169
|
-
readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
|
|
170
|
-
readonly inputContractId: (string & import("effect/Brand").Brand<"TemplateInputContractId">) | null;
|
|
171
|
-
readonly inputSchema: {
|
|
172
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
173
|
-
} | null;
|
|
174
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
101
|
+
}) => import("./internal/operation").OperationResult<"templatesCreate">;
|
|
175
102
|
export declare const createFromWebsite: (input: {
|
|
176
103
|
readonly url: string;
|
|
177
104
|
readonly name?: string | null | undefined;
|
|
178
105
|
readonly namespaceId?: string | null | undefined;
|
|
179
106
|
readonly idempotencyKey: string;
|
|
180
|
-
}) => import("
|
|
181
|
-
readonly template: {
|
|
182
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
183
|
-
readonly slug: string;
|
|
184
|
-
readonly name: string;
|
|
185
|
-
readonly channel: "email";
|
|
186
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
187
|
-
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
188
|
-
readonly shared: boolean;
|
|
189
|
-
readonly entryPath: string;
|
|
190
|
-
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
191
|
-
readonly isActive: boolean;
|
|
192
|
-
readonly publishedAt: string | null;
|
|
193
|
-
readonly brand: {
|
|
194
|
-
readonly slug: string;
|
|
195
|
-
readonly digest: string;
|
|
196
|
-
readonly stale: boolean;
|
|
197
|
-
} | null;
|
|
198
|
-
readonly fromDefault: {
|
|
199
|
-
readonly email: string;
|
|
200
|
-
readonly name?: string | null;
|
|
201
|
-
} | null;
|
|
202
|
-
readonly usageCount: number;
|
|
203
|
-
readonly lastUsedAt: string | null;
|
|
204
|
-
readonly createdAt: string;
|
|
205
|
-
readonly updatedAt: string;
|
|
206
|
-
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
207
|
-
readonly description: string | null;
|
|
208
|
-
readonly category: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null;
|
|
209
|
-
readonly replyToDefault: readonly string[] | null;
|
|
210
|
-
readonly trackingDefault: {
|
|
211
|
-
readonly opens?: boolean | null;
|
|
212
|
-
readonly clicks?: boolean | null;
|
|
213
|
-
} | null;
|
|
214
|
-
readonly email: {
|
|
215
|
-
readonly subject: string;
|
|
216
|
-
readonly preheader: string | null;
|
|
217
|
-
readonly headers: {
|
|
218
|
-
readonly [x: string]: string;
|
|
219
|
-
} | null;
|
|
220
|
-
} | null;
|
|
221
|
-
readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
|
|
222
|
-
readonly inputContractId: (string & import("effect/Brand").Brand<"TemplateInputContractId">) | null;
|
|
223
|
-
readonly inputSchema: {
|
|
224
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
225
|
-
} | null;
|
|
226
|
-
};
|
|
227
|
-
readonly website: {
|
|
228
|
-
readonly url: string;
|
|
229
|
-
readonly host: string;
|
|
230
|
-
};
|
|
231
|
-
readonly ask: string;
|
|
232
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
107
|
+
}) => import("./internal/operation").OperationResult<"templatesCreateFromWebsite">;
|
|
233
108
|
export declare const addEntry: (input: {
|
|
234
109
|
readonly id: string;
|
|
235
110
|
readonly entryPath: string;
|
|
@@ -237,74 +112,11 @@ export declare const addEntry: (input: {
|
|
|
237
112
|
readonly slug: string;
|
|
238
113
|
readonly description?: string | null | undefined;
|
|
239
114
|
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
|
|
240
|
-
}) => import("
|
|
241
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
242
|
-
readonly slug: string;
|
|
243
|
-
readonly name: string;
|
|
244
|
-
readonly channel: "email";
|
|
245
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
246
|
-
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
247
|
-
readonly shared: boolean;
|
|
248
|
-
readonly entryPath: string;
|
|
249
|
-
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
250
|
-
readonly isActive: boolean;
|
|
251
|
-
readonly publishedAt: string | null;
|
|
252
|
-
readonly brand: {
|
|
253
|
-
readonly slug: string;
|
|
254
|
-
readonly digest: string;
|
|
255
|
-
readonly stale: boolean;
|
|
256
|
-
} | null;
|
|
257
|
-
readonly fromDefault: {
|
|
258
|
-
readonly email: string;
|
|
259
|
-
readonly name?: string | null;
|
|
260
|
-
} | null;
|
|
261
|
-
readonly usageCount: number;
|
|
262
|
-
readonly lastUsedAt: string | null;
|
|
263
|
-
readonly createdAt: string;
|
|
264
|
-
readonly updatedAt: string;
|
|
265
|
-
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
266
|
-
readonly description: string | null;
|
|
267
|
-
readonly category: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null;
|
|
268
|
-
readonly replyToDefault: readonly string[] | null;
|
|
269
|
-
readonly trackingDefault: {
|
|
270
|
-
readonly opens?: boolean | null;
|
|
271
|
-
readonly clicks?: boolean | null;
|
|
272
|
-
} | null;
|
|
273
|
-
readonly email: {
|
|
274
|
-
readonly subject: string;
|
|
275
|
-
readonly preheader: string | null;
|
|
276
|
-
readonly headers: {
|
|
277
|
-
readonly [x: string]: string;
|
|
278
|
-
} | null;
|
|
279
|
-
} | null;
|
|
280
|
-
readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
|
|
281
|
-
readonly inputContractId: (string & import("effect/Brand").Brand<"TemplateInputContractId">) | null;
|
|
282
|
-
readonly inputSchema: {
|
|
283
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
284
|
-
} | null;
|
|
285
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
115
|
+
}) => import("./internal/operation").OperationResult<"templatesAddEntry">;
|
|
286
116
|
export declare const listFamilies: ((input?: {
|
|
287
117
|
readonly limit?: string | null | undefined;
|
|
288
118
|
readonly cursor?: string | null | undefined;
|
|
289
|
-
} | undefined) => import("
|
|
290
|
-
readonly items: readonly {
|
|
291
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
292
|
-
readonly name: string;
|
|
293
|
-
readonly members: readonly {
|
|
294
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
295
|
-
readonly name: string;
|
|
296
|
-
readonly slug: string;
|
|
297
|
-
readonly channel: "email";
|
|
298
|
-
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
299
|
-
readonly isActive: boolean;
|
|
300
|
-
readonly createdAt: string;
|
|
301
|
-
readonly updatedAt: string;
|
|
302
|
-
}[];
|
|
303
|
-
readonly createdAt: string;
|
|
304
|
-
readonly updatedAt: string;
|
|
305
|
-
}[];
|
|
306
|
-
readonly nextCursor: string | null;
|
|
307
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
119
|
+
} | undefined) => import("./internal/operation").OperationResult<"templatesListFamilies">) & {
|
|
308
120
|
readonly pages: (input?: {
|
|
309
121
|
readonly limit?: string | null | undefined;
|
|
310
122
|
readonly cursor?: string | null | undefined;
|
|
@@ -349,174 +161,35 @@ export declare const listFamilies: ((input?: {
|
|
|
349
161
|
};
|
|
350
162
|
export declare const createFamily: (input: {
|
|
351
163
|
readonly name: string;
|
|
352
|
-
}) => import("
|
|
353
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
354
|
-
readonly name: string;
|
|
355
|
-
readonly members: readonly {
|
|
356
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
357
|
-
readonly name: string;
|
|
358
|
-
readonly slug: string;
|
|
359
|
-
readonly channel: "email";
|
|
360
|
-
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
361
|
-
readonly isActive: boolean;
|
|
362
|
-
readonly createdAt: string;
|
|
363
|
-
readonly updatedAt: string;
|
|
364
|
-
}[];
|
|
365
|
-
readonly createdAt: string;
|
|
366
|
-
readonly updatedAt: string;
|
|
367
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
164
|
+
}) => import("./internal/operation").OperationResult<"templatesCreateFamily">;
|
|
368
165
|
export declare const getFamily: (input: {
|
|
369
166
|
readonly id: string;
|
|
370
|
-
}) => import("
|
|
371
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
372
|
-
readonly name: string;
|
|
373
|
-
readonly members: readonly {
|
|
374
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
375
|
-
readonly name: string;
|
|
376
|
-
readonly slug: string;
|
|
377
|
-
readonly channel: "email";
|
|
378
|
-
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
379
|
-
readonly isActive: boolean;
|
|
380
|
-
readonly createdAt: string;
|
|
381
|
-
readonly updatedAt: string;
|
|
382
|
-
}[];
|
|
383
|
-
readonly createdAt: string;
|
|
384
|
-
readonly updatedAt: string;
|
|
385
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
167
|
+
}) => import("./internal/operation").OperationResult<"templatesGetFamily">;
|
|
386
168
|
export declare const deleteFamily: (input: {
|
|
387
169
|
readonly id: string;
|
|
388
|
-
}) => import("
|
|
389
|
-
readonly success: boolean;
|
|
390
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
170
|
+
}) => import("./internal/operation").OperationResult<"templatesDeleteFamily">;
|
|
391
171
|
export declare const renameFamily: (input: {
|
|
392
172
|
readonly id: string;
|
|
393
173
|
readonly name: string;
|
|
394
|
-
}) => import("
|
|
395
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
396
|
-
readonly name: string;
|
|
397
|
-
readonly members: readonly {
|
|
398
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
399
|
-
readonly name: string;
|
|
400
|
-
readonly slug: string;
|
|
401
|
-
readonly channel: "email";
|
|
402
|
-
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
403
|
-
readonly isActive: boolean;
|
|
404
|
-
readonly createdAt: string;
|
|
405
|
-
readonly updatedAt: string;
|
|
406
|
-
}[];
|
|
407
|
-
readonly createdAt: string;
|
|
408
|
-
readonly updatedAt: string;
|
|
409
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
174
|
+
}) => import("./internal/operation").OperationResult<"templatesRenameFamily">;
|
|
410
175
|
export declare const createFamilyFromTemplate: (input: {
|
|
411
176
|
readonly templateId: string;
|
|
412
177
|
readonly name: string;
|
|
413
|
-
}) => import("
|
|
414
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
415
|
-
readonly name: string;
|
|
416
|
-
readonly members: readonly {
|
|
417
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
418
|
-
readonly name: string;
|
|
419
|
-
readonly slug: string;
|
|
420
|
-
readonly channel: "email";
|
|
421
|
-
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
422
|
-
readonly isActive: boolean;
|
|
423
|
-
readonly createdAt: string;
|
|
424
|
-
readonly updatedAt: string;
|
|
425
|
-
}[];
|
|
426
|
-
readonly createdAt: string;
|
|
427
|
-
readonly updatedAt: string;
|
|
428
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
178
|
+
}) => import("./internal/operation").OperationResult<"templatesCreateFamilyFromTemplate">;
|
|
429
179
|
export declare const attachFamilyMember: (input: {
|
|
430
180
|
readonly id: string;
|
|
431
181
|
readonly templateId: string;
|
|
432
|
-
}) => import("
|
|
433
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
434
|
-
readonly name: string;
|
|
435
|
-
readonly members: readonly {
|
|
436
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
437
|
-
readonly name: string;
|
|
438
|
-
readonly slug: string;
|
|
439
|
-
readonly channel: "email";
|
|
440
|
-
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
441
|
-
readonly isActive: boolean;
|
|
442
|
-
readonly createdAt: string;
|
|
443
|
-
readonly updatedAt: string;
|
|
444
|
-
}[];
|
|
445
|
-
readonly createdAt: string;
|
|
446
|
-
readonly updatedAt: string;
|
|
447
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
182
|
+
}) => import("./internal/operation").OperationResult<"templatesAttachFamilyMember">;
|
|
448
183
|
export declare const detachFamilyMember: (input: {
|
|
449
184
|
readonly id: string;
|
|
450
185
|
readonly templateId: string;
|
|
451
|
-
}) => import("
|
|
452
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
453
|
-
readonly name: string;
|
|
454
|
-
readonly members: readonly {
|
|
455
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
456
|
-
readonly name: string;
|
|
457
|
-
readonly slug: string;
|
|
458
|
-
readonly channel: "email";
|
|
459
|
-
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
460
|
-
readonly isActive: boolean;
|
|
461
|
-
readonly createdAt: string;
|
|
462
|
-
readonly updatedAt: string;
|
|
463
|
-
}[];
|
|
464
|
-
readonly createdAt: string;
|
|
465
|
-
readonly updatedAt: string;
|
|
466
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
186
|
+
}) => import("./internal/operation").OperationResult<"templatesDetachFamilyMember">;
|
|
467
187
|
export declare const getById: (input: {
|
|
468
188
|
readonly id: string;
|
|
469
|
-
}) => import("
|
|
470
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
471
|
-
readonly slug: string;
|
|
472
|
-
readonly name: string;
|
|
473
|
-
readonly channel: "email";
|
|
474
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
475
|
-
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
476
|
-
readonly shared: boolean;
|
|
477
|
-
readonly entryPath: string;
|
|
478
|
-
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
479
|
-
readonly isActive: boolean;
|
|
480
|
-
readonly publishedAt: string | null;
|
|
481
|
-
readonly brand: {
|
|
482
|
-
readonly slug: string;
|
|
483
|
-
readonly digest: string;
|
|
484
|
-
readonly stale: boolean;
|
|
485
|
-
} | null;
|
|
486
|
-
readonly fromDefault: {
|
|
487
|
-
readonly email: string;
|
|
488
|
-
readonly name?: string | null;
|
|
489
|
-
} | null;
|
|
490
|
-
readonly usageCount: number;
|
|
491
|
-
readonly lastUsedAt: string | null;
|
|
492
|
-
readonly createdAt: string;
|
|
493
|
-
readonly updatedAt: string;
|
|
494
|
-
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
495
|
-
readonly description: string | null;
|
|
496
|
-
readonly category: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null;
|
|
497
|
-
readonly replyToDefault: readonly string[] | null;
|
|
498
|
-
readonly trackingDefault: {
|
|
499
|
-
readonly opens?: boolean | null;
|
|
500
|
-
readonly clicks?: boolean | null;
|
|
501
|
-
} | null;
|
|
502
|
-
readonly email: {
|
|
503
|
-
readonly subject: string;
|
|
504
|
-
readonly preheader: string | null;
|
|
505
|
-
readonly headers: {
|
|
506
|
-
readonly [x: string]: string;
|
|
507
|
-
} | null;
|
|
508
|
-
} | null;
|
|
509
|
-
readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
|
|
510
|
-
readonly inputContractId: (string & import("effect/Brand").Brand<"TemplateInputContractId">) | null;
|
|
511
|
-
readonly inputSchema: {
|
|
512
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
513
|
-
} | null;
|
|
514
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
189
|
+
}) => import("./internal/operation").OperationResult<"templatesGetById">;
|
|
515
190
|
export declare const remove: (input: {
|
|
516
191
|
readonly id: string;
|
|
517
|
-
}) => import("
|
|
518
|
-
readonly success: boolean;
|
|
519
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
192
|
+
}) => import("./internal/operation").OperationResult<"templatesRemove">;
|
|
520
193
|
export declare const update: (input: {
|
|
521
194
|
readonly id: string;
|
|
522
195
|
readonly data: {
|
|
@@ -533,150 +206,17 @@ export declare const update: (input: {
|
|
|
533
206
|
readonly isActive?: boolean | null | undefined;
|
|
534
207
|
readonly shared?: boolean | null | undefined;
|
|
535
208
|
};
|
|
536
|
-
}) => import("
|
|
537
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
538
|
-
readonly slug: string;
|
|
539
|
-
readonly name: string;
|
|
540
|
-
readonly channel: "email";
|
|
541
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
542
|
-
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
543
|
-
readonly shared: boolean;
|
|
544
|
-
readonly entryPath: string;
|
|
545
|
-
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
546
|
-
readonly isActive: boolean;
|
|
547
|
-
readonly publishedAt: string | null;
|
|
548
|
-
readonly brand: {
|
|
549
|
-
readonly slug: string;
|
|
550
|
-
readonly digest: string;
|
|
551
|
-
readonly stale: boolean;
|
|
552
|
-
} | null;
|
|
553
|
-
readonly fromDefault: {
|
|
554
|
-
readonly email: string;
|
|
555
|
-
readonly name?: string | null;
|
|
556
|
-
} | null;
|
|
557
|
-
readonly usageCount: number;
|
|
558
|
-
readonly lastUsedAt: string | null;
|
|
559
|
-
readonly createdAt: string;
|
|
560
|
-
readonly updatedAt: string;
|
|
561
|
-
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
562
|
-
readonly description: string | null;
|
|
563
|
-
readonly category: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null;
|
|
564
|
-
readonly replyToDefault: readonly string[] | null;
|
|
565
|
-
readonly trackingDefault: {
|
|
566
|
-
readonly opens?: boolean | null;
|
|
567
|
-
readonly clicks?: boolean | null;
|
|
568
|
-
} | null;
|
|
569
|
-
readonly email: {
|
|
570
|
-
readonly subject: string;
|
|
571
|
-
readonly preheader: string | null;
|
|
572
|
-
readonly headers: {
|
|
573
|
-
readonly [x: string]: string;
|
|
574
|
-
} | null;
|
|
575
|
-
} | null;
|
|
576
|
-
readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
|
|
577
|
-
readonly inputContractId: (string & import("effect/Brand").Brand<"TemplateInputContractId">) | null;
|
|
578
|
-
readonly inputSchema: {
|
|
579
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
580
|
-
} | null;
|
|
581
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
209
|
+
}) => import("./internal/operation").OperationResult<"templatesUpdate">;
|
|
582
210
|
export declare const openWorkspace: (input: {
|
|
583
211
|
readonly id: string;
|
|
584
|
-
}) => import("
|
|
585
|
-
readonly workspace: {
|
|
586
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
587
|
-
readonly organizationId: (string & import("effect/Brand").Brand<"OrganizationId">) | null;
|
|
588
|
-
readonly ownerEpoch: number;
|
|
589
|
-
readonly repositoryName: string;
|
|
590
|
-
readonly defaultBranch: string;
|
|
591
|
-
readonly baseCommit: string;
|
|
592
|
-
readonly remoteHead: string;
|
|
593
|
-
readonly pendingRemoteHead: string | null;
|
|
594
|
-
readonly revision: string;
|
|
595
|
-
readonly overlay: {
|
|
596
|
-
readonly [x: string]: string | null;
|
|
597
|
-
};
|
|
598
|
-
readonly assetChanges: readonly {
|
|
599
|
-
readonly path: string;
|
|
600
|
-
readonly status: "added" | "deleted" | "modified";
|
|
601
|
-
}[];
|
|
602
|
-
readonly conflicts: readonly {
|
|
603
|
-
readonly path: string;
|
|
604
|
-
readonly base: string | null;
|
|
605
|
-
readonly draft: string | null;
|
|
606
|
-
readonly main: string | null;
|
|
607
|
-
}[];
|
|
608
|
-
readonly provenance: {
|
|
609
|
-
readonly references: readonly {
|
|
610
|
-
readonly kind: string;
|
|
611
|
-
readonly digest: string;
|
|
612
|
-
readonly locator?: string;
|
|
613
|
-
}[];
|
|
614
|
-
};
|
|
615
|
-
readonly mounts: readonly ({
|
|
616
|
-
readonly kind: "project";
|
|
617
|
-
readonly root: "/project";
|
|
618
|
-
readonly access: "read-write";
|
|
619
|
-
} | {
|
|
620
|
-
readonly root: string;
|
|
621
|
-
readonly digest: string;
|
|
622
|
-
readonly fileCount: number;
|
|
623
|
-
readonly byteSize: number;
|
|
624
|
-
readonly kind: "started-from";
|
|
625
|
-
readonly access: "read-only";
|
|
626
|
-
readonly templateId: string;
|
|
627
|
-
readonly slug: string;
|
|
628
|
-
readonly name: string;
|
|
629
|
-
} | {
|
|
630
|
-
readonly root: string;
|
|
631
|
-
readonly digest: string;
|
|
632
|
-
readonly fileCount: number;
|
|
633
|
-
readonly byteSize: number;
|
|
634
|
-
readonly kind: "resource";
|
|
635
|
-
readonly access: "read-only";
|
|
636
|
-
readonly resourceId: string;
|
|
637
|
-
readonly name: string;
|
|
638
|
-
} | {
|
|
639
|
-
readonly root: string;
|
|
640
|
-
readonly digest: string;
|
|
641
|
-
readonly fileCount: number;
|
|
642
|
-
readonly byteSize: number;
|
|
643
|
-
readonly kind: "library-template";
|
|
644
|
-
readonly access: "read-only";
|
|
645
|
-
readonly templateId: string;
|
|
646
|
-
readonly slug: string;
|
|
647
|
-
readonly name: string;
|
|
648
|
-
})[];
|
|
649
|
-
readonly libraryManifestDigest: string;
|
|
650
|
-
readonly createdAt: string;
|
|
651
|
-
readonly updatedAt: string;
|
|
652
|
-
readonly createdBy: {
|
|
653
|
-
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
654
|
-
readonly via: "agent" | "api" | "mcp";
|
|
655
|
-
};
|
|
656
|
-
readonly updatedBy: {
|
|
657
|
-
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
658
|
-
readonly via: "agent" | "api" | "mcp";
|
|
659
|
-
};
|
|
660
|
-
};
|
|
661
|
-
readonly files: {
|
|
662
|
-
readonly [x: string]: string;
|
|
663
|
-
};
|
|
664
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
212
|
+
}) => import("./internal/operation").OperationResult<"templatesOpenWorkspace">;
|
|
665
213
|
export declare const getGitRepository: (input: {
|
|
666
214
|
readonly id: string;
|
|
667
|
-
}) => import("
|
|
668
|
-
readonly remote: string;
|
|
669
|
-
readonly defaultBranch: string;
|
|
670
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
215
|
+
}) => import("./internal/operation").OperationResult<"templatesGetGitRepository">;
|
|
671
216
|
export declare const issueGitCredential: (input: {
|
|
672
217
|
readonly id: string;
|
|
673
218
|
readonly scope: "read" | "write";
|
|
674
|
-
}) => import("
|
|
675
|
-
readonly remote: string;
|
|
676
|
-
readonly username: "x-access-token";
|
|
677
|
-
readonly password: string;
|
|
678
|
-
readonly expiresAt: string;
|
|
679
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
219
|
+
}) => import("./internal/operation").OperationResult<"templatesIssueGitCredential">;
|
|
680
220
|
export declare const patchWorkspace: (input: {
|
|
681
221
|
readonly id: string;
|
|
682
222
|
readonly expectedRevision: string;
|
|
@@ -685,87 +225,7 @@ export declare const patchWorkspace: (input: {
|
|
|
685
225
|
readonly content: string | null;
|
|
686
226
|
}[];
|
|
687
227
|
readonly idempotencyKey: string;
|
|
688
|
-
}) => import("
|
|
689
|
-
readonly workspace: {
|
|
690
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
691
|
-
readonly organizationId: (string & import("effect/Brand").Brand<"OrganizationId">) | null;
|
|
692
|
-
readonly ownerEpoch: number;
|
|
693
|
-
readonly repositoryName: string;
|
|
694
|
-
readonly defaultBranch: string;
|
|
695
|
-
readonly baseCommit: string;
|
|
696
|
-
readonly remoteHead: string;
|
|
697
|
-
readonly pendingRemoteHead: string | null;
|
|
698
|
-
readonly revision: string;
|
|
699
|
-
readonly overlay: {
|
|
700
|
-
readonly [x: string]: string | null;
|
|
701
|
-
};
|
|
702
|
-
readonly assetChanges: readonly {
|
|
703
|
-
readonly path: string;
|
|
704
|
-
readonly status: "added" | "deleted" | "modified";
|
|
705
|
-
}[];
|
|
706
|
-
readonly conflicts: readonly {
|
|
707
|
-
readonly path: string;
|
|
708
|
-
readonly base: string | null;
|
|
709
|
-
readonly draft: string | null;
|
|
710
|
-
readonly main: string | null;
|
|
711
|
-
}[];
|
|
712
|
-
readonly provenance: {
|
|
713
|
-
readonly references: readonly {
|
|
714
|
-
readonly kind: string;
|
|
715
|
-
readonly digest: string;
|
|
716
|
-
readonly locator?: string;
|
|
717
|
-
}[];
|
|
718
|
-
};
|
|
719
|
-
readonly mounts: readonly ({
|
|
720
|
-
readonly kind: "project";
|
|
721
|
-
readonly root: "/project";
|
|
722
|
-
readonly access: "read-write";
|
|
723
|
-
} | {
|
|
724
|
-
readonly root: string;
|
|
725
|
-
readonly digest: string;
|
|
726
|
-
readonly fileCount: number;
|
|
727
|
-
readonly byteSize: number;
|
|
728
|
-
readonly kind: "started-from";
|
|
729
|
-
readonly access: "read-only";
|
|
730
|
-
readonly templateId: string;
|
|
731
|
-
readonly slug: string;
|
|
732
|
-
readonly name: string;
|
|
733
|
-
} | {
|
|
734
|
-
readonly root: string;
|
|
735
|
-
readonly digest: string;
|
|
736
|
-
readonly fileCount: number;
|
|
737
|
-
readonly byteSize: number;
|
|
738
|
-
readonly kind: "resource";
|
|
739
|
-
readonly access: "read-only";
|
|
740
|
-
readonly resourceId: string;
|
|
741
|
-
readonly name: string;
|
|
742
|
-
} | {
|
|
743
|
-
readonly root: string;
|
|
744
|
-
readonly digest: string;
|
|
745
|
-
readonly fileCount: number;
|
|
746
|
-
readonly byteSize: number;
|
|
747
|
-
readonly kind: "library-template";
|
|
748
|
-
readonly access: "read-only";
|
|
749
|
-
readonly templateId: string;
|
|
750
|
-
readonly slug: string;
|
|
751
|
-
readonly name: string;
|
|
752
|
-
})[];
|
|
753
|
-
readonly libraryManifestDigest: string;
|
|
754
|
-
readonly createdAt: string;
|
|
755
|
-
readonly updatedAt: string;
|
|
756
|
-
readonly createdBy: {
|
|
757
|
-
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
758
|
-
readonly via: "agent" | "api" | "mcp";
|
|
759
|
-
};
|
|
760
|
-
readonly updatedBy: {
|
|
761
|
-
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
762
|
-
readonly via: "agent" | "api" | "mcp";
|
|
763
|
-
};
|
|
764
|
-
};
|
|
765
|
-
readonly files: {
|
|
766
|
-
readonly [x: string]: string;
|
|
767
|
-
};
|
|
768
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
228
|
+
}) => import("./internal/operation").OperationResult<"templatesPatchWorkspace">;
|
|
769
229
|
export declare const putWorkspaceAsset: (input: {
|
|
770
230
|
readonly id: string;
|
|
771
231
|
readonly expectedRevision: string;
|
|
@@ -773,87 +233,7 @@ export declare const putWorkspaceAsset: (input: {
|
|
|
773
233
|
readonly contentBase64: string;
|
|
774
234
|
readonly replace: boolean;
|
|
775
235
|
readonly idempotencyKey: string;
|
|
776
|
-
}) => import("
|
|
777
|
-
readonly workspace: {
|
|
778
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
779
|
-
readonly organizationId: (string & import("effect/Brand").Brand<"OrganizationId">) | null;
|
|
780
|
-
readonly ownerEpoch: number;
|
|
781
|
-
readonly repositoryName: string;
|
|
782
|
-
readonly defaultBranch: string;
|
|
783
|
-
readonly baseCommit: string;
|
|
784
|
-
readonly remoteHead: string;
|
|
785
|
-
readonly pendingRemoteHead: string | null;
|
|
786
|
-
readonly revision: string;
|
|
787
|
-
readonly overlay: {
|
|
788
|
-
readonly [x: string]: string | null;
|
|
789
|
-
};
|
|
790
|
-
readonly assetChanges: readonly {
|
|
791
|
-
readonly path: string;
|
|
792
|
-
readonly status: "added" | "deleted" | "modified";
|
|
793
|
-
}[];
|
|
794
|
-
readonly conflicts: readonly {
|
|
795
|
-
readonly path: string;
|
|
796
|
-
readonly base: string | null;
|
|
797
|
-
readonly draft: string | null;
|
|
798
|
-
readonly main: string | null;
|
|
799
|
-
}[];
|
|
800
|
-
readonly provenance: {
|
|
801
|
-
readonly references: readonly {
|
|
802
|
-
readonly kind: string;
|
|
803
|
-
readonly digest: string;
|
|
804
|
-
readonly locator?: string;
|
|
805
|
-
}[];
|
|
806
|
-
};
|
|
807
|
-
readonly mounts: readonly ({
|
|
808
|
-
readonly kind: "project";
|
|
809
|
-
readonly root: "/project";
|
|
810
|
-
readonly access: "read-write";
|
|
811
|
-
} | {
|
|
812
|
-
readonly root: string;
|
|
813
|
-
readonly digest: string;
|
|
814
|
-
readonly fileCount: number;
|
|
815
|
-
readonly byteSize: number;
|
|
816
|
-
readonly kind: "started-from";
|
|
817
|
-
readonly access: "read-only";
|
|
818
|
-
readonly templateId: string;
|
|
819
|
-
readonly slug: string;
|
|
820
|
-
readonly name: string;
|
|
821
|
-
} | {
|
|
822
|
-
readonly root: string;
|
|
823
|
-
readonly digest: string;
|
|
824
|
-
readonly fileCount: number;
|
|
825
|
-
readonly byteSize: number;
|
|
826
|
-
readonly kind: "resource";
|
|
827
|
-
readonly access: "read-only";
|
|
828
|
-
readonly resourceId: string;
|
|
829
|
-
readonly name: string;
|
|
830
|
-
} | {
|
|
831
|
-
readonly root: string;
|
|
832
|
-
readonly digest: string;
|
|
833
|
-
readonly fileCount: number;
|
|
834
|
-
readonly byteSize: number;
|
|
835
|
-
readonly kind: "library-template";
|
|
836
|
-
readonly access: "read-only";
|
|
837
|
-
readonly templateId: string;
|
|
838
|
-
readonly slug: string;
|
|
839
|
-
readonly name: string;
|
|
840
|
-
})[];
|
|
841
|
-
readonly libraryManifestDigest: string;
|
|
842
|
-
readonly createdAt: string;
|
|
843
|
-
readonly updatedAt: string;
|
|
844
|
-
readonly createdBy: {
|
|
845
|
-
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
846
|
-
readonly via: "agent" | "api" | "mcp";
|
|
847
|
-
};
|
|
848
|
-
readonly updatedBy: {
|
|
849
|
-
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
850
|
-
readonly via: "agent" | "api" | "mcp";
|
|
851
|
-
};
|
|
852
|
-
};
|
|
853
|
-
readonly files: {
|
|
854
|
-
readonly [x: string]: string;
|
|
855
|
-
};
|
|
856
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
236
|
+
}) => import("./internal/operation").OperationResult<"templatesPutWorkspaceAsset">;
|
|
857
237
|
export declare const resolveWorkspaceConflict: (input: {
|
|
858
238
|
readonly id: string;
|
|
859
239
|
readonly expectedRevision: string;
|
|
@@ -862,87 +242,7 @@ export declare const resolveWorkspaceConflict: (input: {
|
|
|
862
242
|
readonly content: string | null;
|
|
863
243
|
};
|
|
864
244
|
readonly idempotencyKey: string;
|
|
865
|
-
}) => import("
|
|
866
|
-
readonly workspace: {
|
|
867
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
868
|
-
readonly organizationId: (string & import("effect/Brand").Brand<"OrganizationId">) | null;
|
|
869
|
-
readonly ownerEpoch: number;
|
|
870
|
-
readonly repositoryName: string;
|
|
871
|
-
readonly defaultBranch: string;
|
|
872
|
-
readonly baseCommit: string;
|
|
873
|
-
readonly remoteHead: string;
|
|
874
|
-
readonly pendingRemoteHead: string | null;
|
|
875
|
-
readonly revision: string;
|
|
876
|
-
readonly overlay: {
|
|
877
|
-
readonly [x: string]: string | null;
|
|
878
|
-
};
|
|
879
|
-
readonly assetChanges: readonly {
|
|
880
|
-
readonly path: string;
|
|
881
|
-
readonly status: "added" | "deleted" | "modified";
|
|
882
|
-
}[];
|
|
883
|
-
readonly conflicts: readonly {
|
|
884
|
-
readonly path: string;
|
|
885
|
-
readonly base: string | null;
|
|
886
|
-
readonly draft: string | null;
|
|
887
|
-
readonly main: string | null;
|
|
888
|
-
}[];
|
|
889
|
-
readonly provenance: {
|
|
890
|
-
readonly references: readonly {
|
|
891
|
-
readonly kind: string;
|
|
892
|
-
readonly digest: string;
|
|
893
|
-
readonly locator?: string;
|
|
894
|
-
}[];
|
|
895
|
-
};
|
|
896
|
-
readonly mounts: readonly ({
|
|
897
|
-
readonly kind: "project";
|
|
898
|
-
readonly root: "/project";
|
|
899
|
-
readonly access: "read-write";
|
|
900
|
-
} | {
|
|
901
|
-
readonly root: string;
|
|
902
|
-
readonly digest: string;
|
|
903
|
-
readonly fileCount: number;
|
|
904
|
-
readonly byteSize: number;
|
|
905
|
-
readonly kind: "started-from";
|
|
906
|
-
readonly access: "read-only";
|
|
907
|
-
readonly templateId: string;
|
|
908
|
-
readonly slug: string;
|
|
909
|
-
readonly name: string;
|
|
910
|
-
} | {
|
|
911
|
-
readonly root: string;
|
|
912
|
-
readonly digest: string;
|
|
913
|
-
readonly fileCount: number;
|
|
914
|
-
readonly byteSize: number;
|
|
915
|
-
readonly kind: "resource";
|
|
916
|
-
readonly access: "read-only";
|
|
917
|
-
readonly resourceId: string;
|
|
918
|
-
readonly name: string;
|
|
919
|
-
} | {
|
|
920
|
-
readonly root: string;
|
|
921
|
-
readonly digest: string;
|
|
922
|
-
readonly fileCount: number;
|
|
923
|
-
readonly byteSize: number;
|
|
924
|
-
readonly kind: "library-template";
|
|
925
|
-
readonly access: "read-only";
|
|
926
|
-
readonly templateId: string;
|
|
927
|
-
readonly slug: string;
|
|
928
|
-
readonly name: string;
|
|
929
|
-
})[];
|
|
930
|
-
readonly libraryManifestDigest: string;
|
|
931
|
-
readonly createdAt: string;
|
|
932
|
-
readonly updatedAt: string;
|
|
933
|
-
readonly createdBy: {
|
|
934
|
-
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
935
|
-
readonly via: "agent" | "api" | "mcp";
|
|
936
|
-
};
|
|
937
|
-
readonly updatedBy: {
|
|
938
|
-
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
939
|
-
readonly via: "agent" | "api" | "mcp";
|
|
940
|
-
};
|
|
941
|
-
};
|
|
942
|
-
readonly files: {
|
|
943
|
-
readonly [x: string]: string;
|
|
944
|
-
};
|
|
945
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
245
|
+
}) => import("./internal/operation").OperationResult<"templatesResolveWorkspaceConflict">;
|
|
946
246
|
export declare const attachWorkspaceResource: (input: {
|
|
947
247
|
readonly id: string;
|
|
948
248
|
readonly expectedRevision: string;
|
|
@@ -956,471 +256,35 @@ export declare const attachWorkspaceResource: (input: {
|
|
|
956
256
|
}[];
|
|
957
257
|
};
|
|
958
258
|
readonly idempotencyKey: string;
|
|
959
|
-
}) => import("
|
|
960
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
961
|
-
readonly organizationId: (string & import("effect/Brand").Brand<"OrganizationId">) | null;
|
|
962
|
-
readonly ownerEpoch: number;
|
|
963
|
-
readonly repositoryName: string;
|
|
964
|
-
readonly defaultBranch: string;
|
|
965
|
-
readonly baseCommit: string;
|
|
966
|
-
readonly remoteHead: string;
|
|
967
|
-
readonly pendingRemoteHead: string | null;
|
|
968
|
-
readonly revision: string;
|
|
969
|
-
readonly overlay: {
|
|
970
|
-
readonly [x: string]: string | null;
|
|
971
|
-
};
|
|
972
|
-
readonly assetChanges: readonly {
|
|
973
|
-
readonly path: string;
|
|
974
|
-
readonly status: "added" | "deleted" | "modified";
|
|
975
|
-
}[];
|
|
976
|
-
readonly conflicts: readonly {
|
|
977
|
-
readonly path: string;
|
|
978
|
-
readonly base: string | null;
|
|
979
|
-
readonly draft: string | null;
|
|
980
|
-
readonly main: string | null;
|
|
981
|
-
}[];
|
|
982
|
-
readonly provenance: {
|
|
983
|
-
readonly references: readonly {
|
|
984
|
-
readonly kind: string;
|
|
985
|
-
readonly digest: string;
|
|
986
|
-
readonly locator?: string;
|
|
987
|
-
}[];
|
|
988
|
-
};
|
|
989
|
-
readonly mounts: readonly ({
|
|
990
|
-
readonly kind: "project";
|
|
991
|
-
readonly root: "/project";
|
|
992
|
-
readonly access: "read-write";
|
|
993
|
-
} | {
|
|
994
|
-
readonly root: string;
|
|
995
|
-
readonly digest: string;
|
|
996
|
-
readonly fileCount: number;
|
|
997
|
-
readonly byteSize: number;
|
|
998
|
-
readonly kind: "started-from";
|
|
999
|
-
readonly access: "read-only";
|
|
1000
|
-
readonly templateId: string;
|
|
1001
|
-
readonly slug: string;
|
|
1002
|
-
readonly name: string;
|
|
1003
|
-
} | {
|
|
1004
|
-
readonly root: string;
|
|
1005
|
-
readonly digest: string;
|
|
1006
|
-
readonly fileCount: number;
|
|
1007
|
-
readonly byteSize: number;
|
|
1008
|
-
readonly kind: "resource";
|
|
1009
|
-
readonly access: "read-only";
|
|
1010
|
-
readonly resourceId: string;
|
|
1011
|
-
readonly name: string;
|
|
1012
|
-
} | {
|
|
1013
|
-
readonly root: string;
|
|
1014
|
-
readonly digest: string;
|
|
1015
|
-
readonly fileCount: number;
|
|
1016
|
-
readonly byteSize: number;
|
|
1017
|
-
readonly kind: "library-template";
|
|
1018
|
-
readonly access: "read-only";
|
|
1019
|
-
readonly templateId: string;
|
|
1020
|
-
readonly slug: string;
|
|
1021
|
-
readonly name: string;
|
|
1022
|
-
})[];
|
|
1023
|
-
readonly libraryManifestDigest: string;
|
|
1024
|
-
readonly createdAt: string;
|
|
1025
|
-
readonly updatedAt: string;
|
|
1026
|
-
readonly createdBy: {
|
|
1027
|
-
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
1028
|
-
readonly via: "agent" | "api" | "mcp";
|
|
1029
|
-
};
|
|
1030
|
-
readonly updatedBy: {
|
|
1031
|
-
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
1032
|
-
readonly via: "agent" | "api" | "mcp";
|
|
1033
|
-
};
|
|
1034
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
259
|
+
}) => import("./internal/operation").OperationResult<"templatesAttachWorkspaceResource">;
|
|
1035
260
|
export declare const removeWorkspaceResource: (input: {
|
|
1036
261
|
readonly id: string;
|
|
1037
262
|
readonly resourceId: string;
|
|
1038
263
|
readonly expectedRevision: string;
|
|
1039
264
|
readonly idempotencyKey: string;
|
|
1040
|
-
}) => import("
|
|
1041
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
1042
|
-
readonly organizationId: (string & import("effect/Brand").Brand<"OrganizationId">) | null;
|
|
1043
|
-
readonly ownerEpoch: number;
|
|
1044
|
-
readonly repositoryName: string;
|
|
1045
|
-
readonly defaultBranch: string;
|
|
1046
|
-
readonly baseCommit: string;
|
|
1047
|
-
readonly remoteHead: string;
|
|
1048
|
-
readonly pendingRemoteHead: string | null;
|
|
1049
|
-
readonly revision: string;
|
|
1050
|
-
readonly overlay: {
|
|
1051
|
-
readonly [x: string]: string | null;
|
|
1052
|
-
};
|
|
1053
|
-
readonly assetChanges: readonly {
|
|
1054
|
-
readonly path: string;
|
|
1055
|
-
readonly status: "added" | "deleted" | "modified";
|
|
1056
|
-
}[];
|
|
1057
|
-
readonly conflicts: readonly {
|
|
1058
|
-
readonly path: string;
|
|
1059
|
-
readonly base: string | null;
|
|
1060
|
-
readonly draft: string | null;
|
|
1061
|
-
readonly main: string | null;
|
|
1062
|
-
}[];
|
|
1063
|
-
readonly provenance: {
|
|
1064
|
-
readonly references: readonly {
|
|
1065
|
-
readonly kind: string;
|
|
1066
|
-
readonly digest: string;
|
|
1067
|
-
readonly locator?: string;
|
|
1068
|
-
}[];
|
|
1069
|
-
};
|
|
1070
|
-
readonly mounts: readonly ({
|
|
1071
|
-
readonly kind: "project";
|
|
1072
|
-
readonly root: "/project";
|
|
1073
|
-
readonly access: "read-write";
|
|
1074
|
-
} | {
|
|
1075
|
-
readonly root: string;
|
|
1076
|
-
readonly digest: string;
|
|
1077
|
-
readonly fileCount: number;
|
|
1078
|
-
readonly byteSize: number;
|
|
1079
|
-
readonly kind: "started-from";
|
|
1080
|
-
readonly access: "read-only";
|
|
1081
|
-
readonly templateId: string;
|
|
1082
|
-
readonly slug: string;
|
|
1083
|
-
readonly name: string;
|
|
1084
|
-
} | {
|
|
1085
|
-
readonly root: string;
|
|
1086
|
-
readonly digest: string;
|
|
1087
|
-
readonly fileCount: number;
|
|
1088
|
-
readonly byteSize: number;
|
|
1089
|
-
readonly kind: "resource";
|
|
1090
|
-
readonly access: "read-only";
|
|
1091
|
-
readonly resourceId: string;
|
|
1092
|
-
readonly name: string;
|
|
1093
|
-
} | {
|
|
1094
|
-
readonly root: string;
|
|
1095
|
-
readonly digest: string;
|
|
1096
|
-
readonly fileCount: number;
|
|
1097
|
-
readonly byteSize: number;
|
|
1098
|
-
readonly kind: "library-template";
|
|
1099
|
-
readonly access: "read-only";
|
|
1100
|
-
readonly templateId: string;
|
|
1101
|
-
readonly slug: string;
|
|
1102
|
-
readonly name: string;
|
|
1103
|
-
})[];
|
|
1104
|
-
readonly libraryManifestDigest: string;
|
|
1105
|
-
readonly createdAt: string;
|
|
1106
|
-
readonly updatedAt: string;
|
|
1107
|
-
readonly createdBy: {
|
|
1108
|
-
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
1109
|
-
readonly via: "agent" | "api" | "mcp";
|
|
1110
|
-
};
|
|
1111
|
-
readonly updatedBy: {
|
|
1112
|
-
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
1113
|
-
readonly via: "agent" | "api" | "mcp";
|
|
1114
|
-
};
|
|
1115
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
265
|
+
}) => import("./internal/operation").OperationResult<"templatesRemoveWorkspaceResource">;
|
|
1116
266
|
export declare const restoreWorkspace: (input: {
|
|
1117
267
|
readonly id: string;
|
|
1118
268
|
readonly expectedRevision: string;
|
|
1119
269
|
readonly commit: string;
|
|
1120
270
|
readonly idempotencyKey: string;
|
|
1121
|
-
}) => import("
|
|
1122
|
-
readonly view: {
|
|
1123
|
-
readonly workspace: {
|
|
1124
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
1125
|
-
readonly organizationId: (string & import("effect/Brand").Brand<"OrganizationId">) | null;
|
|
1126
|
-
readonly ownerEpoch: number;
|
|
1127
|
-
readonly repositoryName: string;
|
|
1128
|
-
readonly defaultBranch: string;
|
|
1129
|
-
readonly baseCommit: string;
|
|
1130
|
-
readonly remoteHead: string;
|
|
1131
|
-
readonly pendingRemoteHead: string | null;
|
|
1132
|
-
readonly revision: string;
|
|
1133
|
-
readonly overlay: {
|
|
1134
|
-
readonly [x: string]: string | null;
|
|
1135
|
-
};
|
|
1136
|
-
readonly assetChanges: readonly {
|
|
1137
|
-
readonly path: string;
|
|
1138
|
-
readonly status: "added" | "deleted" | "modified";
|
|
1139
|
-
}[];
|
|
1140
|
-
readonly conflicts: readonly {
|
|
1141
|
-
readonly path: string;
|
|
1142
|
-
readonly base: string | null;
|
|
1143
|
-
readonly draft: string | null;
|
|
1144
|
-
readonly main: string | null;
|
|
1145
|
-
}[];
|
|
1146
|
-
readonly provenance: {
|
|
1147
|
-
readonly references: readonly {
|
|
1148
|
-
readonly kind: string;
|
|
1149
|
-
readonly digest: string;
|
|
1150
|
-
readonly locator?: string;
|
|
1151
|
-
}[];
|
|
1152
|
-
};
|
|
1153
|
-
readonly mounts: readonly ({
|
|
1154
|
-
readonly kind: "project";
|
|
1155
|
-
readonly root: "/project";
|
|
1156
|
-
readonly access: "read-write";
|
|
1157
|
-
} | {
|
|
1158
|
-
readonly root: string;
|
|
1159
|
-
readonly digest: string;
|
|
1160
|
-
readonly fileCount: number;
|
|
1161
|
-
readonly byteSize: number;
|
|
1162
|
-
readonly kind: "started-from";
|
|
1163
|
-
readonly access: "read-only";
|
|
1164
|
-
readonly templateId: string;
|
|
1165
|
-
readonly slug: string;
|
|
1166
|
-
readonly name: string;
|
|
1167
|
-
} | {
|
|
1168
|
-
readonly root: string;
|
|
1169
|
-
readonly digest: string;
|
|
1170
|
-
readonly fileCount: number;
|
|
1171
|
-
readonly byteSize: number;
|
|
1172
|
-
readonly kind: "resource";
|
|
1173
|
-
readonly access: "read-only";
|
|
1174
|
-
readonly resourceId: string;
|
|
1175
|
-
readonly name: string;
|
|
1176
|
-
} | {
|
|
1177
|
-
readonly root: string;
|
|
1178
|
-
readonly digest: string;
|
|
1179
|
-
readonly fileCount: number;
|
|
1180
|
-
readonly byteSize: number;
|
|
1181
|
-
readonly kind: "library-template";
|
|
1182
|
-
readonly access: "read-only";
|
|
1183
|
-
readonly templateId: string;
|
|
1184
|
-
readonly slug: string;
|
|
1185
|
-
readonly name: string;
|
|
1186
|
-
})[];
|
|
1187
|
-
readonly libraryManifestDigest: string;
|
|
1188
|
-
readonly createdAt: string;
|
|
1189
|
-
readonly updatedAt: string;
|
|
1190
|
-
readonly createdBy: {
|
|
1191
|
-
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
1192
|
-
readonly via: "agent" | "api" | "mcp";
|
|
1193
|
-
};
|
|
1194
|
-
readonly updatedBy: {
|
|
1195
|
-
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
1196
|
-
readonly via: "agent" | "api" | "mcp";
|
|
1197
|
-
};
|
|
1198
|
-
};
|
|
1199
|
-
readonly files: {
|
|
1200
|
-
readonly [x: string]: string;
|
|
1201
|
-
};
|
|
1202
|
-
};
|
|
1203
|
-
readonly source: {
|
|
1204
|
-
readonly digest: string;
|
|
1205
|
-
readonly content: string;
|
|
1206
|
-
};
|
|
1207
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
271
|
+
}) => import("./internal/operation").OperationResult<"templatesRestoreWorkspace">;
|
|
1208
272
|
export declare const saveWorkspace: (input: {
|
|
1209
273
|
readonly id: string;
|
|
1210
274
|
readonly expectedRevision: string;
|
|
1211
275
|
readonly expectedHead: string;
|
|
1212
276
|
readonly message: string;
|
|
1213
277
|
readonly idempotencyKey: string;
|
|
1214
|
-
}) => import("
|
|
1215
|
-
readonly commit: string;
|
|
1216
|
-
readonly parentCommit: string;
|
|
1217
|
-
readonly tree: string;
|
|
1218
|
-
readonly revision: string;
|
|
1219
|
-
readonly changedPaths: readonly string[];
|
|
1220
|
-
readonly sourceDigest: string;
|
|
1221
|
-
readonly buildDigest: string;
|
|
1222
|
-
readonly warnings: readonly {
|
|
1223
|
-
readonly code: string;
|
|
1224
|
-
readonly severity: "error" | "info" | "warning";
|
|
1225
|
-
readonly message: string;
|
|
1226
|
-
readonly origins: readonly {
|
|
1227
|
-
readonly fileName: string;
|
|
1228
|
-
readonly lineNumber: number;
|
|
1229
|
-
readonly columnNumber: number;
|
|
1230
|
-
}[];
|
|
1231
|
-
readonly clients?: readonly string[] | null;
|
|
1232
|
-
readonly notes?: string | null;
|
|
1233
|
-
readonly provenance?: string | null;
|
|
1234
|
-
readonly fixtures?: readonly string[] | null;
|
|
1235
|
-
readonly occurrences?: readonly (readonly {
|
|
1236
|
-
readonly fileName: string;
|
|
1237
|
-
readonly lineNumber: number;
|
|
1238
|
-
readonly columnNumber: number;
|
|
1239
|
-
}[])[] | null;
|
|
1240
|
-
readonly compatibility?: {
|
|
1241
|
-
readonly assessment: "degradation" | "not-applicable" | "risk" | "unverified";
|
|
1242
|
-
readonly title: string;
|
|
1243
|
-
} | null;
|
|
1244
|
-
}[];
|
|
1245
|
-
readonly incompatibilities: readonly {
|
|
1246
|
-
readonly code: string;
|
|
1247
|
-
readonly severity: "error" | "info" | "warning";
|
|
1248
|
-
readonly message: string;
|
|
1249
|
-
readonly origins: readonly {
|
|
1250
|
-
readonly fileName: string;
|
|
1251
|
-
readonly lineNumber: number;
|
|
1252
|
-
readonly columnNumber: number;
|
|
1253
|
-
}[];
|
|
1254
|
-
readonly clients?: readonly string[] | null;
|
|
1255
|
-
readonly notes?: string | null;
|
|
1256
|
-
readonly provenance?: string | null;
|
|
1257
|
-
readonly fixtures?: readonly string[] | null;
|
|
1258
|
-
readonly occurrences?: readonly (readonly {
|
|
1259
|
-
readonly fileName: string;
|
|
1260
|
-
readonly lineNumber: number;
|
|
1261
|
-
readonly columnNumber: number;
|
|
1262
|
-
}[])[] | null;
|
|
1263
|
-
readonly compatibility?: {
|
|
1264
|
-
readonly assessment: "degradation" | "not-applicable" | "risk" | "unverified";
|
|
1265
|
-
readonly title: string;
|
|
1266
|
-
} | null;
|
|
1267
|
-
}[];
|
|
1268
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
278
|
+
}) => import("./internal/operation").OperationResult<"templatesSaveWorkspace">;
|
|
1269
279
|
export declare const checkWorkspace: (input: {
|
|
1270
280
|
readonly id: string;
|
|
1271
281
|
readonly expectedRevision: string;
|
|
1272
|
-
}) => import("
|
|
1273
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
1274
|
-
readonly revision: string;
|
|
1275
|
-
readonly entryPath: string;
|
|
1276
|
-
readonly declaration: {
|
|
1277
|
-
readonly codeDigest: string;
|
|
1278
|
-
readonly templateId: string;
|
|
1279
|
-
readonly input: {
|
|
1280
|
-
readonly schema: {
|
|
1281
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1282
|
-
};
|
|
1283
|
-
readonly schemaDigest: string;
|
|
1284
|
-
readonly contractDigest: string;
|
|
1285
|
-
};
|
|
1286
|
-
readonly fixtures: readonly string[];
|
|
1287
|
-
} | null;
|
|
1288
|
-
readonly diagnostics: readonly {
|
|
1289
|
-
readonly code: string;
|
|
1290
|
-
readonly severity: "error" | "info" | "warning";
|
|
1291
|
-
readonly message: string;
|
|
1292
|
-
readonly origins: readonly {
|
|
1293
|
-
readonly fileName: string;
|
|
1294
|
-
readonly lineNumber: number;
|
|
1295
|
-
readonly columnNumber: number;
|
|
1296
|
-
}[];
|
|
1297
|
-
readonly clients?: readonly string[] | null;
|
|
1298
|
-
readonly notes?: string | null;
|
|
1299
|
-
readonly provenance?: string | null;
|
|
1300
|
-
readonly fixtures?: readonly string[] | null;
|
|
1301
|
-
readonly occurrences?: readonly (readonly {
|
|
1302
|
-
readonly fileName: string;
|
|
1303
|
-
readonly lineNumber: number;
|
|
1304
|
-
readonly columnNumber: number;
|
|
1305
|
-
}[])[] | null;
|
|
1306
|
-
readonly compatibility?: {
|
|
1307
|
-
readonly assessment: "degradation" | "not-applicable" | "risk" | "unverified";
|
|
1308
|
-
readonly title: string;
|
|
1309
|
-
} | null;
|
|
1310
|
-
}[];
|
|
1311
|
-
readonly incompatibilities: readonly {
|
|
1312
|
-
readonly code: string;
|
|
1313
|
-
readonly severity: "error" | "info" | "warning";
|
|
1314
|
-
readonly message: string;
|
|
1315
|
-
readonly origins: readonly {
|
|
1316
|
-
readonly fileName: string;
|
|
1317
|
-
readonly lineNumber: number;
|
|
1318
|
-
readonly columnNumber: number;
|
|
1319
|
-
}[];
|
|
1320
|
-
readonly clients?: readonly string[] | null;
|
|
1321
|
-
readonly notes?: string | null;
|
|
1322
|
-
readonly provenance?: string | null;
|
|
1323
|
-
readonly fixtures?: readonly string[] | null;
|
|
1324
|
-
readonly occurrences?: readonly (readonly {
|
|
1325
|
-
readonly fileName: string;
|
|
1326
|
-
readonly lineNumber: number;
|
|
1327
|
-
readonly columnNumber: number;
|
|
1328
|
-
}[])[] | null;
|
|
1329
|
-
readonly compatibility?: {
|
|
1330
|
-
readonly assessment: "degradation" | "not-applicable" | "risk" | "unverified";
|
|
1331
|
-
readonly title: string;
|
|
1332
|
-
} | null;
|
|
1333
|
-
}[];
|
|
1334
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
282
|
+
}) => import("./internal/operation").OperationResult<"templatesCheckWorkspace">;
|
|
1335
283
|
export declare const renderWorkspaceFixture: (input: {
|
|
1336
284
|
readonly id: string;
|
|
1337
285
|
readonly expectedRevision: string;
|
|
1338
286
|
readonly fixture: string;
|
|
1339
|
-
}) => import("
|
|
1340
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
1341
|
-
readonly revision: string;
|
|
1342
|
-
readonly entryPath: string;
|
|
1343
|
-
readonly declaration: {
|
|
1344
|
-
readonly codeDigest: string;
|
|
1345
|
-
readonly templateId: string;
|
|
1346
|
-
readonly input: {
|
|
1347
|
-
readonly schema: {
|
|
1348
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1349
|
-
};
|
|
1350
|
-
readonly schemaDigest: string;
|
|
1351
|
-
readonly contractDigest: string;
|
|
1352
|
-
};
|
|
1353
|
-
readonly fixtures: readonly string[];
|
|
1354
|
-
} | null;
|
|
1355
|
-
readonly diagnostics: readonly {
|
|
1356
|
-
readonly code: string;
|
|
1357
|
-
readonly severity: "error" | "info" | "warning";
|
|
1358
|
-
readonly message: string;
|
|
1359
|
-
readonly origins: readonly {
|
|
1360
|
-
readonly fileName: string;
|
|
1361
|
-
readonly lineNumber: number;
|
|
1362
|
-
readonly columnNumber: number;
|
|
1363
|
-
}[];
|
|
1364
|
-
readonly clients?: readonly string[] | null;
|
|
1365
|
-
readonly notes?: string | null;
|
|
1366
|
-
readonly provenance?: string | null;
|
|
1367
|
-
readonly fixtures?: readonly string[] | null;
|
|
1368
|
-
readonly occurrences?: readonly (readonly {
|
|
1369
|
-
readonly fileName: string;
|
|
1370
|
-
readonly lineNumber: number;
|
|
1371
|
-
readonly columnNumber: number;
|
|
1372
|
-
}[])[] | null;
|
|
1373
|
-
readonly compatibility?: {
|
|
1374
|
-
readonly assessment: "degradation" | "not-applicable" | "risk" | "unverified";
|
|
1375
|
-
readonly title: string;
|
|
1376
|
-
} | null;
|
|
1377
|
-
}[];
|
|
1378
|
-
readonly incompatibilities: readonly {
|
|
1379
|
-
readonly code: string;
|
|
1380
|
-
readonly severity: "error" | "info" | "warning";
|
|
1381
|
-
readonly message: string;
|
|
1382
|
-
readonly origins: readonly {
|
|
1383
|
-
readonly fileName: string;
|
|
1384
|
-
readonly lineNumber: number;
|
|
1385
|
-
readonly columnNumber: number;
|
|
1386
|
-
}[];
|
|
1387
|
-
readonly clients?: readonly string[] | null;
|
|
1388
|
-
readonly notes?: string | null;
|
|
1389
|
-
readonly provenance?: string | null;
|
|
1390
|
-
readonly fixtures?: readonly string[] | null;
|
|
1391
|
-
readonly occurrences?: readonly (readonly {
|
|
1392
|
-
readonly fileName: string;
|
|
1393
|
-
readonly lineNumber: number;
|
|
1394
|
-
readonly columnNumber: number;
|
|
1395
|
-
}[])[] | null;
|
|
1396
|
-
readonly compatibility?: {
|
|
1397
|
-
readonly assessment: "degradation" | "not-applicable" | "risk" | "unverified";
|
|
1398
|
-
readonly title: string;
|
|
1399
|
-
} | null;
|
|
1400
|
-
}[];
|
|
1401
|
-
readonly fixture: string;
|
|
1402
|
-
readonly rendered: {
|
|
1403
|
-
readonly subject: string;
|
|
1404
|
-
readonly preheader?: string;
|
|
1405
|
-
readonly html: string;
|
|
1406
|
-
readonly text: string;
|
|
1407
|
-
readonly selections: readonly {
|
|
1408
|
-
readonly instancePath: string;
|
|
1409
|
-
readonly tag: string;
|
|
1410
|
-
readonly origins: readonly {
|
|
1411
|
-
readonly fileName: string;
|
|
1412
|
-
readonly lineNumber: number;
|
|
1413
|
-
readonly columnNumber: number;
|
|
1414
|
-
}[];
|
|
1415
|
-
readonly authored: boolean;
|
|
1416
|
-
readonly occurrence: number;
|
|
1417
|
-
readonly occurrences: number;
|
|
1418
|
-
readonly parentPath?: string;
|
|
1419
|
-
readonly start: number;
|
|
1420
|
-
readonly end: number;
|
|
1421
|
-
}[];
|
|
1422
|
-
} | null;
|
|
1423
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
287
|
+
}) => import("./internal/operation").OperationResult<"templatesRenderWorkspaceFixture">;
|
|
1424
288
|
export declare const publish: (input: {
|
|
1425
289
|
readonly id: string;
|
|
1426
290
|
readonly projectId: string;
|
|
@@ -1428,291 +292,11 @@ export declare const publish: (input: {
|
|
|
1428
292
|
readonly entryPath: string;
|
|
1429
293
|
readonly expectedWorkspaceRevision: string;
|
|
1430
294
|
readonly ifCurrentPublicationId?: string | null | undefined;
|
|
1431
|
-
}) => import("
|
|
1432
|
-
readonly id: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
1433
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
1434
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
1435
|
-
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1436
|
-
readonly inputContractId: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
1437
|
-
readonly commitSha: string;
|
|
1438
|
-
readonly treeSha: string;
|
|
1439
|
-
readonly entryPath: string;
|
|
1440
|
-
readonly buildIdentity: string;
|
|
1441
|
-
readonly manifest: {
|
|
1442
|
-
readonly templateKey: string;
|
|
1443
|
-
readonly ir: {
|
|
1444
|
-
readonly version: number;
|
|
1445
|
-
readonly digest: string;
|
|
1446
|
-
readonly bytes: number;
|
|
1447
|
-
};
|
|
1448
|
-
readonly compiler: string;
|
|
1449
|
-
readonly input: {
|
|
1450
|
-
readonly schemaDigest: string;
|
|
1451
|
-
readonly contractDigest: string;
|
|
1452
|
-
};
|
|
1453
|
-
readonly assets: {
|
|
1454
|
-
readonly base: string;
|
|
1455
|
-
readonly entries: readonly {
|
|
1456
|
-
readonly path: string;
|
|
1457
|
-
readonly fileName: string;
|
|
1458
|
-
readonly digest: string;
|
|
1459
|
-
readonly bytes: number;
|
|
1460
|
-
readonly contentType: string;
|
|
1461
|
-
readonly url: string;
|
|
1462
|
-
}[];
|
|
1463
|
-
};
|
|
1464
|
-
readonly source: {
|
|
1465
|
-
readonly commitSha: string;
|
|
1466
|
-
readonly treeSha: string;
|
|
1467
|
-
readonly entryPath: string;
|
|
1468
|
-
readonly treeDigest: string;
|
|
1469
|
-
};
|
|
1470
|
-
readonly brand?: {
|
|
1471
|
-
readonly slug: string;
|
|
1472
|
-
readonly css: string;
|
|
1473
|
-
readonly assets: {
|
|
1474
|
-
readonly logoUrl?: string | null;
|
|
1475
|
-
readonly logoDarkUrl?: string | null;
|
|
1476
|
-
readonly iconUrl?: string | null;
|
|
1477
|
-
};
|
|
1478
|
-
readonly footer: {
|
|
1479
|
-
readonly companyName?: string | null;
|
|
1480
|
-
readonly address?: {
|
|
1481
|
-
readonly street1: string;
|
|
1482
|
-
readonly street2?: string | null;
|
|
1483
|
-
readonly city: string;
|
|
1484
|
-
readonly region: string;
|
|
1485
|
-
readonly postalCode: string;
|
|
1486
|
-
readonly country: string;
|
|
1487
|
-
} | null;
|
|
1488
|
-
readonly socialLinks?: readonly {
|
|
1489
|
-
readonly label: string;
|
|
1490
|
-
readonly url: string;
|
|
1491
|
-
}[] | null;
|
|
1492
|
-
};
|
|
1493
|
-
readonly renderedFooter: {
|
|
1494
|
-
readonly withUnsubscribe: {
|
|
1495
|
-
readonly html: string;
|
|
1496
|
-
readonly text: string;
|
|
1497
|
-
readonly headCss?: string | null;
|
|
1498
|
-
};
|
|
1499
|
-
readonly withoutUnsubscribe: {
|
|
1500
|
-
readonly html: string;
|
|
1501
|
-
readonly text: string;
|
|
1502
|
-
readonly headCss?: string | null;
|
|
1503
|
-
};
|
|
1504
|
-
};
|
|
1505
|
-
readonly digest: string;
|
|
1506
|
-
readonly rendersFooter: "every" | "none" | "some";
|
|
1507
|
-
};
|
|
1508
|
-
};
|
|
1509
|
-
readonly ir: {
|
|
1510
|
-
readonly key: string;
|
|
1511
|
-
readonly digest: string;
|
|
1512
|
-
};
|
|
1513
|
-
readonly assets: readonly {
|
|
1514
|
-
readonly path: string;
|
|
1515
|
-
readonly fileName: string;
|
|
1516
|
-
readonly digest: string;
|
|
1517
|
-
readonly bytes: number;
|
|
1518
|
-
readonly contentType: string;
|
|
1519
|
-
readonly url: string;
|
|
1520
|
-
}[];
|
|
1521
|
-
readonly warnings: readonly {
|
|
1522
|
-
readonly code: string;
|
|
1523
|
-
readonly severity: "error" | "info" | "warning";
|
|
1524
|
-
readonly message: string;
|
|
1525
|
-
readonly origins: readonly {
|
|
1526
|
-
readonly fileName: string;
|
|
1527
|
-
readonly lineNumber: number;
|
|
1528
|
-
readonly columnNumber: number;
|
|
1529
|
-
}[];
|
|
1530
|
-
readonly clients?: readonly string[] | null;
|
|
1531
|
-
readonly notes?: string | null;
|
|
1532
|
-
readonly provenance?: string | null;
|
|
1533
|
-
readonly fixtures?: readonly string[] | null;
|
|
1534
|
-
readonly occurrences?: readonly (readonly {
|
|
1535
|
-
readonly fileName: string;
|
|
1536
|
-
readonly lineNumber: number;
|
|
1537
|
-
readonly columnNumber: number;
|
|
1538
|
-
}[])[] | null;
|
|
1539
|
-
readonly compatibility?: {
|
|
1540
|
-
readonly assessment: "degradation" | "not-applicable" | "risk" | "unverified";
|
|
1541
|
-
readonly title: string;
|
|
1542
|
-
} | null;
|
|
1543
|
-
}[];
|
|
1544
|
-
readonly incompatibilities: readonly {
|
|
1545
|
-
readonly code: string;
|
|
1546
|
-
readonly severity: "error" | "info" | "warning";
|
|
1547
|
-
readonly message: string;
|
|
1548
|
-
readonly origins: readonly {
|
|
1549
|
-
readonly fileName: string;
|
|
1550
|
-
readonly lineNumber: number;
|
|
1551
|
-
readonly columnNumber: number;
|
|
1552
|
-
}[];
|
|
1553
|
-
readonly clients?: readonly string[] | null;
|
|
1554
|
-
readonly notes?: string | null;
|
|
1555
|
-
readonly provenance?: string | null;
|
|
1556
|
-
readonly fixtures?: readonly string[] | null;
|
|
1557
|
-
readonly occurrences?: readonly (readonly {
|
|
1558
|
-
readonly fileName: string;
|
|
1559
|
-
readonly lineNumber: number;
|
|
1560
|
-
readonly columnNumber: number;
|
|
1561
|
-
}[])[] | null;
|
|
1562
|
-
readonly compatibility?: {
|
|
1563
|
-
readonly assessment: "degradation" | "not-applicable" | "risk" | "unverified";
|
|
1564
|
-
readonly title: string;
|
|
1565
|
-
} | null;
|
|
1566
|
-
}[];
|
|
1567
|
-
readonly status: string;
|
|
1568
|
-
readonly publishedAt: string;
|
|
1569
|
-
readonly publishedBy: string | null;
|
|
1570
|
-
readonly createdAt: string;
|
|
1571
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
295
|
+
}) => import("./internal/operation").OperationResult<"templatesPublish">;
|
|
1572
296
|
export declare const getPublication: (input: {
|
|
1573
297
|
readonly id: string;
|
|
1574
298
|
readonly publicationId: string;
|
|
1575
|
-
}) => import("
|
|
1576
|
-
readonly id: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
1577
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
1578
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
1579
|
-
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1580
|
-
readonly inputContractId: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
1581
|
-
readonly commitSha: string;
|
|
1582
|
-
readonly treeSha: string;
|
|
1583
|
-
readonly entryPath: string;
|
|
1584
|
-
readonly buildIdentity: string;
|
|
1585
|
-
readonly manifest: {
|
|
1586
|
-
readonly templateKey: string;
|
|
1587
|
-
readonly ir: {
|
|
1588
|
-
readonly version: number;
|
|
1589
|
-
readonly digest: string;
|
|
1590
|
-
readonly bytes: number;
|
|
1591
|
-
};
|
|
1592
|
-
readonly compiler: string;
|
|
1593
|
-
readonly input: {
|
|
1594
|
-
readonly schemaDigest: string;
|
|
1595
|
-
readonly contractDigest: string;
|
|
1596
|
-
};
|
|
1597
|
-
readonly assets: {
|
|
1598
|
-
readonly base: string;
|
|
1599
|
-
readonly entries: readonly {
|
|
1600
|
-
readonly path: string;
|
|
1601
|
-
readonly fileName: string;
|
|
1602
|
-
readonly digest: string;
|
|
1603
|
-
readonly bytes: number;
|
|
1604
|
-
readonly contentType: string;
|
|
1605
|
-
readonly url: string;
|
|
1606
|
-
}[];
|
|
1607
|
-
};
|
|
1608
|
-
readonly source: {
|
|
1609
|
-
readonly commitSha: string;
|
|
1610
|
-
readonly treeSha: string;
|
|
1611
|
-
readonly entryPath: string;
|
|
1612
|
-
readonly treeDigest: string;
|
|
1613
|
-
};
|
|
1614
|
-
readonly brand?: {
|
|
1615
|
-
readonly slug: string;
|
|
1616
|
-
readonly css: string;
|
|
1617
|
-
readonly assets: {
|
|
1618
|
-
readonly logoUrl?: string | null;
|
|
1619
|
-
readonly logoDarkUrl?: string | null;
|
|
1620
|
-
readonly iconUrl?: string | null;
|
|
1621
|
-
};
|
|
1622
|
-
readonly footer: {
|
|
1623
|
-
readonly companyName?: string | null;
|
|
1624
|
-
readonly address?: {
|
|
1625
|
-
readonly street1: string;
|
|
1626
|
-
readonly street2?: string | null;
|
|
1627
|
-
readonly city: string;
|
|
1628
|
-
readonly region: string;
|
|
1629
|
-
readonly postalCode: string;
|
|
1630
|
-
readonly country: string;
|
|
1631
|
-
} | null;
|
|
1632
|
-
readonly socialLinks?: readonly {
|
|
1633
|
-
readonly label: string;
|
|
1634
|
-
readonly url: string;
|
|
1635
|
-
}[] | null;
|
|
1636
|
-
};
|
|
1637
|
-
readonly renderedFooter: {
|
|
1638
|
-
readonly withUnsubscribe: {
|
|
1639
|
-
readonly html: string;
|
|
1640
|
-
readonly text: string;
|
|
1641
|
-
readonly headCss?: string | null;
|
|
1642
|
-
};
|
|
1643
|
-
readonly withoutUnsubscribe: {
|
|
1644
|
-
readonly html: string;
|
|
1645
|
-
readonly text: string;
|
|
1646
|
-
readonly headCss?: string | null;
|
|
1647
|
-
};
|
|
1648
|
-
};
|
|
1649
|
-
readonly digest: string;
|
|
1650
|
-
readonly rendersFooter: "every" | "none" | "some";
|
|
1651
|
-
};
|
|
1652
|
-
};
|
|
1653
|
-
readonly ir: {
|
|
1654
|
-
readonly key: string;
|
|
1655
|
-
readonly digest: string;
|
|
1656
|
-
};
|
|
1657
|
-
readonly assets: readonly {
|
|
1658
|
-
readonly path: string;
|
|
1659
|
-
readonly fileName: string;
|
|
1660
|
-
readonly digest: string;
|
|
1661
|
-
readonly bytes: number;
|
|
1662
|
-
readonly contentType: string;
|
|
1663
|
-
readonly url: string;
|
|
1664
|
-
}[];
|
|
1665
|
-
readonly warnings: readonly {
|
|
1666
|
-
readonly code: string;
|
|
1667
|
-
readonly severity: "error" | "info" | "warning";
|
|
1668
|
-
readonly message: string;
|
|
1669
|
-
readonly origins: readonly {
|
|
1670
|
-
readonly fileName: string;
|
|
1671
|
-
readonly lineNumber: number;
|
|
1672
|
-
readonly columnNumber: number;
|
|
1673
|
-
}[];
|
|
1674
|
-
readonly clients?: readonly string[] | null;
|
|
1675
|
-
readonly notes?: string | null;
|
|
1676
|
-
readonly provenance?: string | null;
|
|
1677
|
-
readonly fixtures?: readonly string[] | null;
|
|
1678
|
-
readonly occurrences?: readonly (readonly {
|
|
1679
|
-
readonly fileName: string;
|
|
1680
|
-
readonly lineNumber: number;
|
|
1681
|
-
readonly columnNumber: number;
|
|
1682
|
-
}[])[] | null;
|
|
1683
|
-
readonly compatibility?: {
|
|
1684
|
-
readonly assessment: "degradation" | "not-applicable" | "risk" | "unverified";
|
|
1685
|
-
readonly title: string;
|
|
1686
|
-
} | null;
|
|
1687
|
-
}[];
|
|
1688
|
-
readonly incompatibilities: readonly {
|
|
1689
|
-
readonly code: string;
|
|
1690
|
-
readonly severity: "error" | "info" | "warning";
|
|
1691
|
-
readonly message: string;
|
|
1692
|
-
readonly origins: readonly {
|
|
1693
|
-
readonly fileName: string;
|
|
1694
|
-
readonly lineNumber: number;
|
|
1695
|
-
readonly columnNumber: number;
|
|
1696
|
-
}[];
|
|
1697
|
-
readonly clients?: readonly string[] | null;
|
|
1698
|
-
readonly notes?: string | null;
|
|
1699
|
-
readonly provenance?: string | null;
|
|
1700
|
-
readonly fixtures?: readonly string[] | null;
|
|
1701
|
-
readonly occurrences?: readonly (readonly {
|
|
1702
|
-
readonly fileName: string;
|
|
1703
|
-
readonly lineNumber: number;
|
|
1704
|
-
readonly columnNumber: number;
|
|
1705
|
-
}[])[] | null;
|
|
1706
|
-
readonly compatibility?: {
|
|
1707
|
-
readonly assessment: "degradation" | "not-applicable" | "risk" | "unverified";
|
|
1708
|
-
readonly title: string;
|
|
1709
|
-
} | null;
|
|
1710
|
-
}[];
|
|
1711
|
-
readonly status: string;
|
|
1712
|
-
readonly publishedAt: string;
|
|
1713
|
-
readonly publishedBy: string | null;
|
|
1714
|
-
readonly createdAt: string;
|
|
1715
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
299
|
+
}) => import("./internal/operation").OperationResult<"templatesGetPublication">;
|
|
1716
300
|
export declare const renderPublication: (input: {
|
|
1717
301
|
readonly id: string;
|
|
1718
302
|
readonly publicationId: string;
|
|
@@ -1745,30 +329,12 @@ export declare const renderPublication: (input: {
|
|
|
1745
329
|
};
|
|
1746
330
|
readonly locale?: string | undefined;
|
|
1747
331
|
readonly timeZone?: string | undefined;
|
|
1748
|
-
}) => import("
|
|
1749
|
-
readonly subject: string;
|
|
1750
|
-
readonly preheader?: string;
|
|
1751
|
-
readonly html: string;
|
|
1752
|
-
readonly text: string;
|
|
1753
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
332
|
+
}) => import("./internal/operation").OperationResult<"templatesRenderPublication">;
|
|
1754
333
|
export declare const listInputContracts: ((input: {
|
|
1755
334
|
readonly id: string;
|
|
1756
335
|
readonly limit?: string | null | undefined;
|
|
1757
336
|
readonly cursor?: string | null | undefined;
|
|
1758
|
-
}) => import("
|
|
1759
|
-
readonly items: readonly {
|
|
1760
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
1761
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
1762
|
-
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1763
|
-
readonly version: number;
|
|
1764
|
-
readonly validationDigest: string;
|
|
1765
|
-
readonly schema: {
|
|
1766
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1767
|
-
};
|
|
1768
|
-
readonly createdAt: string;
|
|
1769
|
-
}[];
|
|
1770
|
-
readonly nextCursor: string | null;
|
|
1771
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
337
|
+
}) => import("./internal/operation").OperationResult<"templatesListInputContracts">) & {
|
|
1772
338
|
readonly pages: (input: {
|
|
1773
339
|
readonly id: string;
|
|
1774
340
|
readonly limit?: string | null | undefined;
|
|
@@ -1806,50 +372,12 @@ export declare const listInputContracts: ((input: {
|
|
|
1806
372
|
export declare const getInputContract: (input: {
|
|
1807
373
|
readonly id: string;
|
|
1808
374
|
readonly inputContractId: string;
|
|
1809
|
-
}) => import("
|
|
1810
|
-
readonly id: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
1811
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
1812
|
-
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1813
|
-
readonly version: number;
|
|
1814
|
-
readonly validationDigest: string;
|
|
1815
|
-
readonly schema: {
|
|
1816
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1817
|
-
};
|
|
1818
|
-
readonly createdAt: string;
|
|
1819
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
375
|
+
}) => import("./internal/operation").OperationResult<"templatesGetInputContract">;
|
|
1820
376
|
export declare const diffWorkspace: (input: {
|
|
1821
377
|
readonly id: string;
|
|
1822
378
|
readonly expectedRevision: string;
|
|
1823
|
-
}) => import("
|
|
1824
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
1825
|
-
readonly baseCommit: string;
|
|
1826
|
-
readonly revision: string;
|
|
1827
|
-
readonly changes: readonly {
|
|
1828
|
-
readonly path: string;
|
|
1829
|
-
readonly before: string | null;
|
|
1830
|
-
readonly after: string | null;
|
|
1831
|
-
readonly status: "added" | "deleted" | "modified";
|
|
1832
|
-
}[];
|
|
1833
|
-
readonly assetChanges: readonly {
|
|
1834
|
-
readonly path: string;
|
|
1835
|
-
readonly status: "added" | "deleted" | "modified";
|
|
1836
|
-
}[];
|
|
1837
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
379
|
+
}) => import("./internal/operation").OperationResult<"templatesDiffWorkspace">;
|
|
1838
380
|
export declare const workspaceHistory: (input: {
|
|
1839
381
|
readonly id: string;
|
|
1840
382
|
readonly limit?: string | null | undefined;
|
|
1841
|
-
}) => import("
|
|
1842
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
1843
|
-
readonly head: string;
|
|
1844
|
-
readonly commits: readonly {
|
|
1845
|
-
readonly commit: string;
|
|
1846
|
-
readonly tree: string;
|
|
1847
|
-
readonly parentCommit: string | null;
|
|
1848
|
-
readonly message: string;
|
|
1849
|
-
readonly committedAt: string;
|
|
1850
|
-
}[];
|
|
1851
|
-
readonly publication: {
|
|
1852
|
-
readonly id: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
1853
|
-
readonly commit: string;
|
|
1854
|
-
} | null;
|
|
1855
|
-
}, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
383
|
+
}) => import("./internal/operation").OperationResult<"templatesWorkspaceHistory">;
|