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