samva 0.3.0 → 0.5.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/AGENTS.md +1 -1
- package/README.md +5 -1
- package/dist/{categories-CsUa8ojo.js → categories-B9Nw2v_F.js} +5 -1
- package/dist/client/sdk.gen.d.ts +312 -190
- package/dist/client/types.gen.d.ts +2284 -728
- package/dist/{client-BOghX8fr.js → client-B7gEkvEq.js} +2740 -1036
- package/dist/client-attribution-B2yJBXdZ.js +9 -0
- package/dist/client-attribution.d.ts +2 -0
- package/dist/effect/api-keys.d.ts +51 -51
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +269 -219
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +6 -6
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +225 -225
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +308 -293
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.d.ts +76 -76
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +923 -213
- package/dist/effect/email.js +27 -3
- package/dist/effect/generated-metadata.d.ts +4 -0
- package/dist/effect/generated.d.ts +14948 -10919
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/client.d.ts +1 -1
- package/dist/effect/internal/operation.d.ts +31 -20
- package/dist/effect/media.d.ts +12 -12
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +243 -61
- package/dist/effect/messages.js +5 -3
- package/dist/effect/operations.d.ts +17 -17
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +162 -162
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/retry.js +1 -1
- package/dist/effect/runtime.d.ts +0 -2
- package/dist/effect/scheduled-messages.d.ts +375 -277
- package/dist/effect/scheduled-messages.js +5 -3
- package/dist/effect/templates.d.ts +1383 -1554
- package/dist/effect/templates.js +40 -30
- package/dist/effect/webhooks.d.ts +81 -47
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{normalize-BKFjbR9t.js → normalize-BiIJnycv.js} +2 -3
- package/dist/{operation-C2Q4cFJL.js → operation-B4FjN6wq.js} +113 -38
- package/dist/promises/errors.gen.d.ts +21 -2
- package/dist/promises/index.d.ts +11 -8
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-oiy7mOyu.js → promises-CP_nxUus.js} +828 -306
- package/dist/service-map.d.ts +136 -44
- package/package.json +13 -14
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as clientAttribution, t as CLIENT_ATTRIBUTION_HEADER } from "./client-attribution-B2yJBXdZ.js";
|
|
1
2
|
import { Context, Effect, Layer, Schema, SchemaTransformation } from "effect";
|
|
2
3
|
import * as Schema$1 from "effect/Schema";
|
|
3
4
|
import { HttpApi, HttpApiClient, HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema, HttpApiSecurity, OpenApi } from "effect/unstable/httpapi";
|
|
@@ -79,6 +80,14 @@ const MediaId = Schema$1.String.pipe(Schema$1.brand("MediaId")).check(Schema$1.i
|
|
|
79
80
|
expected: "a string matching the RegExp ^media_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
80
81
|
identifier: "MediaId"
|
|
81
82
|
}));
|
|
83
|
+
const TemplatePublicationId = Schema$1.String.pipe(Schema$1.brand("TemplatePublicationId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^tpub_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
84
|
+
expected: "a string matching the RegExp ^tpub_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
85
|
+
identifier: "TemplatePublicationId"
|
|
86
|
+
}));
|
|
87
|
+
const TemplateInputContractId = Schema$1.String.pipe(Schema$1.brand("TemplateInputContractId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^tcon_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
88
|
+
expected: "a string matching the RegExp ^tcon_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
89
|
+
identifier: "TemplateInputContractId"
|
|
90
|
+
}));
|
|
82
91
|
const TemplateId = Schema$1.String.pipe(Schema$1.brand("TemplateId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
83
92
|
expected: "a string matching the RegExp ^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
84
93
|
identifier: "TemplateId"
|
|
@@ -136,6 +145,10 @@ var ConflictError = class extends Schema$1.TaggedError()("ConflictError", Schema
|
|
|
136
145
|
resource: Schema$1.String,
|
|
137
146
|
id: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
138
147
|
})) {};
|
|
148
|
+
const EmailDomainId = Schema$1.String.pipe(Schema$1.brand("EmailDomainId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^dom_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
149
|
+
expected: "a string matching the RegExp ^dom_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
150
|
+
identifier: "EmailDomainId"
|
|
151
|
+
}));
|
|
139
152
|
var ExternalServiceError = class extends Schema$1.TaggedError()("ExternalServiceError", Schema$1.Struct({
|
|
140
153
|
operation: Schema$1.String,
|
|
141
154
|
message: Schema$1.String
|
|
@@ -215,10 +228,6 @@ const BlockedEmailLogId = Schema$1.String.pipe(Schema$1.brand("BlockedEmailLogId
|
|
|
215
228
|
expected: "a string matching the RegExp ^blklog_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
216
229
|
identifier: "BlockedEmailLogId"
|
|
217
230
|
}));
|
|
218
|
-
const EmailDomainId = Schema$1.String.pipe(Schema$1.brand("EmailDomainId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^dom_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
219
|
-
expected: "a string matching the RegExp ^dom_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
220
|
-
identifier: "EmailDomainId"
|
|
221
|
-
}));
|
|
222
231
|
const WebhookEndpointId = Schema$1.String.pipe(Schema$1.brand("WebhookEndpointId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^wep_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
223
232
|
expected: "a string matching the RegExp ^wep_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
224
233
|
identifier: "WebhookEndpointId"
|
|
@@ -286,6 +295,33 @@ var RateLimitedError = class extends Schema$1.TaggedError()("RateLimitedError",
|
|
|
286
295
|
operation: Schema$1.String,
|
|
287
296
|
retryAfterSeconds: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))
|
|
288
297
|
})) {};
|
|
298
|
+
const EmailDomainWarmingPlanId = Schema$1.String.pipe(Schema$1.brand("EmailDomainWarmingPlanId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^warm_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
299
|
+
expected: "a string matching the RegExp ^warm_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
300
|
+
identifier: "EmailDomainWarmingPlanId"
|
|
301
|
+
}));
|
|
302
|
+
const EmailDomainWarmingBatchId = Schema$1.String.pipe(Schema$1.brand("EmailDomainWarmingBatchId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^wbatch_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
303
|
+
expected: "a string matching the RegExp ^wbatch_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
304
|
+
identifier: "EmailDomainWarmingBatchId"
|
|
305
|
+
}));
|
|
306
|
+
const EmailDomainWarmingDecisionId = Schema$1.String.pipe(Schema$1.brand("EmailDomainWarmingDecisionId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^wdec_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
307
|
+
expected: "a string matching the RegExp ^wdec_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
308
|
+
identifier: "EmailDomainWarmingDecisionId"
|
|
309
|
+
}));
|
|
310
|
+
const DomainWarmingWindowHour = Schema$1.Struct({
|
|
311
|
+
sent: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
312
|
+
bounced: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
313
|
+
complained: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))
|
|
314
|
+
}).annotate({ identifier: "DomainWarmingWindowHour" });
|
|
315
|
+
const DomainWarmingHolds = Schema$1.Struct({
|
|
316
|
+
workspacePausedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
317
|
+
workspacePauseReason: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
318
|
+
sendingStatus: Schema$1.Literals([
|
|
319
|
+
"enabled",
|
|
320
|
+
"disabled",
|
|
321
|
+
"reinstated",
|
|
322
|
+
"unknown"
|
|
323
|
+
])
|
|
324
|
+
}).annotate({ identifier: "DomainWarmingHolds" });
|
|
289
325
|
const EmailForwardingRuleId = Schema$1.String.pipe(Schema$1.brand("EmailForwardingRuleId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^fwd_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
290
326
|
expected: "a string matching the RegExp ^fwd_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
291
327
|
identifier: "EmailForwardingRuleId"
|
|
@@ -295,6 +331,32 @@ const ForwardingConditions = Schema$1.Struct({
|
|
|
295
331
|
fromContains: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
296
332
|
hasAttachments: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null]))
|
|
297
333
|
}).annotate({ identifier: "ForwardingConditions" });
|
|
334
|
+
const IdentityClearanceStatus = Schema$1.Struct({
|
|
335
|
+
identityId: Schema$1.String,
|
|
336
|
+
decision: Schema$1.Literals([
|
|
337
|
+
"undecided",
|
|
338
|
+
"approved",
|
|
339
|
+
"rejected"
|
|
340
|
+
]),
|
|
341
|
+
generation: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })),
|
|
342
|
+
code: Schema$1.Union([Schema$1.Literals([
|
|
343
|
+
"review_required",
|
|
344
|
+
"review_in_progress",
|
|
345
|
+
"information_required",
|
|
346
|
+
"review_rejected",
|
|
347
|
+
"identity_review_required",
|
|
348
|
+
"identity_review_rejected",
|
|
349
|
+
"identity_changed"
|
|
350
|
+
]), Schema$1.Null]),
|
|
351
|
+
nextAction: Schema$1.Union([Schema$1.Literals([
|
|
352
|
+
"wait_for_review",
|
|
353
|
+
"provide_information",
|
|
354
|
+
"verify_sending_identity",
|
|
355
|
+
"reapply",
|
|
356
|
+
"contact_support"
|
|
357
|
+
]), Schema$1.Null]),
|
|
358
|
+
updatedAt: Schema$1.String
|
|
359
|
+
}).annotate({ identifier: "IdentityClearanceStatus" });
|
|
298
360
|
const SuppressionId = Schema$1.String.pipe(Schema$1.brand("SuppressionId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^supp_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
299
361
|
expected: "a string matching the RegExp ^supp_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
300
362
|
identifier: "SuppressionId"
|
|
@@ -322,6 +384,39 @@ const EmailSender = Schema$1.Union([Schema$1.Struct({
|
|
|
322
384
|
email: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
323
385
|
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
324
386
|
}), Schema$1.Null]).annotate({ identifier: "EmailSender" });
|
|
387
|
+
var OnboardingReviewRequiredError = class extends Schema$1.TaggedError()("OnboardingReviewRequiredError", Schema$1.Struct({
|
|
388
|
+
operation: Schema$1.String,
|
|
389
|
+
code: Schema$1.Literals([
|
|
390
|
+
"review_required",
|
|
391
|
+
"review_in_progress",
|
|
392
|
+
"information_required",
|
|
393
|
+
"review_rejected",
|
|
394
|
+
"identity_review_required",
|
|
395
|
+
"identity_review_rejected",
|
|
396
|
+
"identity_changed"
|
|
397
|
+
]),
|
|
398
|
+
decision: Schema$1.Literals([
|
|
399
|
+
"undecided",
|
|
400
|
+
"approved",
|
|
401
|
+
"rejected",
|
|
402
|
+
"exempt"
|
|
403
|
+
]),
|
|
404
|
+
stage: Schema$1.Literals([
|
|
405
|
+
"collecting",
|
|
406
|
+
"automated_review",
|
|
407
|
+
"manual_review",
|
|
408
|
+
"information_requested",
|
|
409
|
+
"complete"
|
|
410
|
+
]),
|
|
411
|
+
nextAction: Schema$1.Literals([
|
|
412
|
+
"wait_for_review",
|
|
413
|
+
"provide_information",
|
|
414
|
+
"verify_sending_identity",
|
|
415
|
+
"reapply",
|
|
416
|
+
"contact_support"
|
|
417
|
+
]),
|
|
418
|
+
identityId: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
419
|
+
})) {};
|
|
325
420
|
var WebhookEnqueueError = class extends Schema$1.TaggedError()("WebhookEnqueueError", Schema$1.Struct({
|
|
326
421
|
operation: Schema$1.String,
|
|
327
422
|
reason: Schema$1.String,
|
|
@@ -343,21 +438,28 @@ const ScheduledMessageId = Schema$1.String.pipe(Schema$1.brand("ScheduledMessage
|
|
|
343
438
|
expected: "a string matching the RegExp ^sched_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
344
439
|
identifier: "ScheduledMessageId"
|
|
345
440
|
}));
|
|
441
|
+
const IanaTimezone = Schema$1.String.annotate({ identifier: "IanaTimezone" });
|
|
442
|
+
const ValidateEmailResponse = Schema$1.Struct({
|
|
443
|
+
valid: Schema$1.Literal(true),
|
|
444
|
+
from: Schema$1.Struct({
|
|
445
|
+
email: Schema$1.String,
|
|
446
|
+
name: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
447
|
+
}),
|
|
448
|
+
recipientCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })),
|
|
449
|
+
content: Schema$1.Struct({
|
|
450
|
+
source: Schema$1.Literals(["inline", "template"]),
|
|
451
|
+
subject: Schema$1.String,
|
|
452
|
+
hasHtml: Schema$1.Boolean,
|
|
453
|
+
hasText: Schema$1.Boolean
|
|
454
|
+
})
|
|
455
|
+
}).annotate({ identifier: "ValidateEmailResponse" });
|
|
346
456
|
const OperationResource = Schema$1.Struct({
|
|
347
457
|
type: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(80).annotate({ expected: "a value with a length of at most 80" })),
|
|
348
458
|
id: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
349
459
|
}).annotate({ identifier: "OperationResource" });
|
|
350
|
-
const
|
|
351
|
-
expected: "a string matching the RegExp ^
|
|
352
|
-
identifier: "
|
|
353
|
-
}));
|
|
354
|
-
const MailboxExtensionId = Schema$1.String.pipe(Schema$1.brand("MailboxExtensionId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^ext_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
355
|
-
expected: "a string matching the RegExp ^ext_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
356
|
-
identifier: "MailboxExtensionId"
|
|
357
|
-
}));
|
|
358
|
-
const TemplateSourceVersionId = Schema$1.String.pipe(Schema$1.brand("TemplateSourceVersionId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^src_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
359
|
-
expected: "a string matching the RegExp ^src_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
360
|
-
identifier: "TemplateSourceVersionId"
|
|
460
|
+
const TemplateProjectId = Schema$1.String.pipe(Schema$1.brand("TemplateProjectId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^tproj_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
461
|
+
expected: "a string matching the RegExp ^tproj_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
462
|
+
identifier: "TemplateProjectId"
|
|
361
463
|
}));
|
|
362
464
|
const TemplateFamilyId = Schema$1.String.pipe(Schema$1.brand("TemplateFamilyId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^tfam_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
363
465
|
expected: "a string matching the RegExp ^tfam_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
@@ -367,51 +469,17 @@ const TemplateFromDefault = Schema$1.Struct({
|
|
|
367
469
|
email: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
368
470
|
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
369
471
|
}).annotate({ identifier: "TemplateFromDefault" });
|
|
370
|
-
const
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
default: Schema$1.optionalKey(Schema$1.Union([JsonValue, Schema$1.Null])),
|
|
382
|
-
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
383
|
-
validation: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
384
|
-
pattern: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
385
|
-
min: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })), Schema$1.Null])),
|
|
386
|
-
max: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })), Schema$1.Null])),
|
|
387
|
-
minLength: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
388
|
-
maxLength: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
389
|
-
enum: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
390
|
-
format: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
391
|
-
"email",
|
|
392
|
-
"url",
|
|
393
|
-
"date",
|
|
394
|
-
"date-time",
|
|
395
|
-
"uuid"
|
|
396
|
-
]), Schema$1.Null]))
|
|
397
|
-
}), Schema$1.Null]))
|
|
398
|
-
}).annotate({ identifier: "TemplateVariable" });
|
|
399
|
-
const TemplatePerformance = Schema$1.Struct({
|
|
400
|
-
deliveryRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
401
|
-
openRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
402
|
-
clickRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
403
|
-
responseRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
404
|
-
conversionRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
405
|
-
averageSatisfaction: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema$1.isLessThanOrEqualTo(5).annotate({ expected: "a value less than or equal to 5" })), Schema$1.Null])),
|
|
406
|
-
totalSent: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
407
|
-
totalDelivered: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
408
|
-
totalOpened: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
409
|
-
totalClicked: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
410
|
-
totalResponses: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
411
|
-
totalConversions: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
412
|
-
lastUsedAt: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
413
|
-
usageCount: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null]))
|
|
414
|
-
}).annotate({ identifier: "TemplatePerformance" });
|
|
472
|
+
const UserId = Schema$1.String.pipe(Schema$1.brand("UserId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^user_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
473
|
+
expected: "a string matching the RegExp ^user_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
474
|
+
identifier: "UserId"
|
|
475
|
+
}));
|
|
476
|
+
const WebhookDeliveryCounts = Schema$1.Struct({
|
|
477
|
+
total: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
478
|
+
pending: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
479
|
+
delivered: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
480
|
+
exhausted: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
481
|
+
cancelled: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
482
|
+
}).annotate({ identifier: "WebhookDeliveryCounts" });
|
|
415
483
|
const WebhookEventId = Schema$1.String.pipe(Schema$1.brand("WebhookEventId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^whevt_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
416
484
|
expected: "a string matching the RegExp ^whevt_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
417
485
|
identifier: "WebhookEventId"
|
|
@@ -424,13 +492,52 @@ const WebhookAttemptId = Schema$1.String.pipe(Schema$1.brand("WebhookAttemptId")
|
|
|
424
492
|
expected: "a string matching the RegExp ^whatt_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
425
493
|
identifier: "WebhookAttemptId"
|
|
426
494
|
}));
|
|
495
|
+
const WebhookDailyDeliveries = Schema$1.Struct({
|
|
496
|
+
date: Schema$1.String,
|
|
497
|
+
pending: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
498
|
+
delivered: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
499
|
+
exhausted: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
500
|
+
cancelled: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
501
|
+
}).annotate({ identifier: "WebhookDailyDeliveries" });
|
|
502
|
+
Schema$1.Struct({
|
|
503
|
+
identity: Schema$1.Literals([
|
|
504
|
+
"new",
|
|
505
|
+
"migrating",
|
|
506
|
+
"returning"
|
|
507
|
+
]),
|
|
508
|
+
initialDailyRecipients: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isLessThanOrEqualTo(1e6).annotate({ expected: "a value less than or equal to 1000000" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
509
|
+
dailyGrowthPercent: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1e4).annotate({ expected: "a value less than or equal to 10000" })),
|
|
510
|
+
targetDailyRecipients: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isLessThanOrEqualTo(1e6).annotate({ expected: "a value less than or equal to 1000000" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))
|
|
511
|
+
}).annotate({ identifier: "CreateDomainWarmingPlanPayload" });
|
|
427
512
|
Schema$1.Struct({
|
|
428
513
|
filename: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
429
514
|
contentType: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(127).annotate({ expected: "a value with a length of at most 127" })),
|
|
430
515
|
sizeBytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isLessThanOrEqualTo(26214400).annotate({ expected: "a value less than or equal to 26214400" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
431
|
-
purpose: Schema$1.Literals([
|
|
516
|
+
purpose: Schema$1.Literals([
|
|
517
|
+
"attachment",
|
|
518
|
+
"avatar",
|
|
519
|
+
"review_evidence"
|
|
520
|
+
]),
|
|
432
521
|
checksumSha256: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
433
522
|
}).annotate({ identifier: "CreateMediaPayload" });
|
|
523
|
+
const CreateTemplatePayload = Schema$1.Struct({
|
|
524
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })),
|
|
525
|
+
projectName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })), Schema$1.Null])),
|
|
526
|
+
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
527
|
+
galleryTemplateId: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })), Schema$1.Null])),
|
|
528
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
529
|
+
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
530
|
+
"transactional",
|
|
531
|
+
"marketing",
|
|
532
|
+
"support",
|
|
533
|
+
"notification",
|
|
534
|
+
"verification",
|
|
535
|
+
"reminder",
|
|
536
|
+
"alert"
|
|
537
|
+
]), Schema$1.Null]), Schema$1.Null])),
|
|
538
|
+
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
539
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
540
|
+
}).annotate({ identifier: "CreateTemplatePayload" });
|
|
434
541
|
const CreateWebhookPayload = Schema$1.Struct({
|
|
435
542
|
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })),
|
|
436
543
|
url: Schema$1.String,
|
|
@@ -459,14 +566,22 @@ const CreateWebhookPayload = Schema$1.Struct({
|
|
|
459
566
|
"webhook.updated",
|
|
460
567
|
"webhook.deleted",
|
|
461
568
|
"webhook.test",
|
|
462
|
-
"domain.updated"
|
|
569
|
+
"domain.updated",
|
|
570
|
+
"domain.warming.updated"
|
|
463
571
|
])).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
464
572
|
channels: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Literal("email")).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null])),
|
|
465
573
|
headers: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null])),
|
|
466
574
|
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["active", "disabled"]), Schema$1.Null]))
|
|
467
575
|
}).annotate({ identifier: "CreateWebhookPayload" });
|
|
576
|
+
Schema$1.Struct({ note: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })), Schema$1.Null])) }).annotate({ identifier: "DomainWarmingNotePayload" });
|
|
577
|
+
Schema$1.Struct({ expectedGeneration: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })) }).annotate({ identifier: "ReapplyOnboardingReviewInput" });
|
|
468
578
|
Schema$1.Struct({ name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })) }).annotate({ identifier: "TemplateFamilyName" });
|
|
469
579
|
const TestWebhookPayload = Schema$1.Struct({ data: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null])) }).annotate({ identifier: "TestWebhookPayload" });
|
|
580
|
+
Schema$1.Struct({
|
|
581
|
+
dailyGrowthPercent: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1e4).annotate({ expected: "a value less than or equal to 10000" })),
|
|
582
|
+
targetDailyRecipients: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isLessThanOrEqualTo(1e6).annotate({ expected: "a value less than or equal to 1000000" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
583
|
+
note: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })), Schema$1.Null]))
|
|
584
|
+
}).annotate({ identifier: "UpdateDomainWarmingPolicyPayload" });
|
|
470
585
|
const UpdateWebhookPayload = Schema$1.Struct({
|
|
471
586
|
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })), Schema$1.Null])),
|
|
472
587
|
url: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
@@ -495,7 +610,8 @@ const UpdateWebhookPayload = Schema$1.Struct({
|
|
|
495
610
|
"webhook.updated",
|
|
496
611
|
"webhook.deleted",
|
|
497
612
|
"webhook.test",
|
|
498
|
-
"domain.updated"
|
|
613
|
+
"domain.updated",
|
|
614
|
+
"domain.warming.updated"
|
|
499
615
|
])).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null])),
|
|
500
616
|
channels: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.Literal("email")).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null]), Schema$1.Null])),
|
|
501
617
|
headers: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null])),
|
|
@@ -534,12 +650,16 @@ const EmailAttachment = Schema$1.Struct({
|
|
|
534
650
|
contentType: Schema$1.String,
|
|
535
651
|
size: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isLessThanOrEqualTo(26214400).annotate({ expected: "a value less than or equal to 26214400" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))
|
|
536
652
|
}).annotate({ identifier: "EmailAttachment" });
|
|
653
|
+
Schema$1.Struct({
|
|
654
|
+
expectedGeneration: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
655
|
+
responseText: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(4e3).annotate({ expected: "a value with a length of at most 4000" })),
|
|
656
|
+
evidenceMediaIds: Schema$1.Array(MediaId).check(Schema$1.isMaxLength(3).annotate({ expected: "a value with a length of at most 3" }))
|
|
657
|
+
}).annotate({ identifier: "RespondToOnboardingInformationRequestInput" });
|
|
537
658
|
const TemplateSummary = Schema$1.Struct({
|
|
538
659
|
id: TemplateId,
|
|
539
660
|
name: Schema$1.String,
|
|
540
661
|
slug: Schema$1.String,
|
|
541
662
|
channel: Schema$1.Literal("email"),
|
|
542
|
-
origin: Schema$1.Literals(["dashboard", "tsx"]),
|
|
543
663
|
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
544
664
|
category: Schema$1.Union([Schema$1.Literals([
|
|
545
665
|
"transactional",
|
|
@@ -558,9 +678,10 @@ const TemplateSummary = Schema$1.Struct({
|
|
|
558
678
|
"rejected",
|
|
559
679
|
"archived"
|
|
560
680
|
]),
|
|
561
|
-
version: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
562
681
|
usageCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
563
682
|
lastUsedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
683
|
+
workspaceRevision: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
684
|
+
previewFixture: Schema$1.Union([Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })), Schema$1.Null]),
|
|
564
685
|
createdAt: Schema$1.String,
|
|
565
686
|
updatedAt: Schema$1.String
|
|
566
687
|
}).annotate({ identifier: "TemplateSummary" });
|
|
@@ -624,6 +745,32 @@ const CampaignLatestRun = Schema$1.Struct({
|
|
|
624
745
|
failedCount: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
625
746
|
skippedCount: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))
|
|
626
747
|
}).annotate({ identifier: "CampaignLatestRun" });
|
|
748
|
+
const EmailDkimRotation = Schema$1.Struct({
|
|
749
|
+
id: Schema$1.String,
|
|
750
|
+
domainId: EmailDomainId,
|
|
751
|
+
phase: Schema$1.Literals([
|
|
752
|
+
"staged",
|
|
753
|
+
"cutover",
|
|
754
|
+
"complete"
|
|
755
|
+
]),
|
|
756
|
+
selector: Schema$1.String,
|
|
757
|
+
record: Schema$1.Struct({
|
|
758
|
+
name: Schema$1.String,
|
|
759
|
+
type: Schema$1.Literal("TXT"),
|
|
760
|
+
value: Schema$1.String,
|
|
761
|
+
ttl: Schema$1.String
|
|
762
|
+
}),
|
|
763
|
+
formerRecord: Schema$1.Struct({
|
|
764
|
+
name: Schema$1.String,
|
|
765
|
+
type: Schema$1.Literal("TXT"),
|
|
766
|
+
value: Schema$1.String
|
|
767
|
+
}),
|
|
768
|
+
minimumRetainUntil: Schema$1.Union([Schema$1.String, Schema$1.Null]).annotate({ description: "Earliest minimum retention horizon only. The former public key remains published indefinitely until a separately approved retirement verifies at least two actual former-record TTLs have elapsed." })
|
|
769
|
+
}).annotate({ identifier: "EmailDkimRotation" });
|
|
770
|
+
const DomainWarmingDomainRef = Schema$1.Struct({
|
|
771
|
+
id: EmailDomainId,
|
|
772
|
+
domain: Schema$1.String
|
|
773
|
+
}).annotate({ identifier: "DomainWarmingDomainRef" });
|
|
627
774
|
const Media = Schema$1.Struct({
|
|
628
775
|
id: MediaId,
|
|
629
776
|
organizationId: OrganizationId,
|
|
@@ -641,7 +788,11 @@ const Media = Schema$1.Struct({
|
|
|
641
788
|
width: Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]),
|
|
642
789
|
height: Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]),
|
|
643
790
|
durationMs: Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null]),
|
|
644
|
-
purpose: Schema$1.Literals([
|
|
791
|
+
purpose: Schema$1.Literals([
|
|
792
|
+
"attachment",
|
|
793
|
+
"avatar",
|
|
794
|
+
"review_evidence"
|
|
795
|
+
]),
|
|
645
796
|
checksumSha256: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
646
797
|
expiresAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
647
798
|
createdAt: Schema$1.String,
|
|
@@ -790,6 +941,21 @@ const Message = Schema$1.Struct({
|
|
|
790
941
|
contact: Schema$1.Union([MessageContact, Schema$1.Null])
|
|
791
942
|
})),
|
|
792
943
|
deliveries: Schema$1.Array(Schema$1.Struct({
|
|
944
|
+
scheduling: Schema$1.Union([Schema$1.Struct({
|
|
945
|
+
dueAt: Schema$1.String,
|
|
946
|
+
expiresAt: Schema$1.String,
|
|
947
|
+
waitReason: Schema$1.Union([Schema$1.Literals([
|
|
948
|
+
"rate",
|
|
949
|
+
"daily-quota",
|
|
950
|
+
"domain-health",
|
|
951
|
+
"tenant-health",
|
|
952
|
+
"provider-unavailable",
|
|
953
|
+
"retry",
|
|
954
|
+
"campaign-paused",
|
|
955
|
+
"domain-warming",
|
|
956
|
+
"onboarding-review"
|
|
957
|
+
]), Schema$1.Null])
|
|
958
|
+
}), Schema$1.Null]),
|
|
793
959
|
id: Schema$1.String,
|
|
794
960
|
messageId: Schema$1.String,
|
|
795
961
|
recipientId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
@@ -948,7 +1114,8 @@ const WebhookEndpoint = Schema$1.Struct({
|
|
|
948
1114
|
"webhook.updated",
|
|
949
1115
|
"webhook.deleted",
|
|
950
1116
|
"webhook.test",
|
|
951
|
-
"domain.updated"
|
|
1117
|
+
"domain.updated",
|
|
1118
|
+
"domain.warming.updated"
|
|
952
1119
|
])),
|
|
953
1120
|
channels: Schema$1.Union([Schema$1.Array(Schema$1.Literal("email")), Schema$1.Null]),
|
|
954
1121
|
status: Schema$1.Literals(["active", "disabled"]),
|
|
@@ -958,7 +1125,7 @@ const WebhookEndpoint = Schema$1.Struct({
|
|
|
958
1125
|
createdAt: Schema$1.String,
|
|
959
1126
|
updatedAt: Schema$1.String
|
|
960
1127
|
}).annotate({ identifier: "WebhookEndpoint" });
|
|
961
|
-
const
|
|
1128
|
+
const EmailDomainDetailed = Schema$1.Struct({
|
|
962
1129
|
id: EmailDomainId,
|
|
963
1130
|
domain: Schema$1.String,
|
|
964
1131
|
phase: Schema$1.Literals([
|
|
@@ -972,12 +1139,23 @@ const EmailDomain = Schema$1.Struct({
|
|
|
972
1139
|
dkimSelector: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
973
1140
|
dkimPublicKey: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
974
1141
|
dnsRecords: Schema$1.Array(Schema$1.Struct({
|
|
975
|
-
type: Schema$1.
|
|
1142
|
+
type: Schema$1.Literals([
|
|
1143
|
+
"A",
|
|
1144
|
+
"AAAA",
|
|
1145
|
+
"CNAME",
|
|
1146
|
+
"MX",
|
|
1147
|
+
"NS",
|
|
1148
|
+
"SOA",
|
|
1149
|
+
"PTR",
|
|
1150
|
+
"SRV",
|
|
1151
|
+
"TXT",
|
|
1152
|
+
"CAA"
|
|
1153
|
+
]),
|
|
976
1154
|
name: Schema$1.String,
|
|
977
1155
|
value: Schema$1.String,
|
|
978
1156
|
ttl: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
979
1157
|
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
980
|
-
priority: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.
|
|
1158
|
+
priority: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null]))
|
|
981
1159
|
})),
|
|
982
1160
|
verifiedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
983
1161
|
isDefault: Schema$1.Boolean,
|
|
@@ -985,7 +1163,7 @@ const EmailDomain = Schema$1.Struct({
|
|
|
985
1163
|
deliverability: DeliverabilityFacts,
|
|
986
1164
|
createdAt: Schema$1.String,
|
|
987
1165
|
updatedAt: Schema$1.String
|
|
988
|
-
}).annotate({ identifier: "
|
|
1166
|
+
}).annotate({ identifier: "EmailDomainDetailed" });
|
|
989
1167
|
const CustomTrackingStatus = Schema$1.Struct({
|
|
990
1168
|
enabled: Schema$1.Boolean,
|
|
991
1169
|
customTracking: Schema$1.Union([Schema$1.Struct({
|
|
@@ -1009,79 +1187,123 @@ const CustomTrackingStatus = Schema$1.Struct({
|
|
|
1009
1187
|
teardownScheduledAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
1010
1188
|
}), Schema$1.Null])
|
|
1011
1189
|
}).annotate({ identifier: "CustomTrackingStatus" });
|
|
1012
|
-
const
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
"
|
|
1017
|
-
"
|
|
1018
|
-
"provider-verification",
|
|
1019
|
-
"ready",
|
|
1020
|
-
"degraded",
|
|
1021
|
-
"failed"
|
|
1190
|
+
const DomainWarmingPlan = Schema$1.Struct({
|
|
1191
|
+
id: EmailDomainWarmingPlanId,
|
|
1192
|
+
status: Schema$1.Literals([
|
|
1193
|
+
"active",
|
|
1194
|
+
"paused",
|
|
1195
|
+
"completed"
|
|
1022
1196
|
]),
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1197
|
+
identity: Schema$1.Literals([
|
|
1198
|
+
"new",
|
|
1199
|
+
"migrating",
|
|
1200
|
+
"returning"
|
|
1201
|
+
]),
|
|
1202
|
+
initialDailyRecipients: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1203
|
+
dailyGrowthPercent: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1204
|
+
targetDailyRecipients: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1205
|
+
holdReason: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1206
|
+
heldAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1207
|
+
pausedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1208
|
+
completedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1209
|
+
createdAt: Schema$1.String,
|
|
1210
|
+
updatedAt: Schema$1.String
|
|
1211
|
+
}).annotate({ identifier: "DomainWarmingPlan" });
|
|
1212
|
+
const DomainWarmingBatch = Schema$1.Struct({
|
|
1213
|
+
id: EmailDomainWarmingBatchId,
|
|
1214
|
+
sequence: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1215
|
+
state: Schema$1.Literals([
|
|
1216
|
+
"scheduled",
|
|
1217
|
+
"open",
|
|
1218
|
+
"closed",
|
|
1219
|
+
"cancelled"
|
|
1220
|
+
]),
|
|
1221
|
+
startsAt: Schema$1.String,
|
|
1222
|
+
endsAt: Schema$1.String,
|
|
1223
|
+
allowanceRecipients: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1224
|
+
dailyGrowthPercent: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1225
|
+
targetDailyRecipients: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1226
|
+
reservedRecipients: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1227
|
+
acceptedRecipients: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1228
|
+
cancelledAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1229
|
+
createdAt: Schema$1.String
|
|
1230
|
+
}).annotate({ identifier: "DomainWarmingBatch" });
|
|
1231
|
+
const DomainWarmingDecision = Schema$1.Struct({
|
|
1232
|
+
id: EmailDomainWarmingDecisionId,
|
|
1233
|
+
kind: Schema$1.Literals([
|
|
1234
|
+
"plan-created",
|
|
1235
|
+
"policy-updated",
|
|
1236
|
+
"window-opened",
|
|
1237
|
+
"window-cancelled",
|
|
1238
|
+
"paused",
|
|
1239
|
+
"resumed",
|
|
1240
|
+
"held",
|
|
1241
|
+
"completed"
|
|
1242
|
+
]),
|
|
1243
|
+
batchId: Schema$1.Union([EmailDomainWarmingBatchId, Schema$1.Null]),
|
|
1244
|
+
actor: Schema$1.String,
|
|
1245
|
+
note: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1246
|
+
createdAt: Schema$1.String
|
|
1247
|
+
}).annotate({ identifier: "DomainWarmingDecision" });
|
|
1248
|
+
const DomainWarmingEvidence = Schema$1.Struct({
|
|
1249
|
+
observedAt: Schema$1.String,
|
|
1250
|
+
windowHours: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1251
|
+
minimumSends: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1252
|
+
sent: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1253
|
+
bounced: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1254
|
+
complained: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1255
|
+
hourly: Schema$1.Array(DomainWarmingWindowHour),
|
|
1256
|
+
bounceThreshold: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1257
|
+
complaintThreshold: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1258
|
+
verdict: Schema$1.Literals([
|
|
1259
|
+
"insufficient-evidence",
|
|
1260
|
+
"healthy",
|
|
1261
|
+
"over-threshold"
|
|
1262
|
+
]),
|
|
1263
|
+
thresholdReason: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
1264
|
+
}).annotate({ identifier: "DomainWarmingEvidence" });
|
|
1265
|
+
const OnboardingReviewStatus = Schema$1.Struct({
|
|
1266
|
+
decision: Schema$1.Literals([
|
|
1267
|
+
"undecided",
|
|
1268
|
+
"approved",
|
|
1269
|
+
"rejected",
|
|
1270
|
+
"exempt"
|
|
1271
|
+
]),
|
|
1272
|
+
stage: Schema$1.Literals([
|
|
1273
|
+
"collecting",
|
|
1274
|
+
"automated_review",
|
|
1275
|
+
"manual_review",
|
|
1276
|
+
"information_requested",
|
|
1277
|
+
"complete"
|
|
1278
|
+
]),
|
|
1279
|
+
generation: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })),
|
|
1280
|
+
canSend: Schema$1.Boolean,
|
|
1281
|
+
code: Schema$1.Union([Schema$1.Literals([
|
|
1282
|
+
"review_required",
|
|
1283
|
+
"review_in_progress",
|
|
1284
|
+
"information_required",
|
|
1285
|
+
"review_rejected",
|
|
1286
|
+
"identity_review_required",
|
|
1287
|
+
"identity_review_rejected",
|
|
1288
|
+
"identity_changed"
|
|
1289
|
+
]), Schema$1.Null]),
|
|
1290
|
+
nextAction: Schema$1.Union([Schema$1.Literals([
|
|
1291
|
+
"wait_for_review",
|
|
1292
|
+
"provide_information",
|
|
1293
|
+
"verify_sending_identity",
|
|
1294
|
+
"reapply",
|
|
1295
|
+
"contact_support"
|
|
1296
|
+
]), Schema$1.Null]),
|
|
1297
|
+
canReapply: Schema$1.Boolean,
|
|
1298
|
+
informationRequest: Schema$1.Union([Schema$1.Struct({
|
|
1299
|
+
id: Schema$1.String,
|
|
1300
|
+
requestedFields: Schema$1.Array(Schema$1.String),
|
|
1301
|
+
requestedAt: Schema$1.String,
|
|
1302
|
+
canRespond: Schema$1.Boolean
|
|
1075
1303
|
}), Schema$1.Null]),
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
failure: Schema$1.Union([Schema$1.Struct({
|
|
1080
|
-
code: Schema$1.String,
|
|
1081
|
-
message: Schema$1.String,
|
|
1082
|
-
failedAt: Schema$1.String
|
|
1083
|
-
}), Schema$1.Null])
|
|
1084
|
-
}).annotate({ identifier: "EmailDomainVerification" });
|
|
1304
|
+
identities: Schema$1.Array(IdentityClearanceStatus),
|
|
1305
|
+
updatedAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
1306
|
+
}).annotate({ identifier: "OnboardingReviewStatus" });
|
|
1085
1307
|
const SuppressionEntry = Schema$1.Struct({
|
|
1086
1308
|
id: SuppressionId,
|
|
1087
1309
|
email: Schema$1.String,
|
|
@@ -1123,7 +1345,11 @@ const CreatedMedia = Schema$1.Struct({
|
|
|
1123
1345
|
width: Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]),
|
|
1124
1346
|
height: Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]),
|
|
1125
1347
|
durationMs: Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null]),
|
|
1126
|
-
purpose: Schema$1.Literals([
|
|
1348
|
+
purpose: Schema$1.Literals([
|
|
1349
|
+
"attachment",
|
|
1350
|
+
"avatar",
|
|
1351
|
+
"review_evidence"
|
|
1352
|
+
]),
|
|
1127
1353
|
checksumSha256: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1128
1354
|
expiresAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1129
1355
|
createdAt: Schema$1.String,
|
|
@@ -1178,6 +1404,47 @@ const OperationResourceLink = Schema$1.Struct({
|
|
|
1178
1404
|
resource: OperationResource,
|
|
1179
1405
|
href: Schema$1.String.check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/v1\\/")).annotate({ expected: "a string matching the RegExp ^\\/v1\\/" }))
|
|
1180
1406
|
}).annotate({ identifier: "OperationResourceLink" });
|
|
1407
|
+
const TemplateFamily = Schema$1.Struct({
|
|
1408
|
+
id: TemplateFamilyId,
|
|
1409
|
+
organizationId: OrganizationId,
|
|
1410
|
+
name: Schema$1.String,
|
|
1411
|
+
members: Schema$1.Array(Schema$1.Struct({
|
|
1412
|
+
id: TemplateId,
|
|
1413
|
+
name: Schema$1.String,
|
|
1414
|
+
slug: Schema$1.String,
|
|
1415
|
+
channel: Schema$1.Literal("email"),
|
|
1416
|
+
status: Schema$1.Literals([
|
|
1417
|
+
"draft",
|
|
1418
|
+
"pending",
|
|
1419
|
+
"approved",
|
|
1420
|
+
"published",
|
|
1421
|
+
"rejected",
|
|
1422
|
+
"archived"
|
|
1423
|
+
]),
|
|
1424
|
+
isActive: Schema$1.Boolean,
|
|
1425
|
+
createdAt: Schema$1.String,
|
|
1426
|
+
updatedAt: Schema$1.String
|
|
1427
|
+
})),
|
|
1428
|
+
createdAt: Schema$1.String,
|
|
1429
|
+
updatedAt: Schema$1.String
|
|
1430
|
+
}).annotate({ identifier: "TemplateFamily" });
|
|
1431
|
+
const UpdateTemplatePayload = Schema$1.Struct({ data: Schema$1.Struct({
|
|
1432
|
+
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1433
|
+
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1434
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1435
|
+
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
1436
|
+
"transactional",
|
|
1437
|
+
"marketing",
|
|
1438
|
+
"support",
|
|
1439
|
+
"notification",
|
|
1440
|
+
"verification",
|
|
1441
|
+
"reminder",
|
|
1442
|
+
"alert"
|
|
1443
|
+
]), Schema$1.Null]), Schema$1.Null])),
|
|
1444
|
+
fromDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateFromDefault, Schema$1.Null]), Schema$1.Null])),
|
|
1445
|
+
replyToDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
1446
|
+
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null]))
|
|
1447
|
+
}) }).annotate({ identifier: "UpdateTemplatePayload" });
|
|
1181
1448
|
const TemplateCompliance = Schema$1.Struct({
|
|
1182
1449
|
metaStatus: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1183
1450
|
submittedAt: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
@@ -1206,39 +1473,230 @@ const TemplateCompliance = Schema$1.Struct({
|
|
|
1206
1473
|
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
1207
1474
|
})), Schema$1.Null]))
|
|
1208
1475
|
}).annotate({ identifier: "TemplateCompliance" });
|
|
1209
|
-
const
|
|
1210
|
-
id:
|
|
1211
|
-
organizationId: OrganizationId,
|
|
1476
|
+
const WebhookEndpointListItem = Schema$1.Struct({
|
|
1477
|
+
id: WebhookEndpointId,
|
|
1212
1478
|
name: Schema$1.String,
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1479
|
+
url: Schema$1.String,
|
|
1480
|
+
eventTypes: Schema$1.Array(Schema$1.Literals([
|
|
1481
|
+
"message.sent",
|
|
1482
|
+
"message.delivered",
|
|
1483
|
+
"message.read",
|
|
1484
|
+
"message.failed",
|
|
1485
|
+
"message.bounced",
|
|
1486
|
+
"message.complained",
|
|
1487
|
+
"message.received",
|
|
1488
|
+
"contact.created",
|
|
1489
|
+
"contact.updated",
|
|
1490
|
+
"contact.deleted",
|
|
1491
|
+
"conversation.started",
|
|
1492
|
+
"conversation.ended",
|
|
1493
|
+
"conversation.created",
|
|
1494
|
+
"conversation.updated",
|
|
1495
|
+
"conversation.archived",
|
|
1496
|
+
"template.created",
|
|
1497
|
+
"template.updated",
|
|
1498
|
+
"template.deleted",
|
|
1499
|
+
"template.approved",
|
|
1500
|
+
"template.rejected",
|
|
1501
|
+
"webhook.created",
|
|
1502
|
+
"webhook.updated",
|
|
1503
|
+
"webhook.deleted",
|
|
1504
|
+
"webhook.test",
|
|
1505
|
+
"domain.updated",
|
|
1506
|
+
"domain.warming.updated"
|
|
1507
|
+
])),
|
|
1508
|
+
channels: Schema$1.Union([Schema$1.Array(Schema$1.Literal("email")), Schema$1.Null]),
|
|
1509
|
+
status: Schema$1.Literals(["active", "disabled"]),
|
|
1510
|
+
hasCustomHeaders: Schema$1.Boolean,
|
|
1511
|
+
failureStartedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1512
|
+
lastSucceededAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1513
|
+
createdAt: Schema$1.String,
|
|
1514
|
+
updatedAt: Schema$1.String,
|
|
1515
|
+
deliveries: WebhookDeliveryCounts
|
|
1516
|
+
}).annotate({ identifier: "WebhookEndpointListItem" });
|
|
1517
|
+
const WebhookStatsResponse = Schema$1.Struct({
|
|
1518
|
+
total: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1519
|
+
pending: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1520
|
+
delivered: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1521
|
+
exhausted: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1522
|
+
cancelled: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1523
|
+
daily: Schema$1.Array(WebhookDailyDeliveries)
|
|
1524
|
+
}).annotate({ identifier: "WebhookStatsResponse" });
|
|
1525
|
+
const EmailAttachments = Schema$1.Union([Schema$1.Array(EmailAttachment).check(Schema$1.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema$1.Null]).annotate({ identifier: "EmailAttachments" });
|
|
1526
|
+
const EmailRecipients = Schema$1.Array(EmailRecipient).check(Schema$1.isMinLength(1).annotate({
|
|
1527
|
+
expected: "a value with a length of at least 1",
|
|
1528
|
+
identifier: "EmailRecipients"
|
|
1239
1529
|
}));
|
|
1240
1530
|
const EmailCcRecipients = Schema$1.Union([Schema$1.Union([Schema$1.Array(EmailRecipient), Schema$1.Null]), Schema$1.Null]).annotate({ identifier: "EmailCcRecipients" });
|
|
1241
1531
|
const EmailBccRecipients = Schema$1.Union([Schema$1.Union([Schema$1.Array(EmailRecipient), Schema$1.Null]), Schema$1.Null]).annotate({ identifier: "EmailBccRecipients" });
|
|
1532
|
+
const EmailDomainVerification = Schema$1.Struct({
|
|
1533
|
+
domainId: EmailDomainId,
|
|
1534
|
+
domain: Schema$1.String,
|
|
1535
|
+
phase: Schema$1.Literals([
|
|
1536
|
+
"dns-setup",
|
|
1537
|
+
"provider-setup",
|
|
1538
|
+
"provider-verification",
|
|
1539
|
+
"ready",
|
|
1540
|
+
"degraded",
|
|
1541
|
+
"failed"
|
|
1542
|
+
]),
|
|
1543
|
+
records: Schema$1.Array(Schema$1.Struct({
|
|
1544
|
+
record: Schema$1.Struct({
|
|
1545
|
+
type: Schema$1.Literals([
|
|
1546
|
+
"A",
|
|
1547
|
+
"AAAA",
|
|
1548
|
+
"CNAME",
|
|
1549
|
+
"MX",
|
|
1550
|
+
"NS",
|
|
1551
|
+
"SOA",
|
|
1552
|
+
"PTR",
|
|
1553
|
+
"SRV",
|
|
1554
|
+
"TXT",
|
|
1555
|
+
"CAA"
|
|
1556
|
+
]),
|
|
1557
|
+
name: Schema$1.String,
|
|
1558
|
+
value: Schema$1.String,
|
|
1559
|
+
ttl: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1560
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1561
|
+
priority: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null]))
|
|
1562
|
+
}),
|
|
1563
|
+
status: Schema$1.Literals([
|
|
1564
|
+
"unchecked",
|
|
1565
|
+
"missing",
|
|
1566
|
+
"mismatch",
|
|
1567
|
+
"found"
|
|
1568
|
+
]),
|
|
1569
|
+
observedValues: Schema$1.Array(Schema$1.String),
|
|
1570
|
+
checkedAt: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1571
|
+
resolutionFailure: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
1572
|
+
code: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1573
|
+
message: Schema$1.String
|
|
1574
|
+
}), Schema$1.Null]))
|
|
1575
|
+
})),
|
|
1576
|
+
provider: Schema$1.Union([Schema$1.Struct({
|
|
1577
|
+
identity: Schema$1.Literals([
|
|
1578
|
+
"pending",
|
|
1579
|
+
"verified",
|
|
1580
|
+
"failed",
|
|
1581
|
+
"unknown"
|
|
1582
|
+
]),
|
|
1583
|
+
dkim: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
1584
|
+
"pending",
|
|
1585
|
+
"verified",
|
|
1586
|
+
"failed",
|
|
1587
|
+
"unknown"
|
|
1588
|
+
]), Schema$1.Null])),
|
|
1589
|
+
mailFrom: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
1590
|
+
"pending",
|
|
1591
|
+
"verified",
|
|
1592
|
+
"failed",
|
|
1593
|
+
"unknown"
|
|
1594
|
+
]), Schema$1.Null]))
|
|
1595
|
+
}), Schema$1.Null]),
|
|
1596
|
+
operationId: Schema$1.Union([OperationId, Schema$1.Null]),
|
|
1597
|
+
checkedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1598
|
+
nextCheckAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1599
|
+
failure: Schema$1.Union([Schema$1.Struct({
|
|
1600
|
+
code: Schema$1.String,
|
|
1601
|
+
message: Schema$1.String,
|
|
1602
|
+
failedAt: Schema$1.String
|
|
1603
|
+
}), Schema$1.Null]),
|
|
1604
|
+
health: Schema$1.Struct({
|
|
1605
|
+
actionOwner: Schema$1.Literals([
|
|
1606
|
+
"customer",
|
|
1607
|
+
"samva",
|
|
1608
|
+
"provider",
|
|
1609
|
+
"none"
|
|
1610
|
+
]),
|
|
1611
|
+
action: Schema$1.String,
|
|
1612
|
+
freshness: Schema$1.Literals([
|
|
1613
|
+
"current",
|
|
1614
|
+
"stale",
|
|
1615
|
+
"unknown"
|
|
1616
|
+
]),
|
|
1617
|
+
observedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1618
|
+
staleAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1619
|
+
nextRetryAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1620
|
+
reason: Schema$1.Literals([
|
|
1621
|
+
"ready",
|
|
1622
|
+
"dns-action-required",
|
|
1623
|
+
"dns-unavailable",
|
|
1624
|
+
"provider-pending",
|
|
1625
|
+
"provider-failed",
|
|
1626
|
+
"samva-repair",
|
|
1627
|
+
"signing-custody-action-required",
|
|
1628
|
+
"provider-ownership-action-required",
|
|
1629
|
+
"inactive",
|
|
1630
|
+
"observation-stale",
|
|
1631
|
+
"observation-unknown"
|
|
1632
|
+
])
|
|
1633
|
+
}),
|
|
1634
|
+
sending: Schema$1.Struct({
|
|
1635
|
+
actionOwner: Schema$1.Literals([
|
|
1636
|
+
"customer",
|
|
1637
|
+
"samva",
|
|
1638
|
+
"provider",
|
|
1639
|
+
"none"
|
|
1640
|
+
]),
|
|
1641
|
+
action: Schema$1.String,
|
|
1642
|
+
freshness: Schema$1.Literals([
|
|
1643
|
+
"current",
|
|
1644
|
+
"stale",
|
|
1645
|
+
"unknown"
|
|
1646
|
+
]),
|
|
1647
|
+
observedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1648
|
+
staleAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1649
|
+
nextRetryAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1650
|
+
status: Schema$1.Literals([
|
|
1651
|
+
"ready",
|
|
1652
|
+
"blocked",
|
|
1653
|
+
"unknown"
|
|
1654
|
+
]),
|
|
1655
|
+
reason: Schema$1.Literals([
|
|
1656
|
+
"domain-not-ready",
|
|
1657
|
+
"domain-observation-stale",
|
|
1658
|
+
"operator-paused",
|
|
1659
|
+
"provider-paused",
|
|
1660
|
+
"tenant-health-stale",
|
|
1661
|
+
"tenant-health-unknown",
|
|
1662
|
+
"ready"
|
|
1663
|
+
])
|
|
1664
|
+
}).annotate({ description: "Stored domain, tenant and workspace health. Ready does not guarantee send acceptance or report configuration-set/account pauses." }),
|
|
1665
|
+
dmarc: Schema$1.Struct({
|
|
1666
|
+
status: Schema$1.Literals([
|
|
1667
|
+
"valid",
|
|
1668
|
+
"missing",
|
|
1669
|
+
"invalid",
|
|
1670
|
+
"multiple",
|
|
1671
|
+
"unknown"
|
|
1672
|
+
]),
|
|
1673
|
+
source: Schema$1.Literals([
|
|
1674
|
+
"direct",
|
|
1675
|
+
"organizational",
|
|
1676
|
+
"none"
|
|
1677
|
+
]),
|
|
1678
|
+
policyDomain: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1679
|
+
policy: Schema$1.Union([Schema$1.Literals([
|
|
1680
|
+
"none",
|
|
1681
|
+
"quarantine",
|
|
1682
|
+
"reject"
|
|
1683
|
+
]), Schema$1.Null]),
|
|
1684
|
+
subdomainPolicy: Schema$1.Union([Schema$1.Literals([
|
|
1685
|
+
"none",
|
|
1686
|
+
"quarantine",
|
|
1687
|
+
"reject"
|
|
1688
|
+
]), Schema$1.Null]),
|
|
1689
|
+
effectivePolicy: Schema$1.Union([Schema$1.Literals([
|
|
1690
|
+
"none",
|
|
1691
|
+
"quarantine",
|
|
1692
|
+
"reject"
|
|
1693
|
+
]), Schema$1.Null]),
|
|
1694
|
+
observedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1695
|
+
staleAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1696
|
+
guidance: Schema$1.String
|
|
1697
|
+
}),
|
|
1698
|
+
rotation: Schema$1.Union([EmailDkimRotation, Schema$1.Null])
|
|
1699
|
+
}).annotate({ identifier: "EmailDomainVerification" });
|
|
1242
1700
|
const CompletedMedia = Schema$1.Struct({
|
|
1243
1701
|
media: Media,
|
|
1244
1702
|
downloadUrl: Schema$1.String
|
|
@@ -1454,6 +1912,14 @@ const Organization = Schema$1.Struct({
|
|
|
1454
1912
|
teamMembersUsed: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1455
1913
|
messagesResetAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
1456
1914
|
}).annotate({ identifier: "Organization" });
|
|
1915
|
+
const DomainWarming = Schema$1.Struct({
|
|
1916
|
+
domain: DomainWarmingDomainRef,
|
|
1917
|
+
plan: Schema$1.Union([DomainWarmingPlan, Schema$1.Null]),
|
|
1918
|
+
batches: Schema$1.Array(DomainWarmingBatch),
|
|
1919
|
+
decisions: Schema$1.Array(DomainWarmingDecision),
|
|
1920
|
+
evidence: DomainWarmingEvidence,
|
|
1921
|
+
holds: DomainWarmingHolds
|
|
1922
|
+
}).annotate({ identifier: "DomainWarming" });
|
|
1457
1923
|
const OperationAccepted = Schema$1.Struct({
|
|
1458
1924
|
operation: Operation,
|
|
1459
1925
|
links: Schema$1.Struct({
|
|
@@ -1464,92 +1930,46 @@ const OperationAccepted = Schema$1.Struct({
|
|
|
1464
1930
|
const Template = Schema$1.Struct({
|
|
1465
1931
|
id: TemplateId,
|
|
1466
1932
|
organizationId: OrganizationId,
|
|
1933
|
+
projectId: TemplateProjectId,
|
|
1934
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
1467
1935
|
name: Schema$1.String,
|
|
1468
1936
|
slug: Schema$1.String,
|
|
1469
1937
|
familyId: Schema$1.Union([TemplateFamilyId, Schema$1.Null]),
|
|
1470
1938
|
channel: Schema$1.Literal("email"),
|
|
1471
|
-
origin: Schema$1.Literals(["dashboard", "tsx"]),
|
|
1472
1939
|
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1473
1940
|
category: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1474
|
-
fromDefault: Schema$1.optionalKey(Schema$1.Union([TemplateFromDefault, Schema$1.Null])),
|
|
1475
|
-
replyToDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
1476
|
-
trackingDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
1941
|
+
fromDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateFromDefault, Schema$1.Null]), Schema$1.Null])),
|
|
1942
|
+
replyToDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
1943
|
+
trackingDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Struct({
|
|
1477
1944
|
opens: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1478
1945
|
clicks: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null]))
|
|
1479
|
-
}), Schema$1.Null])),
|
|
1946
|
+
}), Schema$1.Null]), Schema$1.Null])),
|
|
1480
1947
|
email: Schema$1.Union([Schema$1.Struct({
|
|
1481
1948
|
subject: Schema$1.String,
|
|
1482
1949
|
preheader: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1483
1950
|
headers: Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null])
|
|
1484
1951
|
}), Schema$1.Null]),
|
|
1485
|
-
|
|
1952
|
+
publicationId: Schema$1.Union([TemplatePublicationId, Schema$1.Null]),
|
|
1953
|
+
inputContractId: Schema$1.Union([TemplateInputContractId, Schema$1.Null]),
|
|
1954
|
+
inputSchema: Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]),
|
|
1486
1955
|
compliance: Schema$1.Union([TemplateCompliance, Schema$1.Null]),
|
|
1487
|
-
designOverrides: Schema$1.Union([Design, Schema$1.Null]),
|
|
1488
1956
|
usageCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1489
1957
|
lastUsedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1490
1958
|
status: Schema$1.String,
|
|
1491
1959
|
isActive: Schema$1.Boolean,
|
|
1492
1960
|
isDefault: Schema$1.Boolean,
|
|
1493
|
-
version: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
1494
1961
|
publishedAt: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1495
1962
|
publishedBy: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1496
1963
|
createdAt: Schema$1.String,
|
|
1497
1964
|
updatedAt: Schema$1.String
|
|
1498
1965
|
}).annotate({ identifier: "Template" });
|
|
1499
|
-
const CreateTemplatePayload = Schema$1.Struct({
|
|
1500
|
-
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
1501
|
-
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1502
|
-
origin: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["dashboard", "tsx"]), Schema$1.Null])),
|
|
1503
|
-
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1504
|
-
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
1505
|
-
"transactional",
|
|
1506
|
-
"marketing",
|
|
1507
|
-
"support",
|
|
1508
|
-
"notification",
|
|
1509
|
-
"verification",
|
|
1510
|
-
"reminder",
|
|
1511
|
-
"alert"
|
|
1512
|
-
]), Schema$1.Null]), Schema$1.Null])),
|
|
1513
|
-
source: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
1514
|
-
subject: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1515
|
-
headers: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
1516
|
-
variableSchema: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(TemplateVariable), Schema$1.Null]), Schema$1.Null])),
|
|
1517
|
-
compliance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateCompliance, Schema$1.Null]), Schema$1.Null])),
|
|
1518
|
-
performance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplatePerformance, Schema$1.Null]), Schema$1.Null])),
|
|
1519
|
-
designOverrides: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Design, Schema$1.Null]), Schema$1.Null])),
|
|
1520
|
-
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1521
|
-
isDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1522
|
-
version: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]))
|
|
1523
|
-
}).annotate({ identifier: "CreateTemplatePayload" });
|
|
1524
|
-
const UpdateTemplatePayload = Schema$1.Struct({ data: Schema$1.Struct({
|
|
1525
|
-
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1526
|
-
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1527
|
-
origin: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["dashboard", "tsx"]), Schema$1.Null])),
|
|
1528
|
-
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1529
|
-
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
1530
|
-
"transactional",
|
|
1531
|
-
"marketing",
|
|
1532
|
-
"support",
|
|
1533
|
-
"notification",
|
|
1534
|
-
"verification",
|
|
1535
|
-
"reminder",
|
|
1536
|
-
"alert"
|
|
1537
|
-
]), Schema$1.Null]), Schema$1.Null])),
|
|
1538
|
-
fromDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateFromDefault, Schema$1.Null]), Schema$1.Null])),
|
|
1539
|
-
replyToDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
1540
|
-
variableSchema: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(TemplateVariable), Schema$1.Null]), Schema$1.Null])),
|
|
1541
|
-
compliance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateCompliance, Schema$1.Null]), Schema$1.Null])),
|
|
1542
|
-
performance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplatePerformance, Schema$1.Null]), Schema$1.Null])),
|
|
1543
|
-
designOverrides: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Design, Schema$1.Null]), Schema$1.Null])),
|
|
1544
|
-
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1545
|
-
isDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1546
|
-
version: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]))
|
|
1547
|
-
}) }).annotate({ identifier: "UpdateTemplatePayload" });
|
|
1548
1966
|
const EmailContent = Schema$1.Struct({
|
|
1549
1967
|
subject: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1550
1968
|
html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1551
1969
|
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1552
1970
|
attachments: Schema$1.optionalKey(EmailAttachments),
|
|
1971
|
+
publicationId: Schema$1.optionalKey(TemplatePublicationId),
|
|
1972
|
+
inputContractId: Schema$1.optionalKey(TemplateInputContractId),
|
|
1553
1973
|
templateId: Schema$1.optionalKey(Schema$1.Union([TemplateId, Schema$1.Null])),
|
|
1554
1974
|
templateSlug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1555
1975
|
templateData: Schema$1.optionalKey(TemplateData),
|
|
@@ -1564,6 +1984,8 @@ const EmailDispatchContent = Schema$1.Struct({
|
|
|
1564
1984
|
html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1565
1985
|
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1566
1986
|
attachments: Schema$1.optionalKey(EmailAttachments),
|
|
1987
|
+
publicationId: Schema$1.optionalKey(TemplatePublicationId),
|
|
1988
|
+
inputContractId: Schema$1.optionalKey(TemplateInputContractId),
|
|
1567
1989
|
templateId: Schema$1.optionalKey(Schema$1.Union([TemplateId, Schema$1.Null])),
|
|
1568
1990
|
templateSlug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1569
1991
|
templateData: Schema$1.optionalKey(TemplateData),
|
|
@@ -1648,6 +2070,8 @@ const CampaignRun = Schema$1.Struct({
|
|
|
1648
2070
|
failedCount: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1649
2071
|
skippedCount: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1650
2072
|
failureReason: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
2073
|
+
holdReason: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
2074
|
+
holdDomainId: Schema$1.Union([EmailDomainId, Schema$1.Null]),
|
|
1651
2075
|
lastContactId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1652
2076
|
createdBy: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1653
2077
|
actorEmail: Schema$1.String,
|
|
@@ -1660,6 +2084,7 @@ const ScheduledMessage = Schema$1.Struct({
|
|
|
1660
2084
|
status: Schema$1.Literals([
|
|
1661
2085
|
"pending",
|
|
1662
2086
|
"dispatching",
|
|
2087
|
+
"paused",
|
|
1663
2088
|
"dispatched",
|
|
1664
2089
|
"cancelled",
|
|
1665
2090
|
"failed"
|
|
@@ -2609,16 +3034,23 @@ const EmailListDomains200 = Schema$1.Struct({
|
|
|
2609
3034
|
const EmailListDomains401 = UnauthorizedError;
|
|
2610
3035
|
const EmailListDomains403 = ForbiddenError;
|
|
2611
3036
|
const EmailListDomains500 = InternalError;
|
|
2612
|
-
const EmailAddDomainRequestJson = Schema$1.Struct({
|
|
2613
|
-
|
|
3037
|
+
const EmailAddDomainRequestJson = Schema$1.Struct({
|
|
3038
|
+
domain: Schema$1.String,
|
|
3039
|
+
connection: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
3040
|
+
connectionId: Schema$1.String,
|
|
3041
|
+
zone: Schema$1.String
|
|
3042
|
+
}), Schema$1.Null]))
|
|
3043
|
+
});
|
|
3044
|
+
const EmailAddDomain201 = EmailDomainDetailed;
|
|
2614
3045
|
const EmailAddDomain401 = UnauthorizedError;
|
|
2615
3046
|
const EmailAddDomain402 = PaymentRequiredError;
|
|
2616
3047
|
const EmailAddDomain403 = ForbiddenError;
|
|
2617
3048
|
const EmailAddDomain409 = ConflictError;
|
|
3049
|
+
const EmailAddDomain422 = ValidationError;
|
|
2618
3050
|
const EmailAddDomain500 = InternalError;
|
|
2619
3051
|
const EmailAddDomain502 = Schema$1.Union([EmailChannelError, BillingProviderError]);
|
|
2620
3052
|
const EmailGetDomainByIdPathParams = Schema$1.Struct({ id: EmailDomainId });
|
|
2621
|
-
const EmailGetDomainById200 =
|
|
3053
|
+
const EmailGetDomainById200 = EmailDomainDetailed;
|
|
2622
3054
|
const EmailGetDomainById401 = UnauthorizedError;
|
|
2623
3055
|
const EmailGetDomainById403 = ForbiddenError;
|
|
2624
3056
|
const EmailGetDomainById404 = ResourceNotFoundError;
|
|
@@ -2714,6 +3146,15 @@ const EmailClearDomainDefaultSender401 = UnauthorizedError;
|
|
|
2714
3146
|
const EmailClearDomainDefaultSender403 = ForbiddenError;
|
|
2715
3147
|
const EmailClearDomainDefaultSender404 = ResourceNotFoundError;
|
|
2716
3148
|
const EmailClearDomainDefaultSender500 = InternalError;
|
|
3149
|
+
const EmailRotateDomainDkimPathParams = Schema$1.Struct({ id: EmailDomainId });
|
|
3150
|
+
const EmailRotateDomainDkimHeaders = Schema$1.Struct({ "idempotency-key": Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })) });
|
|
3151
|
+
const EmailRotateDomainDkim200 = EmailDkimRotation;
|
|
3152
|
+
const EmailRotateDomainDkim401 = UnauthorizedError;
|
|
3153
|
+
const EmailRotateDomainDkim403 = ForbiddenError;
|
|
3154
|
+
const EmailRotateDomainDkim404 = ResourceNotFoundError;
|
|
3155
|
+
const EmailRotateDomainDkim409 = ConflictError;
|
|
3156
|
+
const EmailRotateDomainDkim500 = InternalError;
|
|
3157
|
+
const EmailRotateDomainDkim502 = EmailChannelError;
|
|
2717
3158
|
const EmailGetDomainConnectPathParams = Schema$1.Struct({ id: EmailDomainId });
|
|
2718
3159
|
const EmailGetDomainConnectQuery = Schema$1.Struct({ mode: Schema$1.Literals(["send-only", "send-and-receive"]) });
|
|
2719
3160
|
const EmailGetDomainConnect200 = DomainConnectEligibility;
|
|
@@ -2785,6 +3226,77 @@ const EmailAdvanceDomainVerification422 = ValidationError;
|
|
|
2785
3226
|
const EmailAdvanceDomainVerification429 = RateLimitedError;
|
|
2786
3227
|
const EmailAdvanceDomainVerification500 = InternalError;
|
|
2787
3228
|
const EmailAdvanceDomainVerification502 = EmailChannelError;
|
|
3229
|
+
const EmailGetDomainWarmingPathParams = Schema$1.Struct({ id: EmailDomainId });
|
|
3230
|
+
const EmailGetDomainWarming200 = DomainWarming;
|
|
3231
|
+
const EmailGetDomainWarming401 = UnauthorizedError;
|
|
3232
|
+
const EmailGetDomainWarming403 = ForbiddenError;
|
|
3233
|
+
const EmailGetDomainWarming404 = ResourceNotFoundError;
|
|
3234
|
+
const EmailGetDomainWarming500 = InternalError;
|
|
3235
|
+
const EmailCreateDomainWarmingPlanPathParams = Schema$1.Struct({ id: EmailDomainId });
|
|
3236
|
+
const EmailCreateDomainWarmingPlanRequestJson = Schema$1.Struct({
|
|
3237
|
+
identity: Schema$1.Literals([
|
|
3238
|
+
"new",
|
|
3239
|
+
"migrating",
|
|
3240
|
+
"returning"
|
|
3241
|
+
]),
|
|
3242
|
+
initialDailyRecipients: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isLessThanOrEqualTo(1e6).annotate({ expected: "a value less than or equal to 1000000" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
3243
|
+
dailyGrowthPercent: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1e4).annotate({ expected: "a value less than or equal to 10000" })),
|
|
3244
|
+
targetDailyRecipients: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isLessThanOrEqualTo(1e6).annotate({ expected: "a value less than or equal to 1000000" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))
|
|
3245
|
+
});
|
|
3246
|
+
const EmailCreateDomainWarmingPlan201 = DomainWarming;
|
|
3247
|
+
const EmailCreateDomainWarmingPlan401 = UnauthorizedError;
|
|
3248
|
+
const EmailCreateDomainWarmingPlan403 = ForbiddenError;
|
|
3249
|
+
const EmailCreateDomainWarmingPlan404 = ResourceNotFoundError;
|
|
3250
|
+
const EmailCreateDomainWarmingPlan409 = ConflictError;
|
|
3251
|
+
const EmailCreateDomainWarmingPlan422 = ValidationError;
|
|
3252
|
+
const EmailCreateDomainWarmingPlan500 = InternalError;
|
|
3253
|
+
const EmailCancelDomainWarmingBatchPathParams = Schema$1.Struct({
|
|
3254
|
+
id: EmailDomainId,
|
|
3255
|
+
batchId: EmailDomainWarmingBatchId
|
|
3256
|
+
});
|
|
3257
|
+
const EmailCancelDomainWarmingBatch200 = DomainWarming;
|
|
3258
|
+
const EmailCancelDomainWarmingBatch401 = UnauthorizedError;
|
|
3259
|
+
const EmailCancelDomainWarmingBatch403 = ForbiddenError;
|
|
3260
|
+
const EmailCancelDomainWarmingBatch404 = ResourceNotFoundError;
|
|
3261
|
+
const EmailCancelDomainWarmingBatch409 = ConflictError;
|
|
3262
|
+
const EmailCancelDomainWarmingBatch500 = InternalError;
|
|
3263
|
+
const EmailCompleteDomainWarmingPathParams = Schema$1.Struct({ id: EmailDomainId });
|
|
3264
|
+
const EmailCompleteDomainWarmingRequestJson = Schema$1.Struct({ note: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })), Schema$1.Null])) });
|
|
3265
|
+
const EmailCompleteDomainWarming200 = DomainWarming;
|
|
3266
|
+
const EmailCompleteDomainWarming401 = UnauthorizedError;
|
|
3267
|
+
const EmailCompleteDomainWarming403 = ForbiddenError;
|
|
3268
|
+
const EmailCompleteDomainWarming404 = ResourceNotFoundError;
|
|
3269
|
+
const EmailCompleteDomainWarming409 = ConflictError;
|
|
3270
|
+
const EmailCompleteDomainWarming500 = InternalError;
|
|
3271
|
+
const EmailPauseDomainWarmingPathParams = Schema$1.Struct({ id: EmailDomainId });
|
|
3272
|
+
const EmailPauseDomainWarmingRequestJson = Schema$1.Struct({ note: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })), Schema$1.Null])) });
|
|
3273
|
+
const EmailPauseDomainWarming200 = DomainWarming;
|
|
3274
|
+
const EmailPauseDomainWarming401 = UnauthorizedError;
|
|
3275
|
+
const EmailPauseDomainWarming403 = ForbiddenError;
|
|
3276
|
+
const EmailPauseDomainWarming404 = ResourceNotFoundError;
|
|
3277
|
+
const EmailPauseDomainWarming409 = ConflictError;
|
|
3278
|
+
const EmailPauseDomainWarming500 = InternalError;
|
|
3279
|
+
const EmailUpdateDomainWarmingPolicyPathParams = Schema$1.Struct({ id: EmailDomainId });
|
|
3280
|
+
const EmailUpdateDomainWarmingPolicyRequestJson = Schema$1.Struct({
|
|
3281
|
+
dailyGrowthPercent: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1e4).annotate({ expected: "a value less than or equal to 10000" })),
|
|
3282
|
+
targetDailyRecipients: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isLessThanOrEqualTo(1e6).annotate({ expected: "a value less than or equal to 1000000" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
3283
|
+
note: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })), Schema$1.Null]))
|
|
3284
|
+
});
|
|
3285
|
+
const EmailUpdateDomainWarmingPolicy200 = DomainWarming;
|
|
3286
|
+
const EmailUpdateDomainWarmingPolicy401 = UnauthorizedError;
|
|
3287
|
+
const EmailUpdateDomainWarmingPolicy403 = ForbiddenError;
|
|
3288
|
+
const EmailUpdateDomainWarmingPolicy404 = ResourceNotFoundError;
|
|
3289
|
+
const EmailUpdateDomainWarmingPolicy409 = ConflictError;
|
|
3290
|
+
const EmailUpdateDomainWarmingPolicy422 = ValidationError;
|
|
3291
|
+
const EmailUpdateDomainWarmingPolicy500 = InternalError;
|
|
3292
|
+
const EmailResumeDomainWarmingPathParams = Schema$1.Struct({ id: EmailDomainId });
|
|
3293
|
+
const EmailResumeDomainWarmingRequestJson = Schema$1.Struct({ note: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })), Schema$1.Null])) });
|
|
3294
|
+
const EmailResumeDomainWarming200 = DomainWarming;
|
|
3295
|
+
const EmailResumeDomainWarming401 = UnauthorizedError;
|
|
3296
|
+
const EmailResumeDomainWarming403 = ForbiddenError;
|
|
3297
|
+
const EmailResumeDomainWarming404 = ResourceNotFoundError;
|
|
3298
|
+
const EmailResumeDomainWarming409 = ConflictError;
|
|
3299
|
+
const EmailResumeDomainWarming500 = InternalError;
|
|
2788
3300
|
const EmailListForwardingRulesQuery = Schema$1.Struct({
|
|
2789
3301
|
domainId: Schema$1.optionalKey(Schema$1.Union([EmailDomainId, Schema$1.Null])),
|
|
2790
3302
|
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.annotate({ contentMediaType: "application/json" }), Schema$1.Null])),
|
|
@@ -2834,6 +3346,7 @@ const EmailCreateForwardingRule201 = Schema$1.Struct({
|
|
|
2834
3346
|
});
|
|
2835
3347
|
const EmailCreateForwardingRule401 = UnauthorizedError;
|
|
2836
3348
|
const EmailCreateForwardingRule403 = ForbiddenError;
|
|
3349
|
+
const EmailCreateForwardingRule404 = ResourceNotFoundError;
|
|
2837
3350
|
const EmailCreateForwardingRule422 = ValidationError;
|
|
2838
3351
|
const EmailCreateForwardingRule500 = InternalError;
|
|
2839
3352
|
const EmailDeleteForwardingRulePathParams = Schema$1.Struct({ id: EmailForwardingRuleId });
|
|
@@ -2908,6 +3421,26 @@ const EmailGetForwardingLog200 = Schema$1.Struct({
|
|
|
2908
3421
|
const EmailGetForwardingLog401 = UnauthorizedError;
|
|
2909
3422
|
const EmailGetForwardingLog403 = ForbiddenError;
|
|
2910
3423
|
const EmailGetForwardingLog500 = InternalError;
|
|
3424
|
+
const EmailGetOnboardingReview200 = OnboardingReviewStatus;
|
|
3425
|
+
const EmailGetOnboardingReview401 = UnauthorizedError;
|
|
3426
|
+
const EmailGetOnboardingReview403 = ForbiddenError;
|
|
3427
|
+
const EmailGetOnboardingReview500 = InternalError;
|
|
3428
|
+
const EmailReapplyOnboardingReviewRequestJson = Schema$1.Struct({ expectedGeneration: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })) });
|
|
3429
|
+
const EmailReapplyOnboardingReview200 = OnboardingReviewStatus;
|
|
3430
|
+
const EmailReapplyOnboardingReview401 = UnauthorizedError;
|
|
3431
|
+
const EmailReapplyOnboardingReview403 = Schema$1.Union([ForbiddenError]);
|
|
3432
|
+
const EmailReapplyOnboardingReview409 = ConflictError;
|
|
3433
|
+
const EmailReapplyOnboardingReview500 = InternalError;
|
|
3434
|
+
const EmailRespondToOnboardingInformationRequestRequestJson = Schema$1.Struct({
|
|
3435
|
+
expectedGeneration: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
3436
|
+
responseText: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(4e3).annotate({ expected: "a value with a length of at most 4000" })),
|
|
3437
|
+
evidenceMediaIds: Schema$1.Array(MediaId).check(Schema$1.isMaxLength(3).annotate({ expected: "a value with a length of at most 3" }))
|
|
3438
|
+
});
|
|
3439
|
+
const EmailRespondToOnboardingInformationRequest200 = OnboardingReviewStatus;
|
|
3440
|
+
const EmailRespondToOnboardingInformationRequest401 = UnauthorizedError;
|
|
3441
|
+
const EmailRespondToOnboardingInformationRequest403 = Schema$1.Union([ForbiddenError]);
|
|
3442
|
+
const EmailRespondToOnboardingInformationRequest409 = ConflictError;
|
|
3443
|
+
const EmailRespondToOnboardingInformationRequest500 = InternalError;
|
|
2911
3444
|
const EmailListSendersQuery = Schema$1.Struct({
|
|
2912
3445
|
page: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
2913
3446
|
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
@@ -2933,6 +3466,13 @@ const EmailListSenders200 = Schema$1.Struct({
|
|
|
2933
3466
|
]),
|
|
2934
3467
|
verifiedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
2935
3468
|
verificationToken: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3469
|
+
providerLifecycle: Schema$1.Literals([
|
|
3470
|
+
"provisioning",
|
|
3471
|
+
"active",
|
|
3472
|
+
"deleting",
|
|
3473
|
+
"failed"
|
|
3474
|
+
]),
|
|
3475
|
+
providerFailureCode: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
2936
3476
|
isDefault: Schema$1.Boolean,
|
|
2937
3477
|
replyToEmails: Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]),
|
|
2938
3478
|
deliverability: DeliverabilityFacts,
|
|
@@ -2945,6 +3485,7 @@ const EmailListSenders200 = Schema$1.Struct({
|
|
|
2945
3485
|
const EmailListSenders401 = UnauthorizedError;
|
|
2946
3486
|
const EmailListSenders403 = ForbiddenError;
|
|
2947
3487
|
const EmailListSenders500 = InternalError;
|
|
3488
|
+
const EmailAddSenderHeaders = Schema$1.Struct({ "idempotency-key": Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })) });
|
|
2948
3489
|
const EmailAddSenderRequestJson = Schema$1.Struct({
|
|
2949
3490
|
email: Schema$1.String,
|
|
2950
3491
|
domainId: Schema$1.optionalKey(Schema$1.Union([EmailDomainId, Schema$1.Null])),
|
|
@@ -2959,6 +3500,13 @@ const EmailAddSender201 = Schema$1.Struct({
|
|
|
2959
3500
|
"verified",
|
|
2960
3501
|
"failed"
|
|
2961
3502
|
]),
|
|
3503
|
+
providerLifecycle: Schema$1.Literals([
|
|
3504
|
+
"provisioning",
|
|
3505
|
+
"active",
|
|
3506
|
+
"deleting",
|
|
3507
|
+
"failed"
|
|
3508
|
+
]),
|
|
3509
|
+
providerFailureCode: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
2962
3510
|
createdAt: Schema$1.String
|
|
2963
3511
|
});
|
|
2964
3512
|
const EmailAddSender401 = UnauthorizedError;
|
|
@@ -2968,6 +3516,38 @@ const EmailAddSender409 = ConflictError;
|
|
|
2968
3516
|
const EmailAddSender422 = ValidationError;
|
|
2969
3517
|
const EmailAddSender500 = InternalError;
|
|
2970
3518
|
const EmailAddSender502 = ExternalServiceError;
|
|
3519
|
+
const EmailGetSenderPathParams = Schema$1.Struct({ id: EmailSenderId });
|
|
3520
|
+
const EmailGetSender200 = Schema$1.Struct({
|
|
3521
|
+
id: EmailSenderId,
|
|
3522
|
+
organizationId: Schema$1.String,
|
|
3523
|
+
email: Schema$1.String,
|
|
3524
|
+
name: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3525
|
+
domainId: Schema$1.Union([EmailDomainId, Schema$1.Null]),
|
|
3526
|
+
verificationStatus: Schema$1.Literals([
|
|
3527
|
+
"pending",
|
|
3528
|
+
"verified",
|
|
3529
|
+
"failed"
|
|
3530
|
+
]),
|
|
3531
|
+
verifiedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3532
|
+
verificationToken: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3533
|
+
providerLifecycle: Schema$1.Literals([
|
|
3534
|
+
"provisioning",
|
|
3535
|
+
"active",
|
|
3536
|
+
"deleting",
|
|
3537
|
+
"failed"
|
|
3538
|
+
]),
|
|
3539
|
+
providerFailureCode: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3540
|
+
isDefault: Schema$1.Boolean,
|
|
3541
|
+
replyToEmails: Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]),
|
|
3542
|
+
deliverability: DeliverabilityFacts,
|
|
3543
|
+
isActive: Schema$1.Boolean,
|
|
3544
|
+
createdAt: Schema$1.String,
|
|
3545
|
+
updatedAt: Schema$1.String
|
|
3546
|
+
});
|
|
3547
|
+
const EmailGetSender401 = UnauthorizedError;
|
|
3548
|
+
const EmailGetSender403 = ForbiddenError;
|
|
3549
|
+
const EmailGetSender404 = ResourceNotFoundError;
|
|
3550
|
+
const EmailGetSender500 = InternalError;
|
|
2971
3551
|
const EmailRemoveSenderPathParams = Schema$1.Struct({ id: EmailSenderId });
|
|
2972
3552
|
const EmailRemoveSender200 = SuccessResult;
|
|
2973
3553
|
const EmailRemoveSender401 = UnauthorizedError;
|
|
@@ -3021,7 +3601,7 @@ const EmailListSuppressionsQuery = Schema$1.Struct({
|
|
|
3021
3601
|
"manual"
|
|
3022
3602
|
]), Schema$1.Null])),
|
|
3023
3603
|
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["active", "expired"]), Schema$1.Null])),
|
|
3024
|
-
search: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3604
|
+
search: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" })), Schema$1.Null])),
|
|
3025
3605
|
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3026
3606
|
offset: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
3027
3607
|
});
|
|
@@ -3073,7 +3653,11 @@ const MediaCreateRequestJson = Schema$1.Struct({
|
|
|
3073
3653
|
filename: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
3074
3654
|
contentType: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(127).annotate({ expected: "a value with a length of at most 127" })),
|
|
3075
3655
|
sizeBytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isLessThanOrEqualTo(26214400).annotate({ expected: "a value less than or equal to 26214400" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
3076
|
-
purpose: Schema$1.Literals([
|
|
3656
|
+
purpose: Schema$1.Literals([
|
|
3657
|
+
"attachment",
|
|
3658
|
+
"avatar",
|
|
3659
|
+
"review_evidence"
|
|
3660
|
+
]),
|
|
3077
3661
|
checksumSha256: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
3078
3662
|
});
|
|
3079
3663
|
const MediaCreate201 = CreatedMedia;
|
|
@@ -3112,6 +3696,7 @@ const MessagesListQuery = Schema$1.Struct({
|
|
|
3112
3696
|
page: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3113
3697
|
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3114
3698
|
channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literal("email"), Schema$1.Null])),
|
|
3699
|
+
direction: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["outbound", "inbound"]), Schema$1.Null])),
|
|
3115
3700
|
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
3116
3701
|
"pending",
|
|
3117
3702
|
"scheduled",
|
|
@@ -3141,7 +3726,11 @@ const MessagesSendRequestJson = Schema$1.Union([EmailSendMessagePayload]);
|
|
|
3141
3726
|
const MessagesSend201 = Message;
|
|
3142
3727
|
const MessagesSend401 = UnauthorizedError;
|
|
3143
3728
|
const MessagesSend402 = PaymentRequiredError;
|
|
3144
|
-
const MessagesSend403 = Schema$1.Union([
|
|
3729
|
+
const MessagesSend403 = Schema$1.Union([
|
|
3730
|
+
OnboardingReviewRequiredError,
|
|
3731
|
+
FlagDisabledError,
|
|
3732
|
+
ForbiddenError
|
|
3733
|
+
]);
|
|
3145
3734
|
const MessagesSend404 = ResourceNotFoundError;
|
|
3146
3735
|
const MessagesSend409 = ConflictError;
|
|
3147
3736
|
const MessagesSend422 = ValidationError;
|
|
@@ -3169,6 +3758,59 @@ const MessagesGetEmailQuery = Schema$1.Struct({
|
|
|
3169
3758
|
urlExpiresIn: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
3170
3759
|
});
|
|
3171
3760
|
const MessagesGetEmail200 = Schema$1.Struct({
|
|
3761
|
+
deliveries: Schema$1.Array(Schema$1.Struct({
|
|
3762
|
+
scheduling: Schema$1.Union([Schema$1.Struct({
|
|
3763
|
+
dueAt: Schema$1.String,
|
|
3764
|
+
expiresAt: Schema$1.String,
|
|
3765
|
+
waitReason: Schema$1.Union([Schema$1.Literals([
|
|
3766
|
+
"rate",
|
|
3767
|
+
"daily-quota",
|
|
3768
|
+
"domain-health",
|
|
3769
|
+
"tenant-health",
|
|
3770
|
+
"provider-unavailable",
|
|
3771
|
+
"retry",
|
|
3772
|
+
"campaign-paused",
|
|
3773
|
+
"domain-warming",
|
|
3774
|
+
"onboarding-review"
|
|
3775
|
+
]), Schema$1.Null])
|
|
3776
|
+
}), Schema$1.Null]),
|
|
3777
|
+
id: Schema$1.String,
|
|
3778
|
+
messageId: Schema$1.String,
|
|
3779
|
+
recipientId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3780
|
+
channel: Schema$1.Literal("email"),
|
|
3781
|
+
status: Schema$1.Literals([
|
|
3782
|
+
"pending",
|
|
3783
|
+
"scheduled",
|
|
3784
|
+
"queued",
|
|
3785
|
+
"processing",
|
|
3786
|
+
"sent",
|
|
3787
|
+
"delivered",
|
|
3788
|
+
"read",
|
|
3789
|
+
"failed",
|
|
3790
|
+
"bounced",
|
|
3791
|
+
"complained"
|
|
3792
|
+
]),
|
|
3793
|
+
attemptCount: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
3794
|
+
maxAttempts: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
3795
|
+
queuedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3796
|
+
claimedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3797
|
+
lastAttemptAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3798
|
+
nextRetryAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3799
|
+
sentAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3800
|
+
deliveredAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3801
|
+
readAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3802
|
+
failedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3803
|
+
terminalAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3804
|
+
errorCode: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3805
|
+
errorMessage: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3806
|
+
errorDetails: Schema$1.Union([JsonValue, Schema$1.Null]),
|
|
3807
|
+
cost: Schema$1.String,
|
|
3808
|
+
currency: Schema$1.String,
|
|
3809
|
+
idempotencyKey: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3810
|
+
metadata: Schema$1.Union([JsonValue, Schema$1.Null]),
|
|
3811
|
+
createdAt: Schema$1.String,
|
|
3812
|
+
updatedAt: Schema$1.String
|
|
3813
|
+
})),
|
|
3172
3814
|
id: MessageId,
|
|
3173
3815
|
organizationId: Schema$1.String,
|
|
3174
3816
|
conversationId: Schema$1.Union([ConversationId, Schema$1.Null]),
|
|
@@ -3308,6 +3950,7 @@ const ScheduledMessagesListQuery = Schema$1.Struct({
|
|
|
3308
3950
|
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
3309
3951
|
"pending",
|
|
3310
3952
|
"dispatching",
|
|
3953
|
+
"paused",
|
|
3311
3954
|
"dispatched",
|
|
3312
3955
|
"cancelled",
|
|
3313
3956
|
"failed"
|
|
@@ -3325,7 +3968,7 @@ const ScheduledMessagesList500 = InternalError;
|
|
|
3325
3968
|
const ScheduledMessagesCreateRequestJson = Schema$1.Struct({
|
|
3326
3969
|
send: DispatchSendMessagePayload,
|
|
3327
3970
|
scheduledFor: AbsoluteInstant,
|
|
3328
|
-
timezone: Schema$1.optionalKey(Schema$1.Union([
|
|
3971
|
+
timezone: Schema$1.optionalKey(Schema$1.Union([IanaTimezone, Schema$1.Null])),
|
|
3329
3972
|
idempotencyKey: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3330
3973
|
referenceId: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
3331
3974
|
});
|
|
@@ -3352,10 +3995,39 @@ const ScheduledMessagesCancel403 = ForbiddenError;
|
|
|
3352
3995
|
const ScheduledMessagesCancel404 = ResourceNotFoundError;
|
|
3353
3996
|
const ScheduledMessagesCancel409 = ConflictError;
|
|
3354
3997
|
const ScheduledMessagesCancel500 = InternalError;
|
|
3355
|
-
const
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3998
|
+
const ScheduledMessagesResumePathParams = Schema$1.Struct({ id: ScheduledMessageId });
|
|
3999
|
+
const ScheduledMessagesResumeRequestJson = Schema$1.Union([Schema$1.Struct({ choice: Schema$1.Literal("send_now") }), Schema$1.Struct({
|
|
4000
|
+
choice: Schema$1.Literal("new_time"),
|
|
4001
|
+
scheduledFor: AbsoluteInstant
|
|
4002
|
+
})]);
|
|
4003
|
+
const ScheduledMessagesResume200 = ScheduledMessage;
|
|
4004
|
+
const ScheduledMessagesResume401 = UnauthorizedError;
|
|
4005
|
+
const ScheduledMessagesResume403 = ForbiddenError;
|
|
4006
|
+
const ScheduledMessagesResume404 = ResourceNotFoundError;
|
|
4007
|
+
const ScheduledMessagesResume409 = ConflictError;
|
|
4008
|
+
const ScheduledMessagesResume422 = ValidationError;
|
|
4009
|
+
const ScheduledMessagesResume500 = InternalError;
|
|
4010
|
+
const ScheduledMessagesResume502 = ExternalServiceError;
|
|
4011
|
+
const MessagesValidateEmailRequestJson = Schema$1.Struct({
|
|
4012
|
+
conversationId: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([ConversationId, Schema$1.Null]), Schema$1.Null])),
|
|
4013
|
+
metadata: Schema$1.optionalKey(MessageMetadata),
|
|
4014
|
+
channel: Schema$1.Literal("email"),
|
|
4015
|
+
to: EmailRecipients,
|
|
4016
|
+
cc: Schema$1.optionalKey(EmailCcRecipients),
|
|
4017
|
+
bcc: Schema$1.optionalKey(EmailBccRecipients),
|
|
4018
|
+
from: Schema$1.optionalKey(EmailSender),
|
|
4019
|
+
email: EmailContent
|
|
4020
|
+
});
|
|
4021
|
+
const MessagesValidateEmail200 = ValidateEmailResponse;
|
|
4022
|
+
const MessagesValidateEmail401 = UnauthorizedError;
|
|
4023
|
+
const MessagesValidateEmail403 = Schema$1.Union([ForbiddenError]);
|
|
4024
|
+
const MessagesValidateEmail404 = ResourceNotFoundError;
|
|
4025
|
+
const MessagesValidateEmail422 = ValidationError;
|
|
4026
|
+
const MessagesValidateEmail500 = InternalError;
|
|
4027
|
+
const OperationsListQuery = Schema$1.Struct({
|
|
4028
|
+
page: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4029
|
+
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4030
|
+
kind: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["email-domain-provisioning", "organization-deletion"]), Schema$1.Null])),
|
|
3359
4031
|
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
3360
4032
|
"pending",
|
|
3361
4033
|
"running",
|
|
@@ -3413,7 +4085,7 @@ const OrganizationsUpdateRequestJson = Schema$1.Struct({
|
|
|
3413
4085
|
billingEmail: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3414
4086
|
countryCode: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3415
4087
|
currency: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3416
|
-
timezone: Schema$1.optionalKey(Schema$1.Union([
|
|
4088
|
+
timezone: Schema$1.optionalKey(Schema$1.Union([IanaTimezone, Schema$1.Null])),
|
|
3417
4089
|
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
3418
4090
|
metadata: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null])),
|
|
3419
4091
|
design: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Design, Schema$1.Null]), Schema$1.Null])),
|
|
@@ -3459,442 +4131,1199 @@ const OrganizationsGetUsage200 = Schema$1.Struct({
|
|
|
3459
4131
|
const OrganizationsGetUsage401 = UnauthorizedError;
|
|
3460
4132
|
const OrganizationsGetUsage403 = ForbiddenError;
|
|
3461
4133
|
const OrganizationsGetUsage500 = InternalError;
|
|
3462
|
-
const
|
|
3463
|
-
|
|
4134
|
+
const TemplatesListQuery = Schema$1.Struct({
|
|
4135
|
+
page: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4136
|
+
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4137
|
+
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
4138
|
+
"transactional",
|
|
4139
|
+
"marketing",
|
|
4140
|
+
"support",
|
|
4141
|
+
"notification",
|
|
4142
|
+
"verification",
|
|
4143
|
+
"reminder",
|
|
4144
|
+
"alert"
|
|
4145
|
+
]), Schema$1.Null])),
|
|
4146
|
+
channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literal("email"), Schema$1.Null])),
|
|
4147
|
+
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
4148
|
+
"draft",
|
|
4149
|
+
"pending",
|
|
4150
|
+
"approved",
|
|
4151
|
+
"published",
|
|
4152
|
+
"rejected",
|
|
4153
|
+
"archived"
|
|
4154
|
+
]), Schema$1.Null])),
|
|
4155
|
+
search: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4156
|
+
sortBy: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
4157
|
+
"name",
|
|
4158
|
+
"createdAt",
|
|
4159
|
+
"updatedAt",
|
|
4160
|
+
"usageCount",
|
|
4161
|
+
"lastUsedAt"
|
|
4162
|
+
]), Schema$1.Null])),
|
|
4163
|
+
sortOrder: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["asc", "desc"]), Schema$1.Null]))
|
|
4164
|
+
});
|
|
4165
|
+
const TemplatesList200 = Schema$1.Struct({
|
|
4166
|
+
items: Schema$1.Array(Template),
|
|
4167
|
+
pagination: PaginationMeta
|
|
4168
|
+
});
|
|
4169
|
+
const TemplatesList401 = UnauthorizedError;
|
|
4170
|
+
const TemplatesList403 = ForbiddenError;
|
|
4171
|
+
const TemplatesList500 = InternalError;
|
|
4172
|
+
const TemplatesCreateRequestJson = Schema$1.Struct({
|
|
4173
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })),
|
|
4174
|
+
projectName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })), Schema$1.Null])),
|
|
4175
|
+
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
4176
|
+
galleryTemplateId: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })), Schema$1.Null])),
|
|
4177
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
4178
|
+
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
4179
|
+
"transactional",
|
|
4180
|
+
"marketing",
|
|
4181
|
+
"support",
|
|
4182
|
+
"notification",
|
|
4183
|
+
"verification",
|
|
4184
|
+
"reminder",
|
|
4185
|
+
"alert"
|
|
4186
|
+
]), Schema$1.Null]), Schema$1.Null])),
|
|
4187
|
+
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
4188
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
4189
|
+
});
|
|
4190
|
+
const TemplatesCreate201 = Template;
|
|
4191
|
+
const TemplatesCreate401 = UnauthorizedError;
|
|
4192
|
+
const TemplatesCreate403 = ForbiddenError;
|
|
4193
|
+
const TemplatesCreate409 = ConflictError;
|
|
4194
|
+
const TemplatesCreate422 = ValidationError;
|
|
4195
|
+
const TemplatesCreate500 = InternalError;
|
|
4196
|
+
const TemplatesGetByIdPathParams = Schema$1.Struct({ id: TemplateId });
|
|
4197
|
+
const TemplatesGetById200 = Template;
|
|
4198
|
+
const TemplatesGetById401 = UnauthorizedError;
|
|
4199
|
+
const TemplatesGetById403 = ForbiddenError;
|
|
4200
|
+
const TemplatesGetById404 = ResourceNotFoundError;
|
|
4201
|
+
const TemplatesGetById500 = InternalError;
|
|
4202
|
+
const TemplatesRemovePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4203
|
+
const TemplatesRemove200 = SuccessResponse;
|
|
4204
|
+
const TemplatesRemove401 = UnauthorizedError;
|
|
4205
|
+
const TemplatesRemove403 = ForbiddenError;
|
|
4206
|
+
const TemplatesRemove404 = ResourceNotFoundError;
|
|
4207
|
+
const TemplatesRemove500 = InternalError;
|
|
4208
|
+
const TemplatesUpdatePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4209
|
+
const TemplatesUpdateRequestJson = Schema$1.Struct({ data: Schema$1.Struct({
|
|
4210
|
+
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4211
|
+
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
4212
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
4213
|
+
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
4214
|
+
"transactional",
|
|
4215
|
+
"marketing",
|
|
4216
|
+
"support",
|
|
4217
|
+
"notification",
|
|
4218
|
+
"verification",
|
|
4219
|
+
"reminder",
|
|
4220
|
+
"alert"
|
|
4221
|
+
]), Schema$1.Null]), Schema$1.Null])),
|
|
4222
|
+
fromDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateFromDefault, Schema$1.Null]), Schema$1.Null])),
|
|
4223
|
+
replyToDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
4224
|
+
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null]))
|
|
4225
|
+
}) });
|
|
4226
|
+
const TemplatesUpdate200 = Template;
|
|
4227
|
+
const TemplatesUpdate401 = UnauthorizedError;
|
|
4228
|
+
const TemplatesUpdate403 = ForbiddenError;
|
|
4229
|
+
const TemplatesUpdate404 = ResourceNotFoundError;
|
|
4230
|
+
const TemplatesUpdate409 = ConflictError;
|
|
4231
|
+
const TemplatesUpdate422 = ValidationError;
|
|
4232
|
+
const TemplatesUpdate500 = InternalError;
|
|
4233
|
+
const TemplatesListInputContractsPathParams = Schema$1.Struct({ id: TemplateId });
|
|
4234
|
+
const TemplatesListInputContracts200 = Schema$1.Array(Schema$1.Struct({
|
|
4235
|
+
id: TemplateInputContractId,
|
|
4236
|
+
organizationId: OrganizationId,
|
|
3464
4237
|
templateId: TemplateId,
|
|
4238
|
+
version: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4239
|
+
validationDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4240
|
+
schema: Schema$1.Record(Schema$1.String, JsonValue),
|
|
4241
|
+
createdAt: Schema$1.String
|
|
4242
|
+
}));
|
|
4243
|
+
const TemplatesListInputContracts401 = UnauthorizedError;
|
|
4244
|
+
const TemplatesListInputContracts403 = ForbiddenError;
|
|
4245
|
+
const TemplatesListInputContracts404 = ResourceNotFoundError;
|
|
4246
|
+
const TemplatesListInputContracts500 = InternalError;
|
|
4247
|
+
const TemplatesGetInputContractPathParams = Schema$1.Struct({
|
|
4248
|
+
id: TemplateId,
|
|
4249
|
+
inputContractId: TemplateInputContractId
|
|
4250
|
+
});
|
|
4251
|
+
const TemplatesGetInputContract200 = Schema$1.Struct({
|
|
4252
|
+
id: TemplateInputContractId,
|
|
3465
4253
|
organizationId: OrganizationId,
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
createdAt: Schema$1.String
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
4254
|
+
templateId: TemplateId,
|
|
4255
|
+
version: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4256
|
+
validationDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4257
|
+
schema: Schema$1.Record(Schema$1.String, JsonValue),
|
|
4258
|
+
createdAt: Schema$1.String
|
|
4259
|
+
});
|
|
4260
|
+
const TemplatesGetInputContract401 = UnauthorizedError;
|
|
4261
|
+
const TemplatesGetInputContract403 = ForbiddenError;
|
|
4262
|
+
const TemplatesGetInputContract404 = ResourceNotFoundError;
|
|
4263
|
+
const TemplatesGetInputContract500 = InternalError;
|
|
4264
|
+
const TemplatesPublishPathParams = Schema$1.Struct({ id: TemplateId });
|
|
4265
|
+
const TemplatesPublishRequestJson = Schema$1.Struct({
|
|
4266
|
+
projectId: TemplateProjectId,
|
|
4267
|
+
commitSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4268
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
4269
|
+
expectedWorkspaceRevision: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))
|
|
4270
|
+
});
|
|
4271
|
+
const TemplatesPublish201 = Schema$1.Struct({
|
|
4272
|
+
id: TemplatePublicationId,
|
|
4273
|
+
organizationId: OrganizationId,
|
|
4274
|
+
projectId: TemplateProjectId,
|
|
4275
|
+
templateId: TemplateId,
|
|
4276
|
+
inputContractId: TemplateInputContractId,
|
|
4277
|
+
commitSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4278
|
+
treeSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4279
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
4280
|
+
buildIdentity: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4281
|
+
manifest: Schema$1.Struct({
|
|
4282
|
+
templateKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4283
|
+
executable: Schema$1.Struct({
|
|
4284
|
+
codeDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4285
|
+
bytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
4286
|
+
}),
|
|
4287
|
+
input: Schema$1.Struct({
|
|
4288
|
+
schemaDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4289
|
+
contractDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
4290
|
+
}),
|
|
4291
|
+
environment: Schema$1.Struct({
|
|
4292
|
+
locale: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4293
|
+
timeZone: Schema$1.Literal("UTC"),
|
|
4294
|
+
now: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" }))),
|
|
4295
|
+
randomSeed: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(4294967295).annotate({ expected: "a value less than or equal to 4294967295" }))),
|
|
4296
|
+
compiler: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4297
|
+
runtime: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4298
|
+
checker: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4299
|
+
lockKind: Schema$1.Literals(["bun", "npm"]),
|
|
4300
|
+
lockDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4301
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
4302
|
+
}),
|
|
4303
|
+
assets: Schema$1.Struct({
|
|
4304
|
+
base: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https?:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" })),
|
|
4305
|
+
entries: Schema$1.Array(Schema$1.Struct({
|
|
4306
|
+
path: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
4307
|
+
fileName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$" })),
|
|
4308
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4309
|
+
bytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
4310
|
+
contentType: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4311
|
+
url: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https?:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" }))
|
|
4312
|
+
})).check(Schema$1.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" }))
|
|
4313
|
+
}),
|
|
4314
|
+
source: Schema$1.Struct({
|
|
4315
|
+
commitSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4316
|
+
treeSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4317
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
4318
|
+
treeDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
4319
|
+
})
|
|
3479
4320
|
}),
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
])
|
|
3487
|
-
|
|
4321
|
+
executable: Schema$1.Struct({
|
|
4322
|
+
key: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4323
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
4324
|
+
}),
|
|
4325
|
+
assets: Schema$1.Array(Schema$1.Struct({
|
|
4326
|
+
path: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
4327
|
+
fileName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$" })),
|
|
4328
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4329
|
+
bytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
4330
|
+
contentType: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4331
|
+
url: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https?:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" }))
|
|
4332
|
+
})),
|
|
4333
|
+
warnings: Schema$1.Array(Schema$1.Struct({
|
|
4334
|
+
code: Schema$1.String,
|
|
4335
|
+
severity: Schema$1.Literals([
|
|
4336
|
+
"error",
|
|
4337
|
+
"warning",
|
|
4338
|
+
"info"
|
|
4339
|
+
]),
|
|
4340
|
+
message: Schema$1.String,
|
|
4341
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
4342
|
+
fileName: Schema$1.String,
|
|
4343
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4344
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4345
|
+
})),
|
|
4346
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4347
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4348
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4349
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4350
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
4351
|
+
fileName: Schema$1.String,
|
|
4352
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4353
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4354
|
+
}))), Schema$1.Null])),
|
|
4355
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
4356
|
+
assessment: Schema$1.Literals([
|
|
4357
|
+
"risk",
|
|
4358
|
+
"degradation",
|
|
4359
|
+
"unverified",
|
|
4360
|
+
"not-applicable"
|
|
4361
|
+
]),
|
|
4362
|
+
title: Schema$1.String
|
|
4363
|
+
}), Schema$1.Null]))
|
|
4364
|
+
})),
|
|
4365
|
+
incompatibilities: Schema$1.Array(Schema$1.Struct({
|
|
4366
|
+
code: Schema$1.String,
|
|
4367
|
+
severity: Schema$1.Literals([
|
|
4368
|
+
"error",
|
|
4369
|
+
"warning",
|
|
4370
|
+
"info"
|
|
4371
|
+
]),
|
|
4372
|
+
message: Schema$1.String,
|
|
4373
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
4374
|
+
fileName: Schema$1.String,
|
|
4375
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4376
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4377
|
+
})),
|
|
4378
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4379
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4380
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4381
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4382
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
4383
|
+
fileName: Schema$1.String,
|
|
4384
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4385
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4386
|
+
}))), Schema$1.Null])),
|
|
4387
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
4388
|
+
assessment: Schema$1.Literals([
|
|
4389
|
+
"risk",
|
|
4390
|
+
"degradation",
|
|
4391
|
+
"unverified",
|
|
4392
|
+
"not-applicable"
|
|
4393
|
+
]),
|
|
4394
|
+
title: Schema$1.String
|
|
4395
|
+
}), Schema$1.Null]))
|
|
4396
|
+
})),
|
|
4397
|
+
status: Schema$1.String,
|
|
4398
|
+
publishedAt: Schema$1.String,
|
|
4399
|
+
publishedBy: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4400
|
+
createdAt: Schema$1.String
|
|
3488
4401
|
});
|
|
3489
|
-
const
|
|
3490
|
-
const
|
|
3491
|
-
const
|
|
3492
|
-
const
|
|
3493
|
-
const
|
|
3494
|
-
const
|
|
3495
|
-
const
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
Schema$1.
|
|
3511
|
-
|
|
3512
|
-
|
|
4402
|
+
const TemplatesPublish401 = UnauthorizedError;
|
|
4403
|
+
const TemplatesPublish403 = ForbiddenError;
|
|
4404
|
+
const TemplatesPublish404 = ResourceNotFoundError;
|
|
4405
|
+
const TemplatesPublish409 = ConflictError;
|
|
4406
|
+
const TemplatesPublish422 = ValidationError;
|
|
4407
|
+
const TemplatesPublish500 = InternalError;
|
|
4408
|
+
const TemplatesGetPublicationPathParams = Schema$1.Struct({
|
|
4409
|
+
id: TemplateId,
|
|
4410
|
+
publicationId: TemplatePublicationId
|
|
4411
|
+
});
|
|
4412
|
+
const TemplatesGetPublication200 = Schema$1.Struct({
|
|
4413
|
+
id: TemplatePublicationId,
|
|
4414
|
+
organizationId: OrganizationId,
|
|
4415
|
+
projectId: TemplateProjectId,
|
|
4416
|
+
templateId: TemplateId,
|
|
4417
|
+
inputContractId: TemplateInputContractId,
|
|
4418
|
+
commitSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4419
|
+
treeSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4420
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
4421
|
+
buildIdentity: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4422
|
+
manifest: Schema$1.Struct({
|
|
4423
|
+
templateKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4424
|
+
executable: Schema$1.Struct({
|
|
4425
|
+
codeDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4426
|
+
bytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
3513
4427
|
}),
|
|
3514
|
-
Schema$1.Struct({
|
|
3515
|
-
|
|
3516
|
-
|
|
4428
|
+
input: Schema$1.Struct({
|
|
4429
|
+
schemaDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4430
|
+
contractDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
3517
4431
|
}),
|
|
3518
|
-
Schema$1.Struct({
|
|
3519
|
-
|
|
3520
|
-
|
|
4432
|
+
environment: Schema$1.Struct({
|
|
4433
|
+
locale: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4434
|
+
timeZone: Schema$1.Literal("UTC"),
|
|
4435
|
+
now: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" }))),
|
|
4436
|
+
randomSeed: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(4294967295).annotate({ expected: "a value less than or equal to 4294967295" }))),
|
|
4437
|
+
compiler: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4438
|
+
runtime: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4439
|
+
checker: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4440
|
+
lockKind: Schema$1.Literals(["bun", "npm"]),
|
|
4441
|
+
lockDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4442
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
4443
|
+
}),
|
|
4444
|
+
assets: Schema$1.Struct({
|
|
4445
|
+
base: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https?:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" })),
|
|
4446
|
+
entries: Schema$1.Array(Schema$1.Struct({
|
|
4447
|
+
path: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
4448
|
+
fileName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$" })),
|
|
4449
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4450
|
+
bytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
4451
|
+
contentType: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4452
|
+
url: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https?:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" }))
|
|
4453
|
+
})).check(Schema$1.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" }))
|
|
4454
|
+
}),
|
|
4455
|
+
source: Schema$1.Struct({
|
|
4456
|
+
commitSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4457
|
+
treeSha: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4458
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
4459
|
+
treeDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
3521
4460
|
})
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
})
|
|
4461
|
+
}),
|
|
4462
|
+
executable: Schema$1.Struct({
|
|
4463
|
+
key: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4464
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
4465
|
+
}),
|
|
4466
|
+
assets: Schema$1.Array(Schema$1.Struct({
|
|
4467
|
+
path: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
4468
|
+
fileName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}(?:\\.[A-Za-z0-9]+)?$" })),
|
|
4469
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4470
|
+
bytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
4471
|
+
contentType: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4472
|
+
url: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https?:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https?:\\/\\/" }))
|
|
4473
|
+
})),
|
|
4474
|
+
warnings: Schema$1.Array(Schema$1.Struct({
|
|
4475
|
+
code: Schema$1.String,
|
|
4476
|
+
severity: Schema$1.Literals([
|
|
4477
|
+
"error",
|
|
4478
|
+
"warning",
|
|
4479
|
+
"info"
|
|
4480
|
+
]),
|
|
4481
|
+
message: Schema$1.String,
|
|
4482
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
4483
|
+
fileName: Schema$1.String,
|
|
4484
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4485
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4486
|
+
})),
|
|
4487
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4488
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4489
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4490
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4491
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
4492
|
+
fileName: Schema$1.String,
|
|
4493
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4494
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4495
|
+
}))), Schema$1.Null])),
|
|
4496
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
4497
|
+
assessment: Schema$1.Literals([
|
|
4498
|
+
"risk",
|
|
4499
|
+
"degradation",
|
|
4500
|
+
"unverified",
|
|
4501
|
+
"not-applicable"
|
|
4502
|
+
]),
|
|
4503
|
+
title: Schema$1.String
|
|
4504
|
+
}), Schema$1.Null]))
|
|
4505
|
+
})),
|
|
4506
|
+
incompatibilities: Schema$1.Array(Schema$1.Struct({
|
|
4507
|
+
code: Schema$1.String,
|
|
4508
|
+
severity: Schema$1.Literals([
|
|
4509
|
+
"error",
|
|
4510
|
+
"warning",
|
|
4511
|
+
"info"
|
|
4512
|
+
]),
|
|
4513
|
+
message: Schema$1.String,
|
|
4514
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
4515
|
+
fileName: Schema$1.String,
|
|
4516
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4517
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4518
|
+
})),
|
|
4519
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4520
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4521
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4522
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4523
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
4524
|
+
fileName: Schema$1.String,
|
|
4525
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4526
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4527
|
+
}))), Schema$1.Null])),
|
|
4528
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
4529
|
+
assessment: Schema$1.Literals([
|
|
4530
|
+
"risk",
|
|
4531
|
+
"degradation",
|
|
4532
|
+
"unverified",
|
|
4533
|
+
"not-applicable"
|
|
4534
|
+
]),
|
|
4535
|
+
title: Schema$1.String
|
|
4536
|
+
}), Schema$1.Null]))
|
|
4537
|
+
})),
|
|
4538
|
+
status: Schema$1.String,
|
|
4539
|
+
publishedAt: Schema$1.String,
|
|
4540
|
+
publishedBy: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4541
|
+
createdAt: Schema$1.String
|
|
3527
4542
|
});
|
|
3528
|
-
const
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
4543
|
+
const TemplatesGetPublication401 = UnauthorizedError;
|
|
4544
|
+
const TemplatesGetPublication403 = ForbiddenError;
|
|
4545
|
+
const TemplatesGetPublication404 = ResourceNotFoundError;
|
|
4546
|
+
const TemplatesGetPublication500 = InternalError;
|
|
4547
|
+
const TemplatesGetGitRepositoryPathParams = Schema$1.Struct({ id: TemplateId });
|
|
4548
|
+
const TemplatesGetGitRepository200 = Schema$1.Struct({
|
|
4549
|
+
remote: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https:\\/\\/" })),
|
|
4550
|
+
defaultBranch: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
4551
|
+
});
|
|
4552
|
+
const TemplatesGetGitRepository401 = UnauthorizedError;
|
|
4553
|
+
const TemplatesGetGitRepository403 = ForbiddenError;
|
|
4554
|
+
const TemplatesGetGitRepository404 = ResourceNotFoundError;
|
|
4555
|
+
const TemplatesGetGitRepository409 = ConflictError;
|
|
4556
|
+
const TemplatesGetGitRepository500 = InternalError;
|
|
4557
|
+
const TemplatesIssueGitCredentialPathParams = Schema$1.Struct({ id: TemplateId });
|
|
4558
|
+
const TemplatesIssueGitCredentialRequestJson = Schema$1.Struct({ scope: Schema$1.Literals(["read", "write"]) });
|
|
4559
|
+
const TemplatesIssueGitCredential200 = Schema$1.Struct({
|
|
4560
|
+
remote: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^https:\\/\\/")).annotate({ expected: "a string matching the RegExp ^https:\\/\\/" })),
|
|
4561
|
+
username: Schema$1.Literal("x-access-token"),
|
|
4562
|
+
password: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4563
|
+
expiresAt: Schema$1.String
|
|
4564
|
+
});
|
|
4565
|
+
const TemplatesIssueGitCredential401 = UnauthorizedError;
|
|
4566
|
+
const TemplatesIssueGitCredential403 = ForbiddenError;
|
|
4567
|
+
const TemplatesIssueGitCredential404 = ResourceNotFoundError;
|
|
4568
|
+
const TemplatesIssueGitCredential409 = ConflictError;
|
|
4569
|
+
const TemplatesIssueGitCredential500 = InternalError;
|
|
4570
|
+
const TemplatesOpenWorkspacePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4571
|
+
const TemplatesOpenWorkspace200 = Schema$1.Struct({
|
|
4572
|
+
workspace: Schema$1.Struct({
|
|
4573
|
+
projectId: TemplateProjectId,
|
|
4574
|
+
organizationId: Schema$1.Union([OrganizationId, Schema$1.Null]),
|
|
4575
|
+
ownerEpoch: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
4576
|
+
repositoryName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
4577
|
+
defaultBranch: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
4578
|
+
baseCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4579
|
+
remoteHead: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4580
|
+
pendingRemoteHead: Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema$1.Null]),
|
|
3536
4581
|
revision: Schema$1.String,
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
4582
|
+
overlay: Schema$1.Record(Schema$1.String, Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4583
|
+
assetChanges: Schema$1.Array(Schema$1.Struct({
|
|
4584
|
+
path: Schema$1.String,
|
|
4585
|
+
status: Schema$1.Literals([
|
|
4586
|
+
"added",
|
|
4587
|
+
"modified",
|
|
4588
|
+
"deleted"
|
|
4589
|
+
])
|
|
4590
|
+
})),
|
|
4591
|
+
conflicts: Schema$1.Array(Schema$1.Struct({
|
|
4592
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
4593
|
+
base: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4594
|
+
draft: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4595
|
+
main: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
4596
|
+
})),
|
|
4597
|
+
provenance: Schema$1.Struct({ references: Schema$1.Array(Schema$1.Struct({
|
|
4598
|
+
kind: Schema$1.String,
|
|
4599
|
+
digest: Schema$1.String,
|
|
4600
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
4601
|
+
})) }),
|
|
4602
|
+
mounts: Schema$1.Array(Schema$1.Union([
|
|
4603
|
+
Schema$1.Struct({
|
|
4604
|
+
kind: Schema$1.Literal("project"),
|
|
4605
|
+
root: Schema$1.Literal("/project"),
|
|
4606
|
+
access: Schema$1.Literal("read-write")
|
|
3551
4607
|
}),
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
4608
|
+
Schema$1.Struct({
|
|
4609
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4610
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4611
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4612
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4613
|
+
kind: Schema$1.Literal("started-from"),
|
|
4614
|
+
access: Schema$1.Literal("read-only"),
|
|
4615
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4616
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4617
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4618
|
+
}),
|
|
4619
|
+
Schema$1.Struct({
|
|
4620
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4621
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4622
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4623
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4624
|
+
kind: Schema$1.Literal("resource"),
|
|
4625
|
+
access: Schema$1.Literal("read-only"),
|
|
4626
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
4627
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
3566
4628
|
}),
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
})).check(Schema$1.isMaxLength(64).annotate({ expected: "a value with a length of at most 64" })),
|
|
3578
|
-
palette: Schema$1.Array(Schema$1.String).check(Schema$1.isMaxLength(24).annotate({ expected: "a value with a length of at most 24" }))
|
|
4629
|
+
Schema$1.Struct({
|
|
4630
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4631
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4632
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4633
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4634
|
+
kind: Schema$1.Literal("library-template"),
|
|
4635
|
+
access: Schema$1.Literal("read-only"),
|
|
4636
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4637
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4638
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
3579
4639
|
})
|
|
4640
|
+
])),
|
|
4641
|
+
libraryManifestDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4642
|
+
createdAt: Schema$1.String,
|
|
4643
|
+
updatedAt: Schema$1.String,
|
|
4644
|
+
createdBy: Schema$1.Struct({
|
|
4645
|
+
userId: UserId,
|
|
4646
|
+
via: Schema$1.Literals([
|
|
4647
|
+
"api",
|
|
4648
|
+
"mcp",
|
|
4649
|
+
"agent"
|
|
4650
|
+
])
|
|
3580
4651
|
}),
|
|
3581
|
-
Schema$1.Struct({
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
4652
|
+
updatedBy: Schema$1.Struct({
|
|
4653
|
+
userId: UserId,
|
|
4654
|
+
via: Schema$1.Literals([
|
|
4655
|
+
"api",
|
|
4656
|
+
"mcp",
|
|
4657
|
+
"agent"
|
|
4658
|
+
])
|
|
4659
|
+
})
|
|
4660
|
+
}),
|
|
4661
|
+
files: Schema$1.Record(Schema$1.String, Schema$1.String)
|
|
4662
|
+
});
|
|
4663
|
+
const TemplatesOpenWorkspace401 = UnauthorizedError;
|
|
4664
|
+
const TemplatesOpenWorkspace403 = ForbiddenError;
|
|
4665
|
+
const TemplatesOpenWorkspace404 = ResourceNotFoundError;
|
|
4666
|
+
const TemplatesOpenWorkspace409 = ConflictError;
|
|
4667
|
+
const TemplatesOpenWorkspace500 = InternalError;
|
|
4668
|
+
const TemplatesPatchWorkspacePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4669
|
+
const TemplatesPatchWorkspaceRequestJson = Schema$1.Struct({
|
|
4670
|
+
expectedRevision: Schema$1.String,
|
|
4671
|
+
patches: Schema$1.Array(Schema$1.Struct({
|
|
4672
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
4673
|
+
content: Schema$1.Union([Schema$1.String.check(Schema$1.isMaxLength(1048576).annotate({ expected: "a value with a length of at most 1048576" })), Schema$1.Null])
|
|
4674
|
+
})).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })),
|
|
4675
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
4676
|
+
});
|
|
4677
|
+
const TemplatesPatchWorkspace200 = Schema$1.Struct({
|
|
4678
|
+
workspace: Schema$1.Struct({
|
|
4679
|
+
projectId: TemplateProjectId,
|
|
4680
|
+
organizationId: Schema$1.Union([OrganizationId, Schema$1.Null]),
|
|
4681
|
+
ownerEpoch: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
4682
|
+
repositoryName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
4683
|
+
defaultBranch: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
4684
|
+
baseCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4685
|
+
remoteHead: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4686
|
+
pendingRemoteHead: Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema$1.Null]),
|
|
4687
|
+
revision: Schema$1.String,
|
|
4688
|
+
overlay: Schema$1.Record(Schema$1.String, Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4689
|
+
assetChanges: Schema$1.Array(Schema$1.Struct({
|
|
4690
|
+
path: Schema$1.String,
|
|
4691
|
+
status: Schema$1.Literals([
|
|
4692
|
+
"added",
|
|
4693
|
+
"modified",
|
|
4694
|
+
"deleted"
|
|
4695
|
+
])
|
|
4696
|
+
})),
|
|
4697
|
+
conflicts: Schema$1.Array(Schema$1.Struct({
|
|
4698
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
4699
|
+
base: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4700
|
+
draft: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4701
|
+
main: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
4702
|
+
})),
|
|
4703
|
+
provenance: Schema$1.Struct({ references: Schema$1.Array(Schema$1.Struct({
|
|
4704
|
+
kind: Schema$1.String,
|
|
4705
|
+
digest: Schema$1.String,
|
|
4706
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
4707
|
+
})) }),
|
|
4708
|
+
mounts: Schema$1.Array(Schema$1.Union([
|
|
4709
|
+
Schema$1.Struct({
|
|
4710
|
+
kind: Schema$1.Literal("project"),
|
|
4711
|
+
root: Schema$1.Literal("/project"),
|
|
4712
|
+
access: Schema$1.Literal("read-write")
|
|
3592
4713
|
}),
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
4714
|
+
Schema$1.Struct({
|
|
4715
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4716
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4717
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4718
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4719
|
+
kind: Schema$1.Literal("started-from"),
|
|
4720
|
+
access: Schema$1.Literal("read-only"),
|
|
4721
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4722
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4723
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4724
|
+
}),
|
|
4725
|
+
Schema$1.Struct({
|
|
4726
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4727
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4728
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4729
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4730
|
+
kind: Schema$1.Literal("resource"),
|
|
4731
|
+
access: Schema$1.Literal("read-only"),
|
|
4732
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
4733
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4734
|
+
}),
|
|
4735
|
+
Schema$1.Struct({
|
|
4736
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4737
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4738
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4739
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4740
|
+
kind: Schema$1.Literal("library-template"),
|
|
4741
|
+
access: Schema$1.Literal("read-only"),
|
|
4742
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4743
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4744
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
3602
4745
|
})
|
|
4746
|
+
])),
|
|
4747
|
+
libraryManifestDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4748
|
+
createdAt: Schema$1.String,
|
|
4749
|
+
updatedAt: Schema$1.String,
|
|
4750
|
+
createdBy: Schema$1.Struct({
|
|
4751
|
+
userId: UserId,
|
|
4752
|
+
via: Schema$1.Literals([
|
|
4753
|
+
"api",
|
|
4754
|
+
"mcp",
|
|
4755
|
+
"agent"
|
|
4756
|
+
])
|
|
3603
4757
|
}),
|
|
3604
|
-
Schema$1.Struct({
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
}),
|
|
3612
|
-
Schema$1.Struct({
|
|
3613
|
-
kind: Schema$1.Literal("url"),
|
|
3614
|
-
url: Schema$1.String.check(Schema$1.isMinLength(8).annotate({ expected: "a value with a length of at least 8" })).check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" }))
|
|
3615
|
-
}),
|
|
3616
|
-
Schema$1.Struct({
|
|
3617
|
-
kind: Schema$1.Literal("styleguide"),
|
|
3618
|
-
domain: Schema$1.String.check(Schema$1.isMinLength(3).annotate({ expected: "a value with a length of at least 3" })).check(Schema$1.isMaxLength(253).annotate({ expected: "a value with a length of at most 253" }))
|
|
3619
|
-
})
|
|
3620
|
-
]),
|
|
3621
|
-
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3622
|
-
citations: Schema$1.Array(Schema$1.Struct({
|
|
3623
|
-
title: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(300).annotate({ expected: "a value with a length of at most 300" })),
|
|
3624
|
-
url: Schema$1.String.check(Schema$1.isMinLength(8).annotate({ expected: "a value with a length of at least 8" })).check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
3625
|
-
excerpts: Schema$1.Array(Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(1200).annotate({ expected: "a value with a length of at most 1200" }))).check(Schema$1.isMaxLength(4).annotate({ expected: "a value with a length of at most 4" }))
|
|
3626
|
-
})).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(4).annotate({ expected: "a value with a length of at most 4" })),
|
|
3627
|
-
citation: Schema$1.Struct({
|
|
3628
|
-
kind: Schema$1.String,
|
|
3629
|
-
digest: Schema$1.String,
|
|
3630
|
-
locator: Schema$1.optionalKey(Schema$1.String)
|
|
3631
|
-
})
|
|
4758
|
+
updatedBy: Schema$1.Struct({
|
|
4759
|
+
userId: UserId,
|
|
4760
|
+
via: Schema$1.Literals([
|
|
4761
|
+
"api",
|
|
4762
|
+
"mcp",
|
|
4763
|
+
"agent"
|
|
4764
|
+
])
|
|
3632
4765
|
})
|
|
3633
|
-
])),
|
|
3634
|
-
proposalBinding: Schema$1.optionalKey(Schema$1.String.check(Schema$1.isMaxLength(8192).annotate({ expected: "a value with a length of at most 8192" })))
|
|
3635
|
-
});
|
|
3636
|
-
const TemplateDocumentsIssueAgentAdmission401 = UnauthorizedError;
|
|
3637
|
-
const TemplateDocumentsIssueAgentAdmission403 = ForbiddenError;
|
|
3638
|
-
const TemplateDocumentsIssueAgentAdmission404 = ResourceNotFoundError;
|
|
3639
|
-
const TemplateDocumentsIssueAgentAdmission409 = ConflictError;
|
|
3640
|
-
const TemplateDocumentsIssueAgentAdmission422 = ValidationError;
|
|
3641
|
-
const TemplateDocumentsIssueAgentAdmission500 = InternalError;
|
|
3642
|
-
const TemplateDocumentsCompleteAgentConversationClearPathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3643
|
-
const TemplateDocumentsCompleteAgentConversationClearRequestJson = Schema$1.Struct({ conversationId: Schema$1.String });
|
|
3644
|
-
const TemplateDocumentsCompleteAgentConversationClear401 = UnauthorizedError;
|
|
3645
|
-
const TemplateDocumentsCompleteAgentConversationClear403 = ForbiddenError;
|
|
3646
|
-
const TemplateDocumentsCompleteAgentConversationClear404 = ResourceNotFoundError;
|
|
3647
|
-
const TemplateDocumentsCompleteAgentConversationClear409 = ConflictError;
|
|
3648
|
-
const TemplateDocumentsCompleteAgentConversationClear500 = InternalError;
|
|
3649
|
-
const TemplateDocumentsApplyAgentProposalPathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3650
|
-
const TemplateDocumentsApplyAgentProposalRequestJson = Schema$1.Struct({
|
|
3651
|
-
expectedRevision: Schema$1.String,
|
|
3652
|
-
sourceDigest: Schema$1.String,
|
|
3653
|
-
idempotencyKey: Schema$1.String,
|
|
3654
|
-
source: Schema$1.String,
|
|
3655
|
-
references: Schema$1.Array(Schema$1.Struct({
|
|
3656
|
-
kind: Schema$1.String,
|
|
3657
|
-
digest: Schema$1.String,
|
|
3658
|
-
locator: Schema$1.optionalKey(Schema$1.String)
|
|
3659
|
-
})).check(Schema$1.isMaxLength(1).annotate({ expected: "a value with a length of at most 1" })),
|
|
3660
|
-
proposalBinding: Schema$1.optionalKey(Schema$1.String.check(Schema$1.isMaxLength(8192).annotate({ expected: "a value with a length of at most 8192" })))
|
|
3661
|
-
});
|
|
3662
|
-
const TemplateDocumentsApplyAgentProposal200 = Schema$1.Struct({
|
|
3663
|
-
templateId: TemplateId,
|
|
3664
|
-
organizationId: OrganizationId,
|
|
3665
|
-
channel: Schema$1.Literal("email"),
|
|
3666
|
-
source: Schema$1.String,
|
|
3667
|
-
revision: Schema$1.String,
|
|
3668
|
-
sourceDigest: Schema$1.String,
|
|
3669
|
-
createdAt: Schema$1.String,
|
|
3670
|
-
updatedAt: Schema$1.String,
|
|
3671
|
-
createdBy: Schema$1.Struct({
|
|
3672
|
-
userId: UserId,
|
|
3673
|
-
via: Schema$1.Literals([
|
|
3674
|
-
"api",
|
|
3675
|
-
"mcp",
|
|
3676
|
-
"agent"
|
|
3677
|
-
])
|
|
3678
4766
|
}),
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
});
|
|
3688
|
-
const
|
|
3689
|
-
|
|
3690
|
-
const TemplateDocumentsApplyAgentProposal404 = ResourceNotFoundError;
|
|
3691
|
-
const TemplateDocumentsApplyAgentProposal409 = ConflictError;
|
|
3692
|
-
const TemplateDocumentsApplyAgentProposal422 = ValidationError;
|
|
3693
|
-
const TemplateDocumentsApplyAgentProposal500 = InternalError;
|
|
3694
|
-
const TemplateDocumentsPublishPathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3695
|
-
const TemplateDocumentsPublish200 = Schema$1.Struct({ versionId: Schema$1.String });
|
|
3696
|
-
const TemplateDocumentsPublish401 = UnauthorizedError;
|
|
3697
|
-
const TemplateDocumentsPublish403 = ForbiddenError;
|
|
3698
|
-
const TemplateDocumentsPublish404 = ResourceNotFoundError;
|
|
3699
|
-
const TemplateDocumentsPublish409 = ConflictError;
|
|
3700
|
-
const TemplateDocumentsPublish422 = ValidationError;
|
|
3701
|
-
const TemplateDocumentsPublish500 = InternalError;
|
|
3702
|
-
const TemplateDocumentsRenderPathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3703
|
-
const TemplateDocumentsRenderRequestJson = Schema$1.Struct({
|
|
3704
|
-
revision: Schema$1.String,
|
|
3705
|
-
variables: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]))
|
|
3706
|
-
});
|
|
3707
|
-
const TemplateDocumentsRender200 = Schema$1.Struct({
|
|
3708
|
-
channel: Schema$1.Literal("email"),
|
|
3709
|
-
subject: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3710
|
-
html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3711
|
-
text: Schema$1.String,
|
|
3712
|
-
missingVariables: Schema$1.Array(Schema$1.String)
|
|
3713
|
-
});
|
|
3714
|
-
const TemplateDocumentsRender401 = UnauthorizedError;
|
|
3715
|
-
const TemplateDocumentsRender403 = ForbiddenError;
|
|
3716
|
-
const TemplateDocumentsRender404 = ResourceNotFoundError;
|
|
3717
|
-
const TemplateDocumentsRender409 = ConflictError;
|
|
3718
|
-
const TemplateDocumentsRender422 = ValidationError;
|
|
3719
|
-
const TemplateDocumentsRender500 = InternalError;
|
|
3720
|
-
const TemplateDocumentsSavePathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3721
|
-
const TemplateDocumentsSaveRequestJson = Schema$1.Struct({ revision: Schema$1.String });
|
|
3722
|
-
const TemplateDocumentsSave200 = Schema$1.Struct({
|
|
3723
|
-
id: Schema$1.String,
|
|
3724
|
-
templateId: TemplateId,
|
|
3725
|
-
documentRevision: Schema$1.String,
|
|
3726
|
-
sourceDigest: Schema$1.String,
|
|
3727
|
-
compilerVersion: Schema$1.String,
|
|
3728
|
-
createdAt: Schema$1.String,
|
|
3729
|
-
versionId: Schema$1.String
|
|
3730
|
-
});
|
|
3731
|
-
const TemplateDocumentsSave401 = UnauthorizedError;
|
|
3732
|
-
const TemplateDocumentsSave403 = ForbiddenError;
|
|
3733
|
-
const TemplateDocumentsSave404 = ResourceNotFoundError;
|
|
3734
|
-
const TemplateDocumentsSave409 = ConflictError;
|
|
3735
|
-
const TemplateDocumentsSave422 = ValidationError;
|
|
3736
|
-
const TemplateDocumentsSave500 = InternalError;
|
|
3737
|
-
const TemplateDocumentsSendPathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3738
|
-
const TemplateDocumentsSendRequestJson = Schema$1.Struct({
|
|
3739
|
-
revision: Schema$1.String,
|
|
3740
|
-
to: Schema$1.Array(Schema$1.Struct({
|
|
3741
|
-
address: Schema$1.String,
|
|
3742
|
-
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
3743
|
-
})).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
3744
|
-
variables: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null])),
|
|
3745
|
-
schedule: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null]))
|
|
3746
|
-
});
|
|
3747
|
-
const TemplateDocumentsSend200 = Schema$1.Union([Schema$1.Struct({
|
|
3748
|
-
kind: Schema$1.Literal("sent"),
|
|
3749
|
-
messageId: Schema$1.String,
|
|
3750
|
-
acceptedAt: Schema$1.String
|
|
3751
|
-
}), Schema$1.Struct({
|
|
3752
|
-
kind: Schema$1.Literal("scheduled"),
|
|
3753
|
-
scheduledMessageId: Schema$1.String,
|
|
3754
|
-
scheduledFor: Schema$1.String
|
|
3755
|
-
})]);
|
|
3756
|
-
const TemplateDocumentsSend401 = UnauthorizedError;
|
|
3757
|
-
const TemplateDocumentsSend402 = PaymentRequiredError;
|
|
3758
|
-
const TemplateDocumentsSend403 = Schema$1.Union([FlagDisabledError, ForbiddenError]);
|
|
3759
|
-
const TemplateDocumentsSend404 = ResourceNotFoundError;
|
|
3760
|
-
const TemplateDocumentsSend409 = ConflictError;
|
|
3761
|
-
const TemplateDocumentsSend422 = ValidationError;
|
|
3762
|
-
const TemplateDocumentsSend429 = RateLimitedError;
|
|
3763
|
-
const TemplateDocumentsSend500 = Schema$1.Union([InternalError, WebhookEnqueueError]);
|
|
3764
|
-
const TemplateDocumentsSend502 = Schema$1.Union([ExternalServiceError, BillingProviderError]);
|
|
3765
|
-
const TemplateDocumentsTestSendPathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3766
|
-
const TemplateDocumentsTestSendRequestJson = Schema$1.Struct({
|
|
4767
|
+
files: Schema$1.Record(Schema$1.String, Schema$1.String)
|
|
4768
|
+
});
|
|
4769
|
+
const TemplatesPatchWorkspace401 = UnauthorizedError;
|
|
4770
|
+
const TemplatesPatchWorkspace403 = ForbiddenError;
|
|
4771
|
+
const TemplatesPatchWorkspace404 = ResourceNotFoundError;
|
|
4772
|
+
const TemplatesPatchWorkspace409 = ConflictError;
|
|
4773
|
+
const TemplatesPatchWorkspace500 = InternalError;
|
|
4774
|
+
const TemplatesCheckWorkspacePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4775
|
+
const TemplatesCheckWorkspaceRequestJson = Schema$1.Struct({ expectedRevision: Schema$1.String });
|
|
4776
|
+
const TemplatesCheckWorkspace200 = Schema$1.Struct({
|
|
4777
|
+
projectId: TemplateProjectId,
|
|
3767
4778
|
revision: Schema$1.String,
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
})
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
4779
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
4780
|
+
declaration: Schema$1.Union([Schema$1.Struct({
|
|
4781
|
+
codeDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4782
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4783
|
+
input: Schema$1.Struct({
|
|
4784
|
+
schema: Schema$1.Record(Schema$1.String, JsonValue),
|
|
4785
|
+
schemaDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4786
|
+
contractDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
4787
|
+
}),
|
|
4788
|
+
runtime: Schema$1.Struct({
|
|
4789
|
+
now: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" }))),
|
|
4790
|
+
randomSeed: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(4294967295).annotate({ expected: "a value less than or equal to 4294967295" })))
|
|
4791
|
+
}),
|
|
4792
|
+
fixtures: Schema$1.Array(Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })))
|
|
4793
|
+
}), Schema$1.Null]),
|
|
4794
|
+
diagnostics: Schema$1.Array(Schema$1.Struct({
|
|
4795
|
+
code: Schema$1.String,
|
|
4796
|
+
severity: Schema$1.Literals([
|
|
4797
|
+
"error",
|
|
4798
|
+
"warning",
|
|
4799
|
+
"info"
|
|
4800
|
+
]),
|
|
4801
|
+
message: Schema$1.String,
|
|
4802
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
4803
|
+
fileName: Schema$1.String,
|
|
4804
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4805
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4806
|
+
})),
|
|
4807
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4808
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4809
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4810
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4811
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
4812
|
+
fileName: Schema$1.String,
|
|
4813
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4814
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4815
|
+
}))), Schema$1.Null])),
|
|
4816
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
4817
|
+
assessment: Schema$1.Literals([
|
|
4818
|
+
"risk",
|
|
4819
|
+
"degradation",
|
|
4820
|
+
"unverified",
|
|
4821
|
+
"not-applicable"
|
|
4822
|
+
]),
|
|
4823
|
+
title: Schema$1.String
|
|
4824
|
+
}), Schema$1.Null]))
|
|
4825
|
+
})),
|
|
4826
|
+
incompatibilities: Schema$1.Array(Schema$1.Struct({
|
|
4827
|
+
code: Schema$1.String,
|
|
4828
|
+
severity: Schema$1.Literals([
|
|
4829
|
+
"error",
|
|
4830
|
+
"warning",
|
|
4831
|
+
"info"
|
|
4832
|
+
]),
|
|
4833
|
+
message: Schema$1.String,
|
|
4834
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
4835
|
+
fileName: Schema$1.String,
|
|
4836
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4837
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4838
|
+
})),
|
|
4839
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4840
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4841
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4842
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
4843
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
4844
|
+
fileName: Schema$1.String,
|
|
4845
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4846
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
4847
|
+
}))), Schema$1.Null])),
|
|
4848
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
4849
|
+
assessment: Schema$1.Literals([
|
|
4850
|
+
"risk",
|
|
4851
|
+
"degradation",
|
|
4852
|
+
"unverified",
|
|
4853
|
+
"not-applicable"
|
|
4854
|
+
]),
|
|
4855
|
+
title: Schema$1.String
|
|
4856
|
+
}), Schema$1.Null]))
|
|
4857
|
+
}))
|
|
3781
4858
|
});
|
|
3782
|
-
const
|
|
3783
|
-
const
|
|
3784
|
-
const
|
|
3785
|
-
const
|
|
3786
|
-
const
|
|
3787
|
-
const
|
|
3788
|
-
const
|
|
3789
|
-
const TemplateDocumentsTestSend500 = Schema$1.Union([InternalError, WebhookEnqueueError]);
|
|
3790
|
-
const TemplateDocumentsTestSend502 = BillingProviderError;
|
|
3791
|
-
const TemplateDocumentsReplacePathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3792
|
-
const TemplateDocumentsReplaceRequestJson = Schema$1.Struct({
|
|
4859
|
+
const TemplatesCheckWorkspace401 = UnauthorizedError;
|
|
4860
|
+
const TemplatesCheckWorkspace403 = ForbiddenError;
|
|
4861
|
+
const TemplatesCheckWorkspace404 = ResourceNotFoundError;
|
|
4862
|
+
const TemplatesCheckWorkspace409 = ConflictError;
|
|
4863
|
+
const TemplatesCheckWorkspace500 = InternalError;
|
|
4864
|
+
const TemplatesResolveWorkspaceConflictPathParams = Schema$1.Struct({ id: TemplateId });
|
|
4865
|
+
const TemplatesResolveWorkspaceConflictRequestJson = Schema$1.Struct({
|
|
3793
4866
|
expectedRevision: Schema$1.String,
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
4867
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
4868
|
+
resolution: Schema$1.Union([
|
|
4869
|
+
Schema$1.Literal("draft"),
|
|
4870
|
+
Schema$1.Literal("main"),
|
|
4871
|
+
Schema$1.Struct({ content: Schema$1.Union([Schema$1.String, Schema$1.Null]) })
|
|
4872
|
+
]),
|
|
4873
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
4874
|
+
});
|
|
4875
|
+
const TemplatesResolveWorkspaceConflict200 = Schema$1.Struct({
|
|
4876
|
+
workspace: Schema$1.Struct({
|
|
4877
|
+
projectId: TemplateProjectId,
|
|
4878
|
+
organizationId: Schema$1.Union([OrganizationId, Schema$1.Null]),
|
|
4879
|
+
ownerEpoch: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
4880
|
+
repositoryName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
4881
|
+
defaultBranch: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
4882
|
+
baseCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4883
|
+
remoteHead: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
4884
|
+
pendingRemoteHead: Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema$1.Null]),
|
|
4885
|
+
revision: Schema$1.String,
|
|
4886
|
+
overlay: Schema$1.Record(Schema$1.String, Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4887
|
+
assetChanges: Schema$1.Array(Schema$1.Struct({
|
|
4888
|
+
path: Schema$1.String,
|
|
4889
|
+
status: Schema$1.Literals([
|
|
4890
|
+
"added",
|
|
4891
|
+
"modified",
|
|
4892
|
+
"deleted"
|
|
4893
|
+
])
|
|
4894
|
+
})),
|
|
4895
|
+
conflicts: Schema$1.Array(Schema$1.Struct({
|
|
4896
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
4897
|
+
base: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4898
|
+
draft: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4899
|
+
main: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
4900
|
+
})),
|
|
4901
|
+
provenance: Schema$1.Struct({ references: Schema$1.Array(Schema$1.Struct({
|
|
4902
|
+
kind: Schema$1.String,
|
|
4903
|
+
digest: Schema$1.String,
|
|
4904
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
4905
|
+
})) }),
|
|
4906
|
+
mounts: Schema$1.Array(Schema$1.Union([
|
|
4907
|
+
Schema$1.Struct({
|
|
4908
|
+
kind: Schema$1.Literal("project"),
|
|
4909
|
+
root: Schema$1.Literal("/project"),
|
|
4910
|
+
access: Schema$1.Literal("read-write")
|
|
4911
|
+
}),
|
|
4912
|
+
Schema$1.Struct({
|
|
4913
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4914
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4915
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4916
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4917
|
+
kind: Schema$1.Literal("started-from"),
|
|
4918
|
+
access: Schema$1.Literal("read-only"),
|
|
4919
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4920
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4921
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4922
|
+
}),
|
|
4923
|
+
Schema$1.Struct({
|
|
4924
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4925
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4926
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4927
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4928
|
+
kind: Schema$1.Literal("resource"),
|
|
4929
|
+
access: Schema$1.Literal("read-only"),
|
|
4930
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
4931
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4932
|
+
}),
|
|
4933
|
+
Schema$1.Struct({
|
|
4934
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
4935
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4936
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4937
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
4938
|
+
kind: Schema$1.Literal("library-template"),
|
|
4939
|
+
access: Schema$1.Literal("read-only"),
|
|
4940
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
4941
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
4942
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
4943
|
+
})
|
|
4944
|
+
])),
|
|
4945
|
+
libraryManifestDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
4946
|
+
createdAt: Schema$1.String,
|
|
4947
|
+
updatedAt: Schema$1.String,
|
|
4948
|
+
createdBy: Schema$1.Struct({
|
|
4949
|
+
userId: UserId,
|
|
4950
|
+
via: Schema$1.Literals([
|
|
4951
|
+
"api",
|
|
4952
|
+
"mcp",
|
|
4953
|
+
"agent"
|
|
4954
|
+
])
|
|
4955
|
+
}),
|
|
4956
|
+
updatedBy: Schema$1.Struct({
|
|
4957
|
+
userId: UserId,
|
|
4958
|
+
via: Schema$1.Literals([
|
|
4959
|
+
"api",
|
|
4960
|
+
"mcp",
|
|
4961
|
+
"agent"
|
|
4962
|
+
])
|
|
4963
|
+
})
|
|
4964
|
+
}),
|
|
4965
|
+
files: Schema$1.Record(Schema$1.String, Schema$1.String)
|
|
4966
|
+
});
|
|
4967
|
+
const TemplatesResolveWorkspaceConflict401 = UnauthorizedError;
|
|
4968
|
+
const TemplatesResolveWorkspaceConflict403 = ForbiddenError;
|
|
4969
|
+
const TemplatesResolveWorkspaceConflict404 = ResourceNotFoundError;
|
|
4970
|
+
const TemplatesResolveWorkspaceConflict409 = ConflictError;
|
|
4971
|
+
const TemplatesResolveWorkspaceConflict500 = InternalError;
|
|
4972
|
+
const TemplatesDiffWorkspacePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4973
|
+
const TemplatesDiffWorkspaceRequestJson = Schema$1.Struct({ expectedRevision: Schema$1.String });
|
|
4974
|
+
const TemplatesDiffWorkspace200 = Schema$1.Struct({
|
|
4975
|
+
projectId: TemplateProjectId,
|
|
4976
|
+
baseCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
3801
4977
|
revision: Schema$1.String,
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
"
|
|
3809
|
-
"
|
|
3810
|
-
"agent"
|
|
4978
|
+
changes: Schema$1.Array(Schema$1.Struct({
|
|
4979
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
4980
|
+
before: Schema$1.Union([Schema$1.String.check(Schema$1.isMaxLength(1048576).annotate({ expected: "a value with a length of at most 1048576" })), Schema$1.Null]),
|
|
4981
|
+
after: Schema$1.Union([Schema$1.String.check(Schema$1.isMaxLength(1048576).annotate({ expected: "a value with a length of at most 1048576" })), Schema$1.Null]),
|
|
4982
|
+
status: Schema$1.Literals([
|
|
4983
|
+
"added",
|
|
4984
|
+
"modified",
|
|
4985
|
+
"deleted"
|
|
3811
4986
|
])
|
|
3812
|
-
}),
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
"
|
|
3817
|
-
"
|
|
3818
|
-
"
|
|
4987
|
+
})),
|
|
4988
|
+
assetChanges: Schema$1.Array(Schema$1.Struct({
|
|
4989
|
+
path: Schema$1.String,
|
|
4990
|
+
status: Schema$1.Literals([
|
|
4991
|
+
"added",
|
|
4992
|
+
"modified",
|
|
4993
|
+
"deleted"
|
|
3819
4994
|
])
|
|
3820
|
-
})
|
|
4995
|
+
}))
|
|
4996
|
+
});
|
|
4997
|
+
const TemplatesDiffWorkspace401 = UnauthorizedError;
|
|
4998
|
+
const TemplatesDiffWorkspace403 = ForbiddenError;
|
|
4999
|
+
const TemplatesDiffWorkspace404 = ResourceNotFoundError;
|
|
5000
|
+
const TemplatesDiffWorkspace409 = ConflictError;
|
|
5001
|
+
const TemplatesDiffWorkspace500 = InternalError;
|
|
5002
|
+
const TemplatesRenderWorkspaceFixturePathParams = Schema$1.Struct({ id: TemplateId });
|
|
5003
|
+
const TemplatesRenderWorkspaceFixtureRequestJson = Schema$1.Struct({
|
|
5004
|
+
expectedRevision: Schema$1.String,
|
|
5005
|
+
fixture: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" }))
|
|
3821
5006
|
});
|
|
3822
|
-
const
|
|
3823
|
-
|
|
3824
|
-
const TemplateDocumentsReplace404 = ResourceNotFoundError;
|
|
3825
|
-
const TemplateDocumentsReplace409 = ConflictError;
|
|
3826
|
-
const TemplateDocumentsReplace422 = ValidationError;
|
|
3827
|
-
const TemplateDocumentsReplace500 = InternalError;
|
|
3828
|
-
const TemplateDocumentsSpamCheckPathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3829
|
-
const TemplateDocumentsSpamCheckRequestJson = Schema$1.Struct({
|
|
5007
|
+
const TemplatesRenderWorkspaceFixture200 = Schema$1.Struct({
|
|
5008
|
+
projectId: TemplateProjectId,
|
|
3830
5009
|
revision: Schema$1.String,
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
5010
|
+
entryPath: Schema$1.String.check(Schema$1.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))emails\\/.+\\.tsx$" })),
|
|
5011
|
+
declaration: Schema$1.Union([Schema$1.Struct({
|
|
5012
|
+
codeDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5013
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
5014
|
+
input: Schema$1.Struct({
|
|
5015
|
+
schema: Schema$1.Record(Schema$1.String, JsonValue),
|
|
5016
|
+
schemaDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5017
|
+
contractDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
|
|
5018
|
+
}),
|
|
5019
|
+
runtime: Schema$1.Struct({
|
|
5020
|
+
now: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" }))),
|
|
5021
|
+
randomSeed: Schema$1.optionalKey(Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(4294967295).annotate({ expected: "a value less than or equal to 4294967295" })))
|
|
5022
|
+
}),
|
|
5023
|
+
fixtures: Schema$1.Array(Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })))
|
|
5024
|
+
}), Schema$1.Null]),
|
|
5025
|
+
diagnostics: Schema$1.Array(Schema$1.Struct({
|
|
5026
|
+
code: Schema$1.String,
|
|
3843
5027
|
severity: Schema$1.Literals([
|
|
3844
|
-
"
|
|
3845
|
-
"
|
|
3846
|
-
"
|
|
5028
|
+
"error",
|
|
5029
|
+
"warning",
|
|
5030
|
+
"info"
|
|
3847
5031
|
]),
|
|
3848
|
-
|
|
5032
|
+
message: Schema$1.String,
|
|
5033
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
5034
|
+
fileName: Schema$1.String,
|
|
5035
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5036
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
5037
|
+
})),
|
|
5038
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
5039
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
5040
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
5041
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
5042
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
5043
|
+
fileName: Schema$1.String,
|
|
5044
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5045
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
5046
|
+
}))), Schema$1.Null])),
|
|
5047
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
5048
|
+
assessment: Schema$1.Literals([
|
|
5049
|
+
"risk",
|
|
5050
|
+
"degradation",
|
|
5051
|
+
"unverified",
|
|
5052
|
+
"not-applicable"
|
|
5053
|
+
]),
|
|
5054
|
+
title: Schema$1.String
|
|
5055
|
+
}), Schema$1.Null]))
|
|
3849
5056
|
})),
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
5057
|
+
incompatibilities: Schema$1.Array(Schema$1.Struct({
|
|
5058
|
+
code: Schema$1.String,
|
|
5059
|
+
severity: Schema$1.Literals([
|
|
5060
|
+
"error",
|
|
5061
|
+
"warning",
|
|
5062
|
+
"info"
|
|
5063
|
+
]),
|
|
5064
|
+
message: Schema$1.String,
|
|
5065
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
5066
|
+
fileName: Schema$1.String,
|
|
5067
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5068
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
5069
|
+
})),
|
|
5070
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
5071
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
5072
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
5073
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
5074
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
5075
|
+
fileName: Schema$1.String,
|
|
5076
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5077
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
5078
|
+
}))), Schema$1.Null])),
|
|
5079
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
5080
|
+
assessment: Schema$1.Literals([
|
|
5081
|
+
"risk",
|
|
5082
|
+
"degradation",
|
|
5083
|
+
"unverified",
|
|
5084
|
+
"not-applicable"
|
|
5085
|
+
]),
|
|
5086
|
+
title: Schema$1.String
|
|
5087
|
+
}), Schema$1.Null]))
|
|
5088
|
+
})),
|
|
5089
|
+
fixture: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
5090
|
+
rendered: Schema$1.Union([Schema$1.Struct({
|
|
5091
|
+
subject: Schema$1.String,
|
|
5092
|
+
preheader: Schema$1.optionalKey(Schema$1.String),
|
|
5093
|
+
html: Schema$1.String.check(Schema$1.isMaxLength(2097152).annotate({ expected: "a value with a length of at most 2097152" })),
|
|
5094
|
+
text: Schema$1.String.check(Schema$1.isMaxLength(2097152).annotate({ expected: "a value with a length of at most 2097152" })),
|
|
5095
|
+
selections: Schema$1.Array(Schema$1.Struct({
|
|
5096
|
+
instancePath: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
5097
|
+
tag: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
5098
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
5099
|
+
fileName: Schema$1.String,
|
|
5100
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5101
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
5102
|
+
})),
|
|
5103
|
+
authored: Schema$1.Boolean,
|
|
5104
|
+
occurrence: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5105
|
+
occurrences: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5106
|
+
parentPath: Schema$1.optionalKey(Schema$1.String),
|
|
5107
|
+
start: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
5108
|
+
end: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
5109
|
+
}))
|
|
5110
|
+
}), Schema$1.Null])
|
|
3889
5111
|
});
|
|
3890
|
-
const
|
|
3891
|
-
const
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
5112
|
+
const TemplatesRenderWorkspaceFixture401 = UnauthorizedError;
|
|
5113
|
+
const TemplatesRenderWorkspaceFixture403 = ForbiddenError;
|
|
5114
|
+
const TemplatesRenderWorkspaceFixture404 = ResourceNotFoundError;
|
|
5115
|
+
const TemplatesRenderWorkspaceFixture409 = ConflictError;
|
|
5116
|
+
const TemplatesRenderWorkspaceFixture500 = InternalError;
|
|
5117
|
+
const TemplatesWorkspaceHistoryPathParams = Schema$1.Struct({ id: TemplateId });
|
|
5118
|
+
const TemplatesWorkspaceHistoryQuery = Schema$1.Struct({ limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])) });
|
|
5119
|
+
const TemplatesWorkspaceHistory200 = Schema$1.Struct({
|
|
5120
|
+
projectId: TemplateProjectId,
|
|
5121
|
+
head: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5122
|
+
commits: Schema$1.Array(Schema$1.Struct({
|
|
5123
|
+
commit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5124
|
+
tree: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5125
|
+
parentCommit: Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema$1.Null]),
|
|
5126
|
+
message: Schema$1.String,
|
|
5127
|
+
committedAt: Schema$1.String
|
|
5128
|
+
})),
|
|
5129
|
+
publication: Schema$1.Union([Schema$1.Struct({
|
|
5130
|
+
id: TemplatePublicationId,
|
|
5131
|
+
commit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" }))
|
|
5132
|
+
}), Schema$1.Null])
|
|
5133
|
+
});
|
|
5134
|
+
const TemplatesWorkspaceHistory401 = UnauthorizedError;
|
|
5135
|
+
const TemplatesWorkspaceHistory403 = ForbiddenError;
|
|
5136
|
+
const TemplatesWorkspaceHistory404 = ResourceNotFoundError;
|
|
5137
|
+
const TemplatesWorkspaceHistory409 = ConflictError;
|
|
5138
|
+
const TemplatesWorkspaceHistory500 = InternalError;
|
|
5139
|
+
const TemplatesReconcileWorkspacePathParams = Schema$1.Struct({ id: TemplateId });
|
|
5140
|
+
const TemplatesReconcileWorkspaceRequestJson = Schema$1.Struct({
|
|
5141
|
+
expectedRevision: Schema$1.String,
|
|
5142
|
+
assetResolution: Schema$1.optionalKey(Schema$1.Literals(["draft", "remote"])),
|
|
5143
|
+
expectedRemoteHead: Schema$1.optionalKey(Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" }))),
|
|
5144
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
5145
|
+
});
|
|
5146
|
+
const TemplatesReconcileWorkspace200 = Schema$1.Struct({
|
|
5147
|
+
workspace: Schema$1.Struct({
|
|
5148
|
+
projectId: TemplateProjectId,
|
|
5149
|
+
organizationId: Schema$1.Union([OrganizationId, Schema$1.Null]),
|
|
5150
|
+
ownerEpoch: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
5151
|
+
repositoryName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
5152
|
+
defaultBranch: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
5153
|
+
baseCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5154
|
+
remoteHead: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5155
|
+
pendingRemoteHead: Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema$1.Null]),
|
|
5156
|
+
revision: Schema$1.String,
|
|
5157
|
+
overlay: Schema$1.Record(Schema$1.String, Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
5158
|
+
assetChanges: Schema$1.Array(Schema$1.Struct({
|
|
5159
|
+
path: Schema$1.String,
|
|
5160
|
+
status: Schema$1.Literals([
|
|
5161
|
+
"added",
|
|
5162
|
+
"modified",
|
|
5163
|
+
"deleted"
|
|
5164
|
+
])
|
|
5165
|
+
})),
|
|
5166
|
+
conflicts: Schema$1.Array(Schema$1.Struct({
|
|
5167
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
5168
|
+
base: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
5169
|
+
draft: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
5170
|
+
main: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
5171
|
+
})),
|
|
5172
|
+
provenance: Schema$1.Struct({ references: Schema$1.Array(Schema$1.Struct({
|
|
5173
|
+
kind: Schema$1.String,
|
|
5174
|
+
digest: Schema$1.String,
|
|
5175
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
5176
|
+
})) }),
|
|
5177
|
+
mounts: Schema$1.Array(Schema$1.Union([
|
|
5178
|
+
Schema$1.Struct({
|
|
5179
|
+
kind: Schema$1.Literal("project"),
|
|
5180
|
+
root: Schema$1.Literal("/project"),
|
|
5181
|
+
access: Schema$1.Literal("read-write")
|
|
5182
|
+
}),
|
|
5183
|
+
Schema$1.Struct({
|
|
5184
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
5185
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5186
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5187
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5188
|
+
kind: Schema$1.Literal("started-from"),
|
|
5189
|
+
access: Schema$1.Literal("read-only"),
|
|
5190
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
5191
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
5192
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
5193
|
+
}),
|
|
5194
|
+
Schema$1.Struct({
|
|
5195
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
5196
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5197
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5198
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5199
|
+
kind: Schema$1.Literal("resource"),
|
|
5200
|
+
access: Schema$1.Literal("read-only"),
|
|
5201
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
5202
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
5203
|
+
}),
|
|
5204
|
+
Schema$1.Struct({
|
|
5205
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
5206
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5207
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5208
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5209
|
+
kind: Schema$1.Literal("library-template"),
|
|
5210
|
+
access: Schema$1.Literal("read-only"),
|
|
5211
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
5212
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
5213
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
5214
|
+
})
|
|
5215
|
+
])),
|
|
5216
|
+
libraryManifestDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5217
|
+
createdAt: Schema$1.String,
|
|
5218
|
+
updatedAt: Schema$1.String,
|
|
5219
|
+
createdBy: Schema$1.Struct({
|
|
5220
|
+
userId: UserId,
|
|
5221
|
+
via: Schema$1.Literals([
|
|
5222
|
+
"api",
|
|
5223
|
+
"mcp",
|
|
5224
|
+
"agent"
|
|
5225
|
+
])
|
|
5226
|
+
}),
|
|
5227
|
+
updatedBy: Schema$1.Struct({
|
|
5228
|
+
userId: UserId,
|
|
5229
|
+
via: Schema$1.Literals([
|
|
5230
|
+
"api",
|
|
5231
|
+
"mcp",
|
|
5232
|
+
"agent"
|
|
5233
|
+
])
|
|
5234
|
+
})
|
|
5235
|
+
}),
|
|
5236
|
+
files: Schema$1.Record(Schema$1.String, Schema$1.String)
|
|
5237
|
+
});
|
|
5238
|
+
const TemplatesReconcileWorkspace401 = UnauthorizedError;
|
|
5239
|
+
const TemplatesReconcileWorkspace403 = ForbiddenError;
|
|
5240
|
+
const TemplatesReconcileWorkspace404 = ResourceNotFoundError;
|
|
5241
|
+
const TemplatesReconcileWorkspace409 = ConflictError;
|
|
5242
|
+
const TemplatesReconcileWorkspace500 = InternalError;
|
|
5243
|
+
const TemplatesAttachWorkspaceResourcePathParams = Schema$1.Struct({ id: TemplateId });
|
|
5244
|
+
const TemplatesAttachWorkspaceResourceRequestJson = Schema$1.Struct({
|
|
5245
|
+
expectedRevision: Schema$1.String,
|
|
5246
|
+
resource: Schema$1.Struct({
|
|
5247
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
5248
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" })),
|
|
5249
|
+
files: Schema$1.Array(Schema$1.Struct({
|
|
5250
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
5251
|
+
mediaType: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
5252
|
+
contentBase64: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")).annotate({ expected: "a string matching the RegExp ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" }))
|
|
5253
|
+
}))
|
|
5254
|
+
}),
|
|
5255
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
5256
|
+
});
|
|
5257
|
+
const TemplatesAttachWorkspaceResource200 = Schema$1.Struct({
|
|
5258
|
+
projectId: TemplateProjectId,
|
|
5259
|
+
organizationId: Schema$1.Union([OrganizationId, Schema$1.Null]),
|
|
5260
|
+
ownerEpoch: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
5261
|
+
repositoryName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
5262
|
+
defaultBranch: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
5263
|
+
baseCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5264
|
+
remoteHead: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5265
|
+
pendingRemoteHead: Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema$1.Null]),
|
|
3896
5266
|
revision: Schema$1.String,
|
|
3897
|
-
|
|
5267
|
+
overlay: Schema$1.Record(Schema$1.String, Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
5268
|
+
assetChanges: Schema$1.Array(Schema$1.Struct({
|
|
5269
|
+
path: Schema$1.String,
|
|
5270
|
+
status: Schema$1.Literals([
|
|
5271
|
+
"added",
|
|
5272
|
+
"modified",
|
|
5273
|
+
"deleted"
|
|
5274
|
+
])
|
|
5275
|
+
})),
|
|
5276
|
+
conflicts: Schema$1.Array(Schema$1.Struct({
|
|
5277
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
5278
|
+
base: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
5279
|
+
draft: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
5280
|
+
main: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
5281
|
+
})),
|
|
5282
|
+
provenance: Schema$1.Struct({ references: Schema$1.Array(Schema$1.Struct({
|
|
5283
|
+
kind: Schema$1.String,
|
|
5284
|
+
digest: Schema$1.String,
|
|
5285
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
5286
|
+
})) }),
|
|
5287
|
+
mounts: Schema$1.Array(Schema$1.Union([
|
|
5288
|
+
Schema$1.Struct({
|
|
5289
|
+
kind: Schema$1.Literal("project"),
|
|
5290
|
+
root: Schema$1.Literal("/project"),
|
|
5291
|
+
access: Schema$1.Literal("read-write")
|
|
5292
|
+
}),
|
|
5293
|
+
Schema$1.Struct({
|
|
5294
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
5295
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5296
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5297
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5298
|
+
kind: Schema$1.Literal("started-from"),
|
|
5299
|
+
access: Schema$1.Literal("read-only"),
|
|
5300
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
5301
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
5302
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
5303
|
+
}),
|
|
5304
|
+
Schema$1.Struct({
|
|
5305
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
5306
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5307
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5308
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5309
|
+
kind: Schema$1.Literal("resource"),
|
|
5310
|
+
access: Schema$1.Literal("read-only"),
|
|
5311
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
5312
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
5313
|
+
}),
|
|
5314
|
+
Schema$1.Struct({
|
|
5315
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
5316
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5317
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5318
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5319
|
+
kind: Schema$1.Literal("library-template"),
|
|
5320
|
+
access: Schema$1.Literal("read-only"),
|
|
5321
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
5322
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
5323
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
5324
|
+
})
|
|
5325
|
+
])),
|
|
5326
|
+
libraryManifestDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3898
5327
|
createdAt: Schema$1.String,
|
|
3899
5328
|
updatedAt: Schema$1.String,
|
|
3900
5329
|
createdBy: Schema$1.Struct({
|
|
@@ -3914,20 +5343,89 @@ const TemplateDocumentsRestore200 = Schema$1.Struct({
|
|
|
3914
5343
|
])
|
|
3915
5344
|
})
|
|
3916
5345
|
});
|
|
3917
|
-
const
|
|
3918
|
-
const
|
|
3919
|
-
const
|
|
3920
|
-
const
|
|
3921
|
-
const
|
|
3922
|
-
const
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
5346
|
+
const TemplatesAttachWorkspaceResource401 = UnauthorizedError;
|
|
5347
|
+
const TemplatesAttachWorkspaceResource403 = ForbiddenError;
|
|
5348
|
+
const TemplatesAttachWorkspaceResource404 = ResourceNotFoundError;
|
|
5349
|
+
const TemplatesAttachWorkspaceResource409 = ConflictError;
|
|
5350
|
+
const TemplatesAttachWorkspaceResource500 = InternalError;
|
|
5351
|
+
const TemplatesRemoveWorkspaceResourcePathParams = Schema$1.Struct({
|
|
5352
|
+
id: TemplateId,
|
|
5353
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" }))
|
|
5354
|
+
});
|
|
5355
|
+
const TemplatesRemoveWorkspaceResourceRequestJson = Schema$1.Struct({
|
|
5356
|
+
expectedRevision: Schema$1.String,
|
|
5357
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
5358
|
+
});
|
|
5359
|
+
const TemplatesRemoveWorkspaceResource200 = Schema$1.Struct({
|
|
5360
|
+
projectId: TemplateProjectId,
|
|
5361
|
+
organizationId: Schema$1.Union([OrganizationId, Schema$1.Null]),
|
|
5362
|
+
ownerEpoch: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
5363
|
+
repositoryName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
5364
|
+
defaultBranch: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
5365
|
+
baseCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5366
|
+
remoteHead: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5367
|
+
pendingRemoteHead: Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema$1.Null]),
|
|
3929
5368
|
revision: Schema$1.String,
|
|
3930
|
-
|
|
5369
|
+
overlay: Schema$1.Record(Schema$1.String, Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
5370
|
+
assetChanges: Schema$1.Array(Schema$1.Struct({
|
|
5371
|
+
path: Schema$1.String,
|
|
5372
|
+
status: Schema$1.Literals([
|
|
5373
|
+
"added",
|
|
5374
|
+
"modified",
|
|
5375
|
+
"deleted"
|
|
5376
|
+
])
|
|
5377
|
+
})),
|
|
5378
|
+
conflicts: Schema$1.Array(Schema$1.Struct({
|
|
5379
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
5380
|
+
base: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
5381
|
+
draft: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
5382
|
+
main: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
5383
|
+
})),
|
|
5384
|
+
provenance: Schema$1.Struct({ references: Schema$1.Array(Schema$1.Struct({
|
|
5385
|
+
kind: Schema$1.String,
|
|
5386
|
+
digest: Schema$1.String,
|
|
5387
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
5388
|
+
})) }),
|
|
5389
|
+
mounts: Schema$1.Array(Schema$1.Union([
|
|
5390
|
+
Schema$1.Struct({
|
|
5391
|
+
kind: Schema$1.Literal("project"),
|
|
5392
|
+
root: Schema$1.Literal("/project"),
|
|
5393
|
+
access: Schema$1.Literal("read-write")
|
|
5394
|
+
}),
|
|
5395
|
+
Schema$1.Struct({
|
|
5396
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
5397
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5398
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5399
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5400
|
+
kind: Schema$1.Literal("started-from"),
|
|
5401
|
+
access: Schema$1.Literal("read-only"),
|
|
5402
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
5403
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
5404
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
5405
|
+
}),
|
|
5406
|
+
Schema$1.Struct({
|
|
5407
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
5408
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5409
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5410
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5411
|
+
kind: Schema$1.Literal("resource"),
|
|
5412
|
+
access: Schema$1.Literal("read-only"),
|
|
5413
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
5414
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
5415
|
+
}),
|
|
5416
|
+
Schema$1.Struct({
|
|
5417
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
5418
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5419
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5420
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5421
|
+
kind: Schema$1.Literal("library-template"),
|
|
5422
|
+
access: Schema$1.Literal("read-only"),
|
|
5423
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
5424
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
5425
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
5426
|
+
})
|
|
5427
|
+
])),
|
|
5428
|
+
libraryManifestDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3931
5429
|
createdAt: Schema$1.String,
|
|
3932
5430
|
updatedAt: Schema$1.String,
|
|
3933
5431
|
createdBy: Schema$1.Struct({
|
|
@@ -3947,132 +5445,205 @@ const TemplateDocumentsBootstrap200 = Schema$1.Struct({
|
|
|
3947
5445
|
])
|
|
3948
5446
|
})
|
|
3949
5447
|
});
|
|
3950
|
-
const
|
|
3951
|
-
const
|
|
3952
|
-
const
|
|
3953
|
-
const
|
|
3954
|
-
const
|
|
3955
|
-
const
|
|
3956
|
-
const
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
5448
|
+
const TemplatesRemoveWorkspaceResource401 = UnauthorizedError;
|
|
5449
|
+
const TemplatesRemoveWorkspaceResource403 = ForbiddenError;
|
|
5450
|
+
const TemplatesRemoveWorkspaceResource404 = ResourceNotFoundError;
|
|
5451
|
+
const TemplatesRemoveWorkspaceResource409 = ConflictError;
|
|
5452
|
+
const TemplatesRemoveWorkspaceResource500 = InternalError;
|
|
5453
|
+
const TemplatesRestoreWorkspacePathParams = Schema$1.Struct({ id: TemplateId });
|
|
5454
|
+
const TemplatesRestoreWorkspaceRequestJson = Schema$1.Struct({
|
|
5455
|
+
expectedRevision: Schema$1.String,
|
|
5456
|
+
commit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5457
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
5458
|
+
});
|
|
5459
|
+
const TemplatesRestoreWorkspace200 = Schema$1.Struct({
|
|
5460
|
+
view: Schema$1.Struct({
|
|
5461
|
+
workspace: Schema$1.Struct({
|
|
5462
|
+
projectId: TemplateProjectId,
|
|
5463
|
+
organizationId: Schema$1.Union([OrganizationId, Schema$1.Null]),
|
|
5464
|
+
ownerEpoch: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
5465
|
+
repositoryName: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
|
|
5466
|
+
defaultBranch: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
5467
|
+
baseCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5468
|
+
remoteHead: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5469
|
+
pendingRemoteHead: Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema$1.Null]),
|
|
5470
|
+
revision: Schema$1.String,
|
|
5471
|
+
overlay: Schema$1.Record(Schema$1.String, Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
5472
|
+
assetChanges: Schema$1.Array(Schema$1.Struct({
|
|
5473
|
+
path: Schema$1.String,
|
|
5474
|
+
status: Schema$1.Literals([
|
|
5475
|
+
"added",
|
|
5476
|
+
"modified",
|
|
5477
|
+
"deleted"
|
|
5478
|
+
])
|
|
5479
|
+
})),
|
|
5480
|
+
conflicts: Schema$1.Array(Schema$1.Struct({
|
|
5481
|
+
path: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
|
|
5482
|
+
base: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
5483
|
+
draft: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
5484
|
+
main: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
5485
|
+
})),
|
|
5486
|
+
provenance: Schema$1.Struct({ references: Schema$1.Array(Schema$1.Struct({
|
|
5487
|
+
kind: Schema$1.String,
|
|
5488
|
+
digest: Schema$1.String,
|
|
5489
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
5490
|
+
})) }),
|
|
5491
|
+
mounts: Schema$1.Array(Schema$1.Union([
|
|
5492
|
+
Schema$1.Struct({
|
|
5493
|
+
kind: Schema$1.Literal("project"),
|
|
5494
|
+
root: Schema$1.Literal("/project"),
|
|
5495
|
+
access: Schema$1.Literal("read-write")
|
|
5496
|
+
}),
|
|
5497
|
+
Schema$1.Struct({
|
|
5498
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
5499
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5500
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5501
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5502
|
+
kind: Schema$1.Literal("started-from"),
|
|
5503
|
+
access: Schema$1.Literal("read-only"),
|
|
5504
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
5505
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
5506
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
5507
|
+
}),
|
|
5508
|
+
Schema$1.Struct({
|
|
5509
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
5510
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5511
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5512
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5513
|
+
kind: Schema$1.Literal("resource"),
|
|
5514
|
+
access: Schema$1.Literal("read-only"),
|
|
5515
|
+
resourceId: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
|
|
5516
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
5517
|
+
}),
|
|
5518
|
+
Schema$1.Struct({
|
|
5519
|
+
root: Schema$1.String.check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
|
|
5520
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5521
|
+
fileCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5522
|
+
byteSize: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5523
|
+
kind: Schema$1.Literal("library-template"),
|
|
5524
|
+
access: Schema$1.Literal("read-only"),
|
|
5525
|
+
templateId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
5526
|
+
slug: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
5527
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
|
|
5528
|
+
})
|
|
5529
|
+
])),
|
|
5530
|
+
libraryManifestDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5531
|
+
createdAt: Schema$1.String,
|
|
5532
|
+
updatedAt: Schema$1.String,
|
|
5533
|
+
createdBy: Schema$1.Struct({
|
|
5534
|
+
userId: UserId,
|
|
5535
|
+
via: Schema$1.Literals([
|
|
5536
|
+
"api",
|
|
5537
|
+
"mcp",
|
|
5538
|
+
"agent"
|
|
5539
|
+
])
|
|
5540
|
+
}),
|
|
5541
|
+
updatedBy: Schema$1.Struct({
|
|
5542
|
+
userId: UserId,
|
|
5543
|
+
via: Schema$1.Literals([
|
|
5544
|
+
"api",
|
|
5545
|
+
"mcp",
|
|
5546
|
+
"agent"
|
|
5547
|
+
])
|
|
5548
|
+
})
|
|
5549
|
+
}),
|
|
5550
|
+
files: Schema$1.Record(Schema$1.String, Schema$1.String)
|
|
5551
|
+
}),
|
|
5552
|
+
source: Schema$1.Struct({
|
|
5553
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5554
|
+
content: Schema$1.String.check(Schema$1.isMaxLength(2097152).annotate({ expected: "a value with a length of at most 2097152" }))
|
|
5555
|
+
})
|
|
3990
5556
|
});
|
|
3991
|
-
const
|
|
3992
|
-
const
|
|
3993
|
-
const
|
|
3994
|
-
const
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
5557
|
+
const TemplatesRestoreWorkspace401 = UnauthorizedError;
|
|
5558
|
+
const TemplatesRestoreWorkspace403 = ForbiddenError;
|
|
5559
|
+
const TemplatesRestoreWorkspace404 = ResourceNotFoundError;
|
|
5560
|
+
const TemplatesRestoreWorkspace409 = ConflictError;
|
|
5561
|
+
const TemplatesRestoreWorkspace500 = InternalError;
|
|
5562
|
+
const TemplatesSaveWorkspacePathParams = Schema$1.Struct({ id: TemplateId });
|
|
5563
|
+
const TemplatesSaveWorkspaceRequestJson = Schema$1.Struct({
|
|
5564
|
+
expectedRevision: Schema$1.String,
|
|
5565
|
+
expectedHead: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5566
|
+
message: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })),
|
|
5567
|
+
idempotencyKey: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
5568
|
+
});
|
|
5569
|
+
const TemplatesSaveWorkspace200 = Schema$1.Struct({
|
|
5570
|
+
commit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5571
|
+
parentCommit: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5572
|
+
tree: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
|
|
5573
|
+
revision: Schema$1.String,
|
|
5574
|
+
changedPaths: Schema$1.Array(Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" }))),
|
|
5575
|
+
sourceDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5576
|
+
buildDigest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
5577
|
+
warnings: Schema$1.Array(Schema$1.Struct({
|
|
5578
|
+
code: Schema$1.String,
|
|
5579
|
+
severity: Schema$1.Literals([
|
|
5580
|
+
"error",
|
|
5581
|
+
"warning",
|
|
5582
|
+
"info"
|
|
5583
|
+
]),
|
|
5584
|
+
message: Schema$1.String,
|
|
5585
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
5586
|
+
fileName: Schema$1.String,
|
|
5587
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5588
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
5589
|
+
})),
|
|
5590
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
5591
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
5592
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
5593
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
5594
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
5595
|
+
fileName: Schema$1.String,
|
|
5596
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5597
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
5598
|
+
}))), Schema$1.Null])),
|
|
5599
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
5600
|
+
assessment: Schema$1.Literals([
|
|
5601
|
+
"risk",
|
|
5602
|
+
"degradation",
|
|
5603
|
+
"unverified",
|
|
5604
|
+
"not-applicable"
|
|
5605
|
+
]),
|
|
5606
|
+
title: Schema$1.String
|
|
5607
|
+
}), Schema$1.Null]))
|
|
5608
|
+
})),
|
|
5609
|
+
incompatibilities: Schema$1.Array(Schema$1.Struct({
|
|
5610
|
+
code: Schema$1.String,
|
|
5611
|
+
severity: Schema$1.Literals([
|
|
5612
|
+
"error",
|
|
5613
|
+
"warning",
|
|
5614
|
+
"info"
|
|
5615
|
+
]),
|
|
5616
|
+
message: Schema$1.String,
|
|
5617
|
+
origins: Schema$1.Array(Schema$1.Struct({
|
|
5618
|
+
fileName: Schema$1.String,
|
|
5619
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5620
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
5621
|
+
})),
|
|
5622
|
+
clients: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
5623
|
+
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
5624
|
+
provenance: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
5625
|
+
fixtures: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
5626
|
+
occurrences: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.Struct({
|
|
5627
|
+
fileName: Schema$1.String,
|
|
5628
|
+
lineNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })),
|
|
5629
|
+
columnNumber: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" }))
|
|
5630
|
+
}))), Schema$1.Null])),
|
|
5631
|
+
compatibility: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
5632
|
+
assessment: Schema$1.Literals([
|
|
5633
|
+
"risk",
|
|
5634
|
+
"degradation",
|
|
5635
|
+
"unverified",
|
|
5636
|
+
"not-applicable"
|
|
5637
|
+
]),
|
|
5638
|
+
title: Schema$1.String
|
|
5639
|
+
}), Schema$1.Null]))
|
|
5640
|
+
}))
|
|
4018
5641
|
});
|
|
4019
|
-
const
|
|
4020
|
-
const
|
|
4021
|
-
const
|
|
4022
|
-
const
|
|
4023
|
-
const
|
|
4024
|
-
const TemplatesCreate500 = InternalError;
|
|
4025
|
-
const TemplatesGetByIdPathParams = Schema$1.Struct({ id: TemplateId });
|
|
4026
|
-
const TemplatesGetById200 = Template;
|
|
4027
|
-
const TemplatesGetById401 = UnauthorizedError;
|
|
4028
|
-
const TemplatesGetById403 = ForbiddenError;
|
|
4029
|
-
const TemplatesGetById404 = ResourceNotFoundError;
|
|
4030
|
-
const TemplatesGetById500 = InternalError;
|
|
4031
|
-
const TemplatesRemovePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4032
|
-
const TemplatesRemove200 = SuccessResponse;
|
|
4033
|
-
const TemplatesRemove401 = UnauthorizedError;
|
|
4034
|
-
const TemplatesRemove403 = ForbiddenError;
|
|
4035
|
-
const TemplatesRemove404 = ResourceNotFoundError;
|
|
4036
|
-
const TemplatesRemove500 = InternalError;
|
|
4037
|
-
const TemplatesUpdatePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4038
|
-
const TemplatesUpdateRequestJson = Schema$1.Struct({ data: Schema$1.Struct({
|
|
4039
|
-
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4040
|
-
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
4041
|
-
origin: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["dashboard", "tsx"]), Schema$1.Null])),
|
|
4042
|
-
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
4043
|
-
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
4044
|
-
"transactional",
|
|
4045
|
-
"marketing",
|
|
4046
|
-
"support",
|
|
4047
|
-
"notification",
|
|
4048
|
-
"verification",
|
|
4049
|
-
"reminder",
|
|
4050
|
-
"alert"
|
|
4051
|
-
]), Schema$1.Null]), Schema$1.Null])),
|
|
4052
|
-
fromDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateFromDefault, Schema$1.Null]), Schema$1.Null])),
|
|
4053
|
-
replyToDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
4054
|
-
variableSchema: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(TemplateVariable), Schema$1.Null]), Schema$1.Null])),
|
|
4055
|
-
compliance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateCompliance, Schema$1.Null]), Schema$1.Null])),
|
|
4056
|
-
performance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplatePerformance, Schema$1.Null]), Schema$1.Null])),
|
|
4057
|
-
designOverrides: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Design, Schema$1.Null]), Schema$1.Null])),
|
|
4058
|
-
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
4059
|
-
isDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
4060
|
-
version: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]))
|
|
4061
|
-
}) });
|
|
4062
|
-
const TemplatesUpdate200 = Template;
|
|
4063
|
-
const TemplatesUpdate401 = UnauthorizedError;
|
|
4064
|
-
const TemplatesUpdate403 = ForbiddenError;
|
|
4065
|
-
const TemplatesUpdate404 = ResourceNotFoundError;
|
|
4066
|
-
const TemplatesUpdate409 = ConflictError;
|
|
4067
|
-
const TemplatesUpdate422 = ValidationError;
|
|
4068
|
-
const TemplatesUpdate500 = InternalError;
|
|
4069
|
-
const TemplatesApprovePathParams = Schema$1.Struct({ id: TemplateId });
|
|
4070
|
-
const TemplatesApproveRequestJson = Schema$1.Struct({ data: Schema$1.Struct({ notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])) }) });
|
|
4071
|
-
const TemplatesApprove200 = Template;
|
|
4072
|
-
const TemplatesApprove401 = UnauthorizedError;
|
|
4073
|
-
const TemplatesApprove403 = ForbiddenError;
|
|
4074
|
-
const TemplatesApprove404 = ResourceNotFoundError;
|
|
4075
|
-
const TemplatesApprove500 = InternalError;
|
|
5642
|
+
const TemplatesSaveWorkspace401 = UnauthorizedError;
|
|
5643
|
+
const TemplatesSaveWorkspace403 = ForbiddenError;
|
|
5644
|
+
const TemplatesSaveWorkspace404 = ResourceNotFoundError;
|
|
5645
|
+
const TemplatesSaveWorkspace409 = ConflictError;
|
|
5646
|
+
const TemplatesSaveWorkspace500 = InternalError;
|
|
4076
5647
|
const TemplatesListDashboardQuery = Schema$1.Struct({
|
|
4077
5648
|
page: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4078
5649
|
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
@@ -4161,17 +5732,6 @@ const TemplatesRenameFamily403 = ForbiddenError;
|
|
|
4161
5732
|
const TemplatesRenameFamily404 = ResourceNotFoundError;
|
|
4162
5733
|
const TemplatesRenameFamily422 = ValidationError;
|
|
4163
5734
|
const TemplatesRenameFamily500 = InternalError;
|
|
4164
|
-
const TemplatesAddFamilyChannelPathParams = Schema$1.Struct({
|
|
4165
|
-
familyId: TemplateFamilyId,
|
|
4166
|
-
channel: Schema$1.Literal("email")
|
|
4167
|
-
});
|
|
4168
|
-
const TemplatesAddFamilyChannel201 = TemplateFamily;
|
|
4169
|
-
const TemplatesAddFamilyChannel401 = UnauthorizedError;
|
|
4170
|
-
const TemplatesAddFamilyChannel403 = ForbiddenError;
|
|
4171
|
-
const TemplatesAddFamilyChannel404 = ResourceNotFoundError;
|
|
4172
|
-
const TemplatesAddFamilyChannel409 = ConflictError;
|
|
4173
|
-
const TemplatesAddFamilyChannel422 = ValidationError;
|
|
4174
|
-
const TemplatesAddFamilyChannel500 = InternalError;
|
|
4175
5735
|
const TemplatesAttachFamilyMemberPathParams = Schema$1.Struct({
|
|
4176
5736
|
familyId: TemplateFamilyId,
|
|
4177
5737
|
templateId: TemplateId
|
|
@@ -4205,10 +5765,11 @@ const TemplatesCreateFamilyFromTemplate500 = InternalError;
|
|
|
4205
5765
|
const WebhooksListQuery = Schema$1.Struct({
|
|
4206
5766
|
page: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4207
5767
|
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4208
|
-
search: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
5768
|
+
search: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
5769
|
+
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["active", "disabled"]), Schema$1.Null]))
|
|
4209
5770
|
});
|
|
4210
5771
|
const WebhooksList200 = Schema$1.Struct({
|
|
4211
|
-
items: Schema$1.Array(
|
|
5772
|
+
items: Schema$1.Array(WebhookEndpointListItem),
|
|
4212
5773
|
pagination: PaginationMeta
|
|
4213
5774
|
});
|
|
4214
5775
|
const WebhooksList401 = UnauthorizedError;
|
|
@@ -4242,7 +5803,8 @@ const WebhooksCreateRequestJson = Schema$1.Struct({
|
|
|
4242
5803
|
"webhook.updated",
|
|
4243
5804
|
"webhook.deleted",
|
|
4244
5805
|
"webhook.test",
|
|
4245
|
-
"domain.updated"
|
|
5806
|
+
"domain.updated",
|
|
5807
|
+
"domain.warming.updated"
|
|
4246
5808
|
])).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4247
5809
|
channels: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Literal("email")).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null])),
|
|
4248
5810
|
headers: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null])),
|
|
@@ -4301,7 +5863,8 @@ const WebhooksUpdateRequestJson = Schema$1.Struct({
|
|
|
4301
5863
|
"webhook.updated",
|
|
4302
5864
|
"webhook.deleted",
|
|
4303
5865
|
"webhook.test",
|
|
4304
|
-
"domain.updated"
|
|
5866
|
+
"domain.updated",
|
|
5867
|
+
"domain.warming.updated"
|
|
4305
5868
|
])).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null])),
|
|
4306
5869
|
channels: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.Literal("email")).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null]), Schema$1.Null])),
|
|
4307
5870
|
headers: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null])),
|
|
@@ -4346,6 +5909,8 @@ const WebhooksGetLogs200 = Schema$1.Struct({
|
|
|
4346
5909
|
data: Schema$1.Array(Schema$1.Struct({
|
|
4347
5910
|
id: WebhookDeliveryId,
|
|
4348
5911
|
eventId: WebhookEventId,
|
|
5912
|
+
eventType: Schema$1.String,
|
|
5913
|
+
occurredAt: Schema$1.String,
|
|
4349
5914
|
endpointId: WebhookEndpointId,
|
|
4350
5915
|
status: Schema$1.Literals([
|
|
4351
5916
|
"pending",
|
|
@@ -4393,13 +5958,12 @@ const WebhooksRegenerateSecret404 = ResourceNotFoundError;
|
|
|
4393
5958
|
const WebhooksRegenerateSecret422 = ValidationError;
|
|
4394
5959
|
const WebhooksRegenerateSecret500 = InternalError;
|
|
4395
5960
|
const WebhooksGetStatsPathParams = Schema$1.Struct({ webhookId: WebhookEndpointId });
|
|
4396
|
-
const
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
});
|
|
5961
|
+
const WebhooksGetStatsQuery = Schema$1.Struct({ period: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
5962
|
+
"7d",
|
|
5963
|
+
"30d",
|
|
5964
|
+
"90d"
|
|
5965
|
+
]), Schema$1.Null])) });
|
|
5966
|
+
const WebhooksGetStats200 = WebhookStatsResponse;
|
|
4403
5967
|
const WebhooksGetStats401 = UnauthorizedError;
|
|
4404
5968
|
const WebhooksGetStats403 = ForbiddenError;
|
|
4405
5969
|
const WebhooksGetStats404 = ResourceNotFoundError;
|
|
@@ -4975,10 +6539,11 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
4975
6539
|
EmailAddDomain402.pipe(HttpApiSchema.status(402)),
|
|
4976
6540
|
EmailAddDomain403.pipe(HttpApiSchema.status(403)),
|
|
4977
6541
|
EmailAddDomain409.pipe(HttpApiSchema.status(409)),
|
|
6542
|
+
EmailAddDomain422.pipe(HttpApiSchema.status(422)),
|
|
4978
6543
|
EmailAddDomain500,
|
|
4979
6544
|
EmailAddDomain502.pipe(HttpApiSchema.status(502))
|
|
4980
6545
|
]
|
|
4981
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.addDomain").annotate(OpenApi.Summary, "Add a sending domain").annotate(OpenApi.Description, "Registers a domain for sending and returns it with the DNS records required to verify ownership and configure DKIM. Responds with 201."), HttpApiEndpoint.get("emailGetDomainById", "/v1/email/domains/:id", {
|
|
6546
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.addDomain").annotate(OpenApi.Summary, "Add a sending domain").annotate(OpenApi.Description, "Registers a domain for sending and returns it with the DNS records required to verify ownership and configure DKIM. Responds with 201. Supplying a connection attaches the domain to that DNS account; the domain must sit inside the zone given with it."), HttpApiEndpoint.get("emailGetDomainById", "/v1/email/domains/:id", {
|
|
4982
6547
|
params: EmailGetDomainByIdPathParams,
|
|
4983
6548
|
success: EmailGetDomainById200,
|
|
4984
6549
|
error: [
|
|
@@ -5036,7 +6601,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
5036
6601
|
EmailDisableCustomTracking500,
|
|
5037
6602
|
EmailDisableCustomTracking502.pipe(HttpApiSchema.status(502))
|
|
5038
6603
|
]
|
|
5039
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.disableCustomTracking").annotate(OpenApi.Summary, "Disable a custom tracking domain").annotate(OpenApi.Description, "
|
|
6604
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.disableCustomTracking").annotate(OpenApi.Summary, "Disable a custom tracking domain").annotate(OpenApi.Description, "Disables a domain's custom tracking, removes its managed resources, and immediately returns sends to the shared tracking host. Existing custom links in already-delivered mail stop working."), HttpApiEndpoint.get("emailGetCustomTrackingDomainConnect", "/v1/email/domains/:id/custom-tracking/domain-connect", {
|
|
5040
6605
|
params: EmailGetCustomTrackingDomainConnectPathParams,
|
|
5041
6606
|
success: EmailGetCustomTrackingDomainConnect200,
|
|
5042
6607
|
error: [
|
|
@@ -5095,7 +6660,19 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
5095
6660
|
EmailClearDomainDefaultSender404.pipe(HttpApiSchema.status(404)),
|
|
5096
6661
|
EmailClearDomainDefaultSender500
|
|
5097
6662
|
]
|
|
5098
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.clearDomainDefaultSender").annotate(OpenApi.Summary, "Clear a domain's default sender").annotate(OpenApi.Description, "Removes the domain's default sender so omitted-`from` sends fall through to the organization default sender."), HttpApiEndpoint.
|
|
6663
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.clearDomainDefaultSender").annotate(OpenApi.Summary, "Clear a domain's default sender").annotate(OpenApi.Description, "Removes the domain's default sender so omitted-`from` sends fall through to the organization default sender."), HttpApiEndpoint.post("emailRotateDomainDkim", "/v1/email/domains/:id/dkim-rotation", {
|
|
6664
|
+
params: EmailRotateDomainDkimPathParams,
|
|
6665
|
+
headers: EmailRotateDomainDkimHeaders,
|
|
6666
|
+
success: EmailRotateDomainDkim200,
|
|
6667
|
+
error: [
|
|
6668
|
+
EmailRotateDomainDkim401.pipe(HttpApiSchema.status(401)),
|
|
6669
|
+
EmailRotateDomainDkim403.pipe(HttpApiSchema.status(403)),
|
|
6670
|
+
EmailRotateDomainDkim404.pipe(HttpApiSchema.status(404)),
|
|
6671
|
+
EmailRotateDomainDkim409.pipe(HttpApiSchema.status(409)),
|
|
6672
|
+
EmailRotateDomainDkim500,
|
|
6673
|
+
EmailRotateDomainDkim502.pipe(HttpApiSchema.status(502))
|
|
6674
|
+
]
|
|
6675
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.rotateDomainDkim").annotate(OpenApi.Summary, "Stage a DKIM selector rotation").annotate(OpenApi.Description, "Creates encrypted signing custody and returns a new public DKIM record. Publish it, then advance domain verification to cut over. Retain the former record until separately approved retirement."), HttpApiEndpoint.get("emailGetDomainConnect", "/v1/email/domains/:id/domain-connect", {
|
|
5099
6676
|
params: EmailGetDomainConnectPathParams,
|
|
5100
6677
|
query: EmailGetDomainConnectQuery,
|
|
5101
6678
|
success: EmailGetDomainConnect200,
|
|
@@ -5170,7 +6747,83 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
5170
6747
|
EmailAdvanceDomainVerification500,
|
|
5171
6748
|
EmailAdvanceDomainVerification502.pipe(HttpApiSchema.status(502))
|
|
5172
6749
|
]
|
|
5173
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.advanceDomainVerification").annotate(OpenApi.Summary, "Advance domain verification").annotate(OpenApi.Description, "Observes the required DNS records and, once they match, idempotently starts provider provisioning for the staged domain."), HttpApiEndpoint.get("
|
|
6750
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.advanceDomainVerification").annotate(OpenApi.Summary, "Advance domain verification").annotate(OpenApi.Description, "Observes the required DNS records and, once they match, idempotently starts provider provisioning for the staged domain."), HttpApiEndpoint.get("emailGetDomainWarming", "/v1/email/domains/:id/warming", {
|
|
6751
|
+
params: EmailGetDomainWarmingPathParams,
|
|
6752
|
+
success: EmailGetDomainWarming200,
|
|
6753
|
+
error: [
|
|
6754
|
+
EmailGetDomainWarming401.pipe(HttpApiSchema.status(401)),
|
|
6755
|
+
EmailGetDomainWarming403.pipe(HttpApiSchema.status(403)),
|
|
6756
|
+
EmailGetDomainWarming404.pipe(HttpApiSchema.status(404)),
|
|
6757
|
+
EmailGetDomainWarming500
|
|
6758
|
+
]
|
|
6759
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getDomainWarming").annotate(OpenApi.Summary, "Get domain warming").annotate(OpenApi.Description, "Returns the domain's automated warming policy, its system-created 24-hour windows and policy snapshots, the rolling bounce and complaint window the safety rule reads, every pause above the plan, and the decision history. A domain without a plan returns the evidence and a null plan."), HttpApiEndpoint.post("emailCreateDomainWarmingPlan", "/v1/email/domains/:id/warming", {
|
|
6760
|
+
params: EmailCreateDomainWarmingPlanPathParams,
|
|
6761
|
+
payload: EmailCreateDomainWarmingPlanRequestJson,
|
|
6762
|
+
success: EmailCreateDomainWarmingPlan201.pipe(HttpApiSchema.status(201)),
|
|
6763
|
+
error: [
|
|
6764
|
+
EmailCreateDomainWarmingPlan401.pipe(HttpApiSchema.status(401)),
|
|
6765
|
+
EmailCreateDomainWarmingPlan403.pipe(HttpApiSchema.status(403)),
|
|
6766
|
+
EmailCreateDomainWarmingPlan404.pipe(HttpApiSchema.status(404)),
|
|
6767
|
+
EmailCreateDomainWarmingPlan409.pipe(HttpApiSchema.status(409)),
|
|
6768
|
+
EmailCreateDomainWarmingPlan422.pipe(HttpApiSchema.status(422)),
|
|
6769
|
+
EmailCreateDomainWarmingPlan500
|
|
6770
|
+
]
|
|
6771
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.createDomainWarmingPlan").annotate(OpenApi.Summary, "Start domain warming").annotate(OpenApi.Description, "Starts an automated warming policy on a verified sending domain. Samva opens the first 24-hour campaign window immediately, then opens later windows from the saved growth policy after safe windows close. Direct sends are counted in the domain's window but never delayed. Responds with 201."), HttpApiEndpoint.delete("emailCancelDomainWarmingBatch", "/v1/email/domains/:id/warming/batches/:batchId", {
|
|
6772
|
+
params: EmailCancelDomainWarmingBatchPathParams,
|
|
6773
|
+
success: EmailCancelDomainWarmingBatch200,
|
|
6774
|
+
error: [
|
|
6775
|
+
EmailCancelDomainWarmingBatch401.pipe(HttpApiSchema.status(401)),
|
|
6776
|
+
EmailCancelDomainWarmingBatch403.pipe(HttpApiSchema.status(403)),
|
|
6777
|
+
EmailCancelDomainWarmingBatch404.pipe(HttpApiSchema.status(404)),
|
|
6778
|
+
EmailCancelDomainWarmingBatch409.pipe(HttpApiSchema.status(409)),
|
|
6779
|
+
EmailCancelDomainWarmingBatch500
|
|
6780
|
+
]
|
|
6781
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.cancelDomainWarmingBatch").annotate(OpenApi.Summary, "Cancel a warming window").annotate(OpenApi.Description, "Cancels a scheduled or open system-created warming window. Recipients a campaign run already reserved from it stay reserved; no further runs draw from it."), HttpApiEndpoint.post("emailCompleteDomainWarming", "/v1/email/domains/:id/warming/complete", {
|
|
6782
|
+
params: EmailCompleteDomainWarmingPathParams,
|
|
6783
|
+
payload: EmailCompleteDomainWarmingRequestJson,
|
|
6784
|
+
success: EmailCompleteDomainWarming200,
|
|
6785
|
+
error: [
|
|
6786
|
+
EmailCompleteDomainWarming401.pipe(HttpApiSchema.status(401)),
|
|
6787
|
+
EmailCompleteDomainWarming403.pipe(HttpApiSchema.status(403)),
|
|
6788
|
+
EmailCompleteDomainWarming404.pipe(HttpApiSchema.status(404)),
|
|
6789
|
+
EmailCompleteDomainWarming409.pipe(HttpApiSchema.status(409)),
|
|
6790
|
+
EmailCompleteDomainWarming500
|
|
6791
|
+
]
|
|
6792
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.completeDomainWarming").annotate(OpenApi.Summary, "Complete domain warming").annotate(OpenApi.Description, "Ends the policy. Campaign runs from the domain are no longer gated by warming windows; the workspace safeguards still apply."), HttpApiEndpoint.post("emailPauseDomainWarming", "/v1/email/domains/:id/warming/pause", {
|
|
6793
|
+
params: EmailPauseDomainWarmingPathParams,
|
|
6794
|
+
payload: EmailPauseDomainWarmingRequestJson,
|
|
6795
|
+
success: EmailPauseDomainWarming200,
|
|
6796
|
+
error: [
|
|
6797
|
+
EmailPauseDomainWarming401.pipe(HttpApiSchema.status(401)),
|
|
6798
|
+
EmailPauseDomainWarming403.pipe(HttpApiSchema.status(403)),
|
|
6799
|
+
EmailPauseDomainWarming404.pipe(HttpApiSchema.status(404)),
|
|
6800
|
+
EmailPauseDomainWarming409.pipe(HttpApiSchema.status(409)),
|
|
6801
|
+
EmailPauseDomainWarming500
|
|
6802
|
+
]
|
|
6803
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.pauseDomainWarming").annotate(OpenApi.Summary, "Pause domain warming").annotate(OpenApi.Description, "Pauses the plan. Campaign runs from the domain stop at their next page and queued campaign email waits until it expires; direct sends are unaffected."), HttpApiEndpoint.patch("emailUpdateDomainWarmingPolicy", "/v1/email/domains/:id/warming/policy", {
|
|
6804
|
+
params: EmailUpdateDomainWarmingPolicyPathParams,
|
|
6805
|
+
payload: EmailUpdateDomainWarmingPolicyRequestJson,
|
|
6806
|
+
success: EmailUpdateDomainWarmingPolicy200,
|
|
6807
|
+
error: [
|
|
6808
|
+
EmailUpdateDomainWarmingPolicy401.pipe(HttpApiSchema.status(401)),
|
|
6809
|
+
EmailUpdateDomainWarmingPolicy403.pipe(HttpApiSchema.status(403)),
|
|
6810
|
+
EmailUpdateDomainWarmingPolicy404.pipe(HttpApiSchema.status(404)),
|
|
6811
|
+
EmailUpdateDomainWarmingPolicy409.pipe(HttpApiSchema.status(409)),
|
|
6812
|
+
EmailUpdateDomainWarmingPolicy422.pipe(HttpApiSchema.status(422)),
|
|
6813
|
+
EmailUpdateDomainWarmingPolicy500
|
|
6814
|
+
]
|
|
6815
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.updateDomainWarmingPolicy").annotate(OpenApi.Summary, "Update domain warming policy").annotate(OpenApi.Description, "Updates the growth percentage and daily target Samva uses for future 24-hour warming windows. Existing windows keep their policy snapshot, including a scheduled window, so prior authorization remains auditable."), HttpApiEndpoint.post("emailResumeDomainWarming", "/v1/email/domains/:id/warming/resume", {
|
|
6816
|
+
params: EmailResumeDomainWarmingPathParams,
|
|
6817
|
+
payload: EmailResumeDomainWarmingRequestJson,
|
|
6818
|
+
success: EmailResumeDomainWarming200,
|
|
6819
|
+
error: [
|
|
6820
|
+
EmailResumeDomainWarming401.pipe(HttpApiSchema.status(401)),
|
|
6821
|
+
EmailResumeDomainWarming403.pipe(HttpApiSchema.status(403)),
|
|
6822
|
+
EmailResumeDomainWarming404.pipe(HttpApiSchema.status(404)),
|
|
6823
|
+
EmailResumeDomainWarming409.pipe(HttpApiSchema.status(409)),
|
|
6824
|
+
EmailResumeDomainWarming500
|
|
6825
|
+
]
|
|
6826
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.resumeDomainWarming").annotate(OpenApi.Summary, "Resume domain warming").annotate(OpenApi.Description, "Resumes a paused or held plan and the campaign runs it was holding. A plan the domain rule held resumes only once the domain's rolling window is under both limits again; until then the request is refused with the observed rate."), HttpApiEndpoint.get("emailListForwardingRules", "/v1/email/forwarding", {
|
|
5174
6827
|
query: EmailListForwardingRulesQuery,
|
|
5175
6828
|
success: EmailListForwardingRules200,
|
|
5176
6829
|
error: [
|
|
@@ -5184,6 +6837,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
5184
6837
|
error: [
|
|
5185
6838
|
EmailCreateForwardingRule401.pipe(HttpApiSchema.status(401)),
|
|
5186
6839
|
EmailCreateForwardingRule403.pipe(HttpApiSchema.status(403)),
|
|
6840
|
+
EmailCreateForwardingRule404.pipe(HttpApiSchema.status(404)),
|
|
5187
6841
|
EmailCreateForwardingRule422.pipe(HttpApiSchema.status(422)),
|
|
5188
6842
|
EmailCreateForwardingRule500
|
|
5189
6843
|
]
|
|
@@ -5214,7 +6868,32 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
5214
6868
|
EmailGetForwardingLog403.pipe(HttpApiSchema.status(403)),
|
|
5215
6869
|
EmailGetForwardingLog500
|
|
5216
6870
|
]
|
|
5217
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getForwardingLog").annotate(OpenApi.Summary, "List email forwarding logs").annotate(OpenApi.Description, "Returns a log of forwarded inbound emails with their delivery outcomes, optionally filtered by rule, status, or date range."), HttpApiEndpoint.get("
|
|
6871
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getForwardingLog").annotate(OpenApi.Summary, "List email forwarding logs").annotate(OpenApi.Description, "Returns a log of forwarded inbound emails with their delivery outcomes, optionally filtered by rule, status, or date range."), HttpApiEndpoint.get("emailGetOnboardingReview", "/v1/email/onboarding-review", {
|
|
6872
|
+
success: EmailGetOnboardingReview200,
|
|
6873
|
+
error: [
|
|
6874
|
+
EmailGetOnboardingReview401.pipe(HttpApiSchema.status(401)),
|
|
6875
|
+
EmailGetOnboardingReview403.pipe(HttpApiSchema.status(403)),
|
|
6876
|
+
EmailGetOnboardingReview500
|
|
6877
|
+
]
|
|
6878
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getOnboardingReview").annotate(OpenApi.Summary, "Get email onboarding review status").annotate(OpenApi.Description, "Returns the customer-safe workspace review decision, workflow stage, next action, and current sending-identity clearances. A missing authority row is returned as a blocked initial state."), HttpApiEndpoint.post("emailReapplyOnboardingReview", "/v1/email/onboarding-review/reapply", {
|
|
6879
|
+
payload: EmailReapplyOnboardingReviewRequestJson,
|
|
6880
|
+
success: EmailReapplyOnboardingReview200,
|
|
6881
|
+
error: [
|
|
6882
|
+
EmailReapplyOnboardingReview401.pipe(HttpApiSchema.status(401)),
|
|
6883
|
+
EmailReapplyOnboardingReview403.pipe(HttpApiSchema.status(403)),
|
|
6884
|
+
EmailReapplyOnboardingReview409.pipe(HttpApiSchema.status(409)),
|
|
6885
|
+
EmailReapplyOnboardingReview500
|
|
6886
|
+
]
|
|
6887
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.reapplyOnboardingReview").annotate(OpenApi.Summary, "Reapply for email onboarding review").annotate(OpenApi.Description, "Allows a workspace owner or admin to submit a rejected workspace for review again. The expected generation prevents acting on stale status."), HttpApiEndpoint.post("emailRespondToOnboardingInformationRequest", "/v1/email/onboarding-review/respond", {
|
|
6888
|
+
payload: EmailRespondToOnboardingInformationRequestRequestJson,
|
|
6889
|
+
success: EmailRespondToOnboardingInformationRequest200,
|
|
6890
|
+
error: [
|
|
6891
|
+
EmailRespondToOnboardingInformationRequest401.pipe(HttpApiSchema.status(401)),
|
|
6892
|
+
EmailRespondToOnboardingInformationRequest403.pipe(HttpApiSchema.status(403)),
|
|
6893
|
+
EmailRespondToOnboardingInformationRequest409.pipe(HttpApiSchema.status(409)),
|
|
6894
|
+
EmailRespondToOnboardingInformationRequest500
|
|
6895
|
+
]
|
|
6896
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.respondToOnboardingInformationRequest").annotate(OpenApi.Summary, "Respond to an email onboarding information request").annotate(OpenApi.Description, "Allows workspace owners and admins to submit bounded text and up to three pending-scanned evidence uploads for the current review generation."), HttpApiEndpoint.get("emailListSenders", "/v1/email/senders", {
|
|
5218
6897
|
query: EmailListSendersQuery,
|
|
5219
6898
|
success: EmailListSenders200,
|
|
5220
6899
|
error: [
|
|
@@ -5223,6 +6902,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
5223
6902
|
EmailListSenders500
|
|
5224
6903
|
]
|
|
5225
6904
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.listSenders").annotate(OpenApi.Summary, "List sender identities").annotate(OpenApi.Description, "Returns a paginated list of sender identities, optionally filtered by verification status, active state, or default flag."), HttpApiEndpoint.post("emailAddSender", "/v1/email/senders", {
|
|
6905
|
+
headers: EmailAddSenderHeaders,
|
|
5226
6906
|
payload: EmailAddSenderRequestJson,
|
|
5227
6907
|
success: EmailAddSender201.pipe(HttpApiSchema.status(201)),
|
|
5228
6908
|
error: [
|
|
@@ -5234,7 +6914,16 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
5234
6914
|
EmailAddSender500,
|
|
5235
6915
|
EmailAddSender502.pipe(HttpApiSchema.status(502))
|
|
5236
6916
|
]
|
|
5237
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.addSender").annotate(OpenApi.Summary, "Add a sender identity").annotate(OpenApi.Description, "
|
|
6917
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.addSender").annotate(OpenApi.Summary, "Add a sender identity").annotate(OpenApi.Description, "Durably creates a sender identity. The required Idempotency-Key replays the original sender for an identical request and conflicts when reused with different input."), HttpApiEndpoint.get("emailGetSender", "/v1/email/senders/:id", {
|
|
6918
|
+
params: EmailGetSenderPathParams,
|
|
6919
|
+
success: EmailGetSender200,
|
|
6920
|
+
error: [
|
|
6921
|
+
EmailGetSender401.pipe(HttpApiSchema.status(401)),
|
|
6922
|
+
EmailGetSender403.pipe(HttpApiSchema.status(403)),
|
|
6923
|
+
EmailGetSender404.pipe(HttpApiSchema.status(404)),
|
|
6924
|
+
EmailGetSender500
|
|
6925
|
+
]
|
|
6926
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getSender").annotate(OpenApi.Summary, "Get a sender identity").annotate(OpenApi.Description, "Returns one sender identity owned by the authenticated organization. Other organizations' ids are reported as not found."), HttpApiEndpoint.delete("emailRemoveSender", "/v1/email/senders/:id", {
|
|
5238
6927
|
params: EmailRemoveSenderPathParams,
|
|
5239
6928
|
success: EmailRemoveSender200,
|
|
5240
6929
|
error: [
|
|
@@ -5244,7 +6933,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
5244
6933
|
EmailRemoveSender422.pipe(HttpApiSchema.status(422)),
|
|
5245
6934
|
EmailRemoveSender500
|
|
5246
6935
|
]
|
|
5247
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.removeSender").annotate(OpenApi.Summary, "Remove a sender identity").annotate(OpenApi.Description, "
|
|
6936
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.removeSender").annotate(OpenApi.Summary, "Remove a sender identity").annotate(OpenApi.Description, "Accepts sender removal, marks it inactive, and retains its deleting lifecycle until provider identity and association cleanup is confirmed."), HttpApiEndpoint.post("emailSetDefaultSender", "/v1/email/senders/:id/default", {
|
|
5248
6937
|
params: EmailSetDefaultSenderPathParams,
|
|
5249
6938
|
success: EmailSetDefaultSender200,
|
|
5250
6939
|
error: [
|
|
@@ -5297,7 +6986,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
5297
6986
|
EmailGetTrackingDefaults404.pipe(HttpApiSchema.status(404)),
|
|
5298
6987
|
EmailGetTrackingDefaults500
|
|
5299
6988
|
]
|
|
5300
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getTrackingDefaults").annotate(OpenApi.Summary, "Get email tracking defaults").annotate(OpenApi.Description, "Returns the
|
|
6989
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getTrackingDefaults").annotate(OpenApi.Summary, "Get email tracking defaults").annotate(OpenApi.Description, "Returns the workspace's independent defaults for open and click tracking, both enabled unless configured otherwise. Recipient opt-out takes precedence over these defaults."), HttpApiEndpoint.patch("emailUpdateTrackingDefaults", "/v1/email/tracking/defaults", {
|
|
5301
6990
|
payload: EmailUpdateTrackingDefaultsRequestJson,
|
|
5302
6991
|
success: EmailUpdateTrackingDefaults200,
|
|
5303
6992
|
error: [
|
|
@@ -5383,7 +7072,7 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
5383
7072
|
MessagesList403.pipe(HttpApiSchema.status(403)),
|
|
5384
7073
|
MessagesList500
|
|
5385
7074
|
]
|
|
5386
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "messages.list").annotate(OpenApi.Summary, "List messages").annotate(OpenApi.Description, "Returns a paginated list of messages
|
|
7075
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "messages.list").annotate(OpenApi.Summary, "List messages").annotate(OpenApi.Description, "Returns a paginated list of messages, with optional filters for channel, direction, status, conversation, contact, and date range."), HttpApiEndpoint.post("messagesSend", "/v1/messages", {
|
|
5387
7076
|
headers: MessagesSendHeaders,
|
|
5388
7077
|
payload: MessagesSendRequestJson,
|
|
5389
7078
|
success: MessagesSend201.pipe(HttpApiSchema.status(201)),
|
|
@@ -5444,7 +7133,17 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
5444
7133
|
MessagesGetStatus404.pipe(HttpApiSchema.status(404)),
|
|
5445
7134
|
MessagesGetStatus500
|
|
5446
7135
|
]
|
|
5447
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "messages.getStatus").annotate(OpenApi.Summary, "Get message delivery status").annotate(OpenApi.Description, "Returns the current delivery status of a message by its ID.")
|
|
7136
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "messages.getStatus").annotate(OpenApi.Summary, "Get message delivery status").annotate(OpenApi.Description, "Returns the current delivery status of a message by its ID."), HttpApiEndpoint.post("messagesValidateEmail", "/v1/messages/validate/email", {
|
|
7137
|
+
payload: MessagesValidateEmailRequestJson,
|
|
7138
|
+
success: MessagesValidateEmail200,
|
|
7139
|
+
error: [
|
|
7140
|
+
MessagesValidateEmail401.pipe(HttpApiSchema.status(401)),
|
|
7141
|
+
MessagesValidateEmail403.pipe(HttpApiSchema.status(403)),
|
|
7142
|
+
MessagesValidateEmail404.pipe(HttpApiSchema.status(404)),
|
|
7143
|
+
MessagesValidateEmail422.pipe(HttpApiSchema.status(422)),
|
|
7144
|
+
MessagesValidateEmail500
|
|
7145
|
+
]
|
|
7146
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "messages.validateEmail").annotate(OpenApi.Summary, "Validate an email message").annotate(OpenApi.Description, "Resolves recipients, sender, and inline or published-template content without creating contacts, messages, billing reservations, quota draws, queue work, or provider calls.")).annotate(OpenApi.Description, "Samva API operation.") {};
|
|
5448
7147
|
var ScheduledMessagesGroup = class extends HttpApiGroup.make("Scheduled Messages").add(HttpApiEndpoint.get("scheduledMessagesList", "/v1/messages/scheduled", {
|
|
5449
7148
|
query: ScheduledMessagesListQuery,
|
|
5450
7149
|
success: ScheduledMessagesList200,
|
|
@@ -5464,7 +7163,7 @@ var ScheduledMessagesGroup = class extends HttpApiGroup.make("Scheduled Messages
|
|
|
5464
7163
|
ScheduledMessagesCreate500,
|
|
5465
7164
|
ScheduledMessagesCreate502.pipe(HttpApiSchema.status(502))
|
|
5466
7165
|
]
|
|
5467
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "scheduledMessages.create").annotate(OpenApi.Summary, "Schedule a message").annotate(OpenApi.Description, "Schedules a message at the absolute ISO-8601
|
|
7166
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "scheduledMessages.create").annotate(OpenApi.Summary, "Schedule a message").annotate(OpenApi.Description, "Schedules a message for dispatch at the absolute ISO-8601 timestamp supplied in scheduledFor. Optional timezone is validated IANA display metadata only and never changes the execution instant."), HttpApiEndpoint.get("scheduledMessagesGet", "/v1/messages/scheduled/:id", {
|
|
5468
7167
|
params: ScheduledMessagesGetPathParams,
|
|
5469
7168
|
success: ScheduledMessagesGet200,
|
|
5470
7169
|
error: [
|
|
@@ -5483,7 +7182,20 @@ var ScheduledMessagesGroup = class extends HttpApiGroup.make("Scheduled Messages
|
|
|
5483
7182
|
ScheduledMessagesCancel409.pipe(HttpApiSchema.status(409)),
|
|
5484
7183
|
ScheduledMessagesCancel500
|
|
5485
7184
|
]
|
|
5486
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "scheduledMessages.cancel").annotate(OpenApi.Summary, "Cancel a scheduled message").annotate(OpenApi.Description, "Cancels a pending scheduled message so it will not be sent, and returns the updated scheduled message.")
|
|
7185
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "scheduledMessages.cancel").annotate(OpenApi.Summary, "Cancel a scheduled message").annotate(OpenApi.Description, "Cancels a pending scheduled message so it will not be sent, and returns the updated scheduled message."), HttpApiEndpoint.post("scheduledMessagesResume", "/v1/messages/scheduled/:id/resume", {
|
|
7186
|
+
params: ScheduledMessagesResumePathParams,
|
|
7187
|
+
payload: ScheduledMessagesResumeRequestJson,
|
|
7188
|
+
success: ScheduledMessagesResume200,
|
|
7189
|
+
error: [
|
|
7190
|
+
ScheduledMessagesResume401.pipe(HttpApiSchema.status(401)),
|
|
7191
|
+
ScheduledMessagesResume403.pipe(HttpApiSchema.status(403)),
|
|
7192
|
+
ScheduledMessagesResume404.pipe(HttpApiSchema.status(404)),
|
|
7193
|
+
ScheduledMessagesResume409.pipe(HttpApiSchema.status(409)),
|
|
7194
|
+
ScheduledMessagesResume422.pipe(HttpApiSchema.status(422)),
|
|
7195
|
+
ScheduledMessagesResume500,
|
|
7196
|
+
ScheduledMessagesResume502.pipe(HttpApiSchema.status(502))
|
|
7197
|
+
]
|
|
7198
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "scheduledMessages.resume").annotate(OpenApi.Summary, "Resume a review-paused scheduled message").annotate(OpenApi.Description, "Explicitly resumes a scheduled message after onboarding review clearance. An overdue message requires either send_now or a new future scheduledFor value.")).annotate(OpenApi.Description, "One-off scheduled message timers") {};
|
|
5487
7199
|
var OperationsGroup = class extends HttpApiGroup.make("Operations").add(HttpApiEndpoint.get("operationsList", "/v1/operations", {
|
|
5488
7200
|
query: OperationsListQuery,
|
|
5489
7201
|
success: OperationsList200,
|
|
@@ -5562,7 +7274,7 @@ var OrganizationsGroup = class extends HttpApiGroup.make("Organizations").add(Ht
|
|
|
5562
7274
|
OrganizationsDelete422.pipe(HttpApiSchema.status(422)),
|
|
5563
7275
|
OrganizationsDelete500
|
|
5564
7276
|
]
|
|
5565
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "organizations.delete").annotate(OpenApi.Summary, "Delete the current workspace").annotate(OpenApi.Description, "
|
|
7277
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "organizations.delete").annotate(OpenApi.Summary, "Delete the current workspace").annotate(OpenApi.Description, "Starts an owner-authorized durable workspace deletion operation, confirming the workspace name in the request. Repeating the same request with the same Idempotency-Key returns the existing organization-scoped operation."), HttpApiEndpoint.get("organizationsGetUsage", "/v1/organizations/usage", {
|
|
5566
7278
|
query: OrganizationsGetUsageQuery,
|
|
5567
7279
|
success: OrganizationsGetUsage200,
|
|
5568
7280
|
error: [
|
|
@@ -5571,187 +7283,6 @@ var OrganizationsGroup = class extends HttpApiGroup.make("Organizations").add(Ht
|
|
|
5571
7283
|
OrganizationsGetUsage500
|
|
5572
7284
|
]
|
|
5573
7285
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "organizations.getUsage").annotate(OpenApi.Summary, "Get organization usage").annotate(OpenApi.Description, "Returns usage statistics for the current organization over the selected reporting period.")).annotate(OpenApi.Description, "Organization management and usage statistics") {};
|
|
5574
|
-
var TemplateDocumentsGroup = class extends HttpApiGroup.make("Template Documents").add(HttpApiEndpoint.get("templateDocumentsGet", "/v1/template-documents/:templateId", {
|
|
5575
|
-
params: TemplateDocumentsGetPathParams,
|
|
5576
|
-
success: TemplateDocumentsGet200,
|
|
5577
|
-
error: [
|
|
5578
|
-
TemplateDocumentsGet401.pipe(HttpApiSchema.status(401)),
|
|
5579
|
-
TemplateDocumentsGet403.pipe(HttpApiSchema.status(403)),
|
|
5580
|
-
TemplateDocumentsGet404.pipe(HttpApiSchema.status(404)),
|
|
5581
|
-
TemplateDocumentsGet409.pipe(HttpApiSchema.status(409)),
|
|
5582
|
-
TemplateDocumentsGet422.pipe(HttpApiSchema.status(422)),
|
|
5583
|
-
TemplateDocumentsGet500
|
|
5584
|
-
]
|
|
5585
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.get").annotate(OpenApi.Summary, "Get a template document").annotate(OpenApi.Description, "Returns the current authoritative source, revision, and metadata for a template document."), HttpApiEndpoint.post("templateDocumentsIssueAgentAdmission", "/v1/template-documents/:templateId/agent-admission", {
|
|
5586
|
-
params: TemplateDocumentsIssueAgentAdmissionPathParams,
|
|
5587
|
-
payload: TemplateDocumentsIssueAgentAdmissionRequestJson,
|
|
5588
|
-
success: TemplateDocumentsIssueAgentAdmission200,
|
|
5589
|
-
error: [
|
|
5590
|
-
TemplateDocumentsIssueAgentAdmission401.pipe(HttpApiSchema.status(401)),
|
|
5591
|
-
TemplateDocumentsIssueAgentAdmission403.pipe(HttpApiSchema.status(403)),
|
|
5592
|
-
TemplateDocumentsIssueAgentAdmission404.pipe(HttpApiSchema.status(404)),
|
|
5593
|
-
TemplateDocumentsIssueAgentAdmission409.pipe(HttpApiSchema.status(409)),
|
|
5594
|
-
TemplateDocumentsIssueAgentAdmission422.pipe(HttpApiSchema.status(422)),
|
|
5595
|
-
TemplateDocumentsIssueAgentAdmission500
|
|
5596
|
-
]
|
|
5597
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.issueAgentAdmission").annotate(OpenApi.Summary, "Issue an agent admission").annotate(OpenApi.Description, "Authorizes a bounded template-agent operation against the current document and returns the admission context."), HttpApiEndpoint.post("templateDocumentsCompleteAgentConversationClear", "/v1/template-documents/:templateId/agent-conversation/clear-completion", {
|
|
5598
|
-
params: TemplateDocumentsCompleteAgentConversationClearPathParams,
|
|
5599
|
-
payload: TemplateDocumentsCompleteAgentConversationClearRequestJson,
|
|
5600
|
-
success: HttpApiSchema.Empty(200),
|
|
5601
|
-
error: [
|
|
5602
|
-
TemplateDocumentsCompleteAgentConversationClear401.pipe(HttpApiSchema.status(401)),
|
|
5603
|
-
TemplateDocumentsCompleteAgentConversationClear403.pipe(HttpApiSchema.status(403)),
|
|
5604
|
-
TemplateDocumentsCompleteAgentConversationClear404.pipe(HttpApiSchema.status(404)),
|
|
5605
|
-
TemplateDocumentsCompleteAgentConversationClear409.pipe(HttpApiSchema.status(409)),
|
|
5606
|
-
TemplateDocumentsCompleteAgentConversationClear500
|
|
5607
|
-
]
|
|
5608
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.completeAgentConversationClear").annotate(OpenApi.Summary, "Complete an agent conversation clear").annotate(OpenApi.Description, "Records completion of an admitted agent conversation-clear operation for the template document."), HttpApiEndpoint.post("templateDocumentsApplyAgentProposal", "/v1/template-documents/:templateId/agent-proposals/apply", {
|
|
5609
|
-
params: TemplateDocumentsApplyAgentProposalPathParams,
|
|
5610
|
-
payload: TemplateDocumentsApplyAgentProposalRequestJson,
|
|
5611
|
-
success: TemplateDocumentsApplyAgentProposal200,
|
|
5612
|
-
error: [
|
|
5613
|
-
TemplateDocumentsApplyAgentProposal401.pipe(HttpApiSchema.status(401)),
|
|
5614
|
-
TemplateDocumentsApplyAgentProposal403.pipe(HttpApiSchema.status(403)),
|
|
5615
|
-
TemplateDocumentsApplyAgentProposal404.pipe(HttpApiSchema.status(404)),
|
|
5616
|
-
TemplateDocumentsApplyAgentProposal409.pipe(HttpApiSchema.status(409)),
|
|
5617
|
-
TemplateDocumentsApplyAgentProposal422.pipe(HttpApiSchema.status(422)),
|
|
5618
|
-
TemplateDocumentsApplyAgentProposal500
|
|
5619
|
-
]
|
|
5620
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.applyAgentProposal").annotate(OpenApi.Summary, "Apply an agent proposal").annotate(OpenApi.Description, "Applies an admitted agent-authored source proposal when its revision and source digest still match the document."), HttpApiEndpoint.post("templateDocumentsPublish", "/v1/template-documents/:templateId/publish", {
|
|
5621
|
-
params: TemplateDocumentsPublishPathParams,
|
|
5622
|
-
success: TemplateDocumentsPublish200,
|
|
5623
|
-
error: [
|
|
5624
|
-
TemplateDocumentsPublish401.pipe(HttpApiSchema.status(401)),
|
|
5625
|
-
TemplateDocumentsPublish403.pipe(HttpApiSchema.status(403)),
|
|
5626
|
-
TemplateDocumentsPublish404.pipe(HttpApiSchema.status(404)),
|
|
5627
|
-
TemplateDocumentsPublish409.pipe(HttpApiSchema.status(409)),
|
|
5628
|
-
TemplateDocumentsPublish422.pipe(HttpApiSchema.status(422)),
|
|
5629
|
-
TemplateDocumentsPublish500
|
|
5630
|
-
]
|
|
5631
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.publish").annotate(OpenApi.Summary, "Publish a template document").annotate(OpenApi.Description, "Publishes the current saved template source version and returns its lifecycle receipt."), HttpApiEndpoint.post("templateDocumentsRender", "/v1/template-documents/:templateId/render", {
|
|
5632
|
-
params: TemplateDocumentsRenderPathParams,
|
|
5633
|
-
payload: TemplateDocumentsRenderRequestJson,
|
|
5634
|
-
success: TemplateDocumentsRender200,
|
|
5635
|
-
error: [
|
|
5636
|
-
TemplateDocumentsRender401.pipe(HttpApiSchema.status(401)),
|
|
5637
|
-
TemplateDocumentsRender403.pipe(HttpApiSchema.status(403)),
|
|
5638
|
-
TemplateDocumentsRender404.pipe(HttpApiSchema.status(404)),
|
|
5639
|
-
TemplateDocumentsRender409.pipe(HttpApiSchema.status(409)),
|
|
5640
|
-
TemplateDocumentsRender422.pipe(HttpApiSchema.status(422)),
|
|
5641
|
-
TemplateDocumentsRender500
|
|
5642
|
-
]
|
|
5643
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.render").annotate(OpenApi.Summary, "Render a template document").annotate(OpenApi.Description, "Renders the specified document revision with optional variables and reports any missing variables."), HttpApiEndpoint.post("templateDocumentsSave", "/v1/template-documents/:templateId/save", {
|
|
5644
|
-
params: TemplateDocumentsSavePathParams,
|
|
5645
|
-
payload: TemplateDocumentsSaveRequestJson,
|
|
5646
|
-
success: TemplateDocumentsSave200,
|
|
5647
|
-
error: [
|
|
5648
|
-
TemplateDocumentsSave401.pipe(HttpApiSchema.status(401)),
|
|
5649
|
-
TemplateDocumentsSave403.pipe(HttpApiSchema.status(403)),
|
|
5650
|
-
TemplateDocumentsSave404.pipe(HttpApiSchema.status(404)),
|
|
5651
|
-
TemplateDocumentsSave409.pipe(HttpApiSchema.status(409)),
|
|
5652
|
-
TemplateDocumentsSave422.pipe(HttpApiSchema.status(422)),
|
|
5653
|
-
TemplateDocumentsSave500
|
|
5654
|
-
]
|
|
5655
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.save").annotate(OpenApi.Summary, "Save a template document").annotate(OpenApi.Description, "Materializes the specified document revision as a durable template source version and returns its receipt."), HttpApiEndpoint.post("templateDocumentsSend", "/v1/template-documents/:templateId/send", {
|
|
5656
|
-
params: TemplateDocumentsSendPathParams,
|
|
5657
|
-
payload: TemplateDocumentsSendRequestJson,
|
|
5658
|
-
success: TemplateDocumentsSend200,
|
|
5659
|
-
error: [
|
|
5660
|
-
TemplateDocumentsSend401.pipe(HttpApiSchema.status(401)),
|
|
5661
|
-
TemplateDocumentsSend402.pipe(HttpApiSchema.status(402)),
|
|
5662
|
-
TemplateDocumentsSend403.pipe(HttpApiSchema.status(403)),
|
|
5663
|
-
TemplateDocumentsSend404.pipe(HttpApiSchema.status(404)),
|
|
5664
|
-
TemplateDocumentsSend409.pipe(HttpApiSchema.status(409)),
|
|
5665
|
-
TemplateDocumentsSend422.pipe(HttpApiSchema.status(422)),
|
|
5666
|
-
TemplateDocumentsSend429.pipe(HttpApiSchema.status(429)),
|
|
5667
|
-
TemplateDocumentsSend500,
|
|
5668
|
-
TemplateDocumentsSend502.pipe(HttpApiSchema.status(502))
|
|
5669
|
-
]
|
|
5670
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.send").annotate(OpenApi.Summary, "Send a template document").annotate(OpenApi.Description, "Sends or schedules the specified document revision for one or more recipients with optional variables."), HttpApiEndpoint.post("templateDocumentsTestSend", "/v1/template-documents/:templateId/send-test", {
|
|
5671
|
-
params: TemplateDocumentsTestSendPathParams,
|
|
5672
|
-
payload: TemplateDocumentsTestSendRequestJson,
|
|
5673
|
-
success: TemplateDocumentsTestSend200,
|
|
5674
|
-
error: [
|
|
5675
|
-
TemplateDocumentsTestSend401.pipe(HttpApiSchema.status(401)),
|
|
5676
|
-
TemplateDocumentsTestSend402.pipe(HttpApiSchema.status(402)),
|
|
5677
|
-
TemplateDocumentsTestSend403.pipe(HttpApiSchema.status(403)),
|
|
5678
|
-
TemplateDocumentsTestSend404.pipe(HttpApiSchema.status(404)),
|
|
5679
|
-
TemplateDocumentsTestSend409.pipe(HttpApiSchema.status(409)),
|
|
5680
|
-
TemplateDocumentsTestSend422.pipe(HttpApiSchema.status(422)),
|
|
5681
|
-
TemplateDocumentsTestSend429.pipe(HttpApiSchema.status(429)),
|
|
5682
|
-
TemplateDocumentsTestSend500,
|
|
5683
|
-
TemplateDocumentsTestSend502.pipe(HttpApiSchema.status(502))
|
|
5684
|
-
]
|
|
5685
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.testSend").annotate(OpenApi.Summary, "Send a template test").annotate(OpenApi.Description, "Renders the specified document revision and sends a test message to one recipient without publishing it."), HttpApiEndpoint.post("templateDocumentsReplace", "/v1/template-documents/:templateId/source", {
|
|
5686
|
-
params: TemplateDocumentsReplacePathParams,
|
|
5687
|
-
payload: TemplateDocumentsReplaceRequestJson,
|
|
5688
|
-
success: TemplateDocumentsReplace200,
|
|
5689
|
-
error: [
|
|
5690
|
-
TemplateDocumentsReplace401.pipe(HttpApiSchema.status(401)),
|
|
5691
|
-
TemplateDocumentsReplace403.pipe(HttpApiSchema.status(403)),
|
|
5692
|
-
TemplateDocumentsReplace404.pipe(HttpApiSchema.status(404)),
|
|
5693
|
-
TemplateDocumentsReplace409.pipe(HttpApiSchema.status(409)),
|
|
5694
|
-
TemplateDocumentsReplace422.pipe(HttpApiSchema.status(422)),
|
|
5695
|
-
TemplateDocumentsReplace500
|
|
5696
|
-
]
|
|
5697
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.replace").annotate(OpenApi.Summary, "Replace template source").annotate(OpenApi.Description, "Replaces the editable SML source when the expected revision matches and returns the updated document snapshot."), HttpApiEndpoint.post("templateDocumentsSpamCheck", "/v1/template-documents/:templateId/spam-check", {
|
|
5698
|
-
params: TemplateDocumentsSpamCheckPathParams,
|
|
5699
|
-
payload: TemplateDocumentsSpamCheckRequestJson,
|
|
5700
|
-
success: TemplateDocumentsSpamCheck200,
|
|
5701
|
-
error: [
|
|
5702
|
-
TemplateDocumentsSpamCheck401.pipe(HttpApiSchema.status(401)),
|
|
5703
|
-
TemplateDocumentsSpamCheck403.pipe(HttpApiSchema.status(403)),
|
|
5704
|
-
TemplateDocumentsSpamCheck404.pipe(HttpApiSchema.status(404)),
|
|
5705
|
-
TemplateDocumentsSpamCheck409.pipe(HttpApiSchema.status(409)),
|
|
5706
|
-
TemplateDocumentsSpamCheck422.pipe(HttpApiSchema.status(422)),
|
|
5707
|
-
TemplateDocumentsSpamCheck500
|
|
5708
|
-
]
|
|
5709
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.spamCheck").annotate(OpenApi.Summary, "Check a template document for spam").annotate(OpenApi.Description, "Renders and analyzes the specified document revision for spam risks, returning issues and recommendations."), HttpApiEndpoint.post("templateDocumentsUnpublish", "/v1/template-documents/:templateId/unpublish", {
|
|
5710
|
-
params: TemplateDocumentsUnpublishPathParams,
|
|
5711
|
-
success: TemplateDocumentsUnpublish200,
|
|
5712
|
-
error: [
|
|
5713
|
-
TemplateDocumentsUnpublish401.pipe(HttpApiSchema.status(401)),
|
|
5714
|
-
TemplateDocumentsUnpublish403.pipe(HttpApiSchema.status(403)),
|
|
5715
|
-
TemplateDocumentsUnpublish404.pipe(HttpApiSchema.status(404)),
|
|
5716
|
-
TemplateDocumentsUnpublish409.pipe(HttpApiSchema.status(409)),
|
|
5717
|
-
TemplateDocumentsUnpublish422.pipe(HttpApiSchema.status(422)),
|
|
5718
|
-
TemplateDocumentsUnpublish500
|
|
5719
|
-
]
|
|
5720
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.unpublish").annotate(OpenApi.Summary, "Unpublish a template document").annotate(OpenApi.Description, "Unpublishes the current template source version and returns its lifecycle receipt."), HttpApiEndpoint.get("templateDocumentsVersions", "/v1/template-documents/:templateId/versions", {
|
|
5721
|
-
params: TemplateDocumentsVersionsPathParams,
|
|
5722
|
-
success: TemplateDocumentsVersions200,
|
|
5723
|
-
error: [
|
|
5724
|
-
TemplateDocumentsVersions401.pipe(HttpApiSchema.status(401)),
|
|
5725
|
-
TemplateDocumentsVersions403.pipe(HttpApiSchema.status(403)),
|
|
5726
|
-
TemplateDocumentsVersions404.pipe(HttpApiSchema.status(404)),
|
|
5727
|
-
TemplateDocumentsVersions409.pipe(HttpApiSchema.status(409)),
|
|
5728
|
-
TemplateDocumentsVersions422.pipe(HttpApiSchema.status(422)),
|
|
5729
|
-
TemplateDocumentsVersions500
|
|
5730
|
-
]
|
|
5731
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.versions").annotate(OpenApi.Summary, "List template document versions").annotate(OpenApi.Description, "Returns the saved source-version history for a template document."), HttpApiEndpoint.post("templateDocumentsRestore", "/v1/template-documents/:templateId/versions/:versionId/restore", {
|
|
5732
|
-
params: TemplateDocumentsRestorePathParams,
|
|
5733
|
-
payload: TemplateDocumentsRestoreRequestJson,
|
|
5734
|
-
success: TemplateDocumentsRestore200,
|
|
5735
|
-
error: [
|
|
5736
|
-
TemplateDocumentsRestore401.pipe(HttpApiSchema.status(401)),
|
|
5737
|
-
TemplateDocumentsRestore403.pipe(HttpApiSchema.status(403)),
|
|
5738
|
-
TemplateDocumentsRestore404.pipe(HttpApiSchema.status(404)),
|
|
5739
|
-
TemplateDocumentsRestore409.pipe(HttpApiSchema.status(409)),
|
|
5740
|
-
TemplateDocumentsRestore422.pipe(HttpApiSchema.status(422)),
|
|
5741
|
-
TemplateDocumentsRestore500
|
|
5742
|
-
]
|
|
5743
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.restore").annotate(OpenApi.Summary, "Restore a template document version").annotate(OpenApi.Description, "Restores a saved source version into the editable document when the expected revision matches."), HttpApiEndpoint.post("templateDocumentsBootstrap", "/v1/template-documents/bootstrap", {
|
|
5744
|
-
payload: TemplateDocumentsBootstrapRequestJson,
|
|
5745
|
-
success: TemplateDocumentsBootstrap200,
|
|
5746
|
-
error: [
|
|
5747
|
-
TemplateDocumentsBootstrap401.pipe(HttpApiSchema.status(401)),
|
|
5748
|
-
TemplateDocumentsBootstrap403.pipe(HttpApiSchema.status(403)),
|
|
5749
|
-
TemplateDocumentsBootstrap404.pipe(HttpApiSchema.status(404)),
|
|
5750
|
-
TemplateDocumentsBootstrap409.pipe(HttpApiSchema.status(409)),
|
|
5751
|
-
TemplateDocumentsBootstrap422.pipe(HttpApiSchema.status(422)),
|
|
5752
|
-
TemplateDocumentsBootstrap500
|
|
5753
|
-
]
|
|
5754
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.bootstrap").annotate(OpenApi.Summary, "Bootstrap a template document").annotate(OpenApi.Description, "Creates or loads the authoritative editable document for a template and returns its current snapshot.")).annotate(OpenApi.Description, "Authenticated document-authoritative template drafting and explicit Save") {};
|
|
5755
7286
|
var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEndpoint.get("templatesList", "/v1/templates", {
|
|
5756
7287
|
query: TemplatesListQuery,
|
|
5757
7288
|
success: TemplatesList200,
|
|
@@ -5770,7 +7301,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5770
7301
|
TemplatesCreate422.pipe(HttpApiSchema.status(422)),
|
|
5771
7302
|
TemplatesCreate500
|
|
5772
7303
|
]
|
|
5773
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.create").annotate(OpenApi.Summary, "Create a template").annotate(OpenApi.Description, "Creates
|
|
7304
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.create").annotate(OpenApi.Summary, "Create a template").annotate(OpenApi.Description, "Creates an email template project from Samva's canonical TSX starter and returns its template entry with status 201."), HttpApiEndpoint.get("templatesGetById", "/v1/templates/:id", {
|
|
5774
7305
|
params: TemplatesGetByIdPathParams,
|
|
5775
7306
|
success: TemplatesGetById200,
|
|
5776
7307
|
error: [
|
|
@@ -5779,7 +7310,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5779
7310
|
TemplatesGetById404.pipe(HttpApiSchema.status(404)),
|
|
5780
7311
|
TemplatesGetById500
|
|
5781
7312
|
]
|
|
5782
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.getById").annotate(OpenApi.Summary, "Get a template").annotate(OpenApi.Description, "Returns template metadata and compiled channel content.
|
|
7313
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.getById").annotate(OpenApi.Summary, "Get a template").annotate(OpenApi.Description, "Returns template metadata, its project entry path, and compiled channel content. Open live project files through the workspace API."), HttpApiEndpoint.delete("templatesRemove", "/v1/templates/:id", {
|
|
5783
7314
|
params: TemplatesRemovePathParams,
|
|
5784
7315
|
success: TemplatesRemove200,
|
|
5785
7316
|
error: [
|
|
@@ -5800,17 +7331,198 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5800
7331
|
TemplatesUpdate422.pipe(HttpApiSchema.status(422)),
|
|
5801
7332
|
TemplatesUpdate500
|
|
5802
7333
|
]
|
|
5803
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.update").annotate(OpenApi.Summary, "Update a template").annotate(OpenApi.Description, "Updates template metadata. Source changes use the
|
|
5804
|
-
params:
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
7334
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.update").annotate(OpenApi.Summary, "Update a template").annotate(OpenApi.Description, "Updates template metadata. Source changes use the project workspace API."), HttpApiEndpoint.get("templatesListInputContracts", "/v1/templates/:id/input-contracts", {
|
|
7335
|
+
params: TemplatesListInputContractsPathParams,
|
|
7336
|
+
success: TemplatesListInputContracts200,
|
|
7337
|
+
error: [
|
|
7338
|
+
TemplatesListInputContracts401.pipe(HttpApiSchema.status(401)),
|
|
7339
|
+
TemplatesListInputContracts403.pipe(HttpApiSchema.status(403)),
|
|
7340
|
+
TemplatesListInputContracts404.pipe(HttpApiSchema.status(404)),
|
|
7341
|
+
TemplatesListInputContracts500
|
|
7342
|
+
]
|
|
7343
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.listInputContracts").annotate(OpenApi.Summary, "List a template's input contracts").annotate(OpenApi.Description, "Returns every immutable input contract this template has published under, newest version first. Send against a contract to follow later publications that validate input identically."), HttpApiEndpoint.get("templatesGetInputContract", "/v1/templates/:id/input-contracts/:inputContractId", {
|
|
7344
|
+
params: TemplatesGetInputContractPathParams,
|
|
7345
|
+
success: TemplatesGetInputContract200,
|
|
7346
|
+
error: [
|
|
7347
|
+
TemplatesGetInputContract401.pipe(HttpApiSchema.status(401)),
|
|
7348
|
+
TemplatesGetInputContract403.pipe(HttpApiSchema.status(403)),
|
|
7349
|
+
TemplatesGetInputContract404.pipe(HttpApiSchema.status(404)),
|
|
7350
|
+
TemplatesGetInputContract500
|
|
7351
|
+
]
|
|
7352
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.getInputContract").annotate(OpenApi.Summary, "Get a template input contract").annotate(OpenApi.Description, "Returns one immutable input contract and the published schema it validates against."), HttpApiEndpoint.post("templatesPublish", "/v1/templates/:id/publications", {
|
|
7353
|
+
params: TemplatesPublishPathParams,
|
|
7354
|
+
payload: TemplatesPublishRequestJson,
|
|
7355
|
+
success: TemplatesPublish201.pipe(HttpApiSchema.status(201)),
|
|
7356
|
+
error: [
|
|
7357
|
+
TemplatesPublish401.pipe(HttpApiSchema.status(401)),
|
|
7358
|
+
TemplatesPublish403.pipe(HttpApiSchema.status(403)),
|
|
7359
|
+
TemplatesPublish404.pipe(HttpApiSchema.status(404)),
|
|
7360
|
+
TemplatesPublish409.pipe(HttpApiSchema.status(409)),
|
|
7361
|
+
TemplatesPublish422.pipe(HttpApiSchema.status(422)),
|
|
7362
|
+
TemplatesPublish500
|
|
7363
|
+
]
|
|
7364
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.publish").annotate(OpenApi.Summary, "Publish an exact template commit").annotate(OpenApi.Description, "Builds an exact Git commit and entry path, stores the immutable executable and its assets, records the input contract it validates against, and makes that publication current."), HttpApiEndpoint.get("templatesGetPublication", "/v1/templates/:id/publications/:publicationId", {
|
|
7365
|
+
params: TemplatesGetPublicationPathParams,
|
|
7366
|
+
success: TemplatesGetPublication200,
|
|
7367
|
+
error: [
|
|
7368
|
+
TemplatesGetPublication401.pipe(HttpApiSchema.status(401)),
|
|
7369
|
+
TemplatesGetPublication403.pipe(HttpApiSchema.status(403)),
|
|
7370
|
+
TemplatesGetPublication404.pipe(HttpApiSchema.status(404)),
|
|
7371
|
+
TemplatesGetPublication500
|
|
7372
|
+
]
|
|
7373
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.getPublication").annotate(OpenApi.Summary, "Get a template publication").annotate(OpenApi.Description, "Returns one immutable publication and its exact build receipt."), HttpApiEndpoint.get("templatesGetGitRepository", "/v1/templates/:id/repository", {
|
|
7374
|
+
params: TemplatesGetGitRepositoryPathParams,
|
|
7375
|
+
success: TemplatesGetGitRepository200,
|
|
7376
|
+
error: [
|
|
7377
|
+
TemplatesGetGitRepository401.pipe(HttpApiSchema.status(401)),
|
|
7378
|
+
TemplatesGetGitRepository403.pipe(HttpApiSchema.status(403)),
|
|
7379
|
+
TemplatesGetGitRepository404.pipe(HttpApiSchema.status(404)),
|
|
7380
|
+
TemplatesGetGitRepository409.pipe(HttpApiSchema.status(409)),
|
|
7381
|
+
TemplatesGetGitRepository500
|
|
7382
|
+
]
|
|
7383
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.getGitRepository").annotate(OpenApi.Summary, "Get a template project Git repository").annotate(OpenApi.Description, "Returns the credential-free HTTPS remote and default branch for the template project repository."), HttpApiEndpoint.post("templatesIssueGitCredential", "/v1/templates/:id/repository/credentials", {
|
|
7384
|
+
params: TemplatesIssueGitCredentialPathParams,
|
|
7385
|
+
payload: TemplatesIssueGitCredentialRequestJson,
|
|
7386
|
+
success: TemplatesIssueGitCredential200,
|
|
7387
|
+
error: [
|
|
7388
|
+
TemplatesIssueGitCredential401.pipe(HttpApiSchema.status(401)),
|
|
7389
|
+
TemplatesIssueGitCredential403.pipe(HttpApiSchema.status(403)),
|
|
7390
|
+
TemplatesIssueGitCredential404.pipe(HttpApiSchema.status(404)),
|
|
7391
|
+
TemplatesIssueGitCredential409.pipe(HttpApiSchema.status(409)),
|
|
7392
|
+
TemplatesIssueGitCredential500
|
|
7393
|
+
]
|
|
7394
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.issueGitCredential").annotate(OpenApi.Summary, "Issue a template project Git credential").annotate(OpenApi.Description, "Exchanges the caller's Samva authorization for a one-hour, repository-scoped Artifact Git credential."), HttpApiEndpoint.post("templatesOpenWorkspace", "/v1/templates/:id/workspace", {
|
|
7395
|
+
params: TemplatesOpenWorkspacePathParams,
|
|
7396
|
+
success: TemplatesOpenWorkspace200,
|
|
7397
|
+
error: [
|
|
7398
|
+
TemplatesOpenWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
7399
|
+
TemplatesOpenWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
7400
|
+
TemplatesOpenWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
7401
|
+
TemplatesOpenWorkspace409.pipe(HttpApiSchema.status(409)),
|
|
7402
|
+
TemplatesOpenWorkspace500
|
|
7403
|
+
]
|
|
7404
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.openWorkspace").annotate(OpenApi.Summary, "Open a template project workspace").annotate(OpenApi.Description, "Creates or opens the shared project workspace at the current Artifact branch head and returns its effective files."), HttpApiEndpoint.patch("templatesPatchWorkspace", "/v1/templates/:id/workspace", {
|
|
7405
|
+
params: TemplatesPatchWorkspacePathParams,
|
|
7406
|
+
payload: TemplatesPatchWorkspaceRequestJson,
|
|
7407
|
+
success: TemplatesPatchWorkspace200,
|
|
7408
|
+
error: [
|
|
7409
|
+
TemplatesPatchWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
7410
|
+
TemplatesPatchWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
7411
|
+
TemplatesPatchWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
7412
|
+
TemplatesPatchWorkspace409.pipe(HttpApiSchema.status(409)),
|
|
7413
|
+
TemplatesPatchWorkspace500
|
|
7414
|
+
]
|
|
7415
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.patchWorkspace").annotate(OpenApi.Summary, "Patch template project files").annotate(OpenApi.Description, "Applies revision-checked file patches to the shared project workspace overlay."), HttpApiEndpoint.post("templatesCheckWorkspace", "/v1/templates/:id/workspace/check", {
|
|
7416
|
+
params: TemplatesCheckWorkspacePathParams,
|
|
7417
|
+
payload: TemplatesCheckWorkspaceRequestJson,
|
|
7418
|
+
success: TemplatesCheckWorkspace200,
|
|
7419
|
+
error: [
|
|
7420
|
+
TemplatesCheckWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
7421
|
+
TemplatesCheckWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
7422
|
+
TemplatesCheckWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
7423
|
+
TemplatesCheckWorkspace409.pipe(HttpApiSchema.status(409)),
|
|
7424
|
+
TemplatesCheckWorkspace500
|
|
7425
|
+
]
|
|
7426
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.checkWorkspace").annotate(OpenApi.Summary, "Check a template project workspace").annotate(OpenApi.Description, "Builds the template entry from the current effective workspace tree, including unsaved file patches, and returns what the template declares plus every compile and target-client finding. Nothing is written and no message is rendered."), HttpApiEndpoint.post("templatesResolveWorkspaceConflict", "/v1/templates/:id/workspace/conflicts", {
|
|
7427
|
+
params: TemplatesResolveWorkspaceConflictPathParams,
|
|
7428
|
+
payload: TemplatesResolveWorkspaceConflictRequestJson,
|
|
7429
|
+
success: TemplatesResolveWorkspaceConflict200,
|
|
7430
|
+
error: [
|
|
7431
|
+
TemplatesResolveWorkspaceConflict401.pipe(HttpApiSchema.status(401)),
|
|
7432
|
+
TemplatesResolveWorkspaceConflict403.pipe(HttpApiSchema.status(403)),
|
|
7433
|
+
TemplatesResolveWorkspaceConflict404.pipe(HttpApiSchema.status(404)),
|
|
7434
|
+
TemplatesResolveWorkspaceConflict409.pipe(HttpApiSchema.status(409)),
|
|
7435
|
+
TemplatesResolveWorkspaceConflict500
|
|
7436
|
+
]
|
|
7437
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.resolveWorkspaceConflict").annotate(OpenApi.Summary, "Resolve a template workspace conflict").annotate(OpenApi.Description, "Resolves one conflicted file by keeping the draft, using main, or supplying edited source."), HttpApiEndpoint.post("templatesDiffWorkspace", "/v1/templates/:id/workspace/diff", {
|
|
7438
|
+
params: TemplatesDiffWorkspacePathParams,
|
|
7439
|
+
payload: TemplatesDiffWorkspaceRequestJson,
|
|
7440
|
+
success: TemplatesDiffWorkspace200,
|
|
7441
|
+
error: [
|
|
7442
|
+
TemplatesDiffWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
7443
|
+
TemplatesDiffWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
7444
|
+
TemplatesDiffWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
7445
|
+
TemplatesDiffWorkspace409.pipe(HttpApiSchema.status(409)),
|
|
7446
|
+
TemplatesDiffWorkspace500
|
|
7447
|
+
]
|
|
7448
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.diffWorkspace").annotate(OpenApi.Summary, "Diff a template project workspace").annotate(OpenApi.Description, "Returns exact added, modified, and deleted project files against the current Git base commit."), HttpApiEndpoint.post("templatesRenderWorkspaceFixture", "/v1/templates/:id/workspace/fixtures", {
|
|
7449
|
+
params: TemplatesRenderWorkspaceFixturePathParams,
|
|
7450
|
+
payload: TemplatesRenderWorkspaceFixtureRequestJson,
|
|
7451
|
+
success: TemplatesRenderWorkspaceFixture200,
|
|
7452
|
+
error: [
|
|
7453
|
+
TemplatesRenderWorkspaceFixture401.pipe(HttpApiSchema.status(401)),
|
|
7454
|
+
TemplatesRenderWorkspaceFixture403.pipe(HttpApiSchema.status(403)),
|
|
7455
|
+
TemplatesRenderWorkspaceFixture404.pipe(HttpApiSchema.status(404)),
|
|
7456
|
+
TemplatesRenderWorkspaceFixture409.pipe(HttpApiSchema.status(409)),
|
|
7457
|
+
TemplatesRenderWorkspaceFixture500
|
|
7458
|
+
]
|
|
7459
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.renderWorkspaceFixture").annotate(OpenApi.Summary, "Render a declared template workspace fixture").annotate(OpenApi.Description, "Renders one of the named inputs the template declares against the current effective workspace tree. Only declared fixtures render here; arbitrary input renders against a publication."), HttpApiEndpoint.get("templatesWorkspaceHistory", "/v1/templates/:id/workspace/history", {
|
|
7460
|
+
params: TemplatesWorkspaceHistoryPathParams,
|
|
7461
|
+
query: TemplatesWorkspaceHistoryQuery,
|
|
7462
|
+
success: TemplatesWorkspaceHistory200,
|
|
7463
|
+
error: [
|
|
7464
|
+
TemplatesWorkspaceHistory401.pipe(HttpApiSchema.status(401)),
|
|
7465
|
+
TemplatesWorkspaceHistory403.pipe(HttpApiSchema.status(403)),
|
|
7466
|
+
TemplatesWorkspaceHistory404.pipe(HttpApiSchema.status(404)),
|
|
7467
|
+
TemplatesWorkspaceHistory409.pipe(HttpApiSchema.status(409)),
|
|
7468
|
+
TemplatesWorkspaceHistory500
|
|
7469
|
+
]
|
|
7470
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.workspaceHistory").annotate(OpenApi.Summary, "List template project commit history").annotate(OpenApi.Description, "Returns bounded history from the Artifact repository default branch."), HttpApiEndpoint.post("templatesReconcileWorkspace", "/v1/templates/:id/workspace/reconcile", {
|
|
7471
|
+
params: TemplatesReconcileWorkspacePathParams,
|
|
7472
|
+
payload: TemplatesReconcileWorkspaceRequestJson,
|
|
7473
|
+
success: TemplatesReconcileWorkspace200,
|
|
7474
|
+
error: [
|
|
7475
|
+
TemplatesReconcileWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
7476
|
+
TemplatesReconcileWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
7477
|
+
TemplatesReconcileWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
7478
|
+
TemplatesReconcileWorkspace409.pipe(HttpApiSchema.status(409)),
|
|
7479
|
+
TemplatesReconcileWorkspace500
|
|
7480
|
+
]
|
|
7481
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.reconcileWorkspace").annotate(OpenApi.Summary, "Reconcile a template project workspace").annotate(OpenApi.Description, "Fast-forwards or rebases the workspace onto the current Artifact branch head, retaining file conflicts for explicit resolution."), HttpApiEndpoint.post("templatesAttachWorkspaceResource", "/v1/templates/:id/workspace/resources", {
|
|
7482
|
+
params: TemplatesAttachWorkspaceResourcePathParams,
|
|
7483
|
+
payload: TemplatesAttachWorkspaceResourceRequestJson,
|
|
7484
|
+
success: TemplatesAttachWorkspaceResource200,
|
|
7485
|
+
error: [
|
|
7486
|
+
TemplatesAttachWorkspaceResource401.pipe(HttpApiSchema.status(401)),
|
|
7487
|
+
TemplatesAttachWorkspaceResource403.pipe(HttpApiSchema.status(403)),
|
|
7488
|
+
TemplatesAttachWorkspaceResource404.pipe(HttpApiSchema.status(404)),
|
|
7489
|
+
TemplatesAttachWorkspaceResource409.pipe(HttpApiSchema.status(409)),
|
|
7490
|
+
TemplatesAttachWorkspaceResource500
|
|
7491
|
+
]
|
|
7492
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.attachWorkspaceResource").annotate(OpenApi.Summary, "Attach a template workspace resource").annotate(OpenApi.Description, "Adds or replaces one bounded persistent read-only resource and advances the workspace revision."), HttpApiEndpoint.post("templatesRemoveWorkspaceResource", "/v1/templates/:id/workspace/resources/:resourceId/remove", {
|
|
7493
|
+
params: TemplatesRemoveWorkspaceResourcePathParams,
|
|
7494
|
+
payload: TemplatesRemoveWorkspaceResourceRequestJson,
|
|
7495
|
+
success: TemplatesRemoveWorkspaceResource200,
|
|
7496
|
+
error: [
|
|
7497
|
+
TemplatesRemoveWorkspaceResource401.pipe(HttpApiSchema.status(401)),
|
|
7498
|
+
TemplatesRemoveWorkspaceResource403.pipe(HttpApiSchema.status(403)),
|
|
7499
|
+
TemplatesRemoveWorkspaceResource404.pipe(HttpApiSchema.status(404)),
|
|
7500
|
+
TemplatesRemoveWorkspaceResource409.pipe(HttpApiSchema.status(409)),
|
|
7501
|
+
TemplatesRemoveWorkspaceResource500
|
|
7502
|
+
]
|
|
7503
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.removeWorkspaceResource").annotate(OpenApi.Summary, "Remove a template workspace resource").annotate(OpenApi.Description, "Removes one persistent resource from mounted context and advances the workspace revision."), HttpApiEndpoint.post("templatesRestoreWorkspace", "/v1/templates/:id/workspace/restore", {
|
|
7504
|
+
params: TemplatesRestoreWorkspacePathParams,
|
|
7505
|
+
payload: TemplatesRestoreWorkspaceRequestJson,
|
|
7506
|
+
success: TemplatesRestoreWorkspace200,
|
|
7507
|
+
error: [
|
|
7508
|
+
TemplatesRestoreWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
7509
|
+
TemplatesRestoreWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
7510
|
+
TemplatesRestoreWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
7511
|
+
TemplatesRestoreWorkspace409.pipe(HttpApiSchema.status(409)),
|
|
7512
|
+
TemplatesRestoreWorkspace500
|
|
7513
|
+
]
|
|
7514
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.restoreWorkspace").annotate(OpenApi.Summary, "Stage a historical template project tree").annotate(OpenApi.Description, "Builds the template entry before atomically staging a reachable historical commit and its emitted source; a later Save appends a new commit without rewriting branch history."), HttpApiEndpoint.post("templatesSaveWorkspace", "/v1/templates/:id/workspace/save", {
|
|
7515
|
+
params: TemplatesSaveWorkspacePathParams,
|
|
7516
|
+
payload: TemplatesSaveWorkspaceRequestJson,
|
|
7517
|
+
success: TemplatesSaveWorkspace200,
|
|
7518
|
+
error: [
|
|
7519
|
+
TemplatesSaveWorkspace401.pipe(HttpApiSchema.status(401)),
|
|
7520
|
+
TemplatesSaveWorkspace403.pipe(HttpApiSchema.status(403)),
|
|
7521
|
+
TemplatesSaveWorkspace404.pipe(HttpApiSchema.status(404)),
|
|
7522
|
+
TemplatesSaveWorkspace409.pipe(HttpApiSchema.status(409)),
|
|
7523
|
+
TemplatesSaveWorkspace500
|
|
7524
|
+
]
|
|
7525
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.saveWorkspace").annotate(OpenApi.Summary, "Save a template project workspace").annotate(OpenApi.Description, "Validates the effective project tree and creates one normal Git commit on the Artifact default branch."), HttpApiEndpoint.get("templatesListDashboard", "/v1/templates/dashboard", {
|
|
5814
7526
|
query: TemplatesListDashboardQuery,
|
|
5815
7527
|
success: TemplatesListDashboard200,
|
|
5816
7528
|
error: [
|
|
@@ -5864,18 +7576,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5864
7576
|
TemplatesRenameFamily422.pipe(HttpApiSchema.status(422)),
|
|
5865
7577
|
TemplatesRenameFamily500
|
|
5866
7578
|
]
|
|
5867
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.renameFamily").annotate(OpenApi.Summary, "Rename a template family").annotate(OpenApi.Description, "Changes a template family's name and returns the updated family."), HttpApiEndpoint.post("
|
|
5868
|
-
params: TemplatesAddFamilyChannelPathParams,
|
|
5869
|
-
success: TemplatesAddFamilyChannel201.pipe(HttpApiSchema.status(201)),
|
|
5870
|
-
error: [
|
|
5871
|
-
TemplatesAddFamilyChannel401.pipe(HttpApiSchema.status(401)),
|
|
5872
|
-
TemplatesAddFamilyChannel403.pipe(HttpApiSchema.status(403)),
|
|
5873
|
-
TemplatesAddFamilyChannel404.pipe(HttpApiSchema.status(404)),
|
|
5874
|
-
TemplatesAddFamilyChannel409.pipe(HttpApiSchema.status(409)),
|
|
5875
|
-
TemplatesAddFamilyChannel422.pipe(HttpApiSchema.status(422)),
|
|
5876
|
-
TemplatesAddFamilyChannel500
|
|
5877
|
-
]
|
|
5878
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.addFamilyChannel").annotate(OpenApi.Summary, "Add a channel to a template family").annotate(OpenApi.Description, "Creates a template for the requested channel in the family and returns the updated family with status 201."), HttpApiEndpoint.post("templatesAttachFamilyMember", "/v1/templates/families/:familyId/members/:templateId", {
|
|
7579
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.renameFamily").annotate(OpenApi.Summary, "Rename a template family").annotate(OpenApi.Description, "Changes a template family's name and returns the updated family."), HttpApiEndpoint.post("templatesAttachFamilyMember", "/v1/templates/families/:familyId/members/:templateId", {
|
|
5879
7580
|
params: TemplatesAttachFamilyMemberPathParams,
|
|
5880
7581
|
success: TemplatesAttachFamilyMember200,
|
|
5881
7582
|
error: [
|
|
@@ -5908,7 +7609,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5908
7609
|
TemplatesCreateFamilyFromTemplate422.pipe(HttpApiSchema.status(422)),
|
|
5909
7610
|
TemplatesCreateFamilyFromTemplate500
|
|
5910
7611
|
]
|
|
5911
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.createFamilyFromTemplate").annotate(OpenApi.Summary, "Create a family from a template").annotate(OpenApi.Description, "Creates a template family containing the specified template and returns the new family with status 201.")).annotate(OpenApi.Description, "
|
|
7612
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.createFamilyFromTemplate").annotate(OpenApi.Summary, "Create a family from a template").annotate(OpenApi.Description, "Creates a template family containing the specified template and returns the new family with status 201.")).annotate(OpenApi.Description, "Git-backed email template projects, workspace editing, immutable publications, and delivery defaults") {};
|
|
5912
7613
|
var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpoint.get("webhooksList", "/v1/webhooks", {
|
|
5913
7614
|
query: WebhooksListQuery,
|
|
5914
7615
|
success: WebhooksList200,
|
|
@@ -5917,7 +7618,7 @@ var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpo
|
|
|
5917
7618
|
WebhooksList403.pipe(HttpApiSchema.status(403)),
|
|
5918
7619
|
WebhooksList500
|
|
5919
7620
|
]
|
|
5920
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.list").annotate(OpenApi.Summary, "List webhooks").annotate(OpenApi.Description, "Returns a paginated list of the organization's webhook endpoints, optionally filtered by
|
|
7621
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.list").annotate(OpenApi.Summary, "List webhooks").annotate(OpenApi.Description, "Returns a paginated list of the organization's webhook endpoints with each endpoint's delivery counts, optionally filtered by name search and status."), HttpApiEndpoint.post("webhooksCreate", "/v1/webhooks", {
|
|
5921
7622
|
payload: WebhooksCreateRequestJson,
|
|
5922
7623
|
success: WebhooksCreate201.pipe(HttpApiSchema.status(201)),
|
|
5923
7624
|
error: [
|
|
@@ -5929,7 +7630,7 @@ var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpo
|
|
|
5929
7630
|
WebhooksCreate500,
|
|
5930
7631
|
WebhooksCreate502.pipe(HttpApiSchema.status(502))
|
|
5931
7632
|
]
|
|
5932
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.create").annotate(OpenApi.Summary, "Create a webhook").annotate(OpenApi.Description, "Creates a webhook endpoint
|
|
7633
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.create").annotate(OpenApi.Summary, "Create a webhook").annotate(OpenApi.Description, "Creates a signed webhook endpoint for Samva delivery and inbound events, stores subscriptions, and returns the endpoint and signing secret with a 201 response."), HttpApiEndpoint.get("webhooksGet", "/v1/webhooks/:id", {
|
|
5933
7634
|
params: WebhooksGetPathParams,
|
|
5934
7635
|
success: WebhooksGet200,
|
|
5935
7636
|
error: [
|
|
@@ -5990,7 +7691,7 @@ var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpo
|
|
|
5990
7691
|
WebhooksGetLogs404.pipe(HttpApiSchema.status(404)),
|
|
5991
7692
|
WebhooksGetLogs500
|
|
5992
7693
|
]
|
|
5993
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.getLogs").annotate(OpenApi.Summary, "List webhook delivery logs").annotate(OpenApi.Description, "Returns recent deliveries and
|
|
7694
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.getLogs").annotate(OpenApi.Summary, "List webhook delivery logs").annotate(OpenApi.Description, "Returns recent deliveries for a webhook endpoint, each naming the event type and time it was made for, with its nested attempt diagnostics."), HttpApiEndpoint.post("webhooksRegenerateSecret", "/v1/webhooks/:webhookId/rotate-secret", {
|
|
5994
7695
|
params: WebhooksRegenerateSecretPathParams,
|
|
5995
7696
|
success: WebhooksRegenerateSecret200,
|
|
5996
7697
|
error: [
|
|
@@ -6002,6 +7703,7 @@ var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpo
|
|
|
6002
7703
|
]
|
|
6003
7704
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.regenerateSecret").annotate(OpenApi.Summary, "Rotate a webhook signing secret").annotate(OpenApi.Description, "Generates and returns a new signing secret. The previous secret remains valid for a 24-hour rotation overlap."), HttpApiEndpoint.get("webhooksGetStats", "/v1/webhooks/:webhookId/stats", {
|
|
6004
7705
|
params: WebhooksGetStatsPathParams,
|
|
7706
|
+
query: WebhooksGetStatsQuery,
|
|
6005
7707
|
success: WebhooksGetStats200,
|
|
6006
7708
|
error: [
|
|
6007
7709
|
WebhooksGetStats401.pipe(HttpApiSchema.status(401)),
|
|
@@ -6009,8 +7711,8 @@ var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpo
|
|
|
6009
7711
|
WebhooksGetStats404.pipe(HttpApiSchema.status(404)),
|
|
6010
7712
|
WebhooksGetStats500
|
|
6011
7713
|
]
|
|
6012
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.getStats").annotate(OpenApi.Summary, "Get webhook delivery statistics").annotate(OpenApi.Description, "Returns aggregate pending, delivered, exhausted, and cancelled delivery counts for a webhook endpoint.")).annotate(OpenApi.Description, "Customer event webhook management, testing, and delivery logs") {};
|
|
6013
|
-
var SamvaApi = class extends HttpApi.make("SamvaApi").annotate(OpenApi.Title, "Samva SDK").annotate(OpenApi.Version, "1.0.0").annotate(OpenApi.Description, "Samva email API for programmatic email delivery").add(APIKeysGroup, CampaignsGroup, ContactsGroup, ConversationsGroup, DesignGroup, EmailGroup, MediaGroup, MessagesGroup, ScheduledMessagesGroup, OperationsGroup, OrganizationsGroup,
|
|
7714
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.getStats").annotate(OpenApi.Summary, "Get webhook delivery statistics").annotate(OpenApi.Description, "Returns aggregate pending, delivered, exhausted, and cancelled delivery counts for a webhook endpoint, plus the same counts per workspace-local calendar day over the selected period of 7, 30, or 90 days. Deliveries are retained for 90 days, so 90d is the whole history.")).annotate(OpenApi.Description, "Customer event webhook management, testing, and delivery logs") {};
|
|
7715
|
+
var SamvaApi = class extends HttpApi.make("SamvaApi").annotate(OpenApi.Title, "Samva SDK").annotate(OpenApi.Version, "1.0.0").annotate(OpenApi.Description, "Samva email API for programmatic email delivery").annotate(OpenApi.Servers, [{ url: "https://api.samva.dev" }]).add(APIKeysGroup, CampaignsGroup, ContactsGroup, ConversationsGroup, DesignGroup, EmailGroup, MediaGroup, MessagesGroup, ScheduledMessagesGroup, OperationsGroup, OrganizationsGroup, TemplatesGroup, WebhooksGroup) {};
|
|
6014
7716
|
//#endregion
|
|
6015
7717
|
//#region src/effect/internal/client.ts
|
|
6016
7718
|
const DEFAULT_BASE_URL = "https://api.samva.dev";
|
|
@@ -6023,11 +7725,13 @@ const flatten = (nested) => {
|
|
|
6023
7725
|
};
|
|
6024
7726
|
const AuthorizationClient = HttpApiMiddleware.layerClient(ApiKeySecurityMiddleware, ({ next, request }) => next(request));
|
|
6025
7727
|
const make = (config) => Effect.gen(function* () {
|
|
6026
|
-
const
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
7728
|
+
const removesAttribution = Object.entries(config.headers ?? {}).some(([name, value]) => name.toLowerCase() === "x-samva-client" && value === void 0);
|
|
7729
|
+
const transformClient = (client) => client.pipe(HttpClient.mapRequest((request) => {
|
|
7730
|
+
let attributed = HttpClientRequest.setHeader(request, CLIENT_ATTRIBUTION_HEADER, clientAttribution("typescript-effect"));
|
|
7731
|
+
if (config.headers !== void 0) attributed = HttpClientRequest.setHeaders(attributed, config.headers);
|
|
7732
|
+
if (removesAttribution) attributed = HttpClientRequest.removeHeader(attributed, CLIENT_ATTRIBUTION_HEADER);
|
|
7733
|
+
return HttpClientRequest.setHeaders(attributed, authHeaders(config));
|
|
7734
|
+
}));
|
|
6031
7735
|
const raw = yield* HttpApiClient.make(SamvaApi, {
|
|
6032
7736
|
baseUrl: config.baseUrl ?? DEFAULT_BASE_URL,
|
|
6033
7737
|
transformClient
|
|
@@ -6044,4 +7748,4 @@ const raw = Effect.map(Service, (client) => client.raw);
|
|
|
6044
7748
|
//#endregion
|
|
6045
7749
|
export { ValidationError as C, UpdateWebhookPayload as S, SamvaApi as _, BillingProviderError as a, UnauthorizedError as b, CreateWebhookPayload as c, FlagDisabledError as d, ForbiddenError as f, ResourceNotFoundError as g, RateLimitedError as h, raw as i, EmailChannelError as l, PaymentRequiredError as m, layer as n, ConflictError as o, InternalError as p, layerFetch as r, CreateTemplatePayload as s, Service as t, ExternalServiceError as u, TestWebhookPayload as v, WebhookEnqueueError as w, UpdateTemplatePayload as x, TrackingRecipientEmail as y };
|
|
6046
7750
|
|
|
6047
|
-
//# sourceMappingURL=client-
|
|
7751
|
+
//# sourceMappingURL=client-B7gEkvEq.js.map
|