samva 0.7.0 → 0.9.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 (40) hide show
  1. package/dist/client/sdk.gen.d.ts +31 -30
  2. package/dist/client/types.gen.d.ts +133 -175
  3. package/dist/{client-5O8KsY5Z.js → client-DB7zbTti.js} +156 -209
  4. package/dist/{client-attribution-27MNycCV.js → client-attribution-vK1yjEdG.js} +2 -2
  5. package/dist/effect/analytics.js +1 -1
  6. package/dist/effect/api-keys.js +1 -1
  7. package/dist/effect/attachments.js +1 -1
  8. package/dist/effect/brands.js +2 -2
  9. package/dist/effect/campaigns.d.ts +34 -0
  10. package/dist/effect/campaigns.js +1 -1
  11. package/dist/effect/client.js +1 -1
  12. package/dist/effect/contact-groups.js +1 -1
  13. package/dist/effect/contacts.js +1 -1
  14. package/dist/effect/conversations.d.ts +9 -9
  15. package/dist/effect/conversations.js +1 -1
  16. package/dist/effect/custom-fields.js +1 -1
  17. package/dist/effect/email.js +2 -2
  18. package/dist/effect/generated.d.ts +508 -568
  19. package/dist/effect/index.js +1 -1
  20. package/dist/effect/media.js +1 -1
  21. package/dist/effect/messages.d.ts +2 -0
  22. package/dist/effect/messages.js +1 -1
  23. package/dist/effect/operations.js +1 -1
  24. package/dist/effect/organizations.d.ts +5 -4
  25. package/dist/effect/organizations.js +4 -2
  26. package/dist/effect/scheduled-messages.d.ts +16 -0
  27. package/dist/effect/scheduled-messages.js +1 -1
  28. package/dist/effect/templates.d.ts +30 -125
  29. package/dist/effect/templates.js +3 -5
  30. package/dist/effect/unsubscribe-groups.d.ts +17 -0
  31. package/dist/effect/unsubscribe-groups.js +4 -2
  32. package/dist/effect/webhooks.d.ts +6 -6
  33. package/dist/effect/webhooks.js +2 -2
  34. package/dist/index.js +1 -1
  35. package/dist/{operation-Cb5V9FJ7.js → operation-Cdp1EI_1.js} +7 -6
  36. package/dist/promises/index.js +1 -1
  37. package/dist/promises/types.gen.d.ts +1 -1
  38. package/dist/{promises-C2yyw-pf.js → promises-DoEUUjNM.js} +51 -63
  39. package/dist/service-map.d.ts +9 -5
  40. package/package.json +2 -2
@@ -258,6 +258,8 @@ export type TemplatePublicationId = string;
258
258
  export type TemplateInputContractId = string;
259
259
  export type TemplateId = string;
260
260
  export type TemplateData = JsonObject | null;
261
+ export type RenderLocale = string;
262
+ export type RenderTimeZone = string;
261
263
  export type ReplyToAddresses = Array<string> | null | null;
262
264
  export type UnsubscribeId = string;
263
265
  export type EmailFooterOverride = {
@@ -273,6 +275,8 @@ export type EmailContent = {
273
275
  templateId?: TemplateId | null | undefined;
274
276
  templateSlug?: string | null | undefined;
275
277
  templateData?: TemplateData | undefined;
278
+ locale?: RenderLocale | undefined;
279
+ timeZone?: RenderTimeZone | undefined;
276
280
  inReplyToMessageId?: MessageId | null | undefined;
277
281
  replyTo?: ReplyToAddresses | undefined;
278
282
  unsubscribeGroupId?: UnsubscribeId | null | undefined;
@@ -399,6 +403,8 @@ export type EmailDispatchContent = {
399
403
  templateId?: TemplateId | null | undefined;
400
404
  templateSlug?: string | null | undefined;
401
405
  templateData?: TemplateData | undefined;
406
+ locale?: RenderLocale | undefined;
407
+ timeZone?: RenderTimeZone | undefined;
402
408
  inReplyToMessageId?: MessageId | null | undefined;
403
409
  replyTo?: ReplyToAddresses | undefined;
404
410
  unsubscribeGroupId?: UnsubscribeId | null | undefined;
@@ -988,7 +994,7 @@ export type ActorTracking = {
988
994
  activeActorIds: Array<ActorId>;
989
995
  actorHistory: Array<{
990
996
  actorId: ActorId;
991
- actorType: "contact" | "system" | "sender_identity" | "agent" | "user";
997
+ actorType: "contact" | "system" | "sender" | "agent" | "user";
992
998
  joinedAt: string;
993
999
  leftAt?: string | null | undefined;
994
1000
  role: "initiator" | "responder" | "observer";
@@ -1056,7 +1062,7 @@ export type Conversation = {
1056
1062
  };
1057
1063
  export type ConversationParticipant = {
1058
1064
  actorId: ActorId;
1059
- actorType: "contact" | "system" | "sender_identity" | "agent" | "user";
1065
+ actorType: "contact" | "system" | "sender" | "agent" | "user";
1060
1066
  contact: MessageContact;
1061
1067
  };
1062
1068
  export type ConversationDetail = {
@@ -1359,6 +1365,14 @@ export type BrandFooter = {
1359
1365
  address?: BrandAddress | null | undefined;
1360
1366
  socialLinks?: Array<BrandSocialLink> | null | undefined;
1361
1367
  };
1368
+ export type BrandFooterBlock = {
1369
+ html: string;
1370
+ text: string;
1371
+ };
1372
+ export type BrandRenderedFooter = {
1373
+ withUnsubscribe: BrandFooterBlock;
1374
+ withoutUnsubscribe: BrandFooterBlock;
1375
+ };
1362
1376
  export type BrandId = string;
1363
1377
  export type Brand = {
1364
1378
  id: BrandId;
@@ -1405,7 +1419,7 @@ export type UpdateBrand = {
1405
1419
  export type CreateWebhookPayload = {
1406
1420
  name: string;
1407
1421
  url: string;
1408
- eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "contact.created" | "contact.updated" | "contact.deleted" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated">;
1422
+ eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated">;
1409
1423
  channels?: Array<"email"> | null | undefined;
1410
1424
  headers?: {
1411
1425
  [key: string]: string;
@@ -1416,7 +1430,7 @@ export type WebhookEndpoint = {
1416
1430
  id: WebhookEndpointId;
1417
1431
  name: string;
1418
1432
  url: string;
1419
- eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "contact.created" | "contact.updated" | "contact.deleted" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated">;
1433
+ eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated">;
1420
1434
  channels: Array<"email"> | null;
1421
1435
  status: "active" | "disabled";
1422
1436
  hasCustomHeaders: boolean;
@@ -1436,7 +1450,7 @@ export type WebhookEndpointListItem = {
1436
1450
  id: WebhookEndpointId;
1437
1451
  name: string;
1438
1452
  url: string;
1439
- eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "contact.created" | "contact.updated" | "contact.deleted" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated">;
1453
+ eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated">;
1440
1454
  channels: Array<"email"> | null;
1441
1455
  status: "active" | "disabled";
1442
1456
  hasCustomHeaders: boolean;
@@ -1449,7 +1463,7 @@ export type WebhookEndpointListItem = {
1449
1463
  export type UpdateWebhookPayload = {
1450
1464
  name?: string | null | undefined;
1451
1465
  url?: string | null | undefined;
1452
- eventTypes?: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "contact.created" | "contact.updated" | "contact.deleted" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated"> | null | undefined;
1466
+ eventTypes?: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated"> | null | undefined;
1453
1467
  channels?: Array<"email"> | null | null | undefined;
1454
1468
  headers?: {
1455
1469
  [key: string]: string;
@@ -1494,7 +1508,6 @@ export type Organization = {
1494
1508
  [key: string]: JsonValue;
1495
1509
  } | null;
1496
1510
  replyToDefault: Array<string> | null;
1497
- defaultUnsubscribeGroupId: UnsubscribeId | null;
1498
1511
  emailFooterEnabledDefault: boolean | null;
1499
1512
  messagesUsed: number;
1500
1513
  messagesUsedThisMonth: number;
@@ -7954,6 +7967,7 @@ export type UnsubscribeListResponses = {
7954
7967
  organizationId: string;
7955
7968
  name: string;
7956
7969
  description: string | null;
7970
+ isDefault: boolean;
7957
7971
  memberCount: number;
7958
7972
  createdAt: string;
7959
7973
  updatedAt: string;
@@ -7999,6 +8013,7 @@ export type UnsubscribeCreateResponses = {
7999
8013
  organizationId: string;
8000
8014
  name: string;
8001
8015
  description: string | null;
8016
+ isDefault: boolean;
8002
8017
  memberCount: number;
8003
8018
  createdAt: string;
8004
8019
  updatedAt: string;
@@ -8026,6 +8041,10 @@ export type UnsubscribeRemoveErrors = {
8026
8041
  * ResourceNotFoundError
8027
8042
  */
8028
8043
  404: ResourceNotFoundError;
8044
+ /**
8045
+ * ConflictError
8046
+ */
8047
+ 409: ConflictError;
8029
8048
  /**
8030
8049
  * InternalError
8031
8050
  */
@@ -8088,12 +8107,60 @@ export type UnsubscribeUpdateResponses = {
8088
8107
  organizationId: string;
8089
8108
  name: string;
8090
8109
  description: string | null;
8110
+ isDefault: boolean;
8091
8111
  memberCount: number;
8092
8112
  createdAt: string;
8093
8113
  updatedAt: string;
8094
8114
  };
8095
8115
  };
8096
8116
  export type UnsubscribeUpdateResponse = UnsubscribeUpdateResponses[keyof UnsubscribeUpdateResponses];
8117
+ export type UnsubscribeSetDefaultData = {
8118
+ body?: never;
8119
+ path: {
8120
+ id: UnsubscribeId;
8121
+ };
8122
+ query?: never;
8123
+ url: "/v1/unsubscribe-groups/{id}/default";
8124
+ };
8125
+ export type UnsubscribeSetDefaultErrors = {
8126
+ /**
8127
+ * UnauthorizedError
8128
+ */
8129
+ 401: UnauthorizedError;
8130
+ /**
8131
+ * ForbiddenError
8132
+ */
8133
+ 403: ForbiddenError;
8134
+ /**
8135
+ * ResourceNotFoundError
8136
+ */
8137
+ 404: ResourceNotFoundError;
8138
+ /**
8139
+ * InternalError
8140
+ */
8141
+ 500: InternalError;
8142
+ /**
8143
+ * GatewayTimeoutError
8144
+ */
8145
+ 504: GatewayTimeoutError;
8146
+ };
8147
+ export type UnsubscribeSetDefaultError = UnsubscribeSetDefaultErrors[keyof UnsubscribeSetDefaultErrors];
8148
+ export type UnsubscribeSetDefaultResponses = {
8149
+ /**
8150
+ * Success
8151
+ */
8152
+ 200: {
8153
+ id: UnsubscribeId;
8154
+ organizationId: string;
8155
+ name: string;
8156
+ description: string | null;
8157
+ isDefault: boolean;
8158
+ memberCount: number;
8159
+ createdAt: string;
8160
+ updatedAt: string;
8161
+ };
8162
+ };
8163
+ export type UnsubscribeSetDefaultResponse = UnsubscribeSetDefaultResponses[keyof UnsubscribeSetDefaultResponses];
8097
8164
  export type UnsubscribeRemoveEmailsData = {
8098
8165
  body: {
8099
8166
  emails: Array<string>;
@@ -9608,133 +9675,6 @@ export type TemplatesPutWorkspaceAssetResponses = {
9608
9675
  };
9609
9676
  };
9610
9677
  export type TemplatesPutWorkspaceAssetResponse = TemplatesPutWorkspaceAssetResponses[keyof TemplatesPutWorkspaceAssetResponses];
9611
- export type TemplatesReconcileWorkspaceData = {
9612
- body: {
9613
- expectedRevision: string;
9614
- assetResolution?: "draft" | "remote" | undefined;
9615
- expectedRemoteHead?: string | undefined;
9616
- idempotencyKey: string;
9617
- };
9618
- path: {
9619
- id: TemplateId;
9620
- };
9621
- query?: never;
9622
- url: "/v1/templates/{id}/workspace/reconcile";
9623
- };
9624
- export type TemplatesReconcileWorkspaceErrors = {
9625
- /**
9626
- * UnauthorizedError
9627
- */
9628
- 401: UnauthorizedError;
9629
- /**
9630
- * ForbiddenError
9631
- */
9632
- 403: ForbiddenError;
9633
- /**
9634
- * ResourceNotFoundError
9635
- */
9636
- 404: ResourceNotFoundError;
9637
- /**
9638
- * ConflictError
9639
- */
9640
- 409: ConflictError;
9641
- /**
9642
- * InternalError
9643
- */
9644
- 500: InternalError;
9645
- /**
9646
- * GatewayTimeoutError
9647
- */
9648
- 504: GatewayTimeoutError;
9649
- };
9650
- export type TemplatesReconcileWorkspaceError = TemplatesReconcileWorkspaceErrors[keyof TemplatesReconcileWorkspaceErrors];
9651
- export type TemplatesReconcileWorkspaceResponses = {
9652
- /**
9653
- * Success
9654
- */
9655
- 200: {
9656
- workspace: {
9657
- projectId: TemplateProjectId;
9658
- organizationId: OrganizationId | null;
9659
- ownerEpoch: number;
9660
- repositoryName: string;
9661
- defaultBranch: string;
9662
- baseCommit: string;
9663
- remoteHead: string;
9664
- pendingRemoteHead: string | null;
9665
- revision: string;
9666
- overlay: {
9667
- [key: string]: string | null;
9668
- };
9669
- assetChanges: Array<{
9670
- path: string;
9671
- status: "added" | "modified" | "deleted";
9672
- }>;
9673
- conflicts: Array<{
9674
- path: string;
9675
- base: string | null;
9676
- draft: string | null;
9677
- main: string | null;
9678
- }>;
9679
- provenance: {
9680
- references: Array<{
9681
- kind: string;
9682
- digest: string;
9683
- locator?: string | undefined;
9684
- }>;
9685
- };
9686
- mounts: Array<{
9687
- kind: "project";
9688
- root: "/project";
9689
- access: "read-write";
9690
- } | {
9691
- root: string;
9692
- digest: string;
9693
- fileCount: number;
9694
- byteSize: number;
9695
- kind: "started-from";
9696
- access: "read-only";
9697
- templateId: string;
9698
- slug: string;
9699
- name: string;
9700
- } | {
9701
- root: string;
9702
- digest: string;
9703
- fileCount: number;
9704
- byteSize: number;
9705
- kind: "resource";
9706
- access: "read-only";
9707
- resourceId: string;
9708
- name: string;
9709
- } | {
9710
- root: string;
9711
- digest: string;
9712
- fileCount: number;
9713
- byteSize: number;
9714
- kind: "library-template";
9715
- access: "read-only";
9716
- templateId: string;
9717
- slug: string;
9718
- name: string;
9719
- }>;
9720
- libraryManifestDigest: string;
9721
- createdAt: string;
9722
- updatedAt: string;
9723
- createdBy: {
9724
- userId: UserId;
9725
- via: "api" | "mcp" | "agent";
9726
- };
9727
- updatedBy: {
9728
- userId: UserId;
9729
- via: "api" | "mcp" | "agent";
9730
- };
9731
- };
9732
- files: {
9733
- [key: string]: string;
9734
- };
9735
- };
9736
- };
9737
- export type TemplatesReconcileWorkspaceResponse = TemplatesReconcileWorkspaceResponses[keyof TemplatesReconcileWorkspaceResponses];
9738
9678
  export type TemplatesResolveWorkspaceConflictData = {
9739
9679
  body: {
9740
9680
  expectedRevision: string;
@@ -10210,10 +10150,6 @@ export type TemplatesCheckWorkspaceResponses = {
10210
10150
  schemaDigest: string;
10211
10151
  contractDigest: string;
10212
10152
  };
10213
- runtime: {
10214
- now?: number | undefined;
10215
- randomSeed?: number | undefined;
10216
- };
10217
10153
  fixtures: Array<string>;
10218
10154
  } | null;
10219
10155
  diagnostics: Array<{
@@ -10321,10 +10257,6 @@ export type TemplatesRenderWorkspaceFixtureResponses = {
10321
10257
  schemaDigest: string;
10322
10258
  contractDigest: string;
10323
10259
  };
10324
- runtime: {
10325
- now?: number | undefined;
10326
- randomSeed?: number | undefined;
10327
- };
10328
10260
  fixtures: Array<string>;
10329
10261
  } | null;
10330
10262
  diagnostics: Array<{
@@ -10459,26 +10391,16 @@ export type TemplatesPublishResponses = {
10459
10391
  buildIdentity: string;
10460
10392
  manifest: {
10461
10393
  templateKey: string;
10462
- executable: {
10463
- codeDigest: string;
10394
+ ir: {
10395
+ version: number;
10396
+ digest: string;
10464
10397
  bytes: number;
10465
10398
  };
10399
+ compiler: string;
10466
10400
  input: {
10467
10401
  schemaDigest: string;
10468
10402
  contractDigest: string;
10469
10403
  };
10470
- environment: {
10471
- locale: string;
10472
- timeZone: "UTC";
10473
- now?: number | undefined;
10474
- randomSeed?: number | undefined;
10475
- compiler: string;
10476
- runtime: string;
10477
- checker: string;
10478
- lockKind: "bun" | "npm";
10479
- lockDigest: string;
10480
- digest: string;
10481
- };
10482
10404
  assets: {
10483
10405
  base: string;
10484
10406
  entries: Array<{
@@ -10501,11 +10423,12 @@ export type TemplatesPublishResponses = {
10501
10423
  css: string;
10502
10424
  assets: BrandAssets;
10503
10425
  footer: BrandFooter;
10426
+ renderedFooter: BrandRenderedFooter;
10504
10427
  digest: string;
10505
10428
  rendersFooter: "every" | "some" | "none";
10506
10429
  } | undefined;
10507
10430
  };
10508
- executable: {
10431
+ ir: {
10509
10432
  key: string;
10510
10433
  digest: string;
10511
10434
  };
@@ -10618,26 +10541,16 @@ export type TemplatesGetPublicationResponses = {
10618
10541
  buildIdentity: string;
10619
10542
  manifest: {
10620
10543
  templateKey: string;
10621
- executable: {
10622
- codeDigest: string;
10544
+ ir: {
10545
+ version: number;
10546
+ digest: string;
10623
10547
  bytes: number;
10624
10548
  };
10549
+ compiler: string;
10625
10550
  input: {
10626
10551
  schemaDigest: string;
10627
10552
  contractDigest: string;
10628
10553
  };
10629
- environment: {
10630
- locale: string;
10631
- timeZone: "UTC";
10632
- now?: number | undefined;
10633
- randomSeed?: number | undefined;
10634
- compiler: string;
10635
- runtime: string;
10636
- checker: string;
10637
- lockKind: "bun" | "npm";
10638
- lockDigest: string;
10639
- digest: string;
10640
- };
10641
10554
  assets: {
10642
10555
  base: string;
10643
10556
  entries: Array<{
@@ -10660,11 +10573,12 @@ export type TemplatesGetPublicationResponses = {
10660
10573
  css: string;
10661
10574
  assets: BrandAssets;
10662
10575
  footer: BrandFooter;
10576
+ renderedFooter: BrandRenderedFooter;
10663
10577
  digest: string;
10664
10578
  rendersFooter: "every" | "some" | "none";
10665
10579
  } | undefined;
10666
10580
  };
10667
- executable: {
10581
+ ir: {
10668
10582
  key: string;
10669
10583
  digest: string;
10670
10584
  };
@@ -11463,7 +11377,7 @@ export type WebhooksCreateData = {
11463
11377
  body: {
11464
11378
  name: string;
11465
11379
  url: string;
11466
- eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "contact.created" | "contact.updated" | "contact.deleted" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated">;
11380
+ eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated">;
11467
11381
  channels?: Array<"email"> | null | undefined;
11468
11382
  headers?: {
11469
11383
  [key: string]: string;
@@ -11603,7 +11517,7 @@ export type WebhooksUpdateData = {
11603
11517
  body: {
11604
11518
  name?: string | null | undefined;
11605
11519
  url?: string | null | undefined;
11606
- eventTypes?: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "contact.created" | "contact.updated" | "contact.deleted" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated"> | null | undefined;
11520
+ eventTypes?: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated"> | null | undefined;
11607
11521
  channels?: Array<"email"> | null | null | undefined;
11608
11522
  headers?: {
11609
11523
  [key: string]: string;
@@ -11996,7 +11910,6 @@ export type OrganizationsUpdateData = {
11996
11910
  [key: string]: JsonValue;
11997
11911
  } | null | undefined;
11998
11912
  replyToDefault?: Array<string> | null | null | undefined;
11999
- defaultUnsubscribeGroupId?: UnsubscribeId | null | null | undefined;
12000
11913
  emailFooterEnabledDefault?: boolean | null | null | undefined;
12001
11914
  };
12002
11915
  path?: never;
@@ -12037,6 +11950,51 @@ export type OrganizationsUpdateResponses = {
12037
11950
  200: Organization;
12038
11951
  };
12039
11952
  export type OrganizationsUpdateResponse = OrganizationsUpdateResponses[keyof OrganizationsUpdateResponses];
11953
+ export type OrganizationsGetProfileData = {
11954
+ body?: never;
11955
+ path?: never;
11956
+ query?: never;
11957
+ url: "/v1/organizations/current/profile";
11958
+ };
11959
+ export type OrganizationsGetProfileErrors = {
11960
+ /**
11961
+ * UnauthorizedError
11962
+ */
11963
+ 401: UnauthorizedError;
11964
+ /**
11965
+ * ForbiddenError
11966
+ */
11967
+ 403: ForbiddenError;
11968
+ /**
11969
+ * InternalError
11970
+ */
11971
+ 500: InternalError;
11972
+ /**
11973
+ * GatewayTimeoutError
11974
+ */
11975
+ 504: GatewayTimeoutError;
11976
+ };
11977
+ export type OrganizationsGetProfileError = OrganizationsGetProfileErrors[keyof OrganizationsGetProfileErrors];
11978
+ export type OrganizationsGetProfileResponses = {
11979
+ /**
11980
+ * Success
11981
+ */
11982
+ 200: {
11983
+ /**
11984
+ * Opaque identity for your organization membership
11985
+ */
11986
+ id: string;
11987
+ /**
11988
+ * Your display name
11989
+ */
11990
+ name: string;
11991
+ /**
11992
+ * Your display name and organization name
11993
+ */
11994
+ nickname: string;
11995
+ };
11996
+ };
11997
+ export type OrganizationsGetProfileResponse = OrganizationsGetProfileResponses[keyof OrganizationsGetProfileResponses];
12040
11998
  export type OrganizationsGetUsageData = {
12041
11999
  body?: never;
12042
12000
  path?: never;