There seems to be a discrepancy between the PustEnablement status options in the iOS SDK and the ones in the node API.
In the node SDK, there are two statuses both "UNAUTHORIZED" and "DENIED" and it's unclear what "UNAUTHORIZED" is since that is not a status option within the Apple Docs.
Additionally, the node SDK lacks type support for EPHEMERAL.
Here are the statuses in the Apple Documentation:
https://developer.apple.com/documentation/usernotifications/unauthorizationstatus
Here is what is in the Kaviyo iOS SDK:
https://github.com/klaviyo/klaviyo-swift-sdk/blob/80cec2cc2dbfd7a17b9a971b3ffe1268d86576a6/Sources/KlaviyoCore/Models/PushEnablement.swift#L14
Here is what is in the TypeScript definition:
|
'enablementStatus'?: PushTokenCreateQueryResourceObjectAttributes.EnablementStatusEnum | 'AUTHORIZED' | 'DENIED' | 'NOT_DETERMINED' | 'PROVISIONAL' | 'UNAUTHORIZED' | null = PushTokenCreateQueryResourceObjectAttributes.EnablementStatusEnum.Authorized; |
There is no option for EPHEMERAL and an unexpected option for UNAUTHORIZED.
Also somewhat related and worth noting that the iOS sdk does not seem to use "iPadOS" as a platform option despite this being provided as an option in the OpenAPI spec.
There seems to be a discrepancy between the PustEnablement status options in the iOS SDK and the ones in the node API.
In the node SDK, there are two statuses both "UNAUTHORIZED" and "DENIED" and it's unclear what "UNAUTHORIZED" is since that is not a status option within the Apple Docs.
Additionally, the node SDK lacks type support for EPHEMERAL.
Here are the statuses in the Apple Documentation:
https://developer.apple.com/documentation/usernotifications/unauthorizationstatus
Here is what is in the Kaviyo iOS SDK:
https://github.com/klaviyo/klaviyo-swift-sdk/blob/80cec2cc2dbfd7a17b9a971b3ffe1268d86576a6/Sources/KlaviyoCore/Models/PushEnablement.swift#L14
Here is what is in the TypeScript definition:
klaviyo-api-node/model/pushTokenCreateQueryResourceObjectAttributes.ts
Line 27 in d287328
There is no option for EPHEMERAL and an unexpected option for UNAUTHORIZED.
Also somewhat related and worth noting that the iOS sdk does not seem to use "iPadOS" as a platform option despite this being provided as an option in the OpenAPI spec.