samva 0.46.1 → 0.48.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.
Files changed (79) hide show
  1. package/AGENTS.md +13 -7
  2. package/README.md +106 -8
  3. package/dist/agent/index.d.ts +57 -0
  4. package/dist/agent/index.js +53 -0
  5. package/dist/agent/runtime.d.ts +3 -0
  6. package/dist/agent/runtime.js +95 -0
  7. package/dist/agent/test.d.ts +31 -0
  8. package/dist/agent/test.js +66 -0
  9. package/dist/agent/types.d.ts +150 -0
  10. package/dist/client/sdk.gen.d.ts +50 -165
  11. package/dist/client/sdk.gen.js +1339 -1614
  12. package/dist/client/types.gen.d.ts +461 -989
  13. package/dist/effect/agents.d.ts +340 -8
  14. package/dist/effect/agents.js +4 -2
  15. package/dist/effect/api-keys.d.ts +2 -0
  16. package/dist/effect/campaigns.d.ts +160 -160
  17. package/dist/effect/contacts.d.ts +8 -0
  18. package/dist/effect/contacts.js +5 -1
  19. package/dist/effect/descriptors/agents.d.ts +12 -2
  20. package/dist/effect/descriptors/agents.js +12 -2
  21. package/dist/effect/descriptors/contacts.d.ts +20 -0
  22. package/dist/effect/descriptors/contacts.js +20 -0
  23. package/dist/effect/generated/accounts.d.ts +10 -0
  24. package/dist/effect/generated/accounts.js +1 -0
  25. package/dist/effect/generated/agents.d.ts +2967 -690
  26. package/dist/effect/generated/agents.js +54 -13
  27. package/dist/effect/generated/api-keys.d.ts +15 -0
  28. package/dist/effect/generated/api-keys.js +2 -0
  29. package/dist/effect/generated/contacts.d.ts +859 -1
  30. package/dist/effect/generated/contacts.js +62 -3
  31. package/dist/effect/generated/index.d.ts +1 -5
  32. package/dist/effect/generated/journeys.d.ts +351 -111
  33. package/dist/effect/generated/journeys.js +3 -1
  34. package/dist/effect/generated/mailboxes.d.ts +93 -95
  35. package/dist/effect/generated/mailboxes.js +21 -25
  36. package/dist/effect/generated/shared.d.ts +459 -139
  37. package/dist/effect/generated/shared.js +84 -39
  38. package/dist/effect/generated/template-registrations.d.ts +19 -4
  39. package/dist/effect/generated/template-registrations.js +8 -7
  40. package/dist/effect/generated/templates.d.ts +76 -11
  41. package/dist/effect/generated/templates.js +25 -12
  42. package/dist/effect/generated-metadata.d.ts +18 -84
  43. package/dist/effect/generated-metadata.js +362 -415
  44. package/dist/effect/index.d.ts +0 -2
  45. package/dist/effect/index.js +1 -3
  46. package/dist/effect/internal/client.js +1 -1
  47. package/dist/effect/internal/operation.js +4 -1
  48. package/dist/effect/journeys.d.ts +26 -2
  49. package/dist/effect/mailboxes.d.ts +41 -41
  50. package/dist/effect/scheduled-messages.d.ts +350 -350
  51. package/dist/effect/templates.d.ts +9 -0
  52. package/dist/effect/topics.d.ts +2 -2
  53. package/dist/package.js +1 -1
  54. package/dist/promises/client.d.ts +1 -5
  55. package/dist/promises/client.js +3 -7
  56. package/dist/promises/types.gen.d.ts +1 -1
  57. package/dist/service-map.d.ts +18 -75
  58. package/package.json +10 -22
  59. package/dist/effect/descriptors/extension-installations.d.ts +0 -90
  60. package/dist/effect/descriptors/extension-installations.js +0 -90
  61. package/dist/effect/descriptors/extensions.d.ts +0 -50
  62. package/dist/effect/descriptors/extensions.js +0 -50
  63. package/dist/effect/extension-installations.d.ts +0 -132
  64. package/dist/effect/extension-installations.js +0 -29
  65. package/dist/effect/extensions.d.ts +0 -102
  66. package/dist/effect/extensions.js +0 -21
  67. package/dist/effect/generated/extension-installations.d.ts +0 -2761
  68. package/dist/effect/generated/extension-installations.js +0 -405
  69. package/dist/effect/generated/extensions.d.ts +0 -1037
  70. package/dist/effect/generated/extensions.js +0 -214
  71. package/dist/mailbox/dispatch.d.ts +0 -10
  72. package/dist/mailbox/dispatch.js +0 -66
  73. package/dist/mailbox/index.d.ts +0 -17
  74. package/dist/mailbox/index.js +0 -30
  75. package/dist/mailbox/test.d.ts +0 -25
  76. package/dist/mailbox/test.js +0 -181
  77. package/dist/mailbox/types.d.ts +0 -221
  78. package/dist/mailbox/webhook.d.ts +0 -10
  79. package/dist/mailbox/webhook.js +0 -41
@@ -43,14 +43,22 @@ export type ResourceNotFoundError = {
43
43
  id: string;
44
44
  message: string;
45
45
  };
46
+ /**
47
+ * `templateChannelVariantId` identifies the exact content last submitted. A journey step or scheduled send pins it with `id` in `pinnedRegistration` and sends only while this registration holds that content approved.
48
+ */
46
49
  export type TemplateRegistration = {
47
50
  id: TemplateRegistrationId;
48
51
  templateId: TemplateId;
49
52
  publicationId: TemplatePublicationId;
53
+ templateChannelVariantId: TemplateChannelVariantId;
50
54
  target: TemplateRegistrationTarget;
51
55
  name: string;
52
56
  language: string;
53
57
  status: "draft" | "submitted" | "approved" | "rejected" | "paused" | "disabled";
58
+ /**
59
+ * Content a submission sent to the provider whose outcome is not yet recorded, because its request failed or is still in flight; the provider may already hold it. While it is set nothing sends from this registration, even when `status` is `approved`. Submitting again settles it.
60
+ */
61
+ pendingTemplateChannelVariantId: TemplateChannelVariantId | null;
54
62
  category: "marketing" | "utility" | "authentication" | "transactional" | "service_implicit" | "service_explicit" | "promotional";
55
63
  providerCategory: "marketing" | "utility" | "authentication" | "transactional" | "service_implicit" | "service_explicit" | "promotional" | null;
56
64
  providerTemplateId: string | null;
@@ -60,6 +68,7 @@ export type TemplateRegistration = {
60
68
  createdAt: string;
61
69
  updatedAt: string;
62
70
  };
71
+ export type TemplateChannelVariantId = string;
63
72
  export type TemplateRegistrationTarget = WhatsAppRegistrationTarget | DltRegistrationTarget;
64
73
  export type DltRegistrationTarget = {
65
74
  provider: "dlt";
@@ -309,221 +318,6 @@ export type WhatsAppTemplateStatsSource = {
309
318
  };
310
319
  export type JourneyId = string;
311
320
  export type CampaignId = string;
312
- export type ExtensionRun = {
313
- id: string;
314
- eventId: string;
315
- eventType: "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded";
316
- attempt: number;
317
- startedAt: string;
318
- durationMs: number;
319
- outcome: "succeeded" | "failed" | "timed_out" | "budget_exhausted" | "revoked";
320
- error: string | null;
321
- logs: Array<string>;
322
- };
323
- export type ExtensionInstallationId = string;
324
- export type ExtensionRunList = {
325
- items: Array<ExtensionRunSummary>;
326
- };
327
- export type ExtensionRunSummary = {
328
- id: string;
329
- eventId: string;
330
- eventType: "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded";
331
- attempt: number;
332
- startedAt: string;
333
- durationMs: number;
334
- outcome: "succeeded" | "failed" | "timed_out" | "budget_exhausted" | "revoked";
335
- error: string | null;
336
- };
337
- export type ExtensionInstallation = {
338
- id: ExtensionInstallationId;
339
- extensionId: ExtensionId;
340
- name: string;
341
- displayName: string;
342
- version: ExtensionVersionRef;
343
- runtime: "hosted" | "webhook";
344
- status: "active" | "disabled";
345
- createdAt: string;
346
- events: Array<"mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded">;
347
- permissions: Array<"read" | "update" | "send" | "quarantine.read">;
348
- policy: PolicyConfiguration;
349
- scope: {
350
- mailboxIds: Array<MailboxId> | null;
351
- namespaceId: NamespaceId | null;
352
- };
353
- webhook: {
354
- endpointId: WebhookEndpointId;
355
- url: string;
356
- } | null;
357
- updatedAt: string;
358
- disabledAt: string | null;
359
- };
360
- export type WebhookEndpointId = string;
361
- export type MailboxId = string;
362
- export type PolicyRule = {
363
- match: PolicyRuleMatch;
364
- note?: string | null | undefined;
365
- decide: PolicyRequirement;
366
- atLeast?: never | null | undefined;
367
- } | {
368
- match: PolicyRuleMatch;
369
- note?: string | null | undefined;
370
- decide?: never | null | undefined;
371
- atLeast: PolicyRequirement;
372
- };
373
- export type PolicyRequirement = "run" | "model" | "person" | "never";
374
- export type PolicyRuleMatch = {
375
- kind?: "send" | "reply" | "toolCall" | "handoff" | null | undefined;
376
- effect?: PolicyEffect | null | undefined;
377
- channel?: "sms" | "whatsapp" | "email" | null | undefined;
378
- integration?: string | null | undefined;
379
- tool?: string | null | undefined;
380
- subject?: "agent" | "apiKey" | "member" | "extension" | PolicySubject | null | undefined;
381
- };
382
- export type PolicySubject = {
383
- kind: "agent";
384
- id: AgentId;
385
- } | {
386
- kind: "apiKey";
387
- id: ApiKeyId;
388
- } | {
389
- kind: "member";
390
- userId: UserId;
391
- } | {
392
- kind: "extension";
393
- id: ExtensionInstallationId;
394
- };
395
- export type UserId = string;
396
- export type ApiKeyId = string;
397
- export type AgentId = string;
398
- export type PolicyEffect = "read" | "write" | "final";
399
- export type ExtensionVersionRef = {
400
- id: ExtensionVersionId;
401
- version: string;
402
- };
403
- export type ExtensionVersionId = string;
404
- export type ExtensionId = string;
405
- export type UpgradeExtensionResponse = {
406
- installation: ExtensionInstallation;
407
- fromVersion: ExtensionVersionRef;
408
- toVersion: ExtensionVersionRef;
409
- permissionDiff: ExtensionPermissionDiff;
410
- dryRun: boolean;
411
- versionChange: ExtensionVersionChange | null;
412
- };
413
- export type ExtensionVersionChange = {
414
- id: string;
415
- organizationId: OrganizationId;
416
- installationId: ExtensionInstallationId;
417
- extensionId: ExtensionId;
418
- fromVersion: ExtensionVersionRef;
419
- toVersion: ExtensionVersionRef;
420
- permissionDiff: ExtensionPermissionDiff;
421
- changedBy: UserId;
422
- changedAt: string;
423
- };
424
- export type ExtensionPermissionDiff = {
425
- added: Array<"permission:read" | "permission:update" | "permission:send" | "permission:quarantine.read" | "event:mailbox.message.received" | "event:mailbox.message.sent" | "event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.quarantined" | "event:mailbox.message.released" | "event:mailbox.message.discarded">;
426
- removed: Array<"permission:read" | "permission:update" | "permission:send" | "permission:quarantine.read" | "event:mailbox.message.received" | "event:mailbox.message.sent" | "event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.quarantined" | "event:mailbox.message.released" | "event:mailbox.message.discarded">;
427
- };
428
- export type UpgradeExtensionPayload = {
429
- version?: string | ExtensionVersionId | null | undefined;
430
- acceptPermissions?: Array<"permission:read" | "permission:update" | "permission:send" | "permission:quarantine.read" | "event:mailbox.message.received" | "event:mailbox.message.sent" | "event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.quarantined" | "event:mailbox.message.released" | "event:mailbox.message.discarded"> | null | undefined;
431
- dryRun?: boolean | null | undefined;
432
- };
433
- export type SuccessResponse = {
434
- success: boolean;
435
- };
436
- export type InstallExtensionResponse = {
437
- installation: ExtensionInstallation;
438
- credentials: {
439
- apiKey: string;
440
- webhookSecret: string;
441
- } | null;
442
- };
443
- export type InstallExtensionPayload = {
444
- extension: string;
445
- version?: string | null | undefined;
446
- mailboxIds?: Array<MailboxId> | null | undefined;
447
- namespaceId?: NamespaceId | null | undefined;
448
- permissions?: Array<"read" | "update" | "send" | "quarantine.read"> | null | undefined;
449
- policy?: PolicyConfiguration | null | undefined;
450
- webhookUrl?: string | null | undefined;
451
- };
452
- export type ExtensionInstallationPage = {
453
- items: Array<ExtensionInstallationSummary>;
454
- nextCursor: string | null;
455
- };
456
- export type ExtensionInstallationSummary = {
457
- id: ExtensionInstallationId;
458
- extensionId: ExtensionId;
459
- name: string;
460
- displayName: string;
461
- version: ExtensionVersionRef;
462
- runtime: "hosted" | "webhook";
463
- status: "active" | "disabled";
464
- createdAt: string;
465
- };
466
- export type ExtensionVersion = {
467
- id: ExtensionVersionId;
468
- version: string;
469
- runtime: "hosted" | "webhook";
470
- bundle: ExtensionBundle | null;
471
- publishedAt: string;
472
- manifest: {
473
- name: string;
474
- displayName: string;
475
- description?: string | null | undefined;
476
- version: string;
477
- runtime: "hosted" | "webhook";
478
- events: Array<"mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded">;
479
- permissions: Array<"read" | "update" | "send" | "quarantine.read">;
480
- };
481
- };
482
- export type ExtensionBundle = {
483
- sha256: string;
484
- sizeBytes: number;
485
- };
486
- export type ExtensionVersionPage = {
487
- items: Array<ExtensionVersionSummary>;
488
- nextCursor: string | null;
489
- };
490
- export type ExtensionVersionSummary = {
491
- id: ExtensionVersionId;
492
- version: string;
493
- runtime: "hosted" | "webhook";
494
- bundle: ExtensionBundle | null;
495
- publishedAt: string;
496
- };
497
- export type Extension = {
498
- id: ExtensionId;
499
- name: string;
500
- displayName: string;
501
- description: string | null;
502
- runtime: "hosted" | "webhook";
503
- latestVersion: ExtensionVersionRef;
504
- createdAt: string;
505
- updatedAt: string;
506
- };
507
- export type PublishExtensionVersionResponse = {
508
- extension: Extension;
509
- version: ExtensionVersion;
510
- };
511
- export type PublishExtensionVersionPayload = {
512
- manifest: {
513
- name: string;
514
- displayName: string;
515
- description?: string | null | undefined;
516
- version: string;
517
- runtime: "hosted" | "webhook";
518
- events: Array<"mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded">;
519
- permissions: Array<"read" | "update" | "send" | "quarantine.read">;
520
- };
521
- bundle?: string | null | undefined;
522
- };
523
- export type ExtensionPage = {
524
- items: Array<Extension>;
525
- nextCursor: string | null;
526
- };
527
321
  export type NamespaceUsage = {
528
322
  namespaceId: NamespaceId;
529
323
  periodStart: string;
@@ -550,6 +344,7 @@ export type NamespacePortalLinkMetadata = {
550
344
  export type NamespacePortalLinkMetadataWritable = {
551
345
  [key: string]: string | undefined;
552
346
  };
347
+ export type UserId = string;
553
348
  export type NamespacePortalLinkId = string;
554
349
  export type NamespacePortalLinkPage = {
555
350
  items: Array<NamespacePortalLink>;
@@ -585,6 +380,9 @@ export type AssignNamespaceResourcePayload = {
585
380
  */
586
381
  resourceId: string;
587
382
  };
383
+ export type SuccessResponse = {
384
+ success: boolean;
385
+ };
588
386
  export type Namespace = {
589
387
  id: NamespaceId;
590
388
  name: string;
@@ -630,12 +428,50 @@ export type PolicySnapshot = {
630
428
  version: PolicyVersion;
631
429
  };
632
430
  export type PolicyVersion = number;
431
+ export type PolicyRule = {
432
+ match: PolicyRuleMatch;
433
+ note?: string | null | undefined;
434
+ decide: PolicyRequirement;
435
+ atLeast?: never | null | undefined;
436
+ } | {
437
+ match: PolicyRuleMatch;
438
+ note?: string | null | undefined;
439
+ decide?: never | null | undefined;
440
+ atLeast: PolicyRequirement;
441
+ };
442
+ export type PolicyRequirement = "run" | "model" | "person" | "never";
443
+ export type PolicyRuleMatch = {
444
+ kind?: "send" | "reply" | "toolCall" | "handoff" | null | undefined;
445
+ effect?: PolicyEffect | null | undefined;
446
+ channel?: "sms" | "whatsapp" | "email" | null | undefined;
447
+ integration?: string | null | undefined;
448
+ tool?: string | null | undefined;
449
+ subject?: "agent" | "apiKey" | "member" | "extension" | PolicySubject | null | undefined;
450
+ };
451
+ export type PolicySubject = {
452
+ kind: "agent";
453
+ id: AgentId;
454
+ } | {
455
+ kind: "apiKey";
456
+ id: ApiKeyId;
457
+ } | {
458
+ kind: "member";
459
+ userId: UserId;
460
+ } | {
461
+ kind: "extension";
462
+ id: ExtensionInstallationId;
463
+ };
464
+ export type ExtensionInstallationId = string;
465
+ export type ApiKeyId = string;
466
+ export type AgentId = string;
467
+ export type PolicyEffect = "read" | "write" | "final";
633
468
  export type PolicyReplacement = {
634
469
  presets: Array<string>;
635
470
  rules: Array<PolicyRule>;
636
471
  instructions?: string | null | undefined;
637
472
  ifVersion: PolicyVersion;
638
473
  };
474
+ export type MailboxId = string;
639
475
  export type MailboxEventPage = {
640
476
  items: Array<MailboxEvent>;
641
477
  nextCursor: string | null;
@@ -901,7 +737,6 @@ export type JsonObject = {
901
737
  export type JsonObjectWritable = {
902
738
  [key: string]: JsonValueWritable | undefined;
903
739
  };
904
- export type TemplateChannelVariantId = string;
905
740
  export type MailboxSmsEndpointBinding = {
906
741
  channel: "sms";
907
742
  phoneNumberId: SmsPhoneNumberId;
@@ -1952,6 +1787,7 @@ export type ApiKeyWithSecret = {
1952
1787
  start: string | null;
1953
1788
  end: string | null;
1954
1789
  description?: string | null | undefined;
1790
+ source?: string | null | undefined;
1955
1791
  createdAt: string;
1956
1792
  expiresAt: string | null;
1957
1793
  lastUsedAt: string | null;
@@ -1971,6 +1807,7 @@ export type ApiKey = {
1971
1807
  start: string | null;
1972
1808
  end: string | null;
1973
1809
  description?: string | null | undefined;
1810
+ source?: string | null | undefined;
1974
1811
  createdAt: string;
1975
1812
  expiresAt: string | null;
1976
1813
  lastUsedAt: string | null;
@@ -2062,6 +1899,7 @@ export type WebhookSigningSecret = {
2062
1899
  createdAt: string;
2063
1900
  previousExpiresAt: string | null;
2064
1901
  };
1902
+ export type WebhookEndpointId = string;
2065
1903
  export type WebhookAttemptId = string;
2066
1904
  export type WebhookDeliveryId = string;
2067
1905
  export type WebhookStatsResponse = {
@@ -2551,9 +2389,13 @@ export type TemplateStarterSuggestion = {
2551
2389
  */
2552
2390
  galleryTemplateId: string;
2553
2391
  /**
2554
- * The design's gallery page, under /templates/.
2392
+ * The channel the design's template sends on.
2555
2393
  */
2556
- slug: string;
2394
+ channel: "email" | "whatsapp";
2395
+ /**
2396
+ * The design's public gallery page, under /templates/. Null for a design without one, such as a WhatsApp starter.
2397
+ */
2398
+ slug: string | null;
2557
2399
  name: string;
2558
2400
  description: string;
2559
2401
  /**
@@ -2580,16 +2422,24 @@ export type TemplateStarterSuggestion = {
2580
2422
  };
2581
2423
  export type CreateTemplateFromBriefPayload = {
2582
2424
  /**
2583
- * 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.
2425
+ * What the message 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.
2584
2426
  */
2585
2427
  brief: string;
2428
+ /**
2429
+ * The channel to start a template for. Defaults to email. WhatsApp starts from Samva's WhatsApp starters and is available where WhatsApp is enabled for the organization.
2430
+ */
2431
+ channel?: "email" | "whatsapp" | null | undefined;
2586
2432
  name?: string | null | undefined;
2587
2433
  galleryTemplateId?: string | null | undefined;
2588
2434
  useBrand?: boolean | null | undefined;
2589
2435
  /**
2590
- * The namespace the new template project belongs to. Omit for organization level. A namespace-scoped key always creates in its own namespace.
2436
+ * The namespace the new template project belongs to. Omit for organization level. A namespace-scoped key always creates in its own namespace. With `variantOf`, omit it or name the source's namespace.
2591
2437
  */
2592
2438
  namespaceId?: NamespaceId | null | undefined;
2439
+ /**
2440
+ * Make this template another channel's version of an existing template the caller can change: it is created in that template's namespace, holds that template's current draft as a read-only resource the template assistant reads facts from, and joins that template's family (one is made when it has none). The returned `ask` says where the snapshot is mounted; its `variant-source.json` names the source, its entry and the revision taken. A retry with the same idempotency key finishes the same version; the key refuses a different source, or a request without `variantOf`. Refused when `channel` is the source's own or its family already has a template on `channel`. The source's files are mounted whole: a project with more than 31 files, a file over 4 MB, or more than 8 MB in all is refused before anything is created.
2441
+ */
2442
+ variantOf?: TemplateId | null | undefined;
2593
2443
  };
2594
2444
  export type TemplateStarterSuggestions = {
2595
2445
  /**
@@ -2600,9 +2450,13 @@ export type TemplateStarterSuggestions = {
2600
2450
  };
2601
2451
  export type SuggestTemplateStartersPayload = {
2602
2452
  /**
2603
- * 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.
2453
+ * What the message 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.
2604
2454
  */
2605
2455
  brief: string;
2456
+ /**
2457
+ * The channel to start a template for. Defaults to email. WhatsApp starts from Samva's WhatsApp starters and is available where WhatsApp is enabled for the organization.
2458
+ */
2459
+ channel?: "email" | "whatsapp" | null | undefined;
2606
2460
  };
2607
2461
  export type ShareLinkUnavailable = {
2608
2462
  _tag: "ShareLinkUnavailable";
@@ -2635,6 +2489,10 @@ export type CreateTemplatePayload = {
2635
2489
  export type TemplateFamily = {
2636
2490
  id: TemplateFamilyId;
2637
2491
  name: string;
2492
+ /**
2493
+ * The namespace the family belongs to, which every member it gains shares. Null at organization level. A namespace-scoped key reaches only its own namespace's families.
2494
+ */
2495
+ namespaceId: NamespaceId | null;
2638
2496
  members: Array<TemplateFamilyMember>;
2639
2497
  createdAt: string;
2640
2498
  updatedAt: string;
@@ -2651,6 +2509,13 @@ export type TemplateFamilyMember = {
2651
2509
  export type TemplateFamilyName = {
2652
2510
  name: string;
2653
2511
  };
2512
+ export type CreateTemplateFamilyPayload = {
2513
+ name: string;
2514
+ /**
2515
+ * The namespace the family belongs to; every member it gains must be in it. Omit for organization level. A namespace-scoped key always creates in its own namespace.
2516
+ */
2517
+ namespaceId?: NamespaceId | null | undefined;
2518
+ };
2654
2519
  export type TemplateFamilyPage = {
2655
2520
  items: Array<TemplateFamily>;
2656
2521
  nextCursor: string | null;
@@ -3249,6 +3114,7 @@ export type AccountInfo = {
3249
3114
  externalId?: string | undefined;
3250
3115
  displayName?: string | undefined;
3251
3116
  email?: string | undefined;
3117
+ verifiedEmail?: string | undefined;
3252
3118
  timeZone?: string | undefined;
3253
3119
  };
3254
3120
  export type AccountStatus = "pending" | "connected" | "needsReconnect";
@@ -3259,6 +3125,8 @@ export type AgentVersion = {
3259
3125
  agentId: AgentId;
3260
3126
  version: number;
3261
3127
  definition: AgentDefinition;
3128
+ bundle: AgentBundle;
3129
+ authoring: "builder" | "code";
3262
3130
  publishedAt: string;
3263
3131
  modelFallback: AgentModelFallback | null;
3264
3132
  };
@@ -3271,12 +3139,70 @@ export type AgentModelFallback = {
3271
3139
  export type ModelFallbackReason = "candidate" | "failed" | "retired" | "blocked" | "missing";
3272
3140
  export type AgentModel = "standard" | "max";
3273
3141
  export type CatalogModelId = string;
3142
+ export type AgentBundle = {
3143
+ sha256: string;
3144
+ sizeBytes: number;
3145
+ manifest: AgentModuleManifest;
3146
+ };
3147
+ export type AgentModuleManifest = {
3148
+ name: AgentName;
3149
+ version: string;
3150
+ knowledgeSourceIds?: Array<KnowledgeSourceId> | undefined;
3151
+ endpointIds: Array<MailboxEndpointId>;
3152
+ integrations: Array<AgentIntegrationGrant>;
3153
+ policy: PolicyConfiguration;
3154
+ model: AgentModelChoice;
3155
+ reasoning: AgentReasoning;
3156
+ workingHours: WorkingHours | null;
3157
+ takeoverTimeoutMinutes: number;
3158
+ eventTriggers?: Array<string> | undefined;
3159
+ followUpTemplate?: TemplateId | string | undefined;
3160
+ tools: {
3161
+ [key: string]: AgentModuleTool;
3162
+ };
3163
+ skills: Array<string>;
3164
+ events: Array<string>;
3165
+ schedules: Array<string>;
3166
+ };
3167
+ export type AgentModuleManifestWritable = {
3168
+ name: AgentName;
3169
+ version: string;
3170
+ knowledgeSourceIds?: Array<KnowledgeSourceId> | undefined;
3171
+ endpointIds: Array<MailboxEndpointId>;
3172
+ integrations: Array<AgentIntegrationGrant>;
3173
+ policy: PolicyConfiguration;
3174
+ model: AgentModelChoice;
3175
+ reasoning: AgentReasoning;
3176
+ workingHours: WorkingHours | null;
3177
+ takeoverTimeoutMinutes: number;
3178
+ eventTriggers?: Array<string> | undefined;
3179
+ followUpTemplate?: TemplateId | string | undefined;
3180
+ tools: {
3181
+ [key: string]: AgentModuleToolWritable | undefined;
3182
+ };
3183
+ skills: Array<string>;
3184
+ events: Array<string>;
3185
+ schedules: Array<string>;
3186
+ };
3187
+ export type AgentModuleTool = {
3188
+ description: string;
3189
+ input: JsonObject;
3190
+ approval?: PolicyRequirement | undefined;
3191
+ replay: "safe" | "unsafe";
3192
+ };
3193
+ export type AgentModuleToolWritable = {
3194
+ description: string;
3195
+ input: JsonObjectWritable;
3196
+ approval?: PolicyRequirement | undefined;
3197
+ replay: "safe" | "unsafe";
3198
+ };
3274
3199
  export type ClockTime = string;
3275
3200
  export type Weekday = "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
3276
3201
  export type TimeZone = string;
3277
3202
  export type AgentReasoning = "auto" | "low" | "medium" | "high";
3278
3203
  export type AgentModelChoice = AgentModel | CatalogModelId;
3279
3204
  export type KnowledgeSourceId = string;
3205
+ export type AgentName = string;
3280
3206
  export type AgentVersionPage = {
3281
3207
  items: Array<AgentVersionSummary>;
3282
3208
  nextCursor: string | null;
@@ -3284,6 +3210,8 @@ export type AgentVersionPage = {
3284
3210
  export type AgentVersionSummary = {
3285
3211
  agentId: AgentId;
3286
3212
  version: number;
3213
+ bundle: AgentBundle;
3214
+ authoring: "builder" | "code";
3287
3215
  publishedAt: string;
3288
3216
  };
3289
3217
  export type PublishAgentResponse = {
@@ -3313,26 +3241,13 @@ export type AgentSpend = {
3313
3241
  capReachedAt: string | null;
3314
3242
  };
3315
3243
  export type AgentSetupJob = "support" | "store" | "booking";
3316
- export type PublishAgentPayload = {
3317
- revision: string;
3318
- };
3319
- export type ReplaceAgentDraftPayload = {
3244
+ export type PublishAgentVersionPayload = {
3320
3245
  revision: string;
3321
- definition: AgentDefinition;
3246
+ bundle: AgentModuleBundle;
3322
3247
  };
3323
- export type AgentDefinition = {
3324
- instructions: string;
3325
- knowledge: string;
3326
- knowledgeSourceIds?: Array<KnowledgeSourceId> | undefined;
3327
- endpointIds: Array<MailboxEndpointId>;
3328
- integrations: Array<AgentIntegrationGrant>;
3329
- eventTriggers?: Array<string> | undefined;
3330
- followUpTemplate?: TemplateId | string | undefined;
3331
- policy: PolicyConfiguration;
3332
- model: AgentModelChoice;
3333
- reasoning: AgentReasoning;
3334
- workingHours: WorkingHours | null;
3335
- takeoverTimeoutMinutes: number;
3248
+ export type AgentModuleBundle = {
3249
+ source: string;
3250
+ manifest: AgentModuleManifestWritable;
3336
3251
  };
3337
3252
  export type WorkingHours = {
3338
3253
  timeZone: TimeZone;
@@ -3361,19 +3276,39 @@ export type AgentToolScope = {
3361
3276
  kind: "selected";
3362
3277
  names: Array<string>;
3363
3278
  };
3364
- export type DeleteAgentResponse = {
3365
- id: AgentId;
3366
- deleted: true;
3279
+ export type PublishAgentPayload = {
3280
+ revision: string;
3367
3281
  };
3368
- export type UpdateAgentPayload = {
3369
- name?: AgentName | null | undefined;
3370
- /**
3371
- * The most the agent may spend in a calendar month (UTC), in dollars and whole cents. Null removes the cap. Takes effect at once, without publishing.
3372
- */
3373
- monthlySpendCapDollars?: MonthlySpendCapDollars | null | undefined;
3282
+ export type ReplaceAgentDraftPayload = {
3283
+ revision: string;
3284
+ definition: AgentDefinition;
3374
3285
  };
3375
- export type MonthlySpendCapDollars = number;
3376
- export type AgentName = string;
3286
+ export type AgentDefinition = {
3287
+ instructions: string;
3288
+ knowledge: string;
3289
+ knowledgeSourceIds?: Array<KnowledgeSourceId> | undefined;
3290
+ endpointIds: Array<MailboxEndpointId>;
3291
+ integrations: Array<AgentIntegrationGrant>;
3292
+ policy: PolicyConfiguration;
3293
+ model: AgentModelChoice;
3294
+ reasoning: AgentReasoning;
3295
+ workingHours: WorkingHours | null;
3296
+ takeoverTimeoutMinutes: number;
3297
+ eventTriggers?: Array<string> | undefined;
3298
+ followUpTemplate?: TemplateId | string | undefined;
3299
+ };
3300
+ export type DeleteAgentResponse = {
3301
+ id: AgentId;
3302
+ deleted: true;
3303
+ };
3304
+ export type UpdateAgentPayload = {
3305
+ name?: AgentName | null | undefined;
3306
+ /**
3307
+ * The most the agent may spend in a calendar month (UTC), in dollars and whole cents. Null removes the cap. Takes effect at once, without publishing.
3308
+ */
3309
+ monthlySpendCapDollars?: MonthlySpendCapDollars | null | undefined;
3310
+ };
3311
+ export type MonthlySpendCapDollars = number;
3377
3312
  export type CreateAgentPayload = {
3378
3313
  name: AgentName;
3379
3314
  /**
@@ -3482,13 +3417,13 @@ export type JourneyRunStep = {
3482
3417
  error: string | null;
3483
3418
  };
3484
3419
  export type JourneyNodeId = string;
3485
- export type JourneyRunStepOutcome = "completed" | "matched" | "timed_out" | "goal" | "archived" | "failed";
3420
+ export type JourneyRunStepOutcome = "completed" | "matched" | "timed_out" | "goal" | "archived" | "merged" | "failed";
3486
3421
  export type JourneyRunTrigger = {
3487
3422
  eventId: string;
3488
3423
  eventName: string;
3489
3424
  properties: JsonObject;
3490
3425
  };
3491
- export type JourneyRunExitReason = "completed" | "goal" | "archived";
3426
+ export type JourneyRunExitReason = "completed" | "goal" | "archived" | "merged";
3492
3427
  export type JourneyRunStatus = "active" | "paused" | "exited" | "failed";
3493
3428
  export type JourneyRunId = string;
3494
3429
  export type JourneyRunPage = {
@@ -3541,6 +3476,10 @@ export type JourneyDefinition = {
3541
3476
  };
3542
3477
  goal?: JourneyGoal | undefined;
3543
3478
  reentry?: boolean | undefined;
3479
+ enrollment?: {
3480
+ type: "shopify_order";
3481
+ shop: ShopifyShop;
3482
+ } | undefined;
3544
3483
  };
3545
3484
  export type JourneyDefinitionWritable = {
3546
3485
  trigger: JourneyTrigger;
@@ -3550,11 +3489,16 @@ export type JourneyDefinitionWritable = {
3550
3489
  };
3551
3490
  goal?: JourneyGoal | undefined;
3552
3491
  reentry?: boolean | undefined;
3492
+ enrollment?: {
3493
+ type: "shopify_order";
3494
+ shop: ShopifyShop;
3495
+ } | undefined;
3553
3496
  };
3497
+ export type ShopifyShop = string;
3554
3498
  export type JourneyGoal = {
3555
3499
  eventName: JourneyEventName;
3556
3500
  };
3557
- export type JourneyEventName = JourneyCustomEventName | "contact.created" | "contact.tag_added" | "contact.joined_group";
3501
+ export type JourneyEventName = JourneyCustomEventName | "contact.created" | "contact.tag_added" | "contact.joined_group" | "contact.connection_completed";
3558
3502
  export type JourneyCustomEventName = string;
3559
3503
  export type JourneyNode = JourneySendEmailNode | WhatsAppJourneySendNode | JourneyWaitNode | JourneyWaitForEventNode | JourneyBranchNode | JourneyUpdateTagsNode | JourneyWebhookNode | JourneyExitNode;
3560
3504
  export type JourneyNodeWritable = JourneySendEmailNodeWritable | WhatsAppJourneySendNodeWritable | JourneyWaitNode | JourneyWaitForEventNode | JourneyBranchNode | JourneyUpdateTagsNode | JourneyWebhookNodeWritable | JourneyExitNode;
@@ -3668,14 +3612,40 @@ export type JourneyWaitConfig = {
3668
3612
  };
3669
3613
  export type WhatsAppJourneySendNode = {
3670
3614
  type: "send_whatsapp";
3671
- config: WhatsAppTemplateDispatch;
3615
+ config: JourneySendWhatsAppConfig;
3672
3616
  next: [JourneyNextEdge];
3673
3617
  };
3674
3618
  export type WhatsAppJourneySendNodeWritable = {
3675
3619
  type: "send_whatsapp";
3676
- config: WhatsAppTemplateDispatchWritable;
3620
+ config: JourneySendWhatsAppConfigWritable;
3677
3621
  next: [JourneyNextEdge];
3678
3622
  };
3623
+ export type JourneySendWhatsAppConfig = {
3624
+ template: TemplateId | string;
3625
+ templateData?: WhatsAppTemplateDispatchData | undefined;
3626
+ bindings?: WhatsAppTemplateBindings | undefined;
3627
+ businessAccountId?: WhatsAppBusinessAccountId | undefined;
3628
+ pinnedRegistration?: {
3629
+ registrationId: TemplateRegistrationId;
3630
+ templateChannelVariantId: TemplateChannelVariantId;
3631
+ } | undefined;
3632
+ eventBindings?: {
3633
+ [key: string]: string;
3634
+ } | undefined;
3635
+ };
3636
+ export type JourneySendWhatsAppConfigWritable = {
3637
+ template: TemplateId | string;
3638
+ templateData?: WhatsAppTemplateDispatchDataWritable | undefined;
3639
+ bindings?: WhatsAppTemplateBindingsWritable | undefined;
3640
+ businessAccountId?: WhatsAppBusinessAccountId | undefined;
3641
+ pinnedRegistration?: {
3642
+ registrationId: TemplateRegistrationId;
3643
+ templateChannelVariantId: TemplateChannelVariantId;
3644
+ } | undefined;
3645
+ eventBindings?: {
3646
+ [key: string]: string | undefined;
3647
+ } | undefined;
3648
+ };
3679
3649
  export type WhatsAppTemplateDispatchData = {
3680
3650
  [key: string]: JsonValue;
3681
3651
  };
@@ -3694,11 +3664,13 @@ export type JourneySendEmailNodeWritable = {
3694
3664
  };
3695
3665
  export type JourneySendEmailConfig = {
3696
3666
  template: TemplateId | string;
3667
+ publicationId?: TemplatePublicationId | undefined;
3697
3668
  senderId?: EmailSenderId | undefined;
3698
3669
  templateData?: JsonObject | undefined;
3699
3670
  };
3700
3671
  export type JourneySendEmailConfigWritable = {
3701
3672
  template: TemplateId | string;
3673
+ publicationId?: TemplatePublicationId | undefined;
3702
3674
  senderId?: EmailSenderId | undefined;
3703
3675
  templateData?: JsonObjectWritable | undefined;
3704
3676
  };
@@ -3839,6 +3811,7 @@ export type BulkUpdateResult = {
3839
3811
  export type ContactImportJobId = string;
3840
3812
  export type Contact = {
3841
3813
  id: ContactId;
3814
+ mergedInto?: ContactId | null | undefined;
3842
3815
  namespaceId: NamespaceId | null;
3843
3816
  name: string;
3844
3817
  displayName: string | null;
@@ -3978,6 +3951,12 @@ export type ContactIdentityInput = {
3978
3951
  identifier: string;
3979
3952
  verified?: boolean | null | undefined;
3980
3953
  };
3954
+ export type MergeContactByConnectionPayload = {
3955
+ connection: IntegrationAccountId;
3956
+ };
3957
+ export type MergeContactPayload = {
3958
+ from: ContactId;
3959
+ };
3981
3960
  export type ContactProfileUpdate = {
3982
3961
  firstName?: string | null | undefined;
3983
3962
  lastName?: string | null | undefined;
@@ -12740,6 +12719,124 @@ export type ContactsUpdateResponses = {
12740
12719
  200: Contact;
12741
12720
  };
12742
12721
  export type ContactsUpdateResponse = ContactsUpdateResponses[keyof ContactsUpdateResponses];
12722
+ export type ContactsMergeData = {
12723
+ body: {
12724
+ from: ContactId;
12725
+ };
12726
+ headers?: {
12727
+ "x-samva-conversation-agent-admission"?: string | undefined;
12728
+ };
12729
+ path: {
12730
+ id: ContactId;
12731
+ };
12732
+ query?: never;
12733
+ url: "/v1/contacts/{id}/merge";
12734
+ };
12735
+ export type ContactsMergeErrors = {
12736
+ /**
12737
+ * MalformedRequestError
12738
+ */
12739
+ 400: MalformedRequestError;
12740
+ /**
12741
+ * UnauthorizedError
12742
+ */
12743
+ 401: UnauthorizedError;
12744
+ /**
12745
+ * ForbiddenError
12746
+ */
12747
+ 403: ForbiddenError;
12748
+ /**
12749
+ * ResourceNotFoundError
12750
+ */
12751
+ 404: ResourceNotFoundError;
12752
+ /**
12753
+ * ConflictError
12754
+ */
12755
+ 409: ConflictError;
12756
+ /**
12757
+ * ValidationError
12758
+ */
12759
+ 422: ValidationError;
12760
+ /**
12761
+ * InternalError
12762
+ */
12763
+ 500: InternalError;
12764
+ /**
12765
+ * BillingProviderError
12766
+ */
12767
+ 502: BillingProviderError;
12768
+ /**
12769
+ * GatewayTimeoutError
12770
+ */
12771
+ 504: GatewayTimeoutError;
12772
+ };
12773
+ export type ContactsMergeError = ContactsMergeErrors[keyof ContactsMergeErrors];
12774
+ export type ContactsMergeResponses = {
12775
+ /**
12776
+ * Contact
12777
+ */
12778
+ 200: Contact;
12779
+ };
12780
+ export type ContactsMergeResponse = ContactsMergeResponses[keyof ContactsMergeResponses];
12781
+ export type ContactsMergeByConnectionData = {
12782
+ body: {
12783
+ connection: IntegrationAccountId;
12784
+ };
12785
+ headers?: {
12786
+ "x-samva-conversation-agent-admission"?: string | undefined;
12787
+ };
12788
+ path: {
12789
+ id: ContactId;
12790
+ };
12791
+ query?: never;
12792
+ url: "/v1/contacts/{id}/merge-by-connection";
12793
+ };
12794
+ export type ContactsMergeByConnectionErrors = {
12795
+ /**
12796
+ * MalformedRequestError
12797
+ */
12798
+ 400: MalformedRequestError;
12799
+ /**
12800
+ * UnauthorizedError
12801
+ */
12802
+ 401: UnauthorizedError;
12803
+ /**
12804
+ * ForbiddenError
12805
+ */
12806
+ 403: ForbiddenError;
12807
+ /**
12808
+ * ResourceNotFoundError
12809
+ */
12810
+ 404: ResourceNotFoundError;
12811
+ /**
12812
+ * ConflictError
12813
+ */
12814
+ 409: ConflictError;
12815
+ /**
12816
+ * ValidationError
12817
+ */
12818
+ 422: ValidationError;
12819
+ /**
12820
+ * InternalError
12821
+ */
12822
+ 500: InternalError;
12823
+ /**
12824
+ * BillingProviderError
12825
+ */
12826
+ 502: BillingProviderError;
12827
+ /**
12828
+ * GatewayTimeoutError
12829
+ */
12830
+ 504: GatewayTimeoutError;
12831
+ };
12832
+ export type ContactsMergeByConnectionError = ContactsMergeByConnectionErrors[keyof ContactsMergeByConnectionErrors];
12833
+ export type ContactsMergeByConnectionResponses = {
12834
+ /**
12835
+ * Contact
12836
+ */
12837
+ 200: Contact;
12838
+ };
12839
+ export type ContactsMergeByConnectionResponse = ContactsMergeByConnectionResponses[keyof ContactsMergeByConnectionResponses];
12743
12840
  export type ContactsAddIdentityData = {
12744
12841
  body: {
12745
12842
  type: "email" | "phone";
@@ -14933,6 +15030,10 @@ export type AgentsPublishErrors = {
14933
15030
  * UnauthorizedError
14934
15031
  */
14935
15032
  401: UnauthorizedError;
15033
+ /**
15034
+ * PaymentRequiredError
15035
+ */
15036
+ 402: PaymentRequiredError;
14936
15037
  /**
14937
15038
  * ForbiddenError
14938
15039
  */
@@ -14966,15 +15067,67 @@ export type AgentsPublishResponses = {
14966
15067
  200: PublishAgentResponse;
14967
15068
  };
14968
15069
  export type AgentsPublishResponse = AgentsPublishResponses[keyof AgentsPublishResponses];
14969
- export type AgentsContinueOnStandardData = {
15070
+ export type AgentsListVersionsData = {
14970
15071
  body?: never;
14971
15072
  path: {
14972
15073
  id: AgentId;
14973
15074
  };
15075
+ query?: {
15076
+ limit?: number | null | undefined;
15077
+ cursor?: string | undefined;
15078
+ };
15079
+ url: "/v1/agents/{id}/versions";
15080
+ };
15081
+ export type AgentsListVersionsErrors = {
15082
+ /**
15083
+ * MalformedRequestError
15084
+ */
15085
+ 400: MalformedRequestError;
15086
+ /**
15087
+ * UnauthorizedError
15088
+ */
15089
+ 401: UnauthorizedError;
15090
+ /**
15091
+ * ForbiddenError
15092
+ */
15093
+ 403: ForbiddenError;
15094
+ /**
15095
+ * ResourceNotFoundError
15096
+ */
15097
+ 404: ResourceNotFoundError;
15098
+ /**
15099
+ * ValidationError
15100
+ */
15101
+ 422: ValidationError;
15102
+ /**
15103
+ * InternalError
15104
+ */
15105
+ 500: InternalError;
15106
+ /**
15107
+ * GatewayTimeoutError
15108
+ */
15109
+ 504: GatewayTimeoutError;
15110
+ };
15111
+ export type AgentsListVersionsError = AgentsListVersionsErrors[keyof AgentsListVersionsErrors];
15112
+ export type AgentsListVersionsResponses = {
15113
+ /**
15114
+ * AgentVersionPage
15115
+ */
15116
+ 200: AgentVersionPage;
15117
+ };
15118
+ export type AgentsListVersionsResponse = AgentsListVersionsResponses[keyof AgentsListVersionsResponses];
15119
+ export type AgentsPublishVersionData = {
15120
+ body: {
15121
+ revision: string;
15122
+ bundle: AgentModuleBundle;
15123
+ };
15124
+ path: {
15125
+ id: AgentId;
15126
+ };
14974
15127
  query?: never;
14975
- url: "/v1/agents/{id}/continue-on-standard";
15128
+ url: "/v1/agents/{id}/versions";
14976
15129
  };
14977
- export type AgentsContinueOnStandardErrors = {
15130
+ export type AgentsPublishVersionErrors = {
14978
15131
  /**
14979
15132
  * MalformedRequestError
14980
15133
  */
@@ -14983,6 +15136,10 @@ export type AgentsContinueOnStandardErrors = {
14983
15136
  * UnauthorizedError
14984
15137
  */
14985
15138
  401: UnauthorizedError;
15139
+ /**
15140
+ * PaymentRequiredError
15141
+ */
15142
+ 402: PaymentRequiredError;
14986
15143
  /**
14987
15144
  * ForbiddenError
14988
15145
  */
@@ -15008,26 +15165,23 @@ export type AgentsContinueOnStandardErrors = {
15008
15165
  */
15009
15166
  504: GatewayTimeoutError;
15010
15167
  };
15011
- export type AgentsContinueOnStandardError = AgentsContinueOnStandardErrors[keyof AgentsContinueOnStandardErrors];
15012
- export type AgentsContinueOnStandardResponses = {
15168
+ export type AgentsPublishVersionError = AgentsPublishVersionErrors[keyof AgentsPublishVersionErrors];
15169
+ export type AgentsPublishVersionResponses = {
15013
15170
  /**
15014
15171
  * PublishAgentResponse
15015
15172
  */
15016
15173
  200: PublishAgentResponse;
15017
15174
  };
15018
- export type AgentsContinueOnStandardResponse = AgentsContinueOnStandardResponses[keyof AgentsContinueOnStandardResponses];
15019
- export type AgentsListVersionsData = {
15175
+ export type AgentsPublishVersionResponse = AgentsPublishVersionResponses[keyof AgentsPublishVersionResponses];
15176
+ export type AgentsContinueOnStandardData = {
15020
15177
  body?: never;
15021
15178
  path: {
15022
15179
  id: AgentId;
15023
15180
  };
15024
- query?: {
15025
- limit?: number | null | undefined;
15026
- cursor?: string | undefined;
15027
- };
15028
- url: "/v1/agents/{id}/versions";
15181
+ query?: never;
15182
+ url: "/v1/agents/{id}/continue-on-standard";
15029
15183
  };
15030
- export type AgentsListVersionsErrors = {
15184
+ export type AgentsContinueOnStandardErrors = {
15031
15185
  /**
15032
15186
  * MalformedRequestError
15033
15187
  */
@@ -15044,6 +15198,10 @@ export type AgentsListVersionsErrors = {
15044
15198
  * ResourceNotFoundError
15045
15199
  */
15046
15200
  404: ResourceNotFoundError;
15201
+ /**
15202
+ * ConflictError
15203
+ */
15204
+ 409: ConflictError;
15047
15205
  /**
15048
15206
  * ValidationError
15049
15207
  */
@@ -15057,14 +15215,14 @@ export type AgentsListVersionsErrors = {
15057
15215
  */
15058
15216
  504: GatewayTimeoutError;
15059
15217
  };
15060
- export type AgentsListVersionsError = AgentsListVersionsErrors[keyof AgentsListVersionsErrors];
15061
- export type AgentsListVersionsResponses = {
15218
+ export type AgentsContinueOnStandardError = AgentsContinueOnStandardErrors[keyof AgentsContinueOnStandardErrors];
15219
+ export type AgentsContinueOnStandardResponses = {
15062
15220
  /**
15063
- * AgentVersionPage
15221
+ * PublishAgentResponse
15064
15222
  */
15065
- 200: AgentVersionPage;
15223
+ 200: PublishAgentResponse;
15066
15224
  };
15067
- export type AgentsListVersionsResponse = AgentsListVersionsResponses[keyof AgentsListVersionsResponses];
15225
+ export type AgentsContinueOnStandardResponse = AgentsContinueOnStandardResponses[keyof AgentsContinueOnStandardResponses];
15068
15226
  export type AgentsGetVersionData = {
15069
15227
  body?: never;
15070
15228
  path: {
@@ -19837,6 +19995,10 @@ export type TemplatesListFamiliesData = {
19837
19995
  query?: {
19838
19996
  limit?: number | null | undefined;
19839
19997
  cursor?: string | undefined;
19998
+ /**
19999
+ * Only this namespace's families. A namespace-scoped key always lists its own namespace's.
20000
+ */
20001
+ namespaceId?: NamespaceId | undefined;
19840
20002
  };
19841
20003
  url: "/v1/templates/families";
19842
20004
  };
@@ -19877,6 +20039,10 @@ export type TemplatesListFamiliesResponse = TemplatesListFamiliesResponses[keyof
19877
20039
  export type TemplatesCreateFamilyData = {
19878
20040
  body: {
19879
20041
  name: string;
20042
+ /**
20043
+ * The namespace the family belongs to; every member it gains must be in it. Omit for organization level. A namespace-scoped key always creates in its own namespace.
20044
+ */
20045
+ namespaceId?: NamespaceId | null | undefined;
19880
20046
  };
19881
20047
  path?: never;
19882
20048
  query?: never;
@@ -19895,6 +20061,10 @@ export type TemplatesCreateFamilyErrors = {
19895
20061
  * ForbiddenError
19896
20062
  */
19897
20063
  403: ForbiddenError;
20064
+ /**
20065
+ * ResourceNotFoundError
20066
+ */
20067
+ 404: ResourceNotFoundError;
19898
20068
  /**
19899
20069
  * ValidationError
19900
20070
  */
@@ -20377,9 +20547,13 @@ export type TemplatesUpdateResponse = TemplatesUpdateResponses[keyof TemplatesUp
20377
20547
  export type TemplatesSuggestStartersData = {
20378
20548
  body: {
20379
20549
  /**
20380
- * 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.
20550
+ * What the message 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.
20381
20551
  */
20382
20552
  brief: string;
20553
+ /**
20554
+ * The channel to start a template for. Defaults to email. WhatsApp starts from Samva's WhatsApp starters and is available where WhatsApp is enabled for the organization.
20555
+ */
20556
+ channel?: "email" | "whatsapp" | null | undefined;
20383
20557
  };
20384
20558
  path?: never;
20385
20559
  query?: never;
@@ -20422,16 +20596,24 @@ export type TemplatesSuggestStartersResponse = TemplatesSuggestStartersResponses
20422
20596
  export type TemplatesCreateFromBriefData = {
20423
20597
  body: {
20424
20598
  /**
20425
- * 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.
20599
+ * What the message 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.
20426
20600
  */
20427
20601
  brief: string;
20428
- name?: string | null | undefined;
20602
+ /**
20603
+ * The channel to start a template for. Defaults to email. WhatsApp starts from Samva's WhatsApp starters and is available where WhatsApp is enabled for the organization.
20604
+ */
20605
+ channel?: "email" | "whatsapp" | null | undefined;
20606
+ name?: string | null | undefined;
20429
20607
  galleryTemplateId?: string | null | undefined;
20430
20608
  useBrand?: boolean | null | undefined;
20431
20609
  /**
20432
- * The namespace the new template project belongs to. Omit for organization level. A namespace-scoped key always creates in its own namespace.
20610
+ * The namespace the new template project belongs to. Omit for organization level. A namespace-scoped key always creates in its own namespace. With `variantOf`, omit it or name the source's namespace.
20433
20611
  */
20434
20612
  namespaceId?: NamespaceId | null | undefined;
20613
+ /**
20614
+ * Make this template another channel's version of an existing template the caller can change: it is created in that template's namespace, holds that template's current draft as a read-only resource the template assistant reads facts from, and joins that template's family (one is made when it has none). The returned `ask` says where the snapshot is mounted; its `variant-source.json` names the source, its entry and the revision taken. A retry with the same idempotency key finishes the same version; the key refuses a different source, or a request without `variantOf`. Refused when `channel` is the source's own or its family already has a template on `channel`. The source's files are mounted whole: a project with more than 31 files, a file over 4 MB, or more than 8 MB in all is refused before anything is created.
20615
+ */
20616
+ variantOf?: TemplateId | null | undefined;
20435
20617
  };
20436
20618
  headers: {
20437
20619
  "idempotency-key": string;
@@ -30006,716 +30188,6 @@ export type NamespacesGetUsageResponses = {
30006
30188
  200: NamespaceUsage;
30007
30189
  };
30008
30190
  export type NamespacesGetUsageResponse = NamespacesGetUsageResponses[keyof NamespacesGetUsageResponses];
30009
- export type ExtensionsListData = {
30010
- body?: never;
30011
- path?: never;
30012
- query?: {
30013
- limit?: number | null | undefined;
30014
- cursor?: string | undefined;
30015
- after?: string | undefined;
30016
- before?: string | undefined;
30017
- };
30018
- url: "/v1/extensions";
30019
- };
30020
- export type ExtensionsListErrors = {
30021
- /**
30022
- * MalformedRequestError
30023
- */
30024
- 400: MalformedRequestError;
30025
- /**
30026
- * UnauthorizedError
30027
- */
30028
- 401: UnauthorizedError;
30029
- /**
30030
- * ForbiddenError
30031
- */
30032
- 403: ForbiddenError;
30033
- /**
30034
- * ResourceNotFoundError
30035
- */
30036
- 404: ResourceNotFoundError;
30037
- /**
30038
- * ValidationError
30039
- */
30040
- 422: ValidationError;
30041
- /**
30042
- * InternalError
30043
- */
30044
- 500: InternalError;
30045
- /**
30046
- * GatewayTimeoutError
30047
- */
30048
- 504: GatewayTimeoutError;
30049
- };
30050
- export type ExtensionsListError = ExtensionsListErrors[keyof ExtensionsListErrors];
30051
- export type ExtensionsListResponses = {
30052
- /**
30053
- * ExtensionPage
30054
- */
30055
- 200: ExtensionPage;
30056
- };
30057
- export type ExtensionsListResponse = ExtensionsListResponses[keyof ExtensionsListResponses];
30058
- export type ExtensionsPublishData = {
30059
- body: {
30060
- manifest: {
30061
- name: string;
30062
- displayName: string;
30063
- description?: string | null | undefined;
30064
- version: string;
30065
- runtime: "hosted" | "webhook";
30066
- events: Array<"mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded">;
30067
- permissions: Array<"read" | "update" | "send" | "quarantine.read">;
30068
- };
30069
- bundle?: string | null | undefined;
30070
- };
30071
- path?: never;
30072
- query?: never;
30073
- url: "/v1/extensions";
30074
- };
30075
- export type ExtensionsPublishErrors = {
30076
- /**
30077
- * MalformedRequestError
30078
- */
30079
- 400: MalformedRequestError;
30080
- /**
30081
- * UnauthorizedError
30082
- */
30083
- 401: UnauthorizedError;
30084
- /**
30085
- * ForbiddenError
30086
- */
30087
- 403: ForbiddenError;
30088
- /**
30089
- * ResourceNotFoundError
30090
- */
30091
- 404: ResourceNotFoundError;
30092
- /**
30093
- * ConflictError
30094
- */
30095
- 409: ConflictError;
30096
- /**
30097
- * ValidationError
30098
- */
30099
- 422: ValidationError;
30100
- /**
30101
- * InternalError
30102
- */
30103
- 500: InternalError;
30104
- /**
30105
- * GatewayTimeoutError
30106
- */
30107
- 504: GatewayTimeoutError;
30108
- };
30109
- export type ExtensionsPublishError = ExtensionsPublishErrors[keyof ExtensionsPublishErrors];
30110
- export type ExtensionsPublishResponses = {
30111
- /**
30112
- * PublishExtensionVersionResponse
30113
- */
30114
- 201: PublishExtensionVersionResponse;
30115
- };
30116
- export type ExtensionsPublishResponse = ExtensionsPublishResponses[keyof ExtensionsPublishResponses];
30117
- export type ExtensionsGetData = {
30118
- body?: never;
30119
- path: {
30120
- /**
30121
- * The extension's id (`ext_…`) or its name.
30122
- */
30123
- id: string;
30124
- };
30125
- query?: never;
30126
- url: "/v1/extensions/{id}";
30127
- };
30128
- export type ExtensionsGetErrors = {
30129
- /**
30130
- * MalformedRequestError
30131
- */
30132
- 400: MalformedRequestError;
30133
- /**
30134
- * UnauthorizedError
30135
- */
30136
- 401: UnauthorizedError;
30137
- /**
30138
- * ForbiddenError
30139
- */
30140
- 403: ForbiddenError;
30141
- /**
30142
- * ResourceNotFoundError
30143
- */
30144
- 404: ResourceNotFoundError;
30145
- /**
30146
- * ValidationError
30147
- */
30148
- 422: ValidationError;
30149
- /**
30150
- * InternalError
30151
- */
30152
- 500: InternalError;
30153
- /**
30154
- * GatewayTimeoutError
30155
- */
30156
- 504: GatewayTimeoutError;
30157
- };
30158
- export type ExtensionsGetError = ExtensionsGetErrors[keyof ExtensionsGetErrors];
30159
- export type ExtensionsGetResponses = {
30160
- /**
30161
- * Extension
30162
- */
30163
- 200: Extension;
30164
- };
30165
- export type ExtensionsGetResponse = ExtensionsGetResponses[keyof ExtensionsGetResponses];
30166
- export type ExtensionsListVersionsData = {
30167
- body?: never;
30168
- path: {
30169
- /**
30170
- * The extension's id (`ext_…`) or its name.
30171
- */
30172
- id: string;
30173
- };
30174
- query?: {
30175
- limit?: number | null | undefined;
30176
- cursor?: string | undefined;
30177
- };
30178
- url: "/v1/extensions/{id}/versions";
30179
- };
30180
- export type ExtensionsListVersionsErrors = {
30181
- /**
30182
- * MalformedRequestError
30183
- */
30184
- 400: MalformedRequestError;
30185
- /**
30186
- * UnauthorizedError
30187
- */
30188
- 401: UnauthorizedError;
30189
- /**
30190
- * ForbiddenError
30191
- */
30192
- 403: ForbiddenError;
30193
- /**
30194
- * ResourceNotFoundError
30195
- */
30196
- 404: ResourceNotFoundError;
30197
- /**
30198
- * ValidationError
30199
- */
30200
- 422: ValidationError;
30201
- /**
30202
- * InternalError
30203
- */
30204
- 500: InternalError;
30205
- /**
30206
- * GatewayTimeoutError
30207
- */
30208
- 504: GatewayTimeoutError;
30209
- };
30210
- export type ExtensionsListVersionsError = ExtensionsListVersionsErrors[keyof ExtensionsListVersionsErrors];
30211
- export type ExtensionsListVersionsResponses = {
30212
- /**
30213
- * ExtensionVersionPage
30214
- */
30215
- 200: ExtensionVersionPage;
30216
- };
30217
- export type ExtensionsListVersionsResponse = ExtensionsListVersionsResponses[keyof ExtensionsListVersionsResponses];
30218
- export type ExtensionsGetVersionData = {
30219
- body?: never;
30220
- path: {
30221
- /**
30222
- * The extension's id (`ext_…`) or its name.
30223
- */
30224
- id: string;
30225
- /**
30226
- * The version's id (`extver_…`) or its version string, such as `1.0.0`.
30227
- */
30228
- versionId: string;
30229
- };
30230
- query?: never;
30231
- url: "/v1/extensions/{id}/versions/{versionId}";
30232
- };
30233
- export type ExtensionsGetVersionErrors = {
30234
- /**
30235
- * MalformedRequestError
30236
- */
30237
- 400: MalformedRequestError;
30238
- /**
30239
- * UnauthorizedError
30240
- */
30241
- 401: UnauthorizedError;
30242
- /**
30243
- * ForbiddenError
30244
- */
30245
- 403: ForbiddenError;
30246
- /**
30247
- * ResourceNotFoundError
30248
- */
30249
- 404: ResourceNotFoundError;
30250
- /**
30251
- * ValidationError
30252
- */
30253
- 422: ValidationError;
30254
- /**
30255
- * InternalError
30256
- */
30257
- 500: InternalError;
30258
- /**
30259
- * GatewayTimeoutError
30260
- */
30261
- 504: GatewayTimeoutError;
30262
- };
30263
- export type ExtensionsGetVersionError = ExtensionsGetVersionErrors[keyof ExtensionsGetVersionErrors];
30264
- export type ExtensionsGetVersionResponses = {
30265
- /**
30266
- * ExtensionVersion
30267
- */
30268
- 200: ExtensionVersion;
30269
- };
30270
- export type ExtensionsGetVersionResponse = ExtensionsGetVersionResponses[keyof ExtensionsGetVersionResponses];
30271
- export type ExtensionInstallationsListData = {
30272
- body?: never;
30273
- path?: never;
30274
- query?: {
30275
- limit?: number | null | undefined;
30276
- cursor?: string | undefined;
30277
- after?: string | undefined;
30278
- before?: string | undefined;
30279
- };
30280
- url: "/v1/extension-installations";
30281
- };
30282
- export type ExtensionInstallationsListErrors = {
30283
- /**
30284
- * MalformedRequestError
30285
- */
30286
- 400: MalformedRequestError;
30287
- /**
30288
- * UnauthorizedError
30289
- */
30290
- 401: UnauthorizedError;
30291
- /**
30292
- * ForbiddenError
30293
- */
30294
- 403: ForbiddenError;
30295
- /**
30296
- * ResourceNotFoundError
30297
- */
30298
- 404: ResourceNotFoundError;
30299
- /**
30300
- * ValidationError
30301
- */
30302
- 422: ValidationError;
30303
- /**
30304
- * InternalError
30305
- */
30306
- 500: InternalError;
30307
- /**
30308
- * GatewayTimeoutError
30309
- */
30310
- 504: GatewayTimeoutError;
30311
- };
30312
- export type ExtensionInstallationsListError = ExtensionInstallationsListErrors[keyof ExtensionInstallationsListErrors];
30313
- export type ExtensionInstallationsListResponses = {
30314
- /**
30315
- * ExtensionInstallationPage
30316
- */
30317
- 200: ExtensionInstallationPage;
30318
- };
30319
- export type ExtensionInstallationsListResponse = ExtensionInstallationsListResponses[keyof ExtensionInstallationsListResponses];
30320
- export type ExtensionInstallationsInstallData = {
30321
- body: {
30322
- extension: string;
30323
- version?: string | null | undefined;
30324
- mailboxIds?: Array<MailboxId> | null | undefined;
30325
- namespaceId?: NamespaceId | null | undefined;
30326
- permissions?: Array<"read" | "update" | "send" | "quarantine.read"> | null | undefined;
30327
- policy?: PolicyConfiguration | null | undefined;
30328
- webhookUrl?: string | null | undefined;
30329
- };
30330
- path?: never;
30331
- query?: never;
30332
- url: "/v1/extension-installations";
30333
- };
30334
- export type ExtensionInstallationsInstallErrors = {
30335
- /**
30336
- * MalformedRequestError
30337
- */
30338
- 400: MalformedRequestError;
30339
- /**
30340
- * UnauthorizedError
30341
- */
30342
- 401: UnauthorizedError;
30343
- /**
30344
- * ForbiddenError
30345
- */
30346
- 403: ForbiddenError;
30347
- /**
30348
- * ResourceNotFoundError
30349
- */
30350
- 404: ResourceNotFoundError;
30351
- /**
30352
- * ConflictError
30353
- */
30354
- 409: ConflictError;
30355
- /**
30356
- * ValidationError
30357
- */
30358
- 422: ValidationError;
30359
- /**
30360
- * InternalError
30361
- */
30362
- 500: InternalError;
30363
- /**
30364
- * GatewayTimeoutError
30365
- */
30366
- 504: GatewayTimeoutError;
30367
- };
30368
- export type ExtensionInstallationsInstallError = ExtensionInstallationsInstallErrors[keyof ExtensionInstallationsInstallErrors];
30369
- export type ExtensionInstallationsInstallResponses = {
30370
- /**
30371
- * InstallExtensionResponse
30372
- */
30373
- 201: InstallExtensionResponse;
30374
- };
30375
- export type ExtensionInstallationsInstallResponse = ExtensionInstallationsInstallResponses[keyof ExtensionInstallationsInstallResponses];
30376
- export type ExtensionInstallationsUninstallData = {
30377
- body?: never;
30378
- path: {
30379
- id: ExtensionInstallationId;
30380
- };
30381
- query?: never;
30382
- url: "/v1/extension-installations/{id}";
30383
- };
30384
- export type ExtensionInstallationsUninstallErrors = {
30385
- /**
30386
- * MalformedRequestError
30387
- */
30388
- 400: MalformedRequestError;
30389
- /**
30390
- * UnauthorizedError
30391
- */
30392
- 401: UnauthorizedError;
30393
- /**
30394
- * ForbiddenError
30395
- */
30396
- 403: ForbiddenError;
30397
- /**
30398
- * ResourceNotFoundError
30399
- */
30400
- 404: ResourceNotFoundError;
30401
- /**
30402
- * ConflictError
30403
- */
30404
- 409: ConflictError;
30405
- /**
30406
- * ValidationError
30407
- */
30408
- 422: ValidationError;
30409
- /**
30410
- * InternalError
30411
- */
30412
- 500: InternalError;
30413
- /**
30414
- * GatewayTimeoutError
30415
- */
30416
- 504: GatewayTimeoutError;
30417
- };
30418
- export type ExtensionInstallationsUninstallError = ExtensionInstallationsUninstallErrors[keyof ExtensionInstallationsUninstallErrors];
30419
- export type ExtensionInstallationsUninstallResponses = {
30420
- /**
30421
- * SuccessResponse
30422
- */
30423
- 200: SuccessResponse;
30424
- };
30425
- export type ExtensionInstallationsUninstallResponse = ExtensionInstallationsUninstallResponses[keyof ExtensionInstallationsUninstallResponses];
30426
- export type ExtensionInstallationsGetData = {
30427
- body?: never;
30428
- path: {
30429
- id: ExtensionInstallationId;
30430
- };
30431
- query?: never;
30432
- url: "/v1/extension-installations/{id}";
30433
- };
30434
- export type ExtensionInstallationsGetErrors = {
30435
- /**
30436
- * MalformedRequestError
30437
- */
30438
- 400: MalformedRequestError;
30439
- /**
30440
- * UnauthorizedError
30441
- */
30442
- 401: UnauthorizedError;
30443
- /**
30444
- * ForbiddenError
30445
- */
30446
- 403: ForbiddenError;
30447
- /**
30448
- * ResourceNotFoundError
30449
- */
30450
- 404: ResourceNotFoundError;
30451
- /**
30452
- * ValidationError
30453
- */
30454
- 422: ValidationError;
30455
- /**
30456
- * InternalError
30457
- */
30458
- 500: InternalError;
30459
- /**
30460
- * GatewayTimeoutError
30461
- */
30462
- 504: GatewayTimeoutError;
30463
- };
30464
- export type ExtensionInstallationsGetError = ExtensionInstallationsGetErrors[keyof ExtensionInstallationsGetErrors];
30465
- export type ExtensionInstallationsGetResponses = {
30466
- /**
30467
- * ExtensionInstallation
30468
- */
30469
- 200: ExtensionInstallation;
30470
- };
30471
- export type ExtensionInstallationsGetResponse = ExtensionInstallationsGetResponses[keyof ExtensionInstallationsGetResponses];
30472
- export type ExtensionInstallationsUpgradeData = {
30473
- body: {
30474
- version?: string | ExtensionVersionId | null | undefined;
30475
- acceptPermissions?: Array<"permission:read" | "permission:update" | "permission:send" | "permission:quarantine.read" | "event:mailbox.message.received" | "event:mailbox.message.sent" | "event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.quarantined" | "event:mailbox.message.released" | "event:mailbox.message.discarded"> | null | undefined;
30476
- dryRun?: boolean | null | undefined;
30477
- };
30478
- path: {
30479
- id: ExtensionInstallationId;
30480
- };
30481
- query?: never;
30482
- url: "/v1/extension-installations/{id}/upgrade";
30483
- };
30484
- export type ExtensionInstallationsUpgradeErrors = {
30485
- /**
30486
- * MalformedRequestError
30487
- */
30488
- 400: MalformedRequestError;
30489
- /**
30490
- * UnauthorizedError
30491
- */
30492
- 401: UnauthorizedError;
30493
- /**
30494
- * ForbiddenError
30495
- */
30496
- 403: ForbiddenError;
30497
- /**
30498
- * ResourceNotFoundError
30499
- */
30500
- 404: ResourceNotFoundError;
30501
- /**
30502
- * ConflictError
30503
- */
30504
- 409: ConflictError;
30505
- /**
30506
- * ValidationError
30507
- */
30508
- 422: ValidationError;
30509
- /**
30510
- * InternalError
30511
- */
30512
- 500: InternalError;
30513
- /**
30514
- * GatewayTimeoutError
30515
- */
30516
- 504: GatewayTimeoutError;
30517
- };
30518
- export type ExtensionInstallationsUpgradeError = ExtensionInstallationsUpgradeErrors[keyof ExtensionInstallationsUpgradeErrors];
30519
- export type ExtensionInstallationsUpgradeResponses = {
30520
- /**
30521
- * UpgradeExtensionResponse
30522
- */
30523
- 200: UpgradeExtensionResponse;
30524
- };
30525
- export type ExtensionInstallationsUpgradeResponse = ExtensionInstallationsUpgradeResponses[keyof ExtensionInstallationsUpgradeResponses];
30526
- export type ExtensionInstallationsDisableData = {
30527
- body?: never;
30528
- path: {
30529
- id: ExtensionInstallationId;
30530
- };
30531
- query?: never;
30532
- url: "/v1/extension-installations/{id}/disable";
30533
- };
30534
- export type ExtensionInstallationsDisableErrors = {
30535
- /**
30536
- * MalformedRequestError
30537
- */
30538
- 400: MalformedRequestError;
30539
- /**
30540
- * UnauthorizedError
30541
- */
30542
- 401: UnauthorizedError;
30543
- /**
30544
- * ForbiddenError
30545
- */
30546
- 403: ForbiddenError;
30547
- /**
30548
- * ResourceNotFoundError
30549
- */
30550
- 404: ResourceNotFoundError;
30551
- /**
30552
- * ConflictError
30553
- */
30554
- 409: ConflictError;
30555
- /**
30556
- * ValidationError
30557
- */
30558
- 422: ValidationError;
30559
- /**
30560
- * InternalError
30561
- */
30562
- 500: InternalError;
30563
- /**
30564
- * GatewayTimeoutError
30565
- */
30566
- 504: GatewayTimeoutError;
30567
- };
30568
- export type ExtensionInstallationsDisableError = ExtensionInstallationsDisableErrors[keyof ExtensionInstallationsDisableErrors];
30569
- export type ExtensionInstallationsDisableResponses = {
30570
- /**
30571
- * ExtensionInstallation
30572
- */
30573
- 200: ExtensionInstallation;
30574
- };
30575
- export type ExtensionInstallationsDisableResponse = ExtensionInstallationsDisableResponses[keyof ExtensionInstallationsDisableResponses];
30576
- export type ExtensionInstallationsEnableData = {
30577
- body?: never;
30578
- path: {
30579
- id: ExtensionInstallationId;
30580
- };
30581
- query?: never;
30582
- url: "/v1/extension-installations/{id}/enable";
30583
- };
30584
- export type ExtensionInstallationsEnableErrors = {
30585
- /**
30586
- * MalformedRequestError
30587
- */
30588
- 400: MalformedRequestError;
30589
- /**
30590
- * UnauthorizedError
30591
- */
30592
- 401: UnauthorizedError;
30593
- /**
30594
- * ForbiddenError
30595
- */
30596
- 403: ForbiddenError;
30597
- /**
30598
- * ResourceNotFoundError
30599
- */
30600
- 404: ResourceNotFoundError;
30601
- /**
30602
- * ConflictError
30603
- */
30604
- 409: ConflictError;
30605
- /**
30606
- * ValidationError
30607
- */
30608
- 422: ValidationError;
30609
- /**
30610
- * InternalError
30611
- */
30612
- 500: InternalError;
30613
- /**
30614
- * GatewayTimeoutError
30615
- */
30616
- 504: GatewayTimeoutError;
30617
- };
30618
- export type ExtensionInstallationsEnableError = ExtensionInstallationsEnableErrors[keyof ExtensionInstallationsEnableErrors];
30619
- export type ExtensionInstallationsEnableResponses = {
30620
- /**
30621
- * ExtensionInstallation
30622
- */
30623
- 200: ExtensionInstallation;
30624
- };
30625
- export type ExtensionInstallationsEnableResponse = ExtensionInstallationsEnableResponses[keyof ExtensionInstallationsEnableResponses];
30626
- export type ExtensionInstallationsListRunsData = {
30627
- body?: never;
30628
- path: {
30629
- id: ExtensionInstallationId;
30630
- };
30631
- query?: never;
30632
- url: "/v1/extension-installations/{id}/runs";
30633
- };
30634
- export type ExtensionInstallationsListRunsErrors = {
30635
- /**
30636
- * MalformedRequestError
30637
- */
30638
- 400: MalformedRequestError;
30639
- /**
30640
- * UnauthorizedError
30641
- */
30642
- 401: UnauthorizedError;
30643
- /**
30644
- * ForbiddenError
30645
- */
30646
- 403: ForbiddenError;
30647
- /**
30648
- * ResourceNotFoundError
30649
- */
30650
- 404: ResourceNotFoundError;
30651
- /**
30652
- * ValidationError
30653
- */
30654
- 422: ValidationError;
30655
- /**
30656
- * InternalError
30657
- */
30658
- 500: InternalError;
30659
- /**
30660
- * GatewayTimeoutError
30661
- */
30662
- 504: GatewayTimeoutError;
30663
- };
30664
- export type ExtensionInstallationsListRunsError = ExtensionInstallationsListRunsErrors[keyof ExtensionInstallationsListRunsErrors];
30665
- export type ExtensionInstallationsListRunsResponses = {
30666
- /**
30667
- * ExtensionRunList
30668
- */
30669
- 200: ExtensionRunList;
30670
- };
30671
- export type ExtensionInstallationsListRunsResponse = ExtensionInstallationsListRunsResponses[keyof ExtensionInstallationsListRunsResponses];
30672
- export type ExtensionInstallationsGetRunData = {
30673
- body?: never;
30674
- path: {
30675
- id: ExtensionInstallationId;
30676
- runId: string;
30677
- };
30678
- query?: never;
30679
- url: "/v1/extension-installations/{id}/runs/{runId}";
30680
- };
30681
- export type ExtensionInstallationsGetRunErrors = {
30682
- /**
30683
- * MalformedRequestError
30684
- */
30685
- 400: MalformedRequestError;
30686
- /**
30687
- * UnauthorizedError
30688
- */
30689
- 401: UnauthorizedError;
30690
- /**
30691
- * ForbiddenError
30692
- */
30693
- 403: ForbiddenError;
30694
- /**
30695
- * ResourceNotFoundError
30696
- */
30697
- 404: ResourceNotFoundError;
30698
- /**
30699
- * ValidationError
30700
- */
30701
- 422: ValidationError;
30702
- /**
30703
- * InternalError
30704
- */
30705
- 500: InternalError;
30706
- /**
30707
- * GatewayTimeoutError
30708
- */
30709
- 504: GatewayTimeoutError;
30710
- };
30711
- export type ExtensionInstallationsGetRunError = ExtensionInstallationsGetRunErrors[keyof ExtensionInstallationsGetRunErrors];
30712
- export type ExtensionInstallationsGetRunResponses = {
30713
- /**
30714
- * ExtensionRun
30715
- */
30716
- 200: ExtensionRun;
30717
- };
30718
- export type ExtensionInstallationsGetRunResponse = ExtensionInstallationsGetRunResponses[keyof ExtensionInstallationsGetRunResponses];
30719
30191
  export type WhatsappGetStatsData = {
30720
30192
  body?: never;
30721
30193
  path?: never;
@@ -32236,7 +31708,7 @@ export type TemplateRegistrationsSubmitErrors = {
32236
31708
  export type TemplateRegistrationsSubmitError = TemplateRegistrationsSubmitErrors[keyof TemplateRegistrationsSubmitErrors];
32237
31709
  export type TemplateRegistrationsSubmitResponses = {
32238
31710
  /**
32239
- * TemplateRegistration
31711
+ * `templateChannelVariantId` identifies the exact content last submitted. A journey step or scheduled send pins it with `id` in `pinnedRegistration` and sends only while this registration holds that content approved.
32240
31712
  */
32241
31713
  201: TemplateRegistration;
32242
31714
  };
@@ -32283,7 +31755,7 @@ export type TemplateRegistrationsGetErrors = {
32283
31755
  export type TemplateRegistrationsGetError = TemplateRegistrationsGetErrors[keyof TemplateRegistrationsGetErrors];
32284
31756
  export type TemplateRegistrationsGetResponses = {
32285
31757
  /**
32286
- * TemplateRegistration
31758
+ * `templateChannelVariantId` identifies the exact content last submitted. A journey step or scheduled send pins it with `id` in `pinnedRegistration` and sends only while this registration holds that content approved.
32287
31759
  */
32288
31760
  200: TemplateRegistration;
32289
31761
  };