samva 0.43.3 → 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.
@@ -847,7 +847,7 @@ export type MailboxChannel = "sms" | "whatsapp" | "email";
847
847
  export type MailboxQuarantinedMessage = {
848
848
  id: MessageId;
849
849
  disposition: "quarantined" | "isolated";
850
- reason: "spam" | "dmarc" | "virus" | "virus_unscanned" | "phishing" | "fraud" | "prompt_injection";
850
+ reason: "spam" | "dmarc" | "virus" | "virus_unscanned" | "verdict_missing" | "phishing" | "fraud" | "prompt_injection";
851
851
  source: "receipt" | "classifier";
852
852
  from: {
853
853
  address: string;
@@ -1259,7 +1259,7 @@ export type MailboxNeedsYouItem = {
1259
1259
  type: "quarantinedMessage";
1260
1260
  id: MessageId;
1261
1261
  mailbox: MailboxThreadMailbox;
1262
- reason: "spam" | "dmarc" | "virus" | "virus_unscanned" | "phishing" | "fraud" | "prompt_injection";
1262
+ reason: "spam" | "dmarc" | "virus" | "virus_unscanned" | "verdict_missing" | "phishing" | "fraud" | "prompt_injection";
1263
1263
  source: "receipt" | "classifier";
1264
1264
  heldAt: string;
1265
1265
  };
@@ -2007,6 +2007,9 @@ export type Template = {
2007
2007
  * Whether the template's project is shared with every namespace. Every entry in a project shares it. A namespace-scoped key reads and sends a shared template in its own namespace but cannot change it. Only an organization-level project is shared.
2008
2008
  */
2009
2009
  shared: boolean;
2010
+ /**
2011
+ * A relative .tsx file under templates or emails/, at most 1024 characters, with no backslash, . or .., or .git segments.
2012
+ */
2010
2013
  entryPath: string;
2011
2014
  status: "draft" | "pending" | "approved" | "published" | "rejected" | "archived";
2012
2015
  publishedAt: string | null;
@@ -2135,6 +2138,9 @@ export type TemplateFromDefaultInput = {
2135
2138
  name?: string | null | undefined;
2136
2139
  };
2137
2140
  export type AddTemplateEntryPayload = {
2141
+ /**
2142
+ * A relative .tsx file under templates or emails/, at most 1024 characters, with no backslash, . or .., or .git segments.
2143
+ */
2138
2144
  entryPath: string;
2139
2145
  name: string;
2140
2146
  slug: string;
@@ -2166,6 +2172,97 @@ export type CreateTemplateFromWebsitePayload = {
2166
2172
  */
2167
2173
  namespaceId?: NamespaceId | null | undefined;
2168
2174
  };
2175
+ /**
2176
+ * A template project created from a brief. `startedFrom` is the gallery design the project was created from.
2177
+ */
2178
+ export type TemplateFromBrief = {
2179
+ template: Template;
2180
+ startedFrom: TemplateStarterSuggestion;
2181
+ /**
2182
+ * The other designs suggested for the brief, best first.
2183
+ */
2184
+ alternatives: Array<TemplateStarterSuggestion>;
2185
+ recreation: TemplateRecreationMatch | null;
2186
+ /**
2187
+ * The request to send the template assistant in the editor: the brief, then the design the project starts from and what the gallery has of a company email the brief names. The assistant adapts the design to it; nothing runs until it is sent.
2188
+ */
2189
+ ask: string;
2190
+ };
2191
+ /**
2192
+ * The company email the brief named: `exact` when the gallery recreates that kind of email from it, `kind-differs` when it recreates another kind (start from it for the look and adapt the kind), `missing` when the gallery has no recreation of that company.
2193
+ */
2194
+ export type TemplateRecreationMatch = {
2195
+ status: "exact";
2196
+ company: string;
2197
+ galleryTemplateId: string;
2198
+ } | {
2199
+ status: "kind-differs";
2200
+ company: string;
2201
+ galleryTemplateId: string;
2202
+ recreationName: string;
2203
+ } | {
2204
+ status: "missing";
2205
+ company: string;
2206
+ };
2207
+ export type TemplateStarterSuggestion = {
2208
+ /**
2209
+ * The gallery design to start from. Pass it as `galleryTemplateId` to create a template from it.
2210
+ */
2211
+ galleryTemplateId: string;
2212
+ /**
2213
+ * The design's gallery page, under /templates/.
2214
+ */
2215
+ slug: string;
2216
+ name: string;
2217
+ description: string;
2218
+ /**
2219
+ * The brief this design fits, in one sentence.
2220
+ */
2221
+ intent: string;
2222
+ tags: Array<string>;
2223
+ /**
2224
+ * How the design is built: letter, code, ledger, timeline, grid, poster, and so on.
2225
+ */
2226
+ structure: string;
2227
+ /**
2228
+ * Whether adapting it means replacing pictures: none, graphics built in markup, or image files.
2229
+ */
2230
+ imagery: "none" | "markup" | "pictures";
2231
+ /**
2232
+ * The company whose email this design recreates.
2233
+ */
2234
+ recreates?: string | undefined;
2235
+ /**
2236
+ * Why it was suggested for this brief.
2237
+ */
2238
+ reason: string;
2239
+ };
2240
+ export type CreateTemplateFromBriefPayload = {
2241
+ /**
2242
+ * What the email is for, as a person would ask for it: who sends it, to whom, and why. Naming a company's email ("like the Vercel login email") starts from Samva's recreation of it when the gallery has one.
2243
+ */
2244
+ brief: string;
2245
+ name?: string | null | undefined;
2246
+ galleryTemplateId?: string | null | undefined;
2247
+ useBrand?: boolean | null | undefined;
2248
+ /**
2249
+ * The namespace the new template project belongs to. Omit for organization level. A namespace-scoped key always creates in its own namespace.
2250
+ */
2251
+ namespaceId?: NamespaceId | null | undefined;
2252
+ };
2253
+ export type TemplateStarterSuggestions = {
2254
+ /**
2255
+ * Best first; a new email for this brief starts from the first.
2256
+ */
2257
+ suggestions: Array<TemplateStarterSuggestion>;
2258
+ recreation: TemplateRecreationMatch | null;
2259
+ };
2260
+ export type SuggestTemplateStartersPayload = {
2261
+ /**
2262
+ * What the email is for, as a person would ask for it: who sends it, to whom, and why. Naming a company's email ("like the Vercel login email") starts from Samva's recreation of it when the gallery has one.
2263
+ */
2264
+ brief: string;
2265
+ };
2169
2266
  export type CreateTemplatePayload = {
2170
2267
  name: string;
2171
2268
  projectName?: string | null | undefined;
@@ -2224,6 +2321,9 @@ export type TemplateSummary = {
2224
2321
  * Whether the template's project is shared with every namespace. Every entry in a project shares it. A namespace-scoped key reads and sends a shared template in its own namespace but cannot change it. Only an organization-level project is shared.
2225
2322
  */
2226
2323
  shared: boolean;
2324
+ /**
2325
+ * A relative .tsx file under templates or emails/, at most 1024 characters, with no backslash, . or .., or .git segments.
2326
+ */
2227
2327
  entryPath: string;
2228
2328
  status: "draft" | "pending" | "approved" | "published" | "rejected" | "archived";
2229
2329
  publishedAt: string | null;
@@ -2264,12 +2364,18 @@ export type PublicationDomainPage = {
2264
2364
  nextCursor: string | null;
2265
2365
  };
2266
2366
  export type NewsletterIssueRenderPayload = {
2367
+ /**
2368
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
2369
+ */
2267
2370
  path: string;
2268
2371
  expectedRevision: string;
2269
2372
  fixture: string;
2270
2373
  target: "email" | "web";
2271
2374
  };
2272
2375
  export type NewsletterIssueCheckPayload = {
2376
+ /**
2377
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
2378
+ */
2273
2379
  path: string;
2274
2380
  expectedRevision: string;
2275
2381
  };
@@ -2279,15 +2385,24 @@ export type NewsletterIssueSavePayload = {
2279
2385
  message: string;
2280
2386
  };
2281
2387
  export type NewsletterIssueRemovePayload = {
2388
+ /**
2389
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
2390
+ */
2282
2391
  path: string;
2283
2392
  expectedRevision: string;
2284
2393
  };
2285
2394
  export type NewsletterIssueUpdatePayload = {
2395
+ /**
2396
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
2397
+ */
2286
2398
  path: string;
2287
2399
  content: string;
2288
2400
  expectedRevision: string;
2289
2401
  };
2290
2402
  export type NewsletterIssueCreatePayload = {
2403
+ /**
2404
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
2405
+ */
2291
2406
  path: string;
2292
2407
  content: string;
2293
2408
  expectedRevision?: string | null | undefined;
@@ -2295,6 +2410,9 @@ export type NewsletterIssueCreatePayload = {
2295
2410
  export type NewsletterIssueDocument = {
2296
2411
  projectId: TemplateProjectId;
2297
2412
  revision: string;
2413
+ /**
2414
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
2415
+ */
2298
2416
  path: string;
2299
2417
  content: string;
2300
2418
  };
@@ -2304,6 +2422,9 @@ export type NewsletterIssueList = {
2304
2422
  items: Array<NewsletterIssueListItem>;
2305
2423
  };
2306
2424
  export type NewsletterIssueListItem = {
2425
+ /**
2426
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
2427
+ */
2307
2428
  path: string;
2308
2429
  title: string | null;
2309
2430
  latestSend: NewsletterIssueSend | null;
@@ -3760,6 +3881,10 @@ export type EmailSenderPage = {
3760
3881
  verificationStatus: "pending" | "verified" | "failed";
3761
3882
  verifiedAt: string | null;
3762
3883
  verificationToken: string | null;
3884
+ /**
3885
+ * Whether a send from this address passes the ownership check every send runs: the sender is verified and active, and the address or its domain is a sending identity this organization owns. Always false for a pending, failed, or inactive sender. A verified sender whose domain is no longer verified here, or whose sending identity setup failed, is not sendable, and sends from it are refused with 403.
3886
+ */
3887
+ sendable: boolean;
3763
3888
  providerLifecycle: "provisioning" | "active" | "deleting" | "failed";
3764
3889
  providerFailureCode: string | null;
3765
3890
  isDefault: boolean;
@@ -4221,6 +4346,9 @@ export type EmailCampaignContent = {
4221
4346
  * Render a saved Markdown issue from the audience topic's repository. Its saved title and preheader supply the email content; templateData supplies recipient fallbacks.
4222
4347
  */
4223
4348
  issue?: {
4349
+ /**
4350
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
4351
+ */
4224
4352
  path: string;
4225
4353
  commit: string;
4226
4354
  } | null | undefined;
@@ -4376,6 +4504,9 @@ export type EmailCampaignContentInput = {
4376
4504
  * Render a saved Markdown issue from the audience topic's repository. Its saved title and preheader supply the email content; templateData supplies recipient fallbacks.
4377
4505
  */
4378
4506
  issue?: {
4507
+ /**
4508
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
4509
+ */
4379
4510
  path: string;
4380
4511
  commit: string;
4381
4512
  } | null | undefined;
@@ -8846,6 +8977,10 @@ export type EmailGetSenderResponses = {
8846
8977
  verificationStatus: "pending" | "verified" | "failed";
8847
8978
  verifiedAt: string | null;
8848
8979
  verificationToken: string | null;
8980
+ /**
8981
+ * Whether a send from this address passes the ownership check every send runs: the sender is verified and active, and the address or its domain is a sending identity this organization owns. Always false for a pending, failed, or inactive sender. A verified sender whose domain is no longer verified here, or whose sending identity setup failed, is not sendable, and sends from it are refused with 403.
8982
+ */
8983
+ sendable: boolean;
8849
8984
  providerLifecycle: "provisioning" | "active" | "deleting" | "failed";
8850
8985
  providerFailureCode: string | null;
8851
8986
  isDefault: boolean;
@@ -16113,6 +16248,9 @@ export type NewsletterIssuesListResponses = {
16113
16248
  export type NewsletterIssuesListResponse = NewsletterIssuesListResponses[keyof NewsletterIssuesListResponses];
16114
16249
  export type NewsletterIssuesUpdateData = {
16115
16250
  body: {
16251
+ /**
16252
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
16253
+ */
16116
16254
  path: string;
16117
16255
  content: string;
16118
16256
  expectedRevision: string;
@@ -16188,6 +16326,9 @@ export type NewsletterIssuesUpdateResponses = {
16188
16326
  status: "added" | "modified" | "deleted";
16189
16327
  }>;
16190
16328
  conflicts: Array<{
16329
+ /**
16330
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
16331
+ */
16191
16332
  path: string;
16192
16333
  base: string | null;
16193
16334
  draft: string | null;
@@ -16205,6 +16346,9 @@ export type NewsletterIssuesUpdateResponses = {
16205
16346
  root: "/project";
16206
16347
  access: "read-write";
16207
16348
  } | {
16349
+ /**
16350
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16351
+ */
16208
16352
  root: string;
16209
16353
  digest: string;
16210
16354
  fileCount: number;
@@ -16215,6 +16359,9 @@ export type NewsletterIssuesUpdateResponses = {
16215
16359
  slug: string;
16216
16360
  name: string;
16217
16361
  } | {
16362
+ /**
16363
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16364
+ */
16218
16365
  root: string;
16219
16366
  digest: string;
16220
16367
  fileCount: number;
@@ -16224,6 +16371,9 @@ export type NewsletterIssuesUpdateResponses = {
16224
16371
  resourceId: string;
16225
16372
  name: string;
16226
16373
  } | {
16374
+ /**
16375
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16376
+ */
16227
16377
  root: string;
16228
16378
  digest: string;
16229
16379
  fileCount: number;
@@ -16254,6 +16404,9 @@ export type NewsletterIssuesUpdateResponses = {
16254
16404
  export type NewsletterIssuesUpdateResponse = NewsletterIssuesUpdateResponses[keyof NewsletterIssuesUpdateResponses];
16255
16405
  export type NewsletterIssuesCreateData = {
16256
16406
  body: {
16407
+ /**
16408
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
16409
+ */
16257
16410
  path: string;
16258
16411
  content: string;
16259
16412
  expectedRevision?: string | null | undefined;
@@ -16329,6 +16482,9 @@ export type NewsletterIssuesCreateResponses = {
16329
16482
  status: "added" | "modified" | "deleted";
16330
16483
  }>;
16331
16484
  conflicts: Array<{
16485
+ /**
16486
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
16487
+ */
16332
16488
  path: string;
16333
16489
  base: string | null;
16334
16490
  draft: string | null;
@@ -16346,6 +16502,9 @@ export type NewsletterIssuesCreateResponses = {
16346
16502
  root: "/project";
16347
16503
  access: "read-write";
16348
16504
  } | {
16505
+ /**
16506
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16507
+ */
16349
16508
  root: string;
16350
16509
  digest: string;
16351
16510
  fileCount: number;
@@ -16356,6 +16515,9 @@ export type NewsletterIssuesCreateResponses = {
16356
16515
  slug: string;
16357
16516
  name: string;
16358
16517
  } | {
16518
+ /**
16519
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16520
+ */
16359
16521
  root: string;
16360
16522
  digest: string;
16361
16523
  fileCount: number;
@@ -16365,6 +16527,9 @@ export type NewsletterIssuesCreateResponses = {
16365
16527
  resourceId: string;
16366
16528
  name: string;
16367
16529
  } | {
16530
+ /**
16531
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16532
+ */
16368
16533
  root: string;
16369
16534
  digest: string;
16370
16535
  fileCount: number;
@@ -16463,6 +16628,9 @@ export type NewsletterIssuesOpenResponses = {
16463
16628
  status: "added" | "modified" | "deleted";
16464
16629
  }>;
16465
16630
  conflicts: Array<{
16631
+ /**
16632
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
16633
+ */
16466
16634
  path: string;
16467
16635
  base: string | null;
16468
16636
  draft: string | null;
@@ -16480,6 +16648,9 @@ export type NewsletterIssuesOpenResponses = {
16480
16648
  root: "/project";
16481
16649
  access: "read-write";
16482
16650
  } | {
16651
+ /**
16652
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16653
+ */
16483
16654
  root: string;
16484
16655
  digest: string;
16485
16656
  fileCount: number;
@@ -16490,6 +16661,9 @@ export type NewsletterIssuesOpenResponses = {
16490
16661
  slug: string;
16491
16662
  name: string;
16492
16663
  } | {
16664
+ /**
16665
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16666
+ */
16493
16667
  root: string;
16494
16668
  digest: string;
16495
16669
  fileCount: number;
@@ -16499,6 +16673,9 @@ export type NewsletterIssuesOpenResponses = {
16499
16673
  resourceId: string;
16500
16674
  name: string;
16501
16675
  } | {
16676
+ /**
16677
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16678
+ */
16502
16679
  root: string;
16503
16680
  digest: string;
16504
16681
  fileCount: number;
@@ -16533,6 +16710,9 @@ export type NewsletterIssuesGetData = {
16533
16710
  id: NewsletterId;
16534
16711
  };
16535
16712
  query: {
16713
+ /**
16714
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
16715
+ */
16536
16716
  path: string;
16537
16717
  expectedRevision: string;
16538
16718
  };
@@ -16586,6 +16766,9 @@ export type NewsletterIssuesGetResponses = {
16586
16766
  export type NewsletterIssuesGetResponse = NewsletterIssuesGetResponses[keyof NewsletterIssuesGetResponses];
16587
16767
  export type NewsletterIssuesRemoveData = {
16588
16768
  body: {
16769
+ /**
16770
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
16771
+ */
16589
16772
  path: string;
16590
16773
  expectedRevision: string;
16591
16774
  };
@@ -16660,6 +16843,9 @@ export type NewsletterIssuesRemoveResponses = {
16660
16843
  status: "added" | "modified" | "deleted";
16661
16844
  }>;
16662
16845
  conflicts: Array<{
16846
+ /**
16847
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
16848
+ */
16663
16849
  path: string;
16664
16850
  base: string | null;
16665
16851
  draft: string | null;
@@ -16677,6 +16863,9 @@ export type NewsletterIssuesRemoveResponses = {
16677
16863
  root: "/project";
16678
16864
  access: "read-write";
16679
16865
  } | {
16866
+ /**
16867
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16868
+ */
16680
16869
  root: string;
16681
16870
  digest: string;
16682
16871
  fileCount: number;
@@ -16687,6 +16876,9 @@ export type NewsletterIssuesRemoveResponses = {
16687
16876
  slug: string;
16688
16877
  name: string;
16689
16878
  } | {
16879
+ /**
16880
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16881
+ */
16690
16882
  root: string;
16691
16883
  digest: string;
16692
16884
  fileCount: number;
@@ -16696,6 +16888,9 @@ export type NewsletterIssuesRemoveResponses = {
16696
16888
  resourceId: string;
16697
16889
  name: string;
16698
16890
  } | {
16891
+ /**
16892
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16893
+ */
16699
16894
  root: string;
16700
16895
  digest: string;
16701
16896
  fileCount: number;
@@ -16841,6 +17036,9 @@ export type NewsletterIssuesSaveResponses = {
16841
17036
  export type NewsletterIssuesSaveResponse = NewsletterIssuesSaveResponses[keyof NewsletterIssuesSaveResponses];
16842
17037
  export type NewsletterIssuesCheckData = {
16843
17038
  body: {
17039
+ /**
17040
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
17041
+ */
16844
17042
  path: string;
16845
17043
  expectedRevision: string;
16846
17044
  };
@@ -16899,7 +17097,7 @@ export type NewsletterIssuesCheckResponses = {
16899
17097
  200: {
16900
17098
  projectId: TemplateProjectId;
16901
17099
  revision: string;
16902
- entryPath: string | string;
17100
+ entryPath: string;
16903
17101
  declaration: {
16904
17102
  codeDigest: string;
16905
17103
  templateId: string;
@@ -16913,6 +17111,9 @@ export type NewsletterIssuesCheckResponses = {
16913
17111
  fixtures: Array<string>;
16914
17112
  } | null;
16915
17113
  issue?: {
17114
+ /**
17115
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
17116
+ */
16916
17117
  path: string;
16917
17118
  frontmatter: {
16918
17119
  title: string;
@@ -16981,6 +17182,9 @@ export type NewsletterIssuesCheckResponses = {
16981
17182
  export type NewsletterIssuesCheckResponse = NewsletterIssuesCheckResponses[keyof NewsletterIssuesCheckResponses];
16982
17183
  export type NewsletterIssuesRenderData = {
16983
17184
  body: {
17185
+ /**
17186
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
17187
+ */
16984
17188
  path: string;
16985
17189
  expectedRevision: string;
16986
17190
  fixture: string;
@@ -17041,7 +17245,7 @@ export type NewsletterIssuesRenderResponses = {
17041
17245
  200: {
17042
17246
  projectId: TemplateProjectId;
17043
17247
  revision: string;
17044
- entryPath: string | string;
17248
+ entryPath: string;
17045
17249
  declaration: {
17046
17250
  codeDigest: string;
17047
17251
  templateId: string;
@@ -17055,6 +17259,9 @@ export type NewsletterIssuesRenderResponses = {
17055
17259
  fixtures: Array<string>;
17056
17260
  } | null;
17057
17261
  issue?: {
17262
+ /**
17263
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
17264
+ */
17058
17265
  path: string;
17059
17266
  frontmatter: {
17060
17267
  title: string;
@@ -18583,6 +18790,118 @@ export type TemplatesUpdateResponses = {
18583
18790
  200: Template;
18584
18791
  };
18585
18792
  export type TemplatesUpdateResponse = TemplatesUpdateResponses[keyof TemplatesUpdateResponses];
18793
+ export type TemplatesSuggestStartersData = {
18794
+ body: {
18795
+ /**
18796
+ * What the email is for, as a person would ask for it: who sends it, to whom, and why. Naming a company's email ("like the Vercel login email") starts from Samva's recreation of it when the gallery has one.
18797
+ */
18798
+ brief: string;
18799
+ };
18800
+ path?: never;
18801
+ query?: never;
18802
+ url: "/v1/templates/suggestions";
18803
+ };
18804
+ export type TemplatesSuggestStartersErrors = {
18805
+ /**
18806
+ * MalformedRequestError
18807
+ */
18808
+ 400: MalformedRequestError;
18809
+ /**
18810
+ * UnauthorizedError
18811
+ */
18812
+ 401: UnauthorizedError;
18813
+ /**
18814
+ * ForbiddenError
18815
+ */
18816
+ 403: ForbiddenError;
18817
+ /**
18818
+ * ValidationError
18819
+ */
18820
+ 422: ValidationError;
18821
+ /**
18822
+ * InternalError
18823
+ */
18824
+ 500: InternalError;
18825
+ /**
18826
+ * GatewayTimeoutError
18827
+ */
18828
+ 504: GatewayTimeoutError;
18829
+ };
18830
+ export type TemplatesSuggestStartersError = TemplatesSuggestStartersErrors[keyof TemplatesSuggestStartersErrors];
18831
+ export type TemplatesSuggestStartersResponses = {
18832
+ /**
18833
+ * TemplateStarterSuggestions
18834
+ */
18835
+ 200: TemplateStarterSuggestions;
18836
+ };
18837
+ export type TemplatesSuggestStartersResponse = TemplatesSuggestStartersResponses[keyof TemplatesSuggestStartersResponses];
18838
+ export type TemplatesCreateFromBriefData = {
18839
+ body: {
18840
+ /**
18841
+ * What the email is for, as a person would ask for it: who sends it, to whom, and why. Naming a company's email ("like the Vercel login email") starts from Samva's recreation of it when the gallery has one.
18842
+ */
18843
+ brief: string;
18844
+ name?: string | null | undefined;
18845
+ galleryTemplateId?: string | null | undefined;
18846
+ useBrand?: boolean | null | undefined;
18847
+ /**
18848
+ * The namespace the new template project belongs to. Omit for organization level. A namespace-scoped key always creates in its own namespace.
18849
+ */
18850
+ namespaceId?: NamespaceId | null | undefined;
18851
+ };
18852
+ headers: {
18853
+ "idempotency-key": string;
18854
+ };
18855
+ path?: never;
18856
+ query?: never;
18857
+ url: "/v1/templates/from-brief";
18858
+ };
18859
+ export type TemplatesCreateFromBriefErrors = {
18860
+ /**
18861
+ * MalformedRequestError
18862
+ */
18863
+ 400: MalformedRequestError;
18864
+ /**
18865
+ * UnauthorizedError
18866
+ */
18867
+ 401: UnauthorizedError;
18868
+ /**
18869
+ * ForbiddenError
18870
+ */
18871
+ 403: ForbiddenError;
18872
+ /**
18873
+ * ResourceNotFoundError
18874
+ */
18875
+ 404: ResourceNotFoundError;
18876
+ /**
18877
+ * ConflictError | TemplateInUseError
18878
+ */
18879
+ 409: ConflictError | TemplateInUseError;
18880
+ /**
18881
+ * TemplateSourceError | ValidationError
18882
+ */
18883
+ 422: TemplateSourceError | ValidationError;
18884
+ /**
18885
+ * InternalError
18886
+ */
18887
+ 500: InternalError;
18888
+ /**
18889
+ * ServiceUnavailableError
18890
+ */
18891
+ 503: ServiceUnavailableError;
18892
+ /**
18893
+ * GatewayTimeoutError
18894
+ */
18895
+ 504: GatewayTimeoutError;
18896
+ };
18897
+ export type TemplatesCreateFromBriefError = TemplatesCreateFromBriefErrors[keyof TemplatesCreateFromBriefErrors];
18898
+ export type TemplatesCreateFromBriefResponses = {
18899
+ /**
18900
+ * Success
18901
+ */
18902
+ 201: TemplateFromBrief;
18903
+ };
18904
+ export type TemplatesCreateFromBriefResponse = TemplatesCreateFromBriefResponses[keyof TemplatesCreateFromBriefResponses];
18586
18905
  export type TemplatesCreateFromWebsiteData = {
18587
18906
  body: {
18588
18907
  /**
@@ -18650,6 +18969,9 @@ export type TemplatesCreateFromWebsiteResponses = {
18650
18969
  export type TemplatesCreateFromWebsiteResponse = TemplatesCreateFromWebsiteResponses[keyof TemplatesCreateFromWebsiteResponses];
18651
18970
  export type TemplatesAddEntryData = {
18652
18971
  body: {
18972
+ /**
18973
+ * A relative .tsx file under templates or emails/, at most 1024 characters, with no backslash, . or .., or .git segments.
18974
+ */
18653
18975
  entryPath: string;
18654
18976
  name: string;
18655
18977
  slug: string;
@@ -18758,6 +19080,9 @@ export type TemplatesPatchWorkspaceData = {
18758
19080
  body: {
18759
19081
  expectedRevision: string;
18760
19082
  patches: Array<{
19083
+ /**
19084
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19085
+ */
18761
19086
  path: string;
18762
19087
  content: string | null;
18763
19088
  }>;
@@ -18833,6 +19158,9 @@ export type TemplatesPatchWorkspaceResponses = {
18833
19158
  status: "added" | "modified" | "deleted";
18834
19159
  }>;
18835
19160
  conflicts: Array<{
19161
+ /**
19162
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19163
+ */
18836
19164
  path: string;
18837
19165
  base: string | null;
18838
19166
  draft: string | null;
@@ -18850,6 +19178,9 @@ export type TemplatesPatchWorkspaceResponses = {
18850
19178
  root: "/project";
18851
19179
  access: "read-write";
18852
19180
  } | {
19181
+ /**
19182
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19183
+ */
18853
19184
  root: string;
18854
19185
  digest: string;
18855
19186
  fileCount: number;
@@ -18860,6 +19191,9 @@ export type TemplatesPatchWorkspaceResponses = {
18860
19191
  slug: string;
18861
19192
  name: string;
18862
19193
  } | {
19194
+ /**
19195
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19196
+ */
18863
19197
  root: string;
18864
19198
  digest: string;
18865
19199
  fileCount: number;
@@ -18869,6 +19203,9 @@ export type TemplatesPatchWorkspaceResponses = {
18869
19203
  resourceId: string;
18870
19204
  name: string;
18871
19205
  } | {
19206
+ /**
19207
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19208
+ */
18872
19209
  root: string;
18873
19210
  digest: string;
18874
19211
  fileCount: number;
@@ -18967,6 +19304,9 @@ export type TemplatesOpenWorkspaceResponses = {
18967
19304
  status: "added" | "modified" | "deleted";
18968
19305
  }>;
18969
19306
  conflicts: Array<{
19307
+ /**
19308
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19309
+ */
18970
19310
  path: string;
18971
19311
  base: string | null;
18972
19312
  draft: string | null;
@@ -18984,6 +19324,9 @@ export type TemplatesOpenWorkspaceResponses = {
18984
19324
  root: "/project";
18985
19325
  access: "read-write";
18986
19326
  } | {
19327
+ /**
19328
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19329
+ */
18987
19330
  root: string;
18988
19331
  digest: string;
18989
19332
  fileCount: number;
@@ -18994,6 +19337,9 @@ export type TemplatesOpenWorkspaceResponses = {
18994
19337
  slug: string;
18995
19338
  name: string;
18996
19339
  } | {
19340
+ /**
19341
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19342
+ */
18997
19343
  root: string;
18998
19344
  digest: string;
18999
19345
  fileCount: number;
@@ -19003,6 +19349,9 @@ export type TemplatesOpenWorkspaceResponses = {
19003
19349
  resourceId: string;
19004
19350
  name: string;
19005
19351
  } | {
19352
+ /**
19353
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19354
+ */
19006
19355
  root: string;
19007
19356
  digest: string;
19008
19357
  fileCount: number;
@@ -19089,6 +19438,9 @@ export type TemplatesDiffWorkspaceResponses = {
19089
19438
  baseCommit: string;
19090
19439
  revision: string;
19091
19440
  changes: Array<{
19441
+ /**
19442
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19443
+ */
19092
19444
  path: string;
19093
19445
  before: string | null;
19094
19446
  after: string | null;
@@ -19105,6 +19457,9 @@ export type TemplatesDiffWorkspaceResponse = TemplatesDiffWorkspaceResponses[key
19105
19457
  export type TemplatesPutWorkspaceAssetData = {
19106
19458
  body: {
19107
19459
  expectedRevision: string;
19460
+ /**
19461
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19462
+ */
19108
19463
  path: string;
19109
19464
  contentBase64: string;
19110
19465
  replace: boolean;
@@ -19180,6 +19535,9 @@ export type TemplatesPutWorkspaceAssetResponses = {
19180
19535
  status: "added" | "modified" | "deleted";
19181
19536
  }>;
19182
19537
  conflicts: Array<{
19538
+ /**
19539
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19540
+ */
19183
19541
  path: string;
19184
19542
  base: string | null;
19185
19543
  draft: string | null;
@@ -19197,6 +19555,9 @@ export type TemplatesPutWorkspaceAssetResponses = {
19197
19555
  root: "/project";
19198
19556
  access: "read-write";
19199
19557
  } | {
19558
+ /**
19559
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19560
+ */
19200
19561
  root: string;
19201
19562
  digest: string;
19202
19563
  fileCount: number;
@@ -19207,6 +19568,9 @@ export type TemplatesPutWorkspaceAssetResponses = {
19207
19568
  slug: string;
19208
19569
  name: string;
19209
19570
  } | {
19571
+ /**
19572
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19573
+ */
19210
19574
  root: string;
19211
19575
  digest: string;
19212
19576
  fileCount: number;
@@ -19216,6 +19580,9 @@ export type TemplatesPutWorkspaceAssetResponses = {
19216
19580
  resourceId: string;
19217
19581
  name: string;
19218
19582
  } | {
19583
+ /**
19584
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19585
+ */
19219
19586
  root: string;
19220
19587
  digest: string;
19221
19588
  fileCount: number;
@@ -19247,6 +19614,9 @@ export type TemplatesPutWorkspaceAssetResponse = TemplatesPutWorkspaceAssetRespo
19247
19614
  export type TemplatesResolveWorkspaceConflictData = {
19248
19615
  body: {
19249
19616
  expectedRevision: string;
19617
+ /**
19618
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19619
+ */
19250
19620
  path: string;
19251
19621
  resolution: "draft" | "main" | {
19252
19622
  content: string | null;
@@ -19323,6 +19693,9 @@ export type TemplatesResolveWorkspaceConflictResponses = {
19323
19693
  status: "added" | "modified" | "deleted";
19324
19694
  }>;
19325
19695
  conflicts: Array<{
19696
+ /**
19697
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19698
+ */
19326
19699
  path: string;
19327
19700
  base: string | null;
19328
19701
  draft: string | null;
@@ -19340,6 +19713,9 @@ export type TemplatesResolveWorkspaceConflictResponses = {
19340
19713
  root: "/project";
19341
19714
  access: "read-write";
19342
19715
  } | {
19716
+ /**
19717
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19718
+ */
19343
19719
  root: string;
19344
19720
  digest: string;
19345
19721
  fileCount: number;
@@ -19350,6 +19726,9 @@ export type TemplatesResolveWorkspaceConflictResponses = {
19350
19726
  slug: string;
19351
19727
  name: string;
19352
19728
  } | {
19729
+ /**
19730
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19731
+ */
19353
19732
  root: string;
19354
19733
  digest: string;
19355
19734
  fileCount: number;
@@ -19359,6 +19738,9 @@ export type TemplatesResolveWorkspaceConflictResponses = {
19359
19738
  resourceId: string;
19360
19739
  name: string;
19361
19740
  } | {
19741
+ /**
19742
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19743
+ */
19362
19744
  root: string;
19363
19745
  digest: string;
19364
19746
  fileCount: number;
@@ -19579,6 +19961,9 @@ export type TemplatesRestoreWorkspaceResponses = {
19579
19961
  status: "added" | "modified" | "deleted";
19580
19962
  }>;
19581
19963
  conflicts: Array<{
19964
+ /**
19965
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19966
+ */
19582
19967
  path: string;
19583
19968
  base: string | null;
19584
19969
  draft: string | null;
@@ -19596,6 +19981,9 @@ export type TemplatesRestoreWorkspaceResponses = {
19596
19981
  root: "/project";
19597
19982
  access: "read-write";
19598
19983
  } | {
19984
+ /**
19985
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19986
+ */
19599
19987
  root: string;
19600
19988
  digest: string;
19601
19989
  fileCount: number;
@@ -19606,6 +19994,9 @@ export type TemplatesRestoreWorkspaceResponses = {
19606
19994
  slug: string;
19607
19995
  name: string;
19608
19996
  } | {
19997
+ /**
19998
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19999
+ */
19609
20000
  root: string;
19610
20001
  digest: string;
19611
20002
  fileCount: number;
@@ -19615,6 +20006,9 @@ export type TemplatesRestoreWorkspaceResponses = {
19615
20006
  resourceId: string;
19616
20007
  name: string;
19617
20008
  } | {
20009
+ /**
20010
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
20011
+ */
19618
20012
  root: string;
19619
20013
  digest: string;
19620
20014
  fileCount: number;
@@ -19774,7 +20168,7 @@ export type TemplatesCheckWorkspaceResponses = {
19774
20168
  200: {
19775
20169
  projectId: TemplateProjectId;
19776
20170
  revision: string;
19777
- entryPath: string | string;
20171
+ entryPath: string;
19778
20172
  declaration: {
19779
20173
  codeDigest: string;
19780
20174
  templateId: string;
@@ -19788,6 +20182,9 @@ export type TemplatesCheckWorkspaceResponses = {
19788
20182
  fixtures: Array<string>;
19789
20183
  } | null;
19790
20184
  issue?: {
20185
+ /**
20186
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
20187
+ */
19791
20188
  path: string;
19792
20189
  frontmatter: {
19793
20190
  title: string;
@@ -19911,7 +20308,7 @@ export type TemplatesRenderWorkspaceFixtureResponses = {
19911
20308
  200: {
19912
20309
  projectId: TemplateProjectId;
19913
20310
  revision: string;
19914
- entryPath: string | string;
20311
+ entryPath: string;
19915
20312
  declaration: {
19916
20313
  codeDigest: string;
19917
20314
  templateId: string;
@@ -19925,6 +20322,9 @@ export type TemplatesRenderWorkspaceFixtureResponses = {
19925
20322
  fixtures: Array<string>;
19926
20323
  } | null;
19927
20324
  issue?: {
20325
+ /**
20326
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
20327
+ */
19928
20328
  path: string;
19929
20329
  frontmatter: {
19930
20330
  title: string;
@@ -20069,6 +20469,9 @@ export type TemplatesPublishData = {
20069
20469
  body: {
20070
20470
  projectId: TemplateProjectId;
20071
20471
  commitSha: string;
20472
+ /**
20473
+ * A relative .tsx file under templates or emails/, at most 1024 characters, with no backslash, . or .., or .git segments.
20474
+ */
20072
20475
  entryPath: string;
20073
20476
  expectedWorkspaceRevision: string;
20074
20477
  ifCurrentPublicationId?: TemplatePublicationId | null | undefined;
@@ -20130,6 +20533,9 @@ export type TemplatesPublishResponses = {
20130
20533
  inputContractId: TemplateInputContractId;
20131
20534
  commitSha: string;
20132
20535
  treeSha: string;
20536
+ /**
20537
+ * A relative .tsx file under templates or emails/, at most 1024 characters, with no backslash, . or .., or .git segments.
20538
+ */
20133
20539
  entryPath: string;
20134
20540
  buildIdentity: string;
20135
20541
  manifest: {
@@ -20158,7 +20564,7 @@ export type TemplatesPublishResponses = {
20158
20564
  source: {
20159
20565
  commitSha: string;
20160
20566
  treeSha: string;
20161
- entryPath: string | string;
20567
+ entryPath: string;
20162
20568
  treeDigest: string;
20163
20569
  };
20164
20570
  brand?: {
@@ -20288,6 +20694,9 @@ export type TemplatesGetPublicationResponses = {
20288
20694
  inputContractId: TemplateInputContractId;
20289
20695
  commitSha: string;
20290
20696
  treeSha: string;
20697
+ /**
20698
+ * A relative .tsx file under templates or emails/, at most 1024 characters, with no backslash, . or .., or .git segments.
20699
+ */
20291
20700
  entryPath: string;
20292
20701
  buildIdentity: string;
20293
20702
  manifest: {
@@ -20316,7 +20725,7 @@ export type TemplatesGetPublicationResponses = {
20316
20725
  source: {
20317
20726
  commitSha: string;
20318
20727
  treeSha: string;
20319
- entryPath: string | string;
20728
+ entryPath: string;
20320
20729
  treeDigest: string;
20321
20730
  };
20322
20731
  brand?: {
@@ -20685,6 +21094,9 @@ export type TemplatesAttachWorkspaceResourceData = {
20685
21094
  resourceId: string;
20686
21095
  name: string;
20687
21096
  files: Array<{
21097
+ /**
21098
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
21099
+ */
20688
21100
  path: string;
20689
21101
  mediaType: string;
20690
21102
  contentBase64: string;
@@ -20761,6 +21173,9 @@ export type TemplatesAttachWorkspaceResourceResponses = {
20761
21173
  status: "added" | "modified" | "deleted";
20762
21174
  }>;
20763
21175
  conflicts: Array<{
21176
+ /**
21177
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
21178
+ */
20764
21179
  path: string;
20765
21180
  base: string | null;
20766
21181
  draft: string | null;
@@ -20778,6 +21193,9 @@ export type TemplatesAttachWorkspaceResourceResponses = {
20778
21193
  root: "/project";
20779
21194
  access: "read-write";
20780
21195
  } | {
21196
+ /**
21197
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
21198
+ */
20781
21199
  root: string;
20782
21200
  digest: string;
20783
21201
  fileCount: number;
@@ -20788,6 +21206,9 @@ export type TemplatesAttachWorkspaceResourceResponses = {
20788
21206
  slug: string;
20789
21207
  name: string;
20790
21208
  } | {
21209
+ /**
21210
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
21211
+ */
20791
21212
  root: string;
20792
21213
  digest: string;
20793
21214
  fileCount: number;
@@ -20797,6 +21218,9 @@ export type TemplatesAttachWorkspaceResourceResponses = {
20797
21218
  resourceId: string;
20798
21219
  name: string;
20799
21220
  } | {
21221
+ /**
21222
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
21223
+ */
20800
21224
  root: string;
20801
21225
  digest: string;
20802
21226
  fileCount: number;
@@ -20896,6 +21320,9 @@ export type TemplatesRemoveWorkspaceResourceResponses = {
20896
21320
  status: "added" | "modified" | "deleted";
20897
21321
  }>;
20898
21322
  conflicts: Array<{
21323
+ /**
21324
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
21325
+ */
20899
21326
  path: string;
20900
21327
  base: string | null;
20901
21328
  draft: string | null;
@@ -20913,6 +21340,9 @@ export type TemplatesRemoveWorkspaceResourceResponses = {
20913
21340
  root: "/project";
20914
21341
  access: "read-write";
20915
21342
  } | {
21343
+ /**
21344
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
21345
+ */
20916
21346
  root: string;
20917
21347
  digest: string;
20918
21348
  fileCount: number;
@@ -20923,6 +21353,9 @@ export type TemplatesRemoveWorkspaceResourceResponses = {
20923
21353
  slug: string;
20924
21354
  name: string;
20925
21355
  } | {
21356
+ /**
21357
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
21358
+ */
20926
21359
  root: string;
20927
21360
  digest: string;
20928
21361
  fileCount: number;
@@ -20932,6 +21365,9 @@ export type TemplatesRemoveWorkspaceResourceResponses = {
20932
21365
  resourceId: string;
20933
21366
  name: string;
20934
21367
  } | {
21368
+ /**
21369
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
21370
+ */
20935
21371
  root: string;
20936
21372
  digest: string;
20937
21373
  fileCount: number;