samva 0.43.2 → 0.44.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.
@@ -5,7 +5,7 @@ import * as Schema from "effect/Schema";
5
5
  const NewsletterIssueDocument = /* @__PURE__ */ (() => Schema.Struct({
6
6
  projectId: TemplateProjectId,
7
7
  revision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
8
- path: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
8
+ path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
9
9
  content: Schema.String
10
10
  }).annotate({ identifier: "NewsletterIssueDocument" }))();
11
11
  const NewsletterIssueSend = /* @__PURE__ */ (() => Schema.Struct({
@@ -13,7 +13,7 @@ const NewsletterIssueSend = /* @__PURE__ */ (() => Schema.Struct({
13
13
  run: CampaignLatestRun
14
14
  }).annotate({ identifier: "NewsletterIssueSend" }))();
15
15
  const NewsletterIssueListItem = /* @__PURE__ */ (() => Schema.Struct({
16
- path: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
16
+ path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
17
17
  title: Schema.Union([Schema.String, Schema.Null]),
18
18
  latestSend: Schema.Union([NewsletterIssueSend, Schema.Null])
19
19
  }).annotate({ identifier: "NewsletterIssueListItem" }))();
@@ -36,7 +36,7 @@ const NewsletterIssuesList504 = GatewayTimeoutError;
36
36
  const NewsletterIssuesCreatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: NewsletterId }))();
37
37
  const NewsletterIssuesCreateHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))) }))();
38
38
  const NewsletterIssuesCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
39
- path: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
39
+ path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
40
40
  content: Schema.String,
41
41
  expectedRevision: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })), Schema.Null]))
42
42
  }))();
@@ -61,7 +61,7 @@ const NewsletterIssuesCreate200 = /* @__PURE__ */ (() => Schema.Struct({
61
61
  ])
62
62
  })),
63
63
  conflicts: Schema.Array(Schema.Struct({
64
- path: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
64
+ path: Schema.String.annotate({ description: "A relative path of 1–1024 characters with no backslash, . or .., or .git segments." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isBetweenLength(1, 1024).annotate({ expected: "a value with a length between 1 and 1024" })),
65
65
  base: Schema.Union([Schema.String, Schema.Null]),
66
66
  draft: Schema.Union([Schema.String, Schema.Null]),
67
67
  main: Schema.Union([Schema.String, Schema.Null])
@@ -78,7 +78,7 @@ const NewsletterIssuesCreate200 = /* @__PURE__ */ (() => Schema.Struct({
78
78
  access: Schema.Literal("read-write")
79
79
  }),
80
80
  Schema.Struct({
81
- root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.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(?:\\/|$))[^\\\\/]+)*$", "u")).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(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
81
+ root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
82
82
  digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
83
83
  fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
84
84
  byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
@@ -89,7 +89,7 @@ const NewsletterIssuesCreate200 = /* @__PURE__ */ (() => Schema.Struct({
89
89
  name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
90
90
  }),
91
91
  Schema.Struct({
92
- root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.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(?:\\/|$))[^\\\\/]+)*$", "u")).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(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
92
+ root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
93
93
  digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
94
94
  fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
95
95
  byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
@@ -99,7 +99,7 @@ const NewsletterIssuesCreate200 = /* @__PURE__ */ (() => Schema.Struct({
99
99
  name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
100
100
  }),
101
101
  Schema.Struct({
102
- root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.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(?:\\/|$))[^\\\\/]+)*$", "u")).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(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
102
+ root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
103
103
  digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
104
104
  fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
105
105
  byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
@@ -144,7 +144,7 @@ const NewsletterIssuesCreate504 = GatewayTimeoutError;
144
144
  const NewsletterIssuesUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: NewsletterId }))();
145
145
  const NewsletterIssuesUpdateHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))) }))();
146
146
  const NewsletterIssuesUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
147
- path: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
147
+ path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
148
148
  content: Schema.String,
149
149
  expectedRevision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))
150
150
  }))();
@@ -169,7 +169,7 @@ const NewsletterIssuesUpdate200 = /* @__PURE__ */ (() => Schema.Struct({
169
169
  ])
170
170
  })),
171
171
  conflicts: Schema.Array(Schema.Struct({
172
- path: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
172
+ path: Schema.String.annotate({ description: "A relative path of 1–1024 characters with no backslash, . or .., or .git segments." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isBetweenLength(1, 1024).annotate({ expected: "a value with a length between 1 and 1024" })),
173
173
  base: Schema.Union([Schema.String, Schema.Null]),
174
174
  draft: Schema.Union([Schema.String, Schema.Null]),
175
175
  main: Schema.Union([Schema.String, Schema.Null])
@@ -186,7 +186,7 @@ const NewsletterIssuesUpdate200 = /* @__PURE__ */ (() => Schema.Struct({
186
186
  access: Schema.Literal("read-write")
187
187
  }),
188
188
  Schema.Struct({
189
- root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.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(?:\\/|$))[^\\\\/]+)*$", "u")).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(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
189
+ root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
190
190
  digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
191
191
  fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
192
192
  byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
@@ -197,7 +197,7 @@ const NewsletterIssuesUpdate200 = /* @__PURE__ */ (() => Schema.Struct({
197
197
  name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
198
198
  }),
199
199
  Schema.Struct({
200
- root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.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(?:\\/|$))[^\\\\/]+)*$", "u")).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(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
200
+ root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
201
201
  digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
202
202
  fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
203
203
  byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
@@ -207,7 +207,7 @@ const NewsletterIssuesUpdate200 = /* @__PURE__ */ (() => Schema.Struct({
207
207
  name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
208
208
  }),
209
209
  Schema.Struct({
210
- root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.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(?:\\/|$))[^\\\\/]+)*$", "u")).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(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
210
+ root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
211
211
  digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
212
212
  fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
213
213
  byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
@@ -252,13 +252,13 @@ const NewsletterIssuesUpdate504 = GatewayTimeoutError;
252
252
  const NewsletterIssuesCheckPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: NewsletterId }))();
253
253
  const NewsletterIssuesCheckHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))) }))();
254
254
  const NewsletterIssuesCheckRequestJson = /* @__PURE__ */ (() => Schema.Struct({
255
- path: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
255
+ path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
256
256
  expectedRevision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))
257
257
  }))();
258
258
  const NewsletterIssuesCheck200 = /* @__PURE__ */ (() => Schema.Struct({
259
259
  projectId: TemplateProjectId,
260
260
  revision: Schema.String,
261
- entryPath: Schema.Union([Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })), Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))]),
261
+ entryPath: Schema.Union([Schema.String.annotate({ description: "A relative .tsx file under templates or emails/, at most 1024 characters, with no backslash, . or .., or .git segments." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })), Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))]),
262
262
  declaration: Schema.Union([Schema.Struct({
263
263
  codeDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
264
264
  templateId: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
@@ -270,7 +270,7 @@ const NewsletterIssuesCheck200 = /* @__PURE__ */ (() => Schema.Struct({
270
270
  fixtures: Schema.Array(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })))
271
271
  }), Schema.Null]),
272
272
  issue: Schema.optionalKey(Schema.Struct({
273
- path: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
273
+ path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
274
274
  frontmatter: Schema.Struct({
275
275
  title: Schema.String,
276
276
  date: Schema.optionalKey(Schema.String),
@@ -361,7 +361,7 @@ const NewsletterIssuesCheck503 = ServiceUnavailableError;
361
361
  const NewsletterIssuesCheck504 = GatewayTimeoutError;
362
362
  const NewsletterIssuesGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: NewsletterId }))();
363
363
  const NewsletterIssuesGetQuery = /* @__PURE__ */ (() => Schema.Struct({
364
- path: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
364
+ path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
365
365
  expectedRevision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))
366
366
  }))();
367
367
  const NewsletterIssuesGet200 = NewsletterIssueDocument;
@@ -414,7 +414,7 @@ const NewsletterIssuesHistory504 = GatewayTimeoutError;
414
414
  const NewsletterIssuesRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: NewsletterId }))();
415
415
  const NewsletterIssuesRemoveHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))) }))();
416
416
  const NewsletterIssuesRemoveRequestJson = /* @__PURE__ */ (() => Schema.Struct({
417
- path: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
417
+ path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
418
418
  expectedRevision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))
419
419
  }))();
420
420
  const NewsletterIssuesRemove200 = /* @__PURE__ */ (() => Schema.Struct({
@@ -438,7 +438,7 @@ const NewsletterIssuesRemove200 = /* @__PURE__ */ (() => Schema.Struct({
438
438
  ])
439
439
  })),
440
440
  conflicts: Schema.Array(Schema.Struct({
441
- path: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
441
+ path: Schema.String.annotate({ description: "A relative path of 1–1024 characters with no backslash, . or .., or .git segments." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isBetweenLength(1, 1024).annotate({ expected: "a value with a length between 1 and 1024" })),
442
442
  base: Schema.Union([Schema.String, Schema.Null]),
443
443
  draft: Schema.Union([Schema.String, Schema.Null]),
444
444
  main: Schema.Union([Schema.String, Schema.Null])
@@ -455,7 +455,7 @@ const NewsletterIssuesRemove200 = /* @__PURE__ */ (() => Schema.Struct({
455
455
  access: Schema.Literal("read-write")
456
456
  }),
457
457
  Schema.Struct({
458
- root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.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(?:\\/|$))[^\\\\/]+)*$", "u")).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(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
458
+ root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
459
459
  digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
460
460
  fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
461
461
  byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
@@ -466,7 +466,7 @@ const NewsletterIssuesRemove200 = /* @__PURE__ */ (() => Schema.Struct({
466
466
  name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
467
467
  }),
468
468
  Schema.Struct({
469
- root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.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(?:\\/|$))[^\\\\/]+)*$", "u")).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(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
469
+ root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
470
470
  digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
471
471
  fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
472
472
  byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
@@ -476,7 +476,7 @@ const NewsletterIssuesRemove200 = /* @__PURE__ */ (() => Schema.Struct({
476
476
  name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
477
477
  }),
478
478
  Schema.Struct({
479
- root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.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(?:\\/|$))[^\\\\/]+)*$", "u")).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(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
479
+ root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
480
480
  digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
481
481
  fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
482
482
  byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
@@ -521,7 +521,7 @@ const NewsletterIssuesRemove504 = GatewayTimeoutError;
521
521
  const NewsletterIssuesRenderPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: NewsletterId }))();
522
522
  const NewsletterIssuesRenderHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))) }))();
523
523
  const NewsletterIssuesRenderRequestJson = /* @__PURE__ */ (() => Schema.Struct({
524
- path: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
524
+ path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
525
525
  expectedRevision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
526
526
  fixture: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
527
527
  target: Schema.Union([Schema.Literal("email"), Schema.Literal("web")])
@@ -529,7 +529,7 @@ const NewsletterIssuesRenderRequestJson = /* @__PURE__ */ (() => Schema.Struct({
529
529
  const NewsletterIssuesRender200 = /* @__PURE__ */ (() => Schema.Struct({
530
530
  projectId: TemplateProjectId,
531
531
  revision: Schema.String,
532
- entryPath: Schema.Union([Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })), Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))]),
532
+ entryPath: Schema.Union([Schema.String.annotate({ description: "A relative .tsx file under templates or emails/, at most 1024 characters, with no backslash, . or .., or .git segments." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })), Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" }))]),
533
533
  declaration: Schema.Union([Schema.Struct({
534
534
  codeDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
535
535
  templateId: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
@@ -541,7 +541,7 @@ const NewsletterIssuesRender200 = /* @__PURE__ */ (() => Schema.Struct({
541
541
  fixtures: Schema.Array(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })))
542
542
  }), Schema.Null]),
543
543
  issue: Schema.optionalKey(Schema.Struct({
544
- path: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(new globalThis.RegExp("^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$", "u")).annotate({ expected: "a string matching the RegExp ^(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?!.*\\p{Cc})issues\\/(?:[^/]+\\/)*[^/]+\\.md$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
544
+ path: Schema.String.annotate({ description: "A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters." }).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
545
545
  frontmatter: Schema.Struct({
546
546
  title: Schema.String,
547
547
  date: Schema.optionalKey(Schema.String),
@@ -727,7 +727,7 @@ const NewsletterIssuesSave200 = /* @__PURE__ */ (() => Schema.Struct({
727
727
  parentCommit: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
728
728
  tree: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
729
729
  revision: Schema.String,
730
- changedPaths: Schema.Array(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" }))),
730
+ changedPaths: Schema.Array(Schema.String.annotate({ description: "A relative path of 1–1024 characters with no backslash, . or .., or .git segments." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isBetweenLength(1, 1024).annotate({ expected: "a value with a length between 1 and 1024" }))),
731
731
  sourceDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
732
732
  buildDigest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
733
733
  warnings: Schema.Array(Schema.Struct({
@@ -826,7 +826,7 @@ const NewsletterIssuesOpen200 = /* @__PURE__ */ (() => Schema.Struct({
826
826
  ])
827
827
  })),
828
828
  conflicts: Schema.Array(Schema.Struct({
829
- path: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
829
+ path: Schema.String.annotate({ description: "A relative path of 1–1024 characters with no backslash, . or .., or .git segments." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isBetweenLength(1, 1024).annotate({ expected: "a value with a length between 1 and 1024" })),
830
830
  base: Schema.Union([Schema.String, Schema.Null]),
831
831
  draft: Schema.Union([Schema.String, Schema.Null]),
832
832
  main: Schema.Union([Schema.String, Schema.Null])
@@ -843,7 +843,7 @@ const NewsletterIssuesOpen200 = /* @__PURE__ */ (() => Schema.Struct({
843
843
  access: Schema.Literal("read-write")
844
844
  }),
845
845
  Schema.Struct({
846
- root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.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(?:\\/|$))[^\\\\/]+)*$", "u")).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(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
846
+ root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
847
847
  digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
848
848
  fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
849
849
  byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
@@ -854,7 +854,7 @@ const NewsletterIssuesOpen200 = /* @__PURE__ */ (() => Schema.Struct({
854
854
  name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
855
855
  }),
856
856
  Schema.Struct({
857
- root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.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(?:\\/|$))[^\\\\/]+)*$", "u")).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(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
857
+ root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
858
858
  digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
859
859
  fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
860
860
  byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
@@ -864,7 +864,7 @@ const NewsletterIssuesOpen200 = /* @__PURE__ */ (() => Schema.Struct({
864
864
  name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(256).annotate({ expected: "a string with at most 256 code points" })).check(Schema.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
865
865
  }),
866
866
  Schema.Struct({
867
- root: Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(new globalThis.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(?:\\/|$))[^\\\\/]+)*$", "u")).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(?:\\/|$))[^\\\\/]+)*$" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
867
+ root: Schema.String.annotate({ description: "An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments." }).check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
868
868
  digest: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
869
869
  fileCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
870
870
  byteSize: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
@@ -64,7 +64,7 @@ const OrganizationsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
64
64
  timezone: Schema.optionalKey(Schema.Union([IanaTimezone, Schema.Null])),
65
65
  isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
66
66
  metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null])),
67
- replyToDefault: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$", "u")).annotate({ expected: "a string matching the RegExp ^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$" }))), Schema.Null])),
67
+ replyToDefault: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
68
68
  emailFooterEnabledDefault: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
69
69
  }))();
70
70
  const OrganizationsUpdate200 = Organization;
@@ -121,7 +121,7 @@ const OrganizationsAssignPersonalMailbox500 = InternalError;
121
121
  const OrganizationsAssignPersonalMailbox502 = BillingProviderError;
122
122
  const OrganizationsAssignPersonalMailbox504 = GatewayTimeoutError;
123
123
  const OrganizationsInviteMemberRequestJson = /* @__PURE__ */ (() => Schema.Struct({
124
- email: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$", "u")).annotate({ expected: "a string matching the RegExp ^(?=[^@]{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[^\\s@/\\\\:#?%[\\]\\p{Cc}]+[.\\u3002\\uff0e\\uff61][^\\s@/\\\\:#?%[\\]\\p{Cc}]+$" })),
124
+ email: Schema.String,
125
125
  role: Schema.Union([
126
126
  Schema.Literal("member"),
127
127
  Schema.Literal("admin"),
@@ -25,7 +25,7 @@ const StoredEmailContent = /* @__PURE__ */ (() => Schema.Struct({
25
25
  publicationId: Schema.optionalKey(TemplatePublicationId),
26
26
  inputContractId: Schema.optionalKey(TemplateInputContractId),
27
27
  templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
28
- templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
28
+ templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
29
29
  templateData: Schema.optionalKey(TemplateData),
30
30
  locale: Schema.optionalKey(RenderLocale),
31
31
  timeZone: Schema.optionalKey(RenderTimeZone),
@@ -37,14 +37,14 @@ const StoredEmailContent = /* @__PURE__ */ (() => Schema.Struct({
37
37
  headers: Schema.optionalKey(Schema.Union([EmailCustomHeaders, Schema.Null]))
38
38
  }).annotate({ identifier: "StoredEmailContent" }))();
39
39
  const EmailDispatchContent = /* @__PURE__ */ (() => Schema.Struct({
40
- subject: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[^\\p{Cc}]*$", "u")).annotate({ expected: "a string matching the RegExp ^[^\\p{Cc}]*$" })), Schema.Null])),
40
+ subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
41
41
  html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
42
42
  text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
43
43
  attachments: Schema.optionalKey(EmailAttachments),
44
44
  publicationId: Schema.optionalKey(TemplatePublicationId),
45
45
  inputContractId: Schema.optionalKey(TemplateInputContractId),
46
46
  templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
47
- templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
47
+ templateSlug: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema.Null])),
48
48
  templateData: Schema.optionalKey(TemplateData),
49
49
  locale: Schema.optionalKey(RenderLocale),
50
50
  timeZone: Schema.optionalKey(RenderTimeZone),
@@ -1098,6 +1098,12 @@ export type ReapplyOnboardingReviewInput = {
1098
1098
  export declare const ReapplyOnboardingReviewInput: Schema.Struct<{
1099
1099
  readonly expectedGeneration: Schema.Finite;
1100
1100
  }>;
1101
+ export type SuggestTemplateStartersPayload = {
1102
+ readonly brief: string;
1103
+ };
1104
+ export declare const SuggestTemplateStartersPayload: Schema.Struct<{
1105
+ readonly brief: Schema.String;
1106
+ }>;
1101
1107
  export type TemplateFamilyName = {
1102
1108
  readonly name: string;
1103
1109
  };
@@ -1190,6 +1196,20 @@ export declare const UpdateNamespacePayload: Schema.Struct<{
1190
1196
  readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1191
1197
  readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>, Schema.Null]>>;
1192
1198
  }>;
1199
+ export type CreateTemplateFromBriefPayload = {
1200
+ readonly brief: string;
1201
+ readonly name?: string | null;
1202
+ readonly galleryTemplateId?: string | null;
1203
+ readonly useBrand?: boolean | null;
1204
+ readonly namespaceId?: NamespaceId | null;
1205
+ };
1206
+ export declare const CreateTemplateFromBriefPayload: Schema.Struct<{
1207
+ readonly brief: Schema.String;
1208
+ readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1209
+ readonly galleryTemplateId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1210
+ readonly useBrand: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
1211
+ readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
1212
+ }>;
1193
1213
  export type CreateTemplateFromWebsitePayload = {
1194
1214
  readonly url: string;
1195
1215
  readonly name?: string | null;