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.
@@ -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
  };
@@ -1570,6 +1570,10 @@ export type WhoamiOrganization = {
1570
1570
  id: OrganizationId;
1571
1571
  slug: string;
1572
1572
  name: string;
1573
+ /**
1574
+ * The organization’s hosted mail domain. Create mailbox addresses on this domain without adding or verifying a custom domain. It may differ from the organization slug.
1575
+ */
1576
+ hostedMailDomain: string;
1573
1577
  };
1574
1578
  export type FeedbackReceipt = {
1575
1579
  id: FeedbackId;
@@ -2003,6 +2007,9 @@ export type Template = {
2003
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.
2004
2008
  */
2005
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
+ */
2006
2013
  entryPath: string;
2007
2014
  status: "draft" | "pending" | "approved" | "published" | "rejected" | "archived";
2008
2015
  publishedAt: string | null;
@@ -2131,6 +2138,9 @@ export type TemplateFromDefaultInput = {
2131
2138
  name?: string | null | undefined;
2132
2139
  };
2133
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
+ */
2134
2144
  entryPath: string;
2135
2145
  name: string;
2136
2146
  slug: string;
@@ -2162,6 +2172,97 @@ export type CreateTemplateFromWebsitePayload = {
2162
2172
  */
2163
2173
  namespaceId?: NamespaceId | null | undefined;
2164
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
+ };
2165
2266
  export type CreateTemplatePayload = {
2166
2267
  name: string;
2167
2268
  projectName?: string | null | undefined;
@@ -2220,6 +2321,9 @@ export type TemplateSummary = {
2220
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.
2221
2322
  */
2222
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
+ */
2223
2327
  entryPath: string;
2224
2328
  status: "draft" | "pending" | "approved" | "published" | "rejected" | "archived";
2225
2329
  publishedAt: string | null;
@@ -2260,12 +2364,18 @@ export type PublicationDomainPage = {
2260
2364
  nextCursor: string | null;
2261
2365
  };
2262
2366
  export type NewsletterIssueRenderPayload = {
2367
+ /**
2368
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
2369
+ */
2263
2370
  path: string;
2264
2371
  expectedRevision: string;
2265
2372
  fixture: string;
2266
2373
  target: "email" | "web";
2267
2374
  };
2268
2375
  export type NewsletterIssueCheckPayload = {
2376
+ /**
2377
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
2378
+ */
2269
2379
  path: string;
2270
2380
  expectedRevision: string;
2271
2381
  };
@@ -2275,15 +2385,24 @@ export type NewsletterIssueSavePayload = {
2275
2385
  message: string;
2276
2386
  };
2277
2387
  export type NewsletterIssueRemovePayload = {
2388
+ /**
2389
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
2390
+ */
2278
2391
  path: string;
2279
2392
  expectedRevision: string;
2280
2393
  };
2281
2394
  export type NewsletterIssueUpdatePayload = {
2395
+ /**
2396
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
2397
+ */
2282
2398
  path: string;
2283
2399
  content: string;
2284
2400
  expectedRevision: string;
2285
2401
  };
2286
2402
  export type NewsletterIssueCreatePayload = {
2403
+ /**
2404
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
2405
+ */
2287
2406
  path: string;
2288
2407
  content: string;
2289
2408
  expectedRevision?: string | null | undefined;
@@ -2291,6 +2410,9 @@ export type NewsletterIssueCreatePayload = {
2291
2410
  export type NewsletterIssueDocument = {
2292
2411
  projectId: TemplateProjectId;
2293
2412
  revision: string;
2413
+ /**
2414
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
2415
+ */
2294
2416
  path: string;
2295
2417
  content: string;
2296
2418
  };
@@ -2300,6 +2422,9 @@ export type NewsletterIssueList = {
2300
2422
  items: Array<NewsletterIssueListItem>;
2301
2423
  };
2302
2424
  export type NewsletterIssueListItem = {
2425
+ /**
2426
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
2427
+ */
2303
2428
  path: string;
2304
2429
  title: string | null;
2305
2430
  latestSend: NewsletterIssueSend | null;
@@ -3756,6 +3881,10 @@ export type EmailSenderPage = {
3756
3881
  verificationStatus: "pending" | "verified" | "failed";
3757
3882
  verifiedAt: string | null;
3758
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;
3759
3888
  providerLifecycle: "provisioning" | "active" | "deleting" | "failed";
3760
3889
  providerFailureCode: string | null;
3761
3890
  isDefault: boolean;
@@ -4217,6 +4346,9 @@ export type EmailCampaignContent = {
4217
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.
4218
4347
  */
4219
4348
  issue?: {
4349
+ /**
4350
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
4351
+ */
4220
4352
  path: string;
4221
4353
  commit: string;
4222
4354
  } | null | undefined;
@@ -4372,6 +4504,9 @@ export type EmailCampaignContentInput = {
4372
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.
4373
4505
  */
4374
4506
  issue?: {
4507
+ /**
4508
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
4509
+ */
4375
4510
  path: string;
4376
4511
  commit: string;
4377
4512
  } | null | undefined;
@@ -8842,6 +8977,10 @@ export type EmailGetSenderResponses = {
8842
8977
  verificationStatus: "pending" | "verified" | "failed";
8843
8978
  verifiedAt: string | null;
8844
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;
8845
8984
  providerLifecycle: "provisioning" | "active" | "deleting" | "failed";
8846
8985
  providerFailureCode: string | null;
8847
8986
  isDefault: boolean;
@@ -16109,6 +16248,9 @@ export type NewsletterIssuesListResponses = {
16109
16248
  export type NewsletterIssuesListResponse = NewsletterIssuesListResponses[keyof NewsletterIssuesListResponses];
16110
16249
  export type NewsletterIssuesUpdateData = {
16111
16250
  body: {
16251
+ /**
16252
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
16253
+ */
16112
16254
  path: string;
16113
16255
  content: string;
16114
16256
  expectedRevision: string;
@@ -16184,6 +16326,9 @@ export type NewsletterIssuesUpdateResponses = {
16184
16326
  status: "added" | "modified" | "deleted";
16185
16327
  }>;
16186
16328
  conflicts: Array<{
16329
+ /**
16330
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
16331
+ */
16187
16332
  path: string;
16188
16333
  base: string | null;
16189
16334
  draft: string | null;
@@ -16201,6 +16346,9 @@ export type NewsletterIssuesUpdateResponses = {
16201
16346
  root: "/project";
16202
16347
  access: "read-write";
16203
16348
  } | {
16349
+ /**
16350
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16351
+ */
16204
16352
  root: string;
16205
16353
  digest: string;
16206
16354
  fileCount: number;
@@ -16211,6 +16359,9 @@ export type NewsletterIssuesUpdateResponses = {
16211
16359
  slug: string;
16212
16360
  name: string;
16213
16361
  } | {
16362
+ /**
16363
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16364
+ */
16214
16365
  root: string;
16215
16366
  digest: string;
16216
16367
  fileCount: number;
@@ -16220,6 +16371,9 @@ export type NewsletterIssuesUpdateResponses = {
16220
16371
  resourceId: string;
16221
16372
  name: string;
16222
16373
  } | {
16374
+ /**
16375
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16376
+ */
16223
16377
  root: string;
16224
16378
  digest: string;
16225
16379
  fileCount: number;
@@ -16250,6 +16404,9 @@ export type NewsletterIssuesUpdateResponses = {
16250
16404
  export type NewsletterIssuesUpdateResponse = NewsletterIssuesUpdateResponses[keyof NewsletterIssuesUpdateResponses];
16251
16405
  export type NewsletterIssuesCreateData = {
16252
16406
  body: {
16407
+ /**
16408
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
16409
+ */
16253
16410
  path: string;
16254
16411
  content: string;
16255
16412
  expectedRevision?: string | null | undefined;
@@ -16325,6 +16482,9 @@ export type NewsletterIssuesCreateResponses = {
16325
16482
  status: "added" | "modified" | "deleted";
16326
16483
  }>;
16327
16484
  conflicts: Array<{
16485
+ /**
16486
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
16487
+ */
16328
16488
  path: string;
16329
16489
  base: string | null;
16330
16490
  draft: string | null;
@@ -16342,6 +16502,9 @@ export type NewsletterIssuesCreateResponses = {
16342
16502
  root: "/project";
16343
16503
  access: "read-write";
16344
16504
  } | {
16505
+ /**
16506
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16507
+ */
16345
16508
  root: string;
16346
16509
  digest: string;
16347
16510
  fileCount: number;
@@ -16352,6 +16515,9 @@ export type NewsletterIssuesCreateResponses = {
16352
16515
  slug: string;
16353
16516
  name: string;
16354
16517
  } | {
16518
+ /**
16519
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16520
+ */
16355
16521
  root: string;
16356
16522
  digest: string;
16357
16523
  fileCount: number;
@@ -16361,6 +16527,9 @@ export type NewsletterIssuesCreateResponses = {
16361
16527
  resourceId: string;
16362
16528
  name: string;
16363
16529
  } | {
16530
+ /**
16531
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16532
+ */
16364
16533
  root: string;
16365
16534
  digest: string;
16366
16535
  fileCount: number;
@@ -16459,6 +16628,9 @@ export type NewsletterIssuesOpenResponses = {
16459
16628
  status: "added" | "modified" | "deleted";
16460
16629
  }>;
16461
16630
  conflicts: Array<{
16631
+ /**
16632
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
16633
+ */
16462
16634
  path: string;
16463
16635
  base: string | null;
16464
16636
  draft: string | null;
@@ -16476,6 +16648,9 @@ export type NewsletterIssuesOpenResponses = {
16476
16648
  root: "/project";
16477
16649
  access: "read-write";
16478
16650
  } | {
16651
+ /**
16652
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16653
+ */
16479
16654
  root: string;
16480
16655
  digest: string;
16481
16656
  fileCount: number;
@@ -16486,6 +16661,9 @@ export type NewsletterIssuesOpenResponses = {
16486
16661
  slug: string;
16487
16662
  name: string;
16488
16663
  } | {
16664
+ /**
16665
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16666
+ */
16489
16667
  root: string;
16490
16668
  digest: string;
16491
16669
  fileCount: number;
@@ -16495,6 +16673,9 @@ export type NewsletterIssuesOpenResponses = {
16495
16673
  resourceId: string;
16496
16674
  name: string;
16497
16675
  } | {
16676
+ /**
16677
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16678
+ */
16498
16679
  root: string;
16499
16680
  digest: string;
16500
16681
  fileCount: number;
@@ -16529,6 +16710,9 @@ export type NewsletterIssuesGetData = {
16529
16710
  id: NewsletterId;
16530
16711
  };
16531
16712
  query: {
16713
+ /**
16714
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
16715
+ */
16532
16716
  path: string;
16533
16717
  expectedRevision: string;
16534
16718
  };
@@ -16582,6 +16766,9 @@ export type NewsletterIssuesGetResponses = {
16582
16766
  export type NewsletterIssuesGetResponse = NewsletterIssuesGetResponses[keyof NewsletterIssuesGetResponses];
16583
16767
  export type NewsletterIssuesRemoveData = {
16584
16768
  body: {
16769
+ /**
16770
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
16771
+ */
16585
16772
  path: string;
16586
16773
  expectedRevision: string;
16587
16774
  };
@@ -16656,6 +16843,9 @@ export type NewsletterIssuesRemoveResponses = {
16656
16843
  status: "added" | "modified" | "deleted";
16657
16844
  }>;
16658
16845
  conflicts: Array<{
16846
+ /**
16847
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
16848
+ */
16659
16849
  path: string;
16660
16850
  base: string | null;
16661
16851
  draft: string | null;
@@ -16673,6 +16863,9 @@ export type NewsletterIssuesRemoveResponses = {
16673
16863
  root: "/project";
16674
16864
  access: "read-write";
16675
16865
  } | {
16866
+ /**
16867
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16868
+ */
16676
16869
  root: string;
16677
16870
  digest: string;
16678
16871
  fileCount: number;
@@ -16683,6 +16876,9 @@ export type NewsletterIssuesRemoveResponses = {
16683
16876
  slug: string;
16684
16877
  name: string;
16685
16878
  } | {
16879
+ /**
16880
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16881
+ */
16686
16882
  root: string;
16687
16883
  digest: string;
16688
16884
  fileCount: number;
@@ -16692,6 +16888,9 @@ export type NewsletterIssuesRemoveResponses = {
16692
16888
  resourceId: string;
16693
16889
  name: string;
16694
16890
  } | {
16891
+ /**
16892
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
16893
+ */
16695
16894
  root: string;
16696
16895
  digest: string;
16697
16896
  fileCount: number;
@@ -16837,6 +17036,9 @@ export type NewsletterIssuesSaveResponses = {
16837
17036
  export type NewsletterIssuesSaveResponse = NewsletterIssuesSaveResponses[keyof NewsletterIssuesSaveResponses];
16838
17037
  export type NewsletterIssuesCheckData = {
16839
17038
  body: {
17039
+ /**
17040
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
17041
+ */
16840
17042
  path: string;
16841
17043
  expectedRevision: string;
16842
17044
  };
@@ -16895,7 +17097,7 @@ export type NewsletterIssuesCheckResponses = {
16895
17097
  200: {
16896
17098
  projectId: TemplateProjectId;
16897
17099
  revision: string;
16898
- entryPath: string | string;
17100
+ entryPath: string;
16899
17101
  declaration: {
16900
17102
  codeDigest: string;
16901
17103
  templateId: string;
@@ -16909,6 +17111,9 @@ export type NewsletterIssuesCheckResponses = {
16909
17111
  fixtures: Array<string>;
16910
17112
  } | null;
16911
17113
  issue?: {
17114
+ /**
17115
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
17116
+ */
16912
17117
  path: string;
16913
17118
  frontmatter: {
16914
17119
  title: string;
@@ -16977,6 +17182,9 @@ export type NewsletterIssuesCheckResponses = {
16977
17182
  export type NewsletterIssuesCheckResponse = NewsletterIssuesCheckResponses[keyof NewsletterIssuesCheckResponses];
16978
17183
  export type NewsletterIssuesRenderData = {
16979
17184
  body: {
17185
+ /**
17186
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
17187
+ */
16980
17188
  path: string;
16981
17189
  expectedRevision: string;
16982
17190
  fixture: string;
@@ -17037,7 +17245,7 @@ export type NewsletterIssuesRenderResponses = {
17037
17245
  200: {
17038
17246
  projectId: TemplateProjectId;
17039
17247
  revision: string;
17040
- entryPath: string | string;
17248
+ entryPath: string;
17041
17249
  declaration: {
17042
17250
  codeDigest: string;
17043
17251
  templateId: string;
@@ -17051,6 +17259,9 @@ export type NewsletterIssuesRenderResponses = {
17051
17259
  fixtures: Array<string>;
17052
17260
  } | null;
17053
17261
  issue?: {
17262
+ /**
17263
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
17264
+ */
17054
17265
  path: string;
17055
17266
  frontmatter: {
17056
17267
  title: string;
@@ -18579,6 +18790,118 @@ export type TemplatesUpdateResponses = {
18579
18790
  200: Template;
18580
18791
  };
18581
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];
18582
18905
  export type TemplatesCreateFromWebsiteData = {
18583
18906
  body: {
18584
18907
  /**
@@ -18646,6 +18969,9 @@ export type TemplatesCreateFromWebsiteResponses = {
18646
18969
  export type TemplatesCreateFromWebsiteResponse = TemplatesCreateFromWebsiteResponses[keyof TemplatesCreateFromWebsiteResponses];
18647
18970
  export type TemplatesAddEntryData = {
18648
18971
  body: {
18972
+ /**
18973
+ * A relative .tsx file under templates or emails/, at most 1024 characters, with no backslash, . or .., or .git segments.
18974
+ */
18649
18975
  entryPath: string;
18650
18976
  name: string;
18651
18977
  slug: string;
@@ -18754,6 +19080,9 @@ export type TemplatesPatchWorkspaceData = {
18754
19080
  body: {
18755
19081
  expectedRevision: string;
18756
19082
  patches: Array<{
19083
+ /**
19084
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19085
+ */
18757
19086
  path: string;
18758
19087
  content: string | null;
18759
19088
  }>;
@@ -18829,6 +19158,9 @@ export type TemplatesPatchWorkspaceResponses = {
18829
19158
  status: "added" | "modified" | "deleted";
18830
19159
  }>;
18831
19160
  conflicts: Array<{
19161
+ /**
19162
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19163
+ */
18832
19164
  path: string;
18833
19165
  base: string | null;
18834
19166
  draft: string | null;
@@ -18846,6 +19178,9 @@ export type TemplatesPatchWorkspaceResponses = {
18846
19178
  root: "/project";
18847
19179
  access: "read-write";
18848
19180
  } | {
19181
+ /**
19182
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19183
+ */
18849
19184
  root: string;
18850
19185
  digest: string;
18851
19186
  fileCount: number;
@@ -18856,6 +19191,9 @@ export type TemplatesPatchWorkspaceResponses = {
18856
19191
  slug: string;
18857
19192
  name: string;
18858
19193
  } | {
19194
+ /**
19195
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19196
+ */
18859
19197
  root: string;
18860
19198
  digest: string;
18861
19199
  fileCount: number;
@@ -18865,6 +19203,9 @@ export type TemplatesPatchWorkspaceResponses = {
18865
19203
  resourceId: string;
18866
19204
  name: string;
18867
19205
  } | {
19206
+ /**
19207
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19208
+ */
18868
19209
  root: string;
18869
19210
  digest: string;
18870
19211
  fileCount: number;
@@ -18963,6 +19304,9 @@ export type TemplatesOpenWorkspaceResponses = {
18963
19304
  status: "added" | "modified" | "deleted";
18964
19305
  }>;
18965
19306
  conflicts: Array<{
19307
+ /**
19308
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19309
+ */
18966
19310
  path: string;
18967
19311
  base: string | null;
18968
19312
  draft: string | null;
@@ -18980,6 +19324,9 @@ export type TemplatesOpenWorkspaceResponses = {
18980
19324
  root: "/project";
18981
19325
  access: "read-write";
18982
19326
  } | {
19327
+ /**
19328
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19329
+ */
18983
19330
  root: string;
18984
19331
  digest: string;
18985
19332
  fileCount: number;
@@ -18990,6 +19337,9 @@ export type TemplatesOpenWorkspaceResponses = {
18990
19337
  slug: string;
18991
19338
  name: string;
18992
19339
  } | {
19340
+ /**
19341
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19342
+ */
18993
19343
  root: string;
18994
19344
  digest: string;
18995
19345
  fileCount: number;
@@ -18999,6 +19349,9 @@ export type TemplatesOpenWorkspaceResponses = {
18999
19349
  resourceId: string;
19000
19350
  name: string;
19001
19351
  } | {
19352
+ /**
19353
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19354
+ */
19002
19355
  root: string;
19003
19356
  digest: string;
19004
19357
  fileCount: number;
@@ -19085,6 +19438,9 @@ export type TemplatesDiffWorkspaceResponses = {
19085
19438
  baseCommit: string;
19086
19439
  revision: string;
19087
19440
  changes: Array<{
19441
+ /**
19442
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19443
+ */
19088
19444
  path: string;
19089
19445
  before: string | null;
19090
19446
  after: string | null;
@@ -19101,6 +19457,9 @@ export type TemplatesDiffWorkspaceResponse = TemplatesDiffWorkspaceResponses[key
19101
19457
  export type TemplatesPutWorkspaceAssetData = {
19102
19458
  body: {
19103
19459
  expectedRevision: string;
19460
+ /**
19461
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19462
+ */
19104
19463
  path: string;
19105
19464
  contentBase64: string;
19106
19465
  replace: boolean;
@@ -19176,6 +19535,9 @@ export type TemplatesPutWorkspaceAssetResponses = {
19176
19535
  status: "added" | "modified" | "deleted";
19177
19536
  }>;
19178
19537
  conflicts: Array<{
19538
+ /**
19539
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19540
+ */
19179
19541
  path: string;
19180
19542
  base: string | null;
19181
19543
  draft: string | null;
@@ -19193,6 +19555,9 @@ export type TemplatesPutWorkspaceAssetResponses = {
19193
19555
  root: "/project";
19194
19556
  access: "read-write";
19195
19557
  } | {
19558
+ /**
19559
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19560
+ */
19196
19561
  root: string;
19197
19562
  digest: string;
19198
19563
  fileCount: number;
@@ -19203,6 +19568,9 @@ export type TemplatesPutWorkspaceAssetResponses = {
19203
19568
  slug: string;
19204
19569
  name: string;
19205
19570
  } | {
19571
+ /**
19572
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19573
+ */
19206
19574
  root: string;
19207
19575
  digest: string;
19208
19576
  fileCount: number;
@@ -19212,6 +19580,9 @@ export type TemplatesPutWorkspaceAssetResponses = {
19212
19580
  resourceId: string;
19213
19581
  name: string;
19214
19582
  } | {
19583
+ /**
19584
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19585
+ */
19215
19586
  root: string;
19216
19587
  digest: string;
19217
19588
  fileCount: number;
@@ -19243,6 +19614,9 @@ export type TemplatesPutWorkspaceAssetResponse = TemplatesPutWorkspaceAssetRespo
19243
19614
  export type TemplatesResolveWorkspaceConflictData = {
19244
19615
  body: {
19245
19616
  expectedRevision: string;
19617
+ /**
19618
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19619
+ */
19246
19620
  path: string;
19247
19621
  resolution: "draft" | "main" | {
19248
19622
  content: string | null;
@@ -19319,6 +19693,9 @@ export type TemplatesResolveWorkspaceConflictResponses = {
19319
19693
  status: "added" | "modified" | "deleted";
19320
19694
  }>;
19321
19695
  conflicts: Array<{
19696
+ /**
19697
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19698
+ */
19322
19699
  path: string;
19323
19700
  base: string | null;
19324
19701
  draft: string | null;
@@ -19336,6 +19713,9 @@ export type TemplatesResolveWorkspaceConflictResponses = {
19336
19713
  root: "/project";
19337
19714
  access: "read-write";
19338
19715
  } | {
19716
+ /**
19717
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19718
+ */
19339
19719
  root: string;
19340
19720
  digest: string;
19341
19721
  fileCount: number;
@@ -19346,6 +19726,9 @@ export type TemplatesResolveWorkspaceConflictResponses = {
19346
19726
  slug: string;
19347
19727
  name: string;
19348
19728
  } | {
19729
+ /**
19730
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19731
+ */
19349
19732
  root: string;
19350
19733
  digest: string;
19351
19734
  fileCount: number;
@@ -19355,6 +19738,9 @@ export type TemplatesResolveWorkspaceConflictResponses = {
19355
19738
  resourceId: string;
19356
19739
  name: string;
19357
19740
  } | {
19741
+ /**
19742
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19743
+ */
19358
19744
  root: string;
19359
19745
  digest: string;
19360
19746
  fileCount: number;
@@ -19575,6 +19961,9 @@ export type TemplatesRestoreWorkspaceResponses = {
19575
19961
  status: "added" | "modified" | "deleted";
19576
19962
  }>;
19577
19963
  conflicts: Array<{
19964
+ /**
19965
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
19966
+ */
19578
19967
  path: string;
19579
19968
  base: string | null;
19580
19969
  draft: string | null;
@@ -19592,6 +19981,9 @@ export type TemplatesRestoreWorkspaceResponses = {
19592
19981
  root: "/project";
19593
19982
  access: "read-write";
19594
19983
  } | {
19984
+ /**
19985
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19986
+ */
19595
19987
  root: string;
19596
19988
  digest: string;
19597
19989
  fileCount: number;
@@ -19602,6 +19994,9 @@ export type TemplatesRestoreWorkspaceResponses = {
19602
19994
  slug: string;
19603
19995
  name: string;
19604
19996
  } | {
19997
+ /**
19998
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
19999
+ */
19605
20000
  root: string;
19606
20001
  digest: string;
19607
20002
  fileCount: number;
@@ -19611,6 +20006,9 @@ export type TemplatesRestoreWorkspaceResponses = {
19611
20006
  resourceId: string;
19612
20007
  name: string;
19613
20008
  } | {
20009
+ /**
20010
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
20011
+ */
19614
20012
  root: string;
19615
20013
  digest: string;
19616
20014
  fileCount: number;
@@ -19770,7 +20168,7 @@ export type TemplatesCheckWorkspaceResponses = {
19770
20168
  200: {
19771
20169
  projectId: TemplateProjectId;
19772
20170
  revision: string;
19773
- entryPath: string | string;
20171
+ entryPath: string;
19774
20172
  declaration: {
19775
20173
  codeDigest: string;
19776
20174
  templateId: string;
@@ -19784,6 +20182,9 @@ export type TemplatesCheckWorkspaceResponses = {
19784
20182
  fixtures: Array<string>;
19785
20183
  } | null;
19786
20184
  issue?: {
20185
+ /**
20186
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
20187
+ */
19787
20188
  path: string;
19788
20189
  frontmatter: {
19789
20190
  title: string;
@@ -19907,7 +20308,7 @@ export type TemplatesRenderWorkspaceFixtureResponses = {
19907
20308
  200: {
19908
20309
  projectId: TemplateProjectId;
19909
20310
  revision: string;
19910
- entryPath: string | string;
20311
+ entryPath: string;
19911
20312
  declaration: {
19912
20313
  codeDigest: string;
19913
20314
  templateId: string;
@@ -19921,6 +20322,9 @@ export type TemplatesRenderWorkspaceFixtureResponses = {
19921
20322
  fixtures: Array<string>;
19922
20323
  } | null;
19923
20324
  issue?: {
20325
+ /**
20326
+ * A .md file under issues/, at most 1024 characters, with no backslash, . or .., .git, or control characters.
20327
+ */
19924
20328
  path: string;
19925
20329
  frontmatter: {
19926
20330
  title: string;
@@ -20065,6 +20469,9 @@ export type TemplatesPublishData = {
20065
20469
  body: {
20066
20470
  projectId: TemplateProjectId;
20067
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
+ */
20068
20475
  entryPath: string;
20069
20476
  expectedWorkspaceRevision: string;
20070
20477
  ifCurrentPublicationId?: TemplatePublicationId | null | undefined;
@@ -20126,6 +20533,9 @@ export type TemplatesPublishResponses = {
20126
20533
  inputContractId: TemplateInputContractId;
20127
20534
  commitSha: string;
20128
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
+ */
20129
20539
  entryPath: string;
20130
20540
  buildIdentity: string;
20131
20541
  manifest: {
@@ -20154,7 +20564,7 @@ export type TemplatesPublishResponses = {
20154
20564
  source: {
20155
20565
  commitSha: string;
20156
20566
  treeSha: string;
20157
- entryPath: string | string;
20567
+ entryPath: string;
20158
20568
  treeDigest: string;
20159
20569
  };
20160
20570
  brand?: {
@@ -20284,6 +20694,9 @@ export type TemplatesGetPublicationResponses = {
20284
20694
  inputContractId: TemplateInputContractId;
20285
20695
  commitSha: string;
20286
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
+ */
20287
20700
  entryPath: string;
20288
20701
  buildIdentity: string;
20289
20702
  manifest: {
@@ -20312,7 +20725,7 @@ export type TemplatesGetPublicationResponses = {
20312
20725
  source: {
20313
20726
  commitSha: string;
20314
20727
  treeSha: string;
20315
- entryPath: string | string;
20728
+ entryPath: string;
20316
20729
  treeDigest: string;
20317
20730
  };
20318
20731
  brand?: {
@@ -20681,6 +21094,9 @@ export type TemplatesAttachWorkspaceResourceData = {
20681
21094
  resourceId: string;
20682
21095
  name: string;
20683
21096
  files: Array<{
21097
+ /**
21098
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
21099
+ */
20684
21100
  path: string;
20685
21101
  mediaType: string;
20686
21102
  contentBase64: string;
@@ -20757,6 +21173,9 @@ export type TemplatesAttachWorkspaceResourceResponses = {
20757
21173
  status: "added" | "modified" | "deleted";
20758
21174
  }>;
20759
21175
  conflicts: Array<{
21176
+ /**
21177
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
21178
+ */
20760
21179
  path: string;
20761
21180
  base: string | null;
20762
21181
  draft: string | null;
@@ -20774,6 +21193,9 @@ export type TemplatesAttachWorkspaceResourceResponses = {
20774
21193
  root: "/project";
20775
21194
  access: "read-write";
20776
21195
  } | {
21196
+ /**
21197
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
21198
+ */
20777
21199
  root: string;
20778
21200
  digest: string;
20779
21201
  fileCount: number;
@@ -20784,6 +21206,9 @@ export type TemplatesAttachWorkspaceResourceResponses = {
20784
21206
  slug: string;
20785
21207
  name: string;
20786
21208
  } | {
21209
+ /**
21210
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
21211
+ */
20787
21212
  root: string;
20788
21213
  digest: string;
20789
21214
  fileCount: number;
@@ -20793,6 +21218,9 @@ export type TemplatesAttachWorkspaceResourceResponses = {
20793
21218
  resourceId: string;
20794
21219
  name: string;
20795
21220
  } | {
21221
+ /**
21222
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
21223
+ */
20796
21224
  root: string;
20797
21225
  digest: string;
20798
21226
  fileCount: number;
@@ -20892,6 +21320,9 @@ export type TemplatesRemoveWorkspaceResourceResponses = {
20892
21320
  status: "added" | "modified" | "deleted";
20893
21321
  }>;
20894
21322
  conflicts: Array<{
21323
+ /**
21324
+ * A relative path of 1–1024 characters with no backslash, . or .., or .git segments.
21325
+ */
20895
21326
  path: string;
20896
21327
  base: string | null;
20897
21328
  draft: string | null;
@@ -20909,6 +21340,9 @@ export type TemplatesRemoveWorkspaceResourceResponses = {
20909
21340
  root: "/project";
20910
21341
  access: "read-write";
20911
21342
  } | {
21343
+ /**
21344
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
21345
+ */
20912
21346
  root: string;
20913
21347
  digest: string;
20914
21348
  fileCount: number;
@@ -20919,6 +21353,9 @@ export type TemplatesRemoveWorkspaceResourceResponses = {
20919
21353
  slug: string;
20920
21354
  name: string;
20921
21355
  } | {
21356
+ /**
21357
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
21358
+ */
20922
21359
  root: string;
20923
21360
  digest: string;
20924
21361
  fileCount: number;
@@ -20928,6 +21365,9 @@ export type TemplatesRemoveWorkspaceResourceResponses = {
20928
21365
  resourceId: string;
20929
21366
  name: string;
20930
21367
  } | {
21368
+ /**
21369
+ * An absolute path under a workspace mount root, at most 2048 characters, with no . or .., or .git segments.
21370
+ */
20931
21371
  root: string;
20932
21372
  digest: string;
20933
21373
  fileCount: number;