samva 0.42.0 → 0.43.1

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.
@@ -837,6 +837,12 @@ export type NamespaceMetadata = {
837
837
  readonly [x: string]: string;
838
838
  };
839
839
  export declare const NamespaceMetadata: Schema.$Record<Schema.String, Schema.String>;
840
+ export type NamespacePortalLinkMetadata = {
841
+ readonly [x: string]: string;
842
+ };
843
+ export declare const NamespacePortalLinkMetadata: Schema.$Record<Schema.String, Schema.String>;
844
+ export type WhatsAppSetupLinkRedirectUrl = string;
845
+ export declare const WhatsAppSetupLinkRedirectUrl: Schema.String;
840
846
  export type NamespaceResourceType = "domain" | "sender" | "whatsappNumber" | "smsNumber" | "contact" | "template";
841
847
  export declare const NamespaceResourceType: Schema.Union<readonly [Schema.Literal<"domain">, Schema.Literal<"sender">, Schema.Literal<"whatsappNumber">, Schema.Literal<"smsNumber">, Schema.Literal<"contact">, Schema.Literal<"template">]>;
842
848
  export type NewsletterId = string & EffectBrand.Brand<"NewsletterId">;
@@ -1954,12 +1960,12 @@ export type MailboxActionDecision = {
1954
1960
  readonly outcome: "allow" | "hold" | "refuse";
1955
1961
  readonly reason: string;
1956
1962
  readonly scopes: ReadonlyArray<{
1957
- readonly kind: "organization" | "mailbox" | "agent" | "apiKey";
1963
+ readonly kind: "organization" | "integration" | "mailbox" | "agent" | "apiKey";
1958
1964
  readonly id: string;
1959
1965
  }>;
1960
1966
  readonly rule?: {
1961
1967
  readonly scope: {
1962
- readonly kind: "organization" | "mailbox" | "agent" | "apiKey";
1968
+ readonly kind: "organization" | "integration" | "mailbox" | "agent" | "apiKey";
1963
1969
  readonly id: string;
1964
1970
  };
1965
1971
  readonly index: number;
@@ -1990,12 +1996,12 @@ export declare const MailboxActionDecision: Schema.Struct<{
1990
1996
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
1991
1997
  readonly reason: Schema.String;
1992
1998
  readonly scopes: Schema.$Array<Schema.Struct<{
1993
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1999
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1994
2000
  readonly id: Schema.String;
1995
2001
  }>>;
1996
2002
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1997
2003
  readonly scope: Schema.Struct<{
1998
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2004
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1999
2005
  readonly id: Schema.String;
2000
2006
  }>;
2001
2007
  readonly index: Schema.Finite;
@@ -2217,6 +2223,16 @@ export declare const CreateNamespacePayload: Schema.Struct<{
2217
2223
  readonly name: Schema.String;
2218
2224
  readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
2219
2225
  }>;
2226
+ export type CreateNamespacePortalLinkPayload = {
2227
+ readonly redirectUrl?: WhatsAppSetupLinkRedirectUrl | null;
2228
+ readonly metadata?: NamespacePortalLinkMetadata | null;
2229
+ readonly expiresIn?: number | null;
2230
+ };
2231
+ export declare const CreateNamespacePortalLinkPayload: Schema.Struct<{
2232
+ readonly redirectUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2233
+ readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
2234
+ readonly expiresIn: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
2235
+ }>;
2220
2236
  export type AssignNamespaceResourcePayload = {
2221
2237
  readonly type: NamespaceResourceType;
2222
2238
  readonly resourceId: string;
@@ -3057,12 +3073,12 @@ export declare const MailboxSendReceipt: Schema.Struct<{
3057
3073
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
3058
3074
  readonly reason: Schema.String;
3059
3075
  readonly scopes: Schema.$Array<Schema.Struct<{
3060
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3076
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3061
3077
  readonly id: Schema.String;
3062
3078
  }>>;
3063
3079
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3064
3080
  readonly scope: Schema.Struct<{
3065
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3081
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3066
3082
  readonly id: Schema.String;
3067
3083
  }>;
3068
3084
  readonly index: Schema.Finite;
@@ -3709,12 +3725,12 @@ declare const MailboxSendRefusedError_base: Schema.Class<MailboxSendRefusedError
3709
3725
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
3710
3726
  readonly reason: Schema.String;
3711
3727
  readonly scopes: Schema.$Array<Schema.Struct<{
3712
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3728
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3713
3729
  readonly id: Schema.String;
3714
3730
  }>>;
3715
3731
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3716
3732
  readonly scope: Schema.Struct<{
3717
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3733
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3718
3734
  readonly id: Schema.String;
3719
3735
  }>;
3720
3736
  readonly index: Schema.Finite;
@@ -3806,12 +3822,12 @@ declare const MailboxSendConflictError_base: Schema.Class<MailboxSendConflictErr
3806
3822
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
3807
3823
  readonly reason: Schema.String;
3808
3824
  readonly scopes: Schema.$Array<Schema.Struct<{
3809
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3825
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3810
3826
  readonly id: Schema.String;
3811
3827
  }>>;
3812
3828
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3813
3829
  readonly scope: Schema.Struct<{
3814
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3830
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3815
3831
  readonly id: Schema.String;
3816
3832
  }>;
3817
3833
  readonly index: Schema.Finite;
@@ -717,6 +717,14 @@ const NamespaceMetadata = /* @__PURE__ */ (() => Schema.Record(Schema.String, Sc
717
717
  description: "Your own labels for the namespace, such as the id of your customer it serves. Samva stores them and never reads them.",
718
718
  identifier: "NamespaceMetadata"
719
719
  }))();
720
+ const NamespacePortalLinkMetadata = /* @__PURE__ */ (() => Schema.Record(Schema.String, Schema.String.check(Schema.isMaxCodePoints(512).annotate({ expected: "a string with at most 512 code points" })).check(Schema.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" }))).check(Schema.isPropertyNames(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(64).annotate({ expected: "a string with at most 64 code points" }))).annotate({
721
+ expected: "an object with property names matching the schema",
722
+ identifier: "NamespacePortalLinkMetadata"
723
+ })))();
724
+ const WhatsAppSetupLinkRedirectUrl = /* @__PURE__ */ (() => Schema.String.check(Schema.isMaxCodePoints(2048).annotate({
725
+ expected: "a string with at most 2048 code points",
726
+ identifier: "WhatsAppSetupLinkRedirectUrl"
727
+ })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })))();
720
728
  const NamespaceResourceType = /* @__PURE__ */ (() => Schema.Union([
721
729
  Schema.Literal("domain"),
722
730
  Schema.Literal("sender"),
@@ -1209,6 +1217,7 @@ const MailboxActionDecision = /* @__PURE__ */ (() => Schema.Struct({
1209
1217
  scopes: Schema.Array(Schema.Struct({
1210
1218
  kind: Schema.Union([
1211
1219
  Schema.Literal("organization"),
1220
+ Schema.Literal("integration"),
1212
1221
  Schema.Literal("mailbox"),
1213
1222
  Schema.Literal("agent"),
1214
1223
  Schema.Literal("apiKey")
@@ -1219,6 +1228,7 @@ const MailboxActionDecision = /* @__PURE__ */ (() => Schema.Struct({
1219
1228
  scope: Schema.Struct({
1220
1229
  kind: Schema.Union([
1221
1230
  Schema.Literal("organization"),
1231
+ Schema.Literal("integration"),
1222
1232
  Schema.Literal("mailbox"),
1223
1233
  Schema.Literal("agent"),
1224
1234
  Schema.Literal("apiKey")
@@ -1857,6 +1867,6 @@ const ApiKeySecurity = HttpApiSecurity.apiKey({
1857
1867
  in: "header"
1858
1868
  });
1859
1869
  var ApiKeySecurityMiddleware = class extends HttpApiMiddleware.Service()("apiKey security", { security: { apiKey: ApiKeySecurity } }) {};
1860
- export { AgentDefinition, AgentId, AgentIntegrationGrant, AgentModel, AgentModelChoice, AgentName, AgentReasoning, AgentSetupJob, AgentToolScope, AnalyticsQueryError, ApiKeyAccess, ApiKeyId, ApiKeyMailboxAccess, ApiKeyResourceAccess, ApiKeySecurity, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, BrandAddress, BrandAddressRequiredError, BrandAssets, BrandFooter, BrandSocialLink, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignEmailInput, CampaignFooterRequiredError, CampaignFromInput, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, CatalogModelId, ClockTime, ConflictError, ContactConsent, ContactEvent, ContactEventReference, ContactGroupId, ContactId, ContactIdentity, ContactIdentityChannel, ContactIdentityId, ConversationId, CreateBrand, CreateEventPayload, CreateMailboxChatDraftPayload, CreateMailboxEmailDraftPayload, CreateMailboxEndpointPayload, CreateTemplatePayload, CreateWebhookPayload, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCampaignContentInput, EmailCcRecipients, EmailChannelError, EmailContent, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailSenderId, EmailTrackingOverrideV1, ExtensionId, ExtensionInstallationId, ExtensionVersionId, ExtensionVersionRef, ExternalServiceError, FeedbackContext, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IanaTimezone, IntegrationId, InternalError, JourneyBranchEdge, JourneyBranchNode, JourneyComparison, JourneyCondition, JourneyContactCreatedTrigger, JourneyContactProperty, JourneyCustomEventName, JourneyCustomEventTrigger, JourneyCustomFieldPredicate, JourneyDefinition, JourneyEmptyConfig, JourneyEqualityComparison, JourneyEventName, JourneyEventPredicate, JourneyExitNode, JourneyGoal, JourneyGroupJoinedTrigger, JourneyName, JourneyNextEdge, JourneyNode, JourneyNodeId, JourneyNumericComparison, JourneyPredicate, JourneyPresenceComparison, JourneyPropertyPredicate, JourneySendEmailConfig, JourneySendEmailNode, JourneyStringComparison, JourneyTagAddedTrigger, JourneyTagPredicate, JourneyTrigger, JourneyUpdateTagsConfig, JourneyUpdateTagsNode, JourneyWaitConfig, JourneyWaitEventEdge, JourneyWaitForEventConfig, JourneyWaitForEventNode, JourneyWaitNode, JourneyWebhookConfig, JourneyWebhookNode, JsonObject, JsonValue, KnowledgeSourceId, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxSendConflictError, MailboxSendError, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MalformedRequestError, MediaId, MessageId, MessageMetadata, MessagePage, MessageSummary, MonthlySpendCapDollars, NamespaceId, NamespaceMetadata, NamespaceResourceType, NewsletterId, OnboardingReviewRequiredError, Operation, OperationAccepted, OperationId, OperationResource, OperationResourceLink, OrganizationId, PaymentRequiredError, PolicyConfiguration, PolicyDecider, PolicyDecisionId, PolicyEffect, PolicyRequirement, PolicyReviewRound, PolicyRule, PolicyRuleMatch, PolicySubject, PolicyVersion, RateLimitedError, RenderLocale, RenderTimeZone, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SendMailboxChatPayload, SendMailboxEmailPayload, SenderNotReadyError, SendsSeries, ServiceUnavailableError, SkippedRecipient, SmsCampaignContentInput, SmsContent, SmsDispatchContent, SmsRecipient, SmsRecipients, SmsSendMessagePayload, SmsTemplateData, StoredEmailAttachments, StoredReplyToAddresses, SuccessResponse, TemplateData, TemplateFromDefaultInput, TemplateId, TemplateInUseError, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateSourceError, TemplateTrackingDefault, TestWebhookPayload, TimeZone, TopicContactByEmail, TopicContactById, TopicContactByPhone, TopicContactRef, TopicId, UnauthorizedError, UpdateBrand, UpdateTemplatePayload, UpdateWebhookPayload, UserId, ValidationError, WebhookEndpointId, Weekday, WhatsAppAudio, WhatsAppAudioLink, WhatsAppAudioUpload, WhatsAppBusinessAccountId, WhatsAppButtonsMessage, WhatsAppCampaignContentInput, WhatsAppContactCard, WhatsAppContactsContent, WhatsAppContent, WhatsAppCtaUrlMessage, WhatsAppDocument, WhatsAppDocumentHeader, WhatsAppDocumentHeaderLink, WhatsAppDocumentHeaderUpload, WhatsAppDocumentLink, WhatsAppDocumentUpload, WhatsAppFlowId, WhatsAppFlowMessage, WhatsAppImage, WhatsAppImageHeader, WhatsAppImageHeaderLink, WhatsAppImageHeaderUpload, WhatsAppImageLink, WhatsAppImageUpload, WhatsAppInteractive, WhatsAppInteractiveContent, WhatsAppInteractiveHeader, WhatsAppJourneySendNode, WhatsAppListMessage, WhatsAppListRow, WhatsAppListSection, WhatsAppLocation, WhatsAppLocationContent, WhatsAppMediaContent, WhatsAppOutboundMedia, WhatsAppReaction, WhatsAppReactionContent, WhatsAppRecipient, WhatsAppRecipients, WhatsAppReplyButton, WhatsAppSendMessagePayload, WhatsAppServiceWindowClosedError, WhatsAppSticker, WhatsAppStickerLink, WhatsAppStickerUpload, WhatsAppTemplateBinding, WhatsAppTemplateBindings, WhatsAppTemplateContactBinding, WhatsAppTemplateCustomFieldBinding, WhatsAppTemplateData, WhatsAppTemplateDispatch, WhatsAppTemplateDispatchData, WhatsAppTemplateIdContent, WhatsAppTemplateSlugContent, WhatsAppTextContent, WhatsAppTextHeader, WhatsAppVideo, WhatsAppVideoHeader, WhatsAppVideoHeaderLink, WhatsAppVideoHeaderUpload, WhatsAppVideoLink, WhatsAppVideoUpload, WorkingHours, WorkingHoursRange, AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, SensitiveString as __SamvaRuntimeSensitiveString };
1870
+ export { AgentDefinition, AgentId, AgentIntegrationGrant, AgentModel, AgentModelChoice, AgentName, AgentReasoning, AgentSetupJob, AgentToolScope, AnalyticsQueryError, ApiKeyAccess, ApiKeyId, ApiKeyMailboxAccess, ApiKeyResourceAccess, ApiKeySecurity, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, BrandAddress, BrandAddressRequiredError, BrandAssets, BrandFooter, BrandSocialLink, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignEmailInput, CampaignFooterRequiredError, CampaignFromInput, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, CatalogModelId, ClockTime, ConflictError, ContactConsent, ContactEvent, ContactEventReference, ContactGroupId, ContactId, ContactIdentity, ContactIdentityChannel, ContactIdentityId, ConversationId, CreateBrand, CreateEventPayload, CreateMailboxChatDraftPayload, CreateMailboxEmailDraftPayload, CreateMailboxEndpointPayload, CreateTemplatePayload, CreateWebhookPayload, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCampaignContentInput, EmailCcRecipients, EmailChannelError, EmailContent, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailSenderId, EmailTrackingOverrideV1, ExtensionId, ExtensionInstallationId, ExtensionVersionId, ExtensionVersionRef, ExternalServiceError, FeedbackContext, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IanaTimezone, IntegrationId, InternalError, JourneyBranchEdge, JourneyBranchNode, JourneyComparison, JourneyCondition, JourneyContactCreatedTrigger, JourneyContactProperty, JourneyCustomEventName, JourneyCustomEventTrigger, JourneyCustomFieldPredicate, JourneyDefinition, JourneyEmptyConfig, JourneyEqualityComparison, JourneyEventName, JourneyEventPredicate, JourneyExitNode, JourneyGoal, JourneyGroupJoinedTrigger, JourneyName, JourneyNextEdge, JourneyNode, JourneyNodeId, JourneyNumericComparison, JourneyPredicate, JourneyPresenceComparison, JourneyPropertyPredicate, JourneySendEmailConfig, JourneySendEmailNode, JourneyStringComparison, JourneyTagAddedTrigger, JourneyTagPredicate, JourneyTrigger, JourneyUpdateTagsConfig, JourneyUpdateTagsNode, JourneyWaitConfig, JourneyWaitEventEdge, JourneyWaitForEventConfig, JourneyWaitForEventNode, JourneyWaitNode, JourneyWebhookConfig, JourneyWebhookNode, JsonObject, JsonValue, KnowledgeSourceId, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxSendConflictError, MailboxSendError, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MalformedRequestError, MediaId, MessageId, MessageMetadata, MessagePage, MessageSummary, MonthlySpendCapDollars, NamespaceId, NamespaceMetadata, NamespacePortalLinkMetadata, NamespaceResourceType, NewsletterId, OnboardingReviewRequiredError, Operation, OperationAccepted, OperationId, OperationResource, OperationResourceLink, OrganizationId, PaymentRequiredError, PolicyConfiguration, PolicyDecider, PolicyDecisionId, PolicyEffect, PolicyRequirement, PolicyReviewRound, PolicyRule, PolicyRuleMatch, PolicySubject, PolicyVersion, RateLimitedError, RenderLocale, RenderTimeZone, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SendMailboxChatPayload, SendMailboxEmailPayload, SenderNotReadyError, SendsSeries, ServiceUnavailableError, SkippedRecipient, SmsCampaignContentInput, SmsContent, SmsDispatchContent, SmsRecipient, SmsRecipients, SmsSendMessagePayload, SmsTemplateData, StoredEmailAttachments, StoredReplyToAddresses, SuccessResponse, TemplateData, TemplateFromDefaultInput, TemplateId, TemplateInUseError, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateSourceError, TemplateTrackingDefault, TestWebhookPayload, TimeZone, TopicContactByEmail, TopicContactById, TopicContactByPhone, TopicContactRef, TopicId, UnauthorizedError, UpdateBrand, UpdateTemplatePayload, UpdateWebhookPayload, UserId, ValidationError, WebhookEndpointId, Weekday, WhatsAppAudio, WhatsAppAudioLink, WhatsAppAudioUpload, WhatsAppBusinessAccountId, WhatsAppButtonsMessage, WhatsAppCampaignContentInput, WhatsAppContactCard, WhatsAppContactsContent, WhatsAppContent, WhatsAppCtaUrlMessage, WhatsAppDocument, WhatsAppDocumentHeader, WhatsAppDocumentHeaderLink, WhatsAppDocumentHeaderUpload, WhatsAppDocumentLink, WhatsAppDocumentUpload, WhatsAppFlowId, WhatsAppFlowMessage, WhatsAppImage, WhatsAppImageHeader, WhatsAppImageHeaderLink, WhatsAppImageHeaderUpload, WhatsAppImageLink, WhatsAppImageUpload, WhatsAppInteractive, WhatsAppInteractiveContent, WhatsAppInteractiveHeader, WhatsAppJourneySendNode, WhatsAppListMessage, WhatsAppListRow, WhatsAppListSection, WhatsAppLocation, WhatsAppLocationContent, WhatsAppMediaContent, WhatsAppOutboundMedia, WhatsAppReaction, WhatsAppReactionContent, WhatsAppRecipient, WhatsAppRecipients, WhatsAppReplyButton, WhatsAppSendMessagePayload, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkRedirectUrl, WhatsAppSticker, WhatsAppStickerLink, WhatsAppStickerUpload, WhatsAppTemplateBinding, WhatsAppTemplateBindings, WhatsAppTemplateContactBinding, WhatsAppTemplateCustomFieldBinding, WhatsAppTemplateData, WhatsAppTemplateDispatch, WhatsAppTemplateDispatchData, WhatsAppTemplateIdContent, WhatsAppTemplateSlugContent, WhatsAppTextContent, WhatsAppTextHeader, WhatsAppVideo, WhatsAppVideoHeader, WhatsAppVideoHeaderLink, WhatsAppVideoHeaderUpload, WhatsAppVideoLink, WhatsAppVideoUpload, WorkingHours, WorkingHoursRange, AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, SensitiveString as __SamvaRuntimeSensitiveString };
1861
1871
 
1862
1872
  //# sourceMappingURL=shared.js.map
@@ -1775,6 +1775,24 @@ export declare const SamvaOperations: {
1775
1775
  readonly idempotent: false;
1776
1776
  readonly paginated: false;
1777
1777
  };
1778
+ readonly namespacesListPortalLinks: {
1779
+ readonly group: "Namespaces";
1780
+ readonly method: "GET";
1781
+ readonly idempotent: false;
1782
+ readonly paginated: true;
1783
+ };
1784
+ readonly namespacesCreatePortalLink: {
1785
+ readonly group: "Namespaces";
1786
+ readonly method: "POST";
1787
+ readonly idempotent: false;
1788
+ readonly paginated: false;
1789
+ };
1790
+ readonly namespacesRevokePortalLink: {
1791
+ readonly group: "Namespaces";
1792
+ readonly method: "DELETE";
1793
+ readonly idempotent: false;
1794
+ readonly paginated: false;
1795
+ };
1778
1796
  readonly namespacesAssignResource: {
1779
1797
  readonly group: "Namespaces";
1780
1798
  readonly method: "POST";
@@ -1973,6 +1991,12 @@ export declare const SamvaOperations: {
1973
1991
  readonly idempotent: false;
1974
1992
  readonly paginated: false;
1975
1993
  };
1994
+ readonly organizationsInviteMember: {
1995
+ readonly group: "Organizations";
1996
+ readonly method: "POST";
1997
+ readonly idempotent: false;
1998
+ readonly paginated: false;
1999
+ };
1976
2000
  readonly organizationsGetPersonalMailboxAddressOptions: {
1977
2001
  readonly group: "Organizations";
1978
2002
  readonly method: "GET";
@@ -1177,6 +1177,9 @@ const SamvaOperations = {
1177
1177
  namespacesGet: operationMetadata86,
1178
1178
  namespacesRemove: operationMetadata87,
1179
1179
  namespacesUpdate: operationMetadata88,
1180
+ namespacesListPortalLinks: operationMetadata84,
1181
+ namespacesCreatePortalLink: operationMetadata85,
1182
+ namespacesRevokePortalLink: operationMetadata87,
1180
1183
  namespacesAssignResource: operationMetadata85,
1181
1184
  namespacesRemoveResource: operationMetadata87,
1182
1185
  namespacesGetUsage: operationMetadata86,
@@ -1210,6 +1213,7 @@ const SamvaOperations = {
1210
1213
  organizationsGetProfile: operationMetadata104,
1211
1214
  organizationsDelete: operationMetadata106,
1212
1215
  organizationsAssignPersonalMailbox: operationMetadata103,
1216
+ organizationsInviteMember: operationMetadata103,
1213
1217
  organizationsGetPersonalMailboxAddressOptions: operationMetadata104,
1214
1218
  organizationsListPersonalMailboxAssignments: operationMetadata104,
1215
1219
  organizationsGetTrustTier: operationMetadata104,
@@ -406,12 +406,12 @@ export declare const getNeedsYou: ((input?: {
406
406
  readonly outcome: "allow" | "hold" | "refuse";
407
407
  readonly reason: string;
408
408
  readonly scopes: readonly {
409
- readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
409
+ readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
410
410
  readonly id: string;
411
411
  }[];
412
412
  readonly rule?: {
413
413
  readonly scope: {
414
- readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
414
+ readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
415
415
  readonly id: string;
416
416
  };
417
417
  readonly index: number;
@@ -590,12 +590,12 @@ export declare const getNeedsYou: ((input?: {
590
590
  readonly outcome: "allow" | "hold" | "refuse";
591
591
  readonly reason: string;
592
592
  readonly scopes: readonly {
593
- readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
593
+ readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
594
594
  readonly id: string;
595
595
  }[];
596
596
  readonly rule?: {
597
597
  readonly scope: {
598
- readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
598
+ readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
599
599
  readonly id: string;
600
600
  };
601
601
  readonly index: number;
@@ -1566,12 +1566,12 @@ export declare const listActions: ((input: {
1566
1566
  readonly outcome: "allow" | "hold" | "refuse";
1567
1567
  readonly reason: string;
1568
1568
  readonly scopes: readonly {
1569
- readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
1569
+ readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
1570
1570
  readonly id: string;
1571
1571
  }[];
1572
1572
  readonly rule?: {
1573
1573
  readonly scope: {
1574
- readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
1574
+ readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
1575
1575
  readonly id: string;
1576
1576
  };
1577
1577
  readonly index: number;
@@ -1616,6 +1616,9 @@ export declare const listActions: ((input: {
1616
1616
  readonly [x: string]: import("./generated").JsonValue;
1617
1617
  };
1618
1618
  } | null;
1619
+ readonly handoff: {
1620
+ readonly reason: string;
1621
+ } | null;
1619
1622
  } | {
1620
1623
  readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
1621
1624
  readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
@@ -1634,12 +1637,12 @@ export declare const listActions: ((input: {
1634
1637
  readonly outcome: "allow" | "hold" | "refuse";
1635
1638
  readonly reason: string;
1636
1639
  readonly scopes: readonly {
1637
- readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
1640
+ readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
1638
1641
  readonly id: string;
1639
1642
  }[];
1640
1643
  readonly rule?: {
1641
1644
  readonly scope: {
1642
- readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
1645
+ readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
1643
1646
  readonly id: string;
1644
1647
  };
1645
1648
  readonly index: number;
@@ -1744,12 +1747,12 @@ export declare const listActions: ((input: {
1744
1747
  readonly outcome: "allow" | "hold" | "refuse";
1745
1748
  readonly reason: string;
1746
1749
  readonly scopes: readonly {
1747
- readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
1750
+ readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
1748
1751
  readonly id: string;
1749
1752
  }[];
1750
1753
  readonly rule?: {
1751
1754
  readonly scope: {
1752
- readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
1755
+ readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
1753
1756
  readonly id: string;
1754
1757
  };
1755
1758
  readonly index: number;
@@ -1851,12 +1854,12 @@ export declare const listActions: ((input: {
1851
1854
  readonly outcome: "allow" | "hold" | "refuse";
1852
1855
  readonly reason: string;
1853
1856
  readonly scopes: readonly {
1854
- readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
1857
+ readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
1855
1858
  readonly id: string;
1856
1859
  }[];
1857
1860
  readonly rule?: {
1858
1861
  readonly scope: {
1859
- readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
1862
+ readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
1860
1863
  readonly id: string;
1861
1864
  };
1862
1865
  readonly index: number;
@@ -1901,6 +1904,9 @@ export declare const listActions: ((input: {
1901
1904
  readonly [x: string]: import("./generated").JsonValue;
1902
1905
  };
1903
1906
  } | null;
1907
+ readonly handoff: {
1908
+ readonly reason: string;
1909
+ } | null;
1904
1910
  } | {
1905
1911
  readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
1906
1912
  readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
@@ -1919,12 +1925,12 @@ export declare const listActions: ((input: {
1919
1925
  readonly outcome: "allow" | "hold" | "refuse";
1920
1926
  readonly reason: string;
1921
1927
  readonly scopes: readonly {
1922
- readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
1928
+ readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
1923
1929
  readonly id: string;
1924
1930
  }[];
1925
1931
  readonly rule?: {
1926
1932
  readonly scope: {
1927
- readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
1933
+ readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
1928
1934
  readonly id: string;
1929
1935
  };
1930
1936
  readonly index: number;
@@ -2029,12 +2035,12 @@ export declare const listActions: ((input: {
2029
2035
  readonly outcome: "allow" | "hold" | "refuse";
2030
2036
  readonly reason: string;
2031
2037
  readonly scopes: readonly {
2032
- readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
2038
+ readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
2033
2039
  readonly id: string;
2034
2040
  }[];
2035
2041
  readonly rule?: {
2036
2042
  readonly scope: {
2037
- readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
2043
+ readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
2038
2044
  readonly id: string;
2039
2045
  };
2040
2046
  readonly index: number;
@@ -62,3 +62,58 @@ export declare const getUsage: (input: {
62
62
  readonly after?: string | undefined;
63
63
  readonly before?: string | undefined;
64
64
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"namespacesGetUsage">;
65
+ export declare const createPortalLink: (input: {
66
+ readonly id: string;
67
+ readonly redirectUrl?: string | null | undefined;
68
+ readonly metadata?: {
69
+ readonly [x: string]: string | undefined;
70
+ } | null | undefined;
71
+ readonly expiresIn?: number | null | undefined;
72
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"namespacesCreatePortalLink">;
73
+ export declare const listPortalLinks: ((input: {
74
+ readonly id: string;
75
+ readonly limit?: number | null | undefined;
76
+ readonly cursor?: string | undefined;
77
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"namespacesListPortalLinks">) & {
78
+ readonly pages: (input: {
79
+ readonly id: string;
80
+ readonly limit?: number | null | undefined;
81
+ readonly cursor?: string | undefined;
82
+ }) => import("effect/Stream").Stream<{
83
+ readonly items: readonly {
84
+ readonly id: string & import("effect/Brand").Brand<"NamespacePortalLinkId">;
85
+ readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
86
+ readonly namespaceId: string & import("effect/Brand").Brand<"NamespaceId">;
87
+ readonly createdBy: string & import("effect/Brand").Brand<"UserId">;
88
+ readonly expiresAt: string;
89
+ readonly revokedAt: string | null;
90
+ readonly redirectUrl: string | null;
91
+ readonly metadata: {
92
+ readonly [x: string]: string;
93
+ };
94
+ readonly createdAt: string;
95
+ }[];
96
+ readonly nextCursor: string | null;
97
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
98
+ readonly items: (input: {
99
+ readonly id: string;
100
+ readonly limit?: number | null | undefined;
101
+ readonly cursor?: string | undefined;
102
+ }) => import("effect/Stream").Stream<{
103
+ readonly id: string & import("effect/Brand").Brand<"NamespacePortalLinkId">;
104
+ readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
105
+ readonly namespaceId: string & import("effect/Brand").Brand<"NamespaceId">;
106
+ readonly createdBy: string & import("effect/Brand").Brand<"UserId">;
107
+ readonly expiresAt: string;
108
+ readonly revokedAt: string | null;
109
+ readonly redirectUrl: string | null;
110
+ readonly metadata: {
111
+ readonly [x: string]: string;
112
+ };
113
+ readonly createdAt: string;
114
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
115
+ };
116
+ export declare const revokePortalLink: (input: {
117
+ readonly id: string;
118
+ readonly linkId: string;
119
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"namespacesRevokePortalLink">;
@@ -5,11 +5,14 @@ import { NamespacesGroup } from "./generated/namespaces.js";
5
5
  var namespaces_exports = /* @__PURE__ */ __exportAll({
6
6
  assignResource: () => assignResource,
7
7
  create: () => create,
8
+ createPortalLink: () => createPortalLink,
8
9
  get: () => get,
9
10
  getUsage: () => getUsage,
10
11
  list: () => list,
12
+ listPortalLinks: () => listPortalLinks,
11
13
  remove: () => remove,
12
14
  removeResource: () => removeResource,
15
+ revokePortalLink: () => revokePortalLink,
13
16
  update: () => update
14
17
  });
15
18
  const make = /* @__PURE__ */ forGroup(NamespacesGroup);
@@ -21,6 +24,9 @@ const remove = /* @__PURE__ */ make("namespacesRemove");
21
24
  const assignResource = /* @__PURE__ */ make("namespacesAssignResource");
22
25
  const removeResource = /* @__PURE__ */ make("namespacesRemoveResource");
23
26
  const getUsage = /* @__PURE__ */ make("namespacesGetUsage");
24
- export { assignResource, create, get, getUsage, list, namespaces_exports, remove, removeResource, update };
27
+ const createPortalLink = /* @__PURE__ */ make("namespacesCreatePortalLink");
28
+ const listPortalLinks = /* @__PURE__ */ make("namespacesListPortalLinks");
29
+ const revokePortalLink = /* @__PURE__ */ make("namespacesRevokePortalLink");
30
+ export { assignResource, create, createPortalLink, get, getUsage, list, listPortalLinks, namespaces_exports, remove, removeResource, revokePortalLink, update };
25
31
 
26
32
  //# sourceMappingURL=namespaces.js.map
@@ -1,3 +1,9 @@
1
+ export declare const inviteMember: (input: {
2
+ readonly email: string;
3
+ readonly role: "admin" | "mail_user" | "member";
4
+ readonly mailboxAddress: string;
5
+ readonly namespaceId?: string | null | undefined;
6
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsInviteMember">;
1
7
  export declare const create: (input: {
2
8
  readonly name: string;
3
9
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsCreate">;
@@ -8,7 +14,9 @@ export declare const assignPersonalMailbox: (input: {
8
14
  readonly mailboxAddress: string;
9
15
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsAssignPersonalMailbox">;
10
16
  export declare const listPersonalMailboxAssignments: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsListPersonalMailboxAssignments">;
11
- export declare const getPersonalMailboxAddressOptions: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsGetPersonalMailboxAddressOptions">;
17
+ export declare const getPersonalMailboxAddressOptions: (input?: {
18
+ readonly namespaceId?: string | undefined;
19
+ } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsGetPersonalMailboxAddressOptions">;
12
20
  export declare const getTrustTier: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"organizationsGetTrustTier">;
13
21
  export declare const update: (input?: {
14
22
  readonly name?: string | null | undefined;
@@ -12,10 +12,12 @@ var organizations_exports = /* @__PURE__ */ __exportAll({
12
12
  getProfile: () => getProfile,
13
13
  getTrustTier: () => getTrustTier,
14
14
  getUsage: () => getUsage,
15
+ inviteMember: () => inviteMember,
15
16
  listPersonalMailboxAssignments: () => listPersonalMailboxAssignments,
16
17
  update: () => update
17
18
  });
18
19
  const make = /* @__PURE__ */ forGroup(OrganizationsGroup);
20
+ const inviteMember = /* @__PURE__ */ make("organizationsInviteMember");
19
21
  const create = /* @__PURE__ */ make("organizationsCreate");
20
22
  const get = /* @__PURE__ */ make("organizationsGet");
21
23
  const getProfile = /* @__PURE__ */ make("organizationsGetProfile");
@@ -27,6 +29,6 @@ const update = /* @__PURE__ */ make("organizationsUpdate");
27
29
  const createAvatarUpload = /* @__PURE__ */ make("organizationsCreateAvatarUpload");
28
30
  const getUsage = /* @__PURE__ */ make("organizationsGetUsage");
29
31
  const deleteOrganization = /* @__PURE__ */ make("organizationsDelete");
30
- export { assignPersonalMailbox, create, createAvatarUpload, deleteOrganization as delete, get, getPersonalMailboxAddressOptions, getProfile, getTrustTier, getUsage, listPersonalMailboxAssignments, organizations_exports, update };
32
+ export { assignPersonalMailbox, create, createAvatarUpload, deleteOrganization as delete, get, getPersonalMailboxAddressOptions, getProfile, getTrustTier, getUsage, inviteMember, listPersonalMailboxAssignments, organizations_exports, update };
31
33
 
32
34
  //# sourceMappingURL=organizations.js.map
@@ -66,7 +66,7 @@ export type ActionDecision = {
66
66
  } | undefined;
67
67
  };
68
68
  type PolicyScope = {
69
- readonly kind: "organization" | "mailbox" | "agent" | "apiKey";
69
+ readonly kind: "organization" | "integration" | "mailbox" | "agent" | "apiKey";
70
70
  readonly id: string;
71
71
  };
72
72
  export type CampaignAttribution = {
package/dist/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.42.0";
2
+ var version = "0.43.1";
3
3
  export { version };
4
4
 
5
5
  //# sourceMappingURL=package.js.map
@@ -797,6 +797,7 @@ const payloadSchemas = {
797
797
  type: "string",
798
798
  enum: [
799
799
  "organization",
800
+ "integration",
800
801
  "mailbox",
801
802
  "agent",
802
803
  "apiKey"
@@ -821,6 +822,7 @@ const payloadSchemas = {
821
822
  type: "string",
822
823
  enum: [
823
824
  "organization",
825
+ "integration",
824
826
  "mailbox",
825
827
  "agent",
826
828
  "apiKey"
@@ -1264,6 +1266,7 @@ const payloadSchemas = {
1264
1266
  type: "string",
1265
1267
  enum: [
1266
1268
  "organization",
1269
+ "integration",
1267
1270
  "mailbox",
1268
1271
  "agent",
1269
1272
  "apiKey"
@@ -1288,6 +1291,7 @@ const payloadSchemas = {
1288
1291
  type: "string",
1289
1292
  enum: [
1290
1293
  "organization",
1294
+ "integration",
1291
1295
  "mailbox",
1292
1296
  "agent",
1293
1297
  "apiKey"