@irisend/sdk 0.2.0 → 0.2.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +5 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -47,9 +47,12 @@ interface MutationResponse {
47
47
  id: string;
48
48
  }
49
49
 
50
+ /** `domain_access` is bound to one domain (`domainId` required): send from it, read its sent and received mail and its domain record. */
51
+ type ApiKeyPermission = "full_access" | "sending_access" | "contacts_access" | "domain_access";
50
52
  interface CreateApiKeyOptions {
51
53
  name: string;
52
- permission?: "full_access" | "sending_access" | "contacts_access";
54
+ permission?: ApiKeyPermission;
55
+ /** Restricts a `sending_access` key to one domain; required for `domain_access`. */
53
56
  domainId?: string;
54
57
  }
55
58
  interface CreateApiKeyResponse {
@@ -929,4 +932,4 @@ declare class Irisend {
929
932
  constructor(apiKey: string, options?: IrisendOptions);
930
933
  }
931
934
 
932
- export { type AddSuppressionOptions, type ApiKey, type Attachment, type Audience, type BatchAddSuppressionsOptions, type BatchRemoveSuppressionsOptions, type BounceType, type Broadcast, type BroadcastClickedLink, type BroadcastListItem, type BroadcastRecipient, type BroadcastRecipientEventType, type BroadcastStatus, type ConsentBasis, type ConsentEvent, type ConsentStatus, type Contact, type CreateApiKeyOptions, type CreateApiKeyResponse, type CreateAudienceOptions, type CreateAudienceResponse, type CreateBatchEmailOptions, type CreateBatchEmailResponse, type CreateBroadcastOptions, type CreateConsentOptions, type CreateConsentResponse, type CreateContactOptions, type CreateContactResponse, type CreateDomainOptions, type CreateEmailOptions, type CreateEmailResponse, type CreateTemplateOptions, type CreateWebhookOptions, type CreateWebhookResponse, type DmarcReport, type DmarcSource, type DmarcSummary, type Domain, type DomainCapabilities, type DomainListItem, type DomainRecord, type DomainRegion, type DuplicateTemplateOptions, type Email, type EmailListItem, type EmbedToken, type GetConsentResponse, type GetReceivedAttachmentOptions, type GetReceivedEmailOptions, type InboundAuthResult, type InboundAuthentication, type InboundHtmlFormat, Irisend, IrisendError, type IrisendOptions, type IrisendResponse, type ListBroadcastClickedLinksOptions, type ListBroadcastRecipientsOptions, type ListBroadcastsOptions, type ListDmarcSourcesOptions, type ListDomainsOptions, type ListEmailsOptions, type ListLogsOptions, type ListReceivedAttachmentsOptions, type ListReceivedEmailsOptions, type ListResponse, type ListSuppressionsOptions, type ListTemplateVersionsOptions, type ListTemplatesOptions, type Log, type LogListItem, type MutationResponse, type ReceivedAttachment, type ReceivedAttachmentListItem, type ReceivedEmail, type ReceivedEmailAttachmentMeta, type ReceivedEmailListItem, type SendBroadcastOptions, type SendBroadcastResponse, type Suppression, type SuppressionOrigin, type Tag, type Template, type TemplateVariable, type TemplateVariableType, type TemplateVersion, type UpdateBroadcastOptions, type UpdateContactOptions, type UpdateDomainOptions, type UpdateEmailOptions, type UpdateTemplateOptions, type Webhook, type WebhookEventType, type WithdrawConsentOptions, type WithdrawConsentResponse };
935
+ export { type AddSuppressionOptions, type ApiKey, type ApiKeyPermission, type Attachment, type Audience, type BatchAddSuppressionsOptions, type BatchRemoveSuppressionsOptions, type BounceType, type Broadcast, type BroadcastClickedLink, type BroadcastListItem, type BroadcastRecipient, type BroadcastRecipientEventType, type BroadcastStatus, type ConsentBasis, type ConsentEvent, type ConsentStatus, type Contact, type CreateApiKeyOptions, type CreateApiKeyResponse, type CreateAudienceOptions, type CreateAudienceResponse, type CreateBatchEmailOptions, type CreateBatchEmailResponse, type CreateBroadcastOptions, type CreateConsentOptions, type CreateConsentResponse, type CreateContactOptions, type CreateContactResponse, type CreateDomainOptions, type CreateEmailOptions, type CreateEmailResponse, type CreateTemplateOptions, type CreateWebhookOptions, type CreateWebhookResponse, type DmarcReport, type DmarcSource, type DmarcSummary, type Domain, type DomainCapabilities, type DomainListItem, type DomainRecord, type DomainRegion, type DuplicateTemplateOptions, type Email, type EmailListItem, type EmbedToken, type GetConsentResponse, type GetReceivedAttachmentOptions, type GetReceivedEmailOptions, type InboundAuthResult, type InboundAuthentication, type InboundHtmlFormat, Irisend, IrisendError, type IrisendOptions, type IrisendResponse, type ListBroadcastClickedLinksOptions, type ListBroadcastRecipientsOptions, type ListBroadcastsOptions, type ListDmarcSourcesOptions, type ListDomainsOptions, type ListEmailsOptions, type ListLogsOptions, type ListReceivedAttachmentsOptions, type ListReceivedEmailsOptions, type ListResponse, type ListSuppressionsOptions, type ListTemplateVersionsOptions, type ListTemplatesOptions, type Log, type LogListItem, type MutationResponse, type ReceivedAttachment, type ReceivedAttachmentListItem, type ReceivedEmail, type ReceivedEmailAttachmentMeta, type ReceivedEmailListItem, type SendBroadcastOptions, type SendBroadcastResponse, type Suppression, type SuppressionOrigin, type Tag, type Template, type TemplateVariable, type TemplateVariableType, type TemplateVersion, type UpdateBroadcastOptions, type UpdateContactOptions, type UpdateDomainOptions, type UpdateEmailOptions, type UpdateTemplateOptions, type Webhook, type WebhookEventType, type WithdrawConsentOptions, type WithdrawConsentResponse };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@irisend/sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Official Node.js SDK for the Irisend API (Resend-compatible).",
5
5
  "keywords": [
6
6
  "irisend",