samva 0.9.0 → 0.11.0
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 +60 -10
- package/dist/client/sdk.gen.d.ts +1106 -215
- package/dist/client/types.gen.d.ts +11554 -6343
- package/dist/{client-DB7zbTti.js → client-8YXjfsVc.js} +6492 -3068
- package/dist/{client-attribution-vK1yjEdG.js → client-attribution-Ct2FKITg.js} +2 -2
- package/dist/effect/analytics.d.ts +18 -18
- package/dist/effect/analytics.js +1 -1
- package/dist/effect/api-keys.d.ts +100 -44
- package/dist/effect/api-keys.js +2 -4
- package/dist/effect/attachments.d.ts +5 -6
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +2 -2
- package/dist/effect/campaigns.d.ts +33 -63
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contact-groups.d.ts +33 -50
- package/dist/effect/contact-groups.js +1 -1
- package/dist/effect/contacts.d.ts +327 -729
- package/dist/effect/contacts.js +10 -2
- package/dist/effect/conversations.d.ts +579 -1134
- package/dist/effect/conversations.js +14 -2
- package/dist/effect/custom-fields.d.ts +5 -55
- package/dist/effect/custom-fields.js +1 -1
- package/dist/effect/email.d.ts +283 -317
- package/dist/effect/email.js +5 -3
- package/dist/effect/extension-installations.d.ts +218 -0
- package/dist/effect/extension-installations.js +25 -0
- package/dist/effect/extensions.d.ts +192 -0
- package/dist/effect/extensions.js +19 -0
- package/dist/effect/feedback.d.ts +12 -0
- package/dist/effect/feedback.js +13 -0
- package/dist/effect/generated.d.ts +31383 -14386
- package/dist/effect/index.d.ts +6 -1
- package/dist/effect/index.js +7 -2
- package/dist/effect/internal/client.d.ts +5 -2
- package/dist/effect/internal/mailbox-events.d.ts +11 -0
- package/dist/effect/internal/operation.d.ts +23 -377
- package/dist/effect/mailboxes.d.ts +1676 -0
- package/dist/effect/mailboxes.js +3 -0
- package/dist/effect/media.d.ts +9 -9
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +173 -940
- package/dist/effect/messages.js +6 -2
- package/dist/effect/namespaces.d.ts +82 -0
- package/dist/effect/namespaces.js +19 -0
- package/dist/effect/operations.d.ts +68 -12
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +8 -7
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/pagination.d.ts +16 -21
- package/dist/effect/scheduled-messages.d.ts +15 -25
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +213 -290
- package/dist/effect/templates.js +2 -2
- package/dist/effect/unsubscribe-groups.d.ts +22 -76
- package/dist/effect/unsubscribe-groups.js +1 -1
- package/dist/effect/webhooks.d.ts +119 -41
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +3 -2
- package/dist/mailbox-events-CcWm8lO4.js +617 -0
- package/dist/mailbox-events.d.ts +175 -0
- package/dist/mailboxes-4gJMAJh4.js +147 -0
- package/dist/{operation-Cdp1EI_1.js → operation-BuyvAsZ1.js} +403 -67
- package/dist/promises/errors.gen.d.ts +5 -0
- package/dist/promises/index.d.ts +23 -1
- package/dist/promises/index.js +3 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-DoEUUjNM.js → promises-CqAmI39P.js} +3242 -556
- package/dist/service-map.d.ts +458 -36
- package/package.json +28 -8
|
@@ -1,191 +1,106 @@
|
|
|
1
1
|
export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as UpdatePayload, } from "./generated";
|
|
2
2
|
export declare const list: ((input?: {
|
|
3
|
-
readonly page?: string | null | undefined;
|
|
4
3
|
readonly limit?: string | null | undefined;
|
|
4
|
+
readonly cursor?: string | null | undefined;
|
|
5
5
|
readonly category?: string | null | undefined;
|
|
6
6
|
readonly channel?: string | null | undefined;
|
|
7
7
|
readonly status?: string | null | undefined;
|
|
8
8
|
readonly search?: string | null | undefined;
|
|
9
9
|
readonly projectId?: string | null | undefined;
|
|
10
|
-
readonly sortBy?: string | null | undefined;
|
|
11
|
-
readonly sortOrder?: string | null | undefined;
|
|
12
10
|
} | undefined) => import("effect/Effect").Effect<{
|
|
13
11
|
readonly items: readonly {
|
|
14
12
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
15
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
16
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
17
|
-
readonly entryPath: string;
|
|
18
|
-
readonly name: string;
|
|
19
13
|
readonly slug: string;
|
|
20
|
-
readonly
|
|
14
|
+
readonly name: string;
|
|
21
15
|
readonly channel: "email";
|
|
22
|
-
readonly
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} | null;
|
|
28
|
-
readonly replyToDefault?: readonly string[] | null;
|
|
29
|
-
readonly trackingDefault?: {
|
|
30
|
-
readonly opens?: boolean | null;
|
|
31
|
-
readonly clicks?: boolean | null;
|
|
32
|
-
} | null;
|
|
33
|
-
readonly email: {
|
|
34
|
-
readonly subject: string;
|
|
35
|
-
readonly preheader: string | null;
|
|
36
|
-
readonly headers: {
|
|
37
|
-
readonly [x: string]: string;
|
|
38
|
-
} | null;
|
|
39
|
-
} | null;
|
|
40
|
-
readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
|
|
16
|
+
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
17
|
+
readonly entryPath: string;
|
|
18
|
+
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
19
|
+
readonly isActive: boolean;
|
|
20
|
+
readonly publishedAt: string | null;
|
|
41
21
|
readonly brand: {
|
|
42
22
|
readonly slug: string;
|
|
43
23
|
readonly digest: string;
|
|
44
24
|
readonly stale: boolean;
|
|
45
25
|
} | null;
|
|
46
|
-
readonly
|
|
47
|
-
|
|
48
|
-
readonly
|
|
26
|
+
readonly fromDefault: {
|
|
27
|
+
readonly email: string;
|
|
28
|
+
readonly name?: string | null;
|
|
49
29
|
} | null;
|
|
50
30
|
readonly usageCount: number;
|
|
51
31
|
readonly lastUsedAt: string | null;
|
|
52
|
-
readonly status: string;
|
|
53
|
-
readonly isActive: boolean;
|
|
54
|
-
readonly isDefault: boolean;
|
|
55
|
-
readonly publishedAt?: string | null;
|
|
56
|
-
readonly publishedBy?: string | null;
|
|
57
32
|
readonly createdAt: string;
|
|
58
33
|
readonly updatedAt: string;
|
|
59
34
|
}[];
|
|
60
|
-
readonly
|
|
61
|
-
|
|
62
|
-
readonly limit: number;
|
|
63
|
-
readonly total: number;
|
|
64
|
-
readonly totalPages: number;
|
|
65
|
-
};
|
|
66
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
35
|
+
readonly nextCursor: string | null;
|
|
36
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>) & {
|
|
67
37
|
readonly pages: (input?: {
|
|
68
|
-
readonly page?: string | null | undefined;
|
|
69
38
|
readonly limit?: string | null | undefined;
|
|
39
|
+
readonly cursor?: string | null | undefined;
|
|
70
40
|
readonly category?: string | null | undefined;
|
|
71
41
|
readonly channel?: string | null | undefined;
|
|
72
42
|
readonly status?: string | null | undefined;
|
|
73
43
|
readonly search?: string | null | undefined;
|
|
74
44
|
readonly projectId?: string | null | undefined;
|
|
75
|
-
readonly sortBy?: string | null | undefined;
|
|
76
|
-
readonly sortOrder?: string | null | undefined;
|
|
77
45
|
} | undefined) => import("effect/Stream").Stream<{
|
|
78
46
|
readonly items: readonly {
|
|
79
47
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
80
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
81
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
82
|
-
readonly entryPath: string;
|
|
83
|
-
readonly name: string;
|
|
84
48
|
readonly slug: string;
|
|
85
|
-
readonly
|
|
49
|
+
readonly name: string;
|
|
86
50
|
readonly channel: "email";
|
|
87
|
-
readonly
|
|
88
|
-
readonly
|
|
89
|
-
readonly
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
} | null;
|
|
93
|
-
readonly replyToDefault?: readonly string[] | null;
|
|
94
|
-
readonly trackingDefault?: {
|
|
95
|
-
readonly opens?: boolean | null;
|
|
96
|
-
readonly clicks?: boolean | null;
|
|
97
|
-
} | null;
|
|
98
|
-
readonly email: {
|
|
99
|
-
readonly subject: string;
|
|
100
|
-
readonly preheader: string | null;
|
|
101
|
-
readonly headers: {
|
|
102
|
-
readonly [x: string]: string;
|
|
103
|
-
} | null;
|
|
104
|
-
} | null;
|
|
105
|
-
readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
|
|
51
|
+
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
52
|
+
readonly entryPath: string;
|
|
53
|
+
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
54
|
+
readonly isActive: boolean;
|
|
55
|
+
readonly publishedAt: string | null;
|
|
106
56
|
readonly brand: {
|
|
107
57
|
readonly slug: string;
|
|
108
58
|
readonly digest: string;
|
|
109
59
|
readonly stale: boolean;
|
|
110
60
|
} | null;
|
|
111
|
-
readonly
|
|
112
|
-
|
|
113
|
-
readonly
|
|
61
|
+
readonly fromDefault: {
|
|
62
|
+
readonly email: string;
|
|
63
|
+
readonly name?: string | null;
|
|
114
64
|
} | null;
|
|
115
65
|
readonly usageCount: number;
|
|
116
66
|
readonly lastUsedAt: string | null;
|
|
117
|
-
readonly status: string;
|
|
118
|
-
readonly isActive: boolean;
|
|
119
|
-
readonly isDefault: boolean;
|
|
120
|
-
readonly publishedAt?: string | null;
|
|
121
|
-
readonly publishedBy?: string | null;
|
|
122
67
|
readonly createdAt: string;
|
|
123
68
|
readonly updatedAt: string;
|
|
124
69
|
}[];
|
|
125
|
-
readonly
|
|
126
|
-
|
|
127
|
-
readonly limit: number;
|
|
128
|
-
readonly total: number;
|
|
129
|
-
readonly totalPages: number;
|
|
130
|
-
};
|
|
131
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
70
|
+
readonly nextCursor: string | null;
|
|
71
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
132
72
|
readonly items: (input?: {
|
|
133
|
-
readonly page?: string | null | undefined;
|
|
134
73
|
readonly limit?: string | null | undefined;
|
|
74
|
+
readonly cursor?: string | null | undefined;
|
|
135
75
|
readonly category?: string | null | undefined;
|
|
136
76
|
readonly channel?: string | null | undefined;
|
|
137
77
|
readonly status?: string | null | undefined;
|
|
138
78
|
readonly search?: string | null | undefined;
|
|
139
79
|
readonly projectId?: string | null | undefined;
|
|
140
|
-
readonly sortBy?: string | null | undefined;
|
|
141
|
-
readonly sortOrder?: string | null | undefined;
|
|
142
80
|
} | undefined) => import("effect/Stream").Stream<{
|
|
143
81
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
144
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
145
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
146
|
-
readonly entryPath: string;
|
|
147
|
-
readonly name: string;
|
|
148
82
|
readonly slug: string;
|
|
149
|
-
readonly
|
|
83
|
+
readonly name: string;
|
|
150
84
|
readonly channel: "email";
|
|
151
|
-
readonly
|
|
152
|
-
readonly
|
|
153
|
-
readonly
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
} | 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;
|
|
85
|
+
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
86
|
+
readonly entryPath: string;
|
|
87
|
+
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
88
|
+
readonly isActive: boolean;
|
|
89
|
+
readonly publishedAt: string | null;
|
|
170
90
|
readonly brand: {
|
|
171
91
|
readonly slug: string;
|
|
172
92
|
readonly digest: string;
|
|
173
93
|
readonly stale: boolean;
|
|
174
94
|
} | null;
|
|
175
|
-
readonly
|
|
176
|
-
|
|
177
|
-
readonly
|
|
95
|
+
readonly fromDefault: {
|
|
96
|
+
readonly email: string;
|
|
97
|
+
readonly name?: string | null;
|
|
178
98
|
} | null;
|
|
179
99
|
readonly usageCount: number;
|
|
180
100
|
readonly lastUsedAt: string | null;
|
|
181
|
-
readonly status: string;
|
|
182
|
-
readonly isActive: boolean;
|
|
183
|
-
readonly isDefault: boolean;
|
|
184
|
-
readonly publishedAt?: string | null;
|
|
185
|
-
readonly publishedBy?: string | null;
|
|
186
101
|
readonly createdAt: string;
|
|
187
102
|
readonly updatedAt: string;
|
|
188
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
103
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
189
104
|
};
|
|
190
105
|
export declare const create: (input: {
|
|
191
106
|
readonly name: string;
|
|
@@ -199,21 +114,32 @@ export declare const create: (input: {
|
|
|
199
114
|
readonly idempotencyKey: string;
|
|
200
115
|
}) => import("effect/Effect").Effect<{
|
|
201
116
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
202
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
203
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
204
|
-
readonly entryPath: string;
|
|
205
|
-
readonly name: string;
|
|
206
117
|
readonly slug: string;
|
|
207
|
-
readonly
|
|
118
|
+
readonly name: string;
|
|
208
119
|
readonly channel: "email";
|
|
209
|
-
readonly
|
|
210
|
-
readonly
|
|
211
|
-
readonly
|
|
120
|
+
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
121
|
+
readonly entryPath: string;
|
|
122
|
+
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
123
|
+
readonly isActive: boolean;
|
|
124
|
+
readonly publishedAt: string | null;
|
|
125
|
+
readonly brand: {
|
|
126
|
+
readonly slug: string;
|
|
127
|
+
readonly digest: string;
|
|
128
|
+
readonly stale: boolean;
|
|
129
|
+
} | null;
|
|
130
|
+
readonly fromDefault: {
|
|
212
131
|
readonly email: string;
|
|
213
132
|
readonly name?: string | null;
|
|
214
133
|
} | null;
|
|
215
|
-
readonly
|
|
216
|
-
readonly
|
|
134
|
+
readonly usageCount: number;
|
|
135
|
+
readonly lastUsedAt: string | null;
|
|
136
|
+
readonly createdAt: string;
|
|
137
|
+
readonly updatedAt: string;
|
|
138
|
+
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
139
|
+
readonly description: string | null;
|
|
140
|
+
readonly category: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null;
|
|
141
|
+
readonly replyToDefault: readonly string[] | null;
|
|
142
|
+
readonly trackingDefault: {
|
|
217
143
|
readonly opens?: boolean | null;
|
|
218
144
|
readonly clicks?: boolean | null;
|
|
219
145
|
} | null;
|
|
@@ -225,27 +151,13 @@ export declare const create: (input: {
|
|
|
225
151
|
} | null;
|
|
226
152
|
} | null;
|
|
227
153
|
readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
|
|
228
|
-
readonly brand: {
|
|
229
|
-
readonly slug: string;
|
|
230
|
-
readonly digest: string;
|
|
231
|
-
readonly stale: boolean;
|
|
232
|
-
} | null;
|
|
233
154
|
readonly inputContractId: (string & import("effect/Brand").Brand<"TemplateInputContractId">) | null;
|
|
234
155
|
readonly inputSchema: {
|
|
235
156
|
readonly [x: string]: import("./generated").JsonValue;
|
|
236
157
|
} | null;
|
|
237
|
-
|
|
238
|
-
readonly lastUsedAt: string | null;
|
|
239
|
-
readonly status: string;
|
|
240
|
-
readonly isActive: boolean;
|
|
241
|
-
readonly isDefault: boolean;
|
|
242
|
-
readonly publishedAt?: string | null;
|
|
243
|
-
readonly publishedBy?: string | null;
|
|
244
|
-
readonly createdAt: string;
|
|
245
|
-
readonly updatedAt: string;
|
|
246
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
158
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
247
159
|
export declare const addEntry: (input: {
|
|
248
|
-
readonly
|
|
160
|
+
readonly id: string;
|
|
249
161
|
readonly entryPath: string;
|
|
250
162
|
readonly name: string;
|
|
251
163
|
readonly slug: string;
|
|
@@ -253,21 +165,32 @@ export declare const addEntry: (input: {
|
|
|
253
165
|
readonly category?: string | null | undefined;
|
|
254
166
|
}) => import("effect/Effect").Effect<{
|
|
255
167
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
256
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
257
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
258
|
-
readonly entryPath: string;
|
|
259
|
-
readonly name: string;
|
|
260
168
|
readonly slug: string;
|
|
261
|
-
readonly
|
|
169
|
+
readonly name: string;
|
|
262
170
|
readonly channel: "email";
|
|
263
|
-
readonly
|
|
264
|
-
readonly
|
|
265
|
-
readonly
|
|
171
|
+
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
172
|
+
readonly entryPath: string;
|
|
173
|
+
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
174
|
+
readonly isActive: boolean;
|
|
175
|
+
readonly publishedAt: string | null;
|
|
176
|
+
readonly brand: {
|
|
177
|
+
readonly slug: string;
|
|
178
|
+
readonly digest: string;
|
|
179
|
+
readonly stale: boolean;
|
|
180
|
+
} | null;
|
|
181
|
+
readonly fromDefault: {
|
|
266
182
|
readonly email: string;
|
|
267
183
|
readonly name?: string | null;
|
|
268
184
|
} | null;
|
|
269
|
-
readonly
|
|
270
|
-
readonly
|
|
185
|
+
readonly usageCount: number;
|
|
186
|
+
readonly lastUsedAt: string | null;
|
|
187
|
+
readonly createdAt: string;
|
|
188
|
+
readonly updatedAt: string;
|
|
189
|
+
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
190
|
+
readonly description: string | null;
|
|
191
|
+
readonly category: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null;
|
|
192
|
+
readonly replyToDefault: readonly string[] | null;
|
|
193
|
+
readonly trackingDefault: {
|
|
271
194
|
readonly opens?: boolean | null;
|
|
272
195
|
readonly clicks?: boolean | null;
|
|
273
196
|
} | null;
|
|
@@ -279,32 +202,17 @@ export declare const addEntry: (input: {
|
|
|
279
202
|
} | null;
|
|
280
203
|
} | null;
|
|
281
204
|
readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
|
|
282
|
-
readonly brand: {
|
|
283
|
-
readonly slug: string;
|
|
284
|
-
readonly digest: string;
|
|
285
|
-
readonly stale: boolean;
|
|
286
|
-
} | null;
|
|
287
205
|
readonly inputContractId: (string & import("effect/Brand").Brand<"TemplateInputContractId">) | null;
|
|
288
206
|
readonly inputSchema: {
|
|
289
207
|
readonly [x: string]: import("./generated").JsonValue;
|
|
290
208
|
} | null;
|
|
291
|
-
|
|
292
|
-
readonly lastUsedAt: string | null;
|
|
293
|
-
readonly status: string;
|
|
294
|
-
readonly isActive: boolean;
|
|
295
|
-
readonly isDefault: boolean;
|
|
296
|
-
readonly publishedAt?: string | null;
|
|
297
|
-
readonly publishedBy?: string | null;
|
|
298
|
-
readonly createdAt: string;
|
|
299
|
-
readonly updatedAt: string;
|
|
300
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
209
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
301
210
|
export declare const listFamilies: ((input?: {
|
|
302
|
-
readonly page?: string | null | undefined;
|
|
303
211
|
readonly limit?: string | null | undefined;
|
|
212
|
+
readonly cursor?: string | null | undefined;
|
|
304
213
|
} | undefined) => import("effect/Effect").Effect<{
|
|
305
214
|
readonly items: readonly {
|
|
306
215
|
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
307
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
308
216
|
readonly name: string;
|
|
309
217
|
readonly members: readonly {
|
|
310
218
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
@@ -319,20 +227,14 @@ export declare const listFamilies: ((input?: {
|
|
|
319
227
|
readonly createdAt: string;
|
|
320
228
|
readonly updatedAt: string;
|
|
321
229
|
}[];
|
|
322
|
-
readonly
|
|
323
|
-
|
|
324
|
-
readonly limit: number;
|
|
325
|
-
readonly total: number;
|
|
326
|
-
readonly totalPages: number;
|
|
327
|
-
};
|
|
328
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
230
|
+
readonly nextCursor: string | null;
|
|
231
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>) & {
|
|
329
232
|
readonly pages: (input?: {
|
|
330
|
-
readonly page?: string | null | undefined;
|
|
331
233
|
readonly limit?: string | null | undefined;
|
|
234
|
+
readonly cursor?: string | null | undefined;
|
|
332
235
|
} | undefined) => import("effect/Stream").Stream<{
|
|
333
236
|
readonly items: readonly {
|
|
334
237
|
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
335
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
336
238
|
readonly name: string;
|
|
337
239
|
readonly members: readonly {
|
|
338
240
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
@@ -347,19 +249,13 @@ export declare const listFamilies: ((input?: {
|
|
|
347
249
|
readonly createdAt: string;
|
|
348
250
|
readonly updatedAt: string;
|
|
349
251
|
}[];
|
|
350
|
-
readonly
|
|
351
|
-
|
|
352
|
-
readonly limit: number;
|
|
353
|
-
readonly total: number;
|
|
354
|
-
readonly totalPages: number;
|
|
355
|
-
};
|
|
356
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
252
|
+
readonly nextCursor: string | null;
|
|
253
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
357
254
|
readonly items: (input?: {
|
|
358
|
-
readonly page?: string | null | undefined;
|
|
359
255
|
readonly limit?: string | null | undefined;
|
|
256
|
+
readonly cursor?: string | null | undefined;
|
|
360
257
|
} | undefined) => import("effect/Stream").Stream<{
|
|
361
258
|
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
362
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
363
259
|
readonly name: string;
|
|
364
260
|
readonly members: readonly {
|
|
365
261
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
@@ -373,13 +269,12 @@ export declare const listFamilies: ((input?: {
|
|
|
373
269
|
}[];
|
|
374
270
|
readonly createdAt: string;
|
|
375
271
|
readonly updatedAt: string;
|
|
376
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
272
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
377
273
|
};
|
|
378
274
|
export declare const createFamily: (input: {
|
|
379
275
|
readonly name: string;
|
|
380
276
|
}) => import("effect/Effect").Effect<{
|
|
381
277
|
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
382
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
383
278
|
readonly name: string;
|
|
384
279
|
readonly members: readonly {
|
|
385
280
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
@@ -393,12 +288,11 @@ export declare const createFamily: (input: {
|
|
|
393
288
|
}[];
|
|
394
289
|
readonly createdAt: string;
|
|
395
290
|
readonly updatedAt: string;
|
|
396
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
291
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
397
292
|
export declare const getFamily: (input: {
|
|
398
|
-
readonly
|
|
293
|
+
readonly id: string;
|
|
399
294
|
}) => import("effect/Effect").Effect<{
|
|
400
295
|
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
401
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
402
296
|
readonly name: string;
|
|
403
297
|
readonly members: readonly {
|
|
404
298
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
@@ -412,18 +306,17 @@ export declare const getFamily: (input: {
|
|
|
412
306
|
}[];
|
|
413
307
|
readonly createdAt: string;
|
|
414
308
|
readonly updatedAt: string;
|
|
415
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
309
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
416
310
|
export declare const deleteFamily: (input: {
|
|
417
|
-
readonly
|
|
311
|
+
readonly id: string;
|
|
418
312
|
}) => import("effect/Effect").Effect<{
|
|
419
313
|
readonly success: boolean;
|
|
420
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
314
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
421
315
|
export declare const renameFamily: (input: {
|
|
422
|
-
readonly
|
|
316
|
+
readonly id: string;
|
|
423
317
|
readonly name: string;
|
|
424
318
|
}) => import("effect/Effect").Effect<{
|
|
425
319
|
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
426
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
427
320
|
readonly name: string;
|
|
428
321
|
readonly members: readonly {
|
|
429
322
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
@@ -437,13 +330,12 @@ export declare const renameFamily: (input: {
|
|
|
437
330
|
}[];
|
|
438
331
|
readonly createdAt: string;
|
|
439
332
|
readonly updatedAt: string;
|
|
440
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
333
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
441
334
|
export declare const createFamilyFromTemplate: (input: {
|
|
442
335
|
readonly templateId: string;
|
|
443
336
|
readonly name: string;
|
|
444
337
|
}) => import("effect/Effect").Effect<{
|
|
445
338
|
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
446
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
447
339
|
readonly name: string;
|
|
448
340
|
readonly members: readonly {
|
|
449
341
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
@@ -457,13 +349,12 @@ export declare const createFamilyFromTemplate: (input: {
|
|
|
457
349
|
}[];
|
|
458
350
|
readonly createdAt: string;
|
|
459
351
|
readonly updatedAt: string;
|
|
460
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
352
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
461
353
|
export declare const attachFamilyMember: (input: {
|
|
462
|
-
readonly
|
|
354
|
+
readonly id: string;
|
|
463
355
|
readonly templateId: string;
|
|
464
356
|
}) => import("effect/Effect").Effect<{
|
|
465
357
|
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
466
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
467
358
|
readonly name: string;
|
|
468
359
|
readonly members: readonly {
|
|
469
360
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
@@ -477,13 +368,12 @@ export declare const attachFamilyMember: (input: {
|
|
|
477
368
|
}[];
|
|
478
369
|
readonly createdAt: string;
|
|
479
370
|
readonly updatedAt: string;
|
|
480
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
371
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
481
372
|
export declare const detachFamilyMember: (input: {
|
|
482
|
-
readonly
|
|
373
|
+
readonly id: string;
|
|
483
374
|
readonly templateId: string;
|
|
484
375
|
}) => import("effect/Effect").Effect<{
|
|
485
376
|
readonly id: string & import("effect/Brand").Brand<"TemplateFamilyId">;
|
|
486
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
487
377
|
readonly name: string;
|
|
488
378
|
readonly members: readonly {
|
|
489
379
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
@@ -497,26 +387,37 @@ export declare const detachFamilyMember: (input: {
|
|
|
497
387
|
}[];
|
|
498
388
|
readonly createdAt: string;
|
|
499
389
|
readonly updatedAt: string;
|
|
500
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
390
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
501
391
|
export declare const getById: (input: {
|
|
502
392
|
readonly id: string;
|
|
503
393
|
}) => import("effect/Effect").Effect<{
|
|
504
394
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
505
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
506
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
507
|
-
readonly entryPath: string;
|
|
508
|
-
readonly name: string;
|
|
509
395
|
readonly slug: string;
|
|
510
|
-
readonly
|
|
396
|
+
readonly name: string;
|
|
511
397
|
readonly channel: "email";
|
|
512
|
-
readonly
|
|
513
|
-
readonly
|
|
514
|
-
readonly
|
|
398
|
+
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
399
|
+
readonly entryPath: string;
|
|
400
|
+
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
401
|
+
readonly isActive: boolean;
|
|
402
|
+
readonly publishedAt: string | null;
|
|
403
|
+
readonly brand: {
|
|
404
|
+
readonly slug: string;
|
|
405
|
+
readonly digest: string;
|
|
406
|
+
readonly stale: boolean;
|
|
407
|
+
} | null;
|
|
408
|
+
readonly fromDefault: {
|
|
515
409
|
readonly email: string;
|
|
516
410
|
readonly name?: string | null;
|
|
517
411
|
} | null;
|
|
518
|
-
readonly
|
|
519
|
-
readonly
|
|
412
|
+
readonly usageCount: number;
|
|
413
|
+
readonly lastUsedAt: string | null;
|
|
414
|
+
readonly createdAt: string;
|
|
415
|
+
readonly updatedAt: string;
|
|
416
|
+
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
417
|
+
readonly description: string | null;
|
|
418
|
+
readonly category: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null;
|
|
419
|
+
readonly replyToDefault: readonly string[] | null;
|
|
420
|
+
readonly trackingDefault: {
|
|
520
421
|
readonly opens?: boolean | null;
|
|
521
422
|
readonly clicks?: boolean | null;
|
|
522
423
|
} | null;
|
|
@@ -528,30 +429,16 @@ export declare const getById: (input: {
|
|
|
528
429
|
} | null;
|
|
529
430
|
} | null;
|
|
530
431
|
readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
|
|
531
|
-
readonly brand: {
|
|
532
|
-
readonly slug: string;
|
|
533
|
-
readonly digest: string;
|
|
534
|
-
readonly stale: boolean;
|
|
535
|
-
} | null;
|
|
536
432
|
readonly inputContractId: (string & import("effect/Brand").Brand<"TemplateInputContractId">) | null;
|
|
537
433
|
readonly inputSchema: {
|
|
538
434
|
readonly [x: string]: import("./generated").JsonValue;
|
|
539
435
|
} | null;
|
|
540
|
-
|
|
541
|
-
readonly lastUsedAt: string | null;
|
|
542
|
-
readonly status: string;
|
|
543
|
-
readonly isActive: boolean;
|
|
544
|
-
readonly isDefault: boolean;
|
|
545
|
-
readonly publishedAt?: string | null;
|
|
546
|
-
readonly publishedBy?: string | null;
|
|
547
|
-
readonly createdAt: string;
|
|
548
|
-
readonly updatedAt: string;
|
|
549
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
436
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
550
437
|
export declare const remove: (input: {
|
|
551
438
|
readonly id: string;
|
|
552
439
|
}) => import("effect/Effect").Effect<{
|
|
553
440
|
readonly success: boolean;
|
|
554
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
441
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
555
442
|
export declare const update: (input: {
|
|
556
443
|
readonly id: string;
|
|
557
444
|
readonly data: {
|
|
@@ -569,21 +456,32 @@ export declare const update: (input: {
|
|
|
569
456
|
};
|
|
570
457
|
}) => import("effect/Effect").Effect<{
|
|
571
458
|
readonly id: string & import("effect/Brand").Brand<"TemplateId">;
|
|
572
|
-
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
573
|
-
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
574
|
-
readonly entryPath: string;
|
|
575
|
-
readonly name: string;
|
|
576
459
|
readonly slug: string;
|
|
577
|
-
readonly
|
|
460
|
+
readonly name: string;
|
|
578
461
|
readonly channel: "email";
|
|
579
|
-
readonly
|
|
580
|
-
readonly
|
|
581
|
-
readonly
|
|
462
|
+
readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
|
|
463
|
+
readonly entryPath: string;
|
|
464
|
+
readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
|
|
465
|
+
readonly isActive: boolean;
|
|
466
|
+
readonly publishedAt: string | null;
|
|
467
|
+
readonly brand: {
|
|
468
|
+
readonly slug: string;
|
|
469
|
+
readonly digest: string;
|
|
470
|
+
readonly stale: boolean;
|
|
471
|
+
} | null;
|
|
472
|
+
readonly fromDefault: {
|
|
582
473
|
readonly email: string;
|
|
583
474
|
readonly name?: string | null;
|
|
584
475
|
} | null;
|
|
585
|
-
readonly
|
|
586
|
-
readonly
|
|
476
|
+
readonly usageCount: number;
|
|
477
|
+
readonly lastUsedAt: string | null;
|
|
478
|
+
readonly createdAt: string;
|
|
479
|
+
readonly updatedAt: string;
|
|
480
|
+
readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
|
|
481
|
+
readonly description: string | null;
|
|
482
|
+
readonly category: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null;
|
|
483
|
+
readonly replyToDefault: readonly string[] | null;
|
|
484
|
+
readonly trackingDefault: {
|
|
587
485
|
readonly opens?: boolean | null;
|
|
588
486
|
readonly clicks?: boolean | null;
|
|
589
487
|
} | null;
|
|
@@ -595,25 +493,11 @@ export declare const update: (input: {
|
|
|
595
493
|
} | null;
|
|
596
494
|
} | null;
|
|
597
495
|
readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
|
|
598
|
-
readonly brand: {
|
|
599
|
-
readonly slug: string;
|
|
600
|
-
readonly digest: string;
|
|
601
|
-
readonly stale: boolean;
|
|
602
|
-
} | null;
|
|
603
496
|
readonly inputContractId: (string & import("effect/Brand").Brand<"TemplateInputContractId">) | null;
|
|
604
497
|
readonly inputSchema: {
|
|
605
498
|
readonly [x: string]: import("./generated").JsonValue;
|
|
606
499
|
} | null;
|
|
607
|
-
|
|
608
|
-
readonly lastUsedAt: string | null;
|
|
609
|
-
readonly status: string;
|
|
610
|
-
readonly isActive: boolean;
|
|
611
|
-
readonly isDefault: boolean;
|
|
612
|
-
readonly publishedAt?: string | null;
|
|
613
|
-
readonly publishedBy?: string | null;
|
|
614
|
-
readonly createdAt: string;
|
|
615
|
-
readonly updatedAt: string;
|
|
616
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
500
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
617
501
|
export declare const openWorkspace: (input: {
|
|
618
502
|
readonly id: string;
|
|
619
503
|
}) => import("effect/Effect").Effect<{
|
|
@@ -696,13 +580,13 @@ export declare const openWorkspace: (input: {
|
|
|
696
580
|
readonly files: {
|
|
697
581
|
readonly [x: string]: string;
|
|
698
582
|
};
|
|
699
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
583
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
700
584
|
export declare const getGitRepository: (input: {
|
|
701
585
|
readonly id: string;
|
|
702
586
|
}) => import("effect/Effect").Effect<{
|
|
703
587
|
readonly remote: string;
|
|
704
588
|
readonly defaultBranch: string;
|
|
705
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
589
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
706
590
|
export declare const issueGitCredential: (input: {
|
|
707
591
|
readonly id: string;
|
|
708
592
|
readonly scope: string;
|
|
@@ -711,7 +595,7 @@ export declare const issueGitCredential: (input: {
|
|
|
711
595
|
readonly username: "x-access-token";
|
|
712
596
|
readonly password: string;
|
|
713
597
|
readonly expiresAt: string;
|
|
714
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
598
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
715
599
|
export declare const patchWorkspace: (input: {
|
|
716
600
|
readonly id: string;
|
|
717
601
|
readonly expectedRevision: string;
|
|
@@ -800,7 +684,7 @@ export declare const patchWorkspace: (input: {
|
|
|
800
684
|
readonly files: {
|
|
801
685
|
readonly [x: string]: string;
|
|
802
686
|
};
|
|
803
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
687
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
804
688
|
export declare const putWorkspaceAsset: (input: {
|
|
805
689
|
readonly id: string;
|
|
806
690
|
readonly expectedRevision: string;
|
|
@@ -888,7 +772,7 @@ export declare const putWorkspaceAsset: (input: {
|
|
|
888
772
|
readonly files: {
|
|
889
773
|
readonly [x: string]: string;
|
|
890
774
|
};
|
|
891
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
775
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
892
776
|
export declare const resolveWorkspaceConflict: (input: {
|
|
893
777
|
readonly id: string;
|
|
894
778
|
readonly expectedRevision: string;
|
|
@@ -977,7 +861,7 @@ export declare const resolveWorkspaceConflict: (input: {
|
|
|
977
861
|
readonly files: {
|
|
978
862
|
readonly [x: string]: string;
|
|
979
863
|
};
|
|
980
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
864
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
981
865
|
export declare const attachWorkspaceResource: (input: {
|
|
982
866
|
readonly id: string;
|
|
983
867
|
readonly expectedRevision: string;
|
|
@@ -1066,7 +950,7 @@ export declare const attachWorkspaceResource: (input: {
|
|
|
1066
950
|
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
1067
951
|
readonly via: "agent" | "api" | "mcp";
|
|
1068
952
|
};
|
|
1069
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
953
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1070
954
|
export declare const removeWorkspaceResource: (input: {
|
|
1071
955
|
readonly id: string;
|
|
1072
956
|
readonly resourceId: string;
|
|
@@ -1147,7 +1031,7 @@ export declare const removeWorkspaceResource: (input: {
|
|
|
1147
1031
|
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
1148
1032
|
readonly via: "agent" | "api" | "mcp";
|
|
1149
1033
|
};
|
|
1150
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
1034
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1151
1035
|
export declare const restoreWorkspace: (input: {
|
|
1152
1036
|
readonly id: string;
|
|
1153
1037
|
readonly expectedRevision: string;
|
|
@@ -1239,7 +1123,7 @@ export declare const restoreWorkspace: (input: {
|
|
|
1239
1123
|
readonly digest: string;
|
|
1240
1124
|
readonly content: string;
|
|
1241
1125
|
};
|
|
1242
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
1126
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1243
1127
|
export declare const saveWorkspace: (input: {
|
|
1244
1128
|
readonly id: string;
|
|
1245
1129
|
readonly expectedRevision: string;
|
|
@@ -1300,7 +1184,7 @@ export declare const saveWorkspace: (input: {
|
|
|
1300
1184
|
readonly title: string;
|
|
1301
1185
|
} | null;
|
|
1302
1186
|
}[];
|
|
1303
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
1187
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1304
1188
|
export declare const checkWorkspace: (input: {
|
|
1305
1189
|
readonly id: string;
|
|
1306
1190
|
readonly expectedRevision: string;
|
|
@@ -1366,7 +1250,7 @@ export declare const checkWorkspace: (input: {
|
|
|
1366
1250
|
readonly title: string;
|
|
1367
1251
|
} | null;
|
|
1368
1252
|
}[];
|
|
1369
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
1253
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1370
1254
|
export declare const renderWorkspaceFixture: (input: {
|
|
1371
1255
|
readonly id: string;
|
|
1372
1256
|
readonly expectedRevision: string;
|
|
@@ -1455,7 +1339,7 @@ export declare const renderWorkspaceFixture: (input: {
|
|
|
1455
1339
|
readonly end: number;
|
|
1456
1340
|
}[];
|
|
1457
1341
|
} | null;
|
|
1458
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
1342
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1459
1343
|
export declare const publish: (input: {
|
|
1460
1344
|
readonly id: string;
|
|
1461
1345
|
readonly projectId: string;
|
|
@@ -1601,7 +1485,7 @@ export declare const publish: (input: {
|
|
|
1601
1485
|
readonly publishedAt: string;
|
|
1602
1486
|
readonly publishedBy: string | null;
|
|
1603
1487
|
readonly createdAt: string;
|
|
1604
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
1488
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1605
1489
|
export declare const getPublication: (input: {
|
|
1606
1490
|
readonly id: string;
|
|
1607
1491
|
readonly publicationId: string;
|
|
@@ -1743,20 +1627,59 @@ export declare const getPublication: (input: {
|
|
|
1743
1627
|
readonly publishedAt: string;
|
|
1744
1628
|
readonly publishedBy: string | null;
|
|
1745
1629
|
readonly createdAt: string;
|
|
1746
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
1747
|
-
export declare const listInputContracts: (input: {
|
|
1630
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1631
|
+
export declare const listInputContracts: ((input: {
|
|
1748
1632
|
readonly id: string;
|
|
1749
|
-
|
|
1750
|
-
readonly
|
|
1751
|
-
|
|
1752
|
-
readonly
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
readonly
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1633
|
+
readonly limit?: string | null | undefined;
|
|
1634
|
+
readonly cursor?: string | null | undefined;
|
|
1635
|
+
}) => import("effect/Effect").Effect<{
|
|
1636
|
+
readonly items: readonly {
|
|
1637
|
+
readonly id: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
1638
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
1639
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1640
|
+
readonly version: number;
|
|
1641
|
+
readonly validationDigest: string;
|
|
1642
|
+
readonly schema: {
|
|
1643
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1644
|
+
};
|
|
1645
|
+
readonly createdAt: string;
|
|
1646
|
+
}[];
|
|
1647
|
+
readonly nextCursor: string | null;
|
|
1648
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>) & {
|
|
1649
|
+
readonly pages: (input: {
|
|
1650
|
+
readonly id: string;
|
|
1651
|
+
readonly limit?: string | null | undefined;
|
|
1652
|
+
readonly cursor?: string | null | undefined;
|
|
1653
|
+
}) => import("effect/Stream").Stream<{
|
|
1654
|
+
readonly items: readonly {
|
|
1655
|
+
readonly id: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
1656
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
1657
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1658
|
+
readonly version: number;
|
|
1659
|
+
readonly validationDigest: string;
|
|
1660
|
+
readonly schema: {
|
|
1661
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1662
|
+
};
|
|
1663
|
+
readonly createdAt: string;
|
|
1664
|
+
}[];
|
|
1665
|
+
readonly nextCursor: string | null;
|
|
1666
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1667
|
+
readonly items: (input: {
|
|
1668
|
+
readonly id: string;
|
|
1669
|
+
readonly limit?: string | null | undefined;
|
|
1670
|
+
readonly cursor?: string | null | undefined;
|
|
1671
|
+
}) => import("effect/Stream").Stream<{
|
|
1672
|
+
readonly id: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
1673
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
1674
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1675
|
+
readonly version: number;
|
|
1676
|
+
readonly validationDigest: string;
|
|
1677
|
+
readonly schema: {
|
|
1678
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1679
|
+
};
|
|
1680
|
+
readonly createdAt: string;
|
|
1681
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1682
|
+
};
|
|
1760
1683
|
export declare const getInputContract: (input: {
|
|
1761
1684
|
readonly id: string;
|
|
1762
1685
|
readonly inputContractId: string;
|
|
@@ -1770,7 +1693,7 @@ export declare const getInputContract: (input: {
|
|
|
1770
1693
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1771
1694
|
};
|
|
1772
1695
|
readonly createdAt: string;
|
|
1773
|
-
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
1696
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1774
1697
|
export declare const diffWorkspace: (input: {
|
|
1775
1698
|
readonly id: string;
|
|
1776
1699
|
readonly expectedRevision: string;
|
|
@@ -1788,7 +1711,7 @@ export declare const diffWorkspace: (input: {
|
|
|
1788
1711
|
readonly path: string;
|
|
1789
1712
|
readonly status: "added" | "deleted" | "modified";
|
|
1790
1713
|
}[];
|
|
1791
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
1714
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1792
1715
|
export declare const workspaceHistory: (input: {
|
|
1793
1716
|
readonly id: string;
|
|
1794
1717
|
readonly limit?: string | null | undefined;
|
|
@@ -1806,4 +1729,4 @@ export declare const workspaceHistory: (input: {
|
|
|
1806
1729
|
readonly id: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
1807
1730
|
readonly commit: string;
|
|
1808
1731
|
} | null;
|
|
1809
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/
|
|
1732
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|