@strimz/shared-types 0.16.0 → 0.17.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.
package/dist/index.d.cts CHANGED
@@ -208,8 +208,8 @@ declare const broadcastSchema: z.ZodObject<{
208
208
  emailedAt: z.ZodNullable<z.ZodString>;
209
209
  createdAt: z.ZodString;
210
210
  }, "strip", z.ZodTypeAny, {
211
- merchantId: string | null;
212
211
  id: string;
212
+ merchantId: string | null;
213
213
  createdAt: string;
214
214
  title: string;
215
215
  body: string;
@@ -219,8 +219,8 @@ declare const broadcastSchema: z.ZodObject<{
219
219
  senderEmail: string;
220
220
  emailedAt: string | null;
221
221
  }, {
222
- merchantId: string | null;
223
222
  id: string;
223
+ merchantId: string | null;
224
224
  createdAt: string;
225
225
  title: string;
226
226
  body: string;
@@ -244,8 +244,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
244
244
  emailedAt: z.ZodNullable<z.ZodString>;
245
245
  createdAt: z.ZodString;
246
246
  }, "strip", z.ZodTypeAny, {
247
- merchantId: string | null;
248
247
  id: string;
248
+ merchantId: string | null;
249
249
  createdAt: string;
250
250
  title: string;
251
251
  body: string;
@@ -255,8 +255,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
255
255
  senderEmail: string;
256
256
  emailedAt: string | null;
257
257
  }, {
258
- merchantId: string | null;
259
258
  id: string;
259
+ merchantId: string | null;
260
260
  createdAt: string;
261
261
  title: string;
262
262
  body: string;
@@ -268,8 +268,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
268
268
  }>, "many">;
269
269
  }, "strip", z.ZodTypeAny, {
270
270
  data: {
271
- merchantId: string | null;
272
271
  id: string;
272
+ merchantId: string | null;
273
273
  createdAt: string;
274
274
  title: string;
275
275
  body: string;
@@ -281,8 +281,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
281
281
  }[];
282
282
  }, {
283
283
  data: {
284
- merchantId: string | null;
285
284
  id: string;
285
+ merchantId: string | null;
286
286
  createdAt: string;
287
287
  title: string;
288
288
  body: string;
@@ -294,6 +294,24 @@ declare const broadcastListResponseSchema: z.ZodObject<{
294
294
  }[];
295
295
  }>;
296
296
  type BroadcastListResponse = z.infer<typeof broadcastListResponseSchema>;
297
+ /** One broadcast as a merchant reads it. `html` is already sanitized by the API. */
298
+ declare const notificationBroadcastSchema: z.ZodObject<{
299
+ id: z.ZodString;
300
+ title: z.ZodString;
301
+ html: z.ZodString;
302
+ createdAt: z.ZodString;
303
+ }, "strip", z.ZodTypeAny, {
304
+ id: string;
305
+ createdAt: string;
306
+ title: string;
307
+ html: string;
308
+ }, {
309
+ id: string;
310
+ createdAt: string;
311
+ title: string;
312
+ html: string;
313
+ }>;
314
+ type NotificationBroadcast = z.infer<typeof notificationBroadcastSchema>;
297
315
  declare const notificationSchema: z.ZodObject<{
298
316
  /** Deterministic client id — `{kind}:{sourceId}`. Safe for React keys. */
299
317
  id: z.ZodString;
@@ -401,4 +419,4 @@ declare const markNotificationsReadResponseSchema: z.ZodObject<{
401
419
  }>;
402
420
  type MarkNotificationsReadResponse = z.infer<typeof markNotificationsReadResponseSchema>;
403
421
 
404
- export { type Broadcast, type BroadcastAudience, type BroadcastListResponse, type ContactRequestInput, type ContactRequestOutput, type ContactRequestParsed, type ContactTopic, type CreateBroadcastInput, type CreateBroadcastParsed, type MarkNotificationsReadResponse, type NotificationKind, type NotificationListResponse, type NotificationView, type TokenCapabilities, type TokenMetadata, type TokenPermitNonce, broadcastAudienceSchema, broadcastListResponseSchema, broadcastSchema, contactRequestInputSchema, contactRequestOutputSchema, contactTopicSchema, createBroadcastInputSchema, markNotificationsReadResponseSchema, notificationKindSchema, notificationListResponseSchema, notificationSchema, tokenCapabilitiesSchema, tokenMetadataSchema, tokenPermitNonceSchema };
422
+ export { type Broadcast, type BroadcastAudience, type BroadcastListResponse, type ContactRequestInput, type ContactRequestOutput, type ContactRequestParsed, type ContactTopic, type CreateBroadcastInput, type CreateBroadcastParsed, type MarkNotificationsReadResponse, type NotificationBroadcast, type NotificationKind, type NotificationListResponse, type NotificationView, type TokenCapabilities, type TokenMetadata, type TokenPermitNonce, broadcastAudienceSchema, broadcastListResponseSchema, broadcastSchema, contactRequestInputSchema, contactRequestOutputSchema, contactTopicSchema, createBroadcastInputSchema, markNotificationsReadResponseSchema, notificationBroadcastSchema, notificationKindSchema, notificationListResponseSchema, notificationSchema, tokenCapabilitiesSchema, tokenMetadataSchema, tokenPermitNonceSchema };
package/dist/index.d.ts CHANGED
@@ -208,8 +208,8 @@ declare const broadcastSchema: z.ZodObject<{
208
208
  emailedAt: z.ZodNullable<z.ZodString>;
209
209
  createdAt: z.ZodString;
210
210
  }, "strip", z.ZodTypeAny, {
211
- merchantId: string | null;
212
211
  id: string;
212
+ merchantId: string | null;
213
213
  createdAt: string;
214
214
  title: string;
215
215
  body: string;
@@ -219,8 +219,8 @@ declare const broadcastSchema: z.ZodObject<{
219
219
  senderEmail: string;
220
220
  emailedAt: string | null;
221
221
  }, {
222
- merchantId: string | null;
223
222
  id: string;
223
+ merchantId: string | null;
224
224
  createdAt: string;
225
225
  title: string;
226
226
  body: string;
@@ -244,8 +244,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
244
244
  emailedAt: z.ZodNullable<z.ZodString>;
245
245
  createdAt: z.ZodString;
246
246
  }, "strip", z.ZodTypeAny, {
247
- merchantId: string | null;
248
247
  id: string;
248
+ merchantId: string | null;
249
249
  createdAt: string;
250
250
  title: string;
251
251
  body: string;
@@ -255,8 +255,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
255
255
  senderEmail: string;
256
256
  emailedAt: string | null;
257
257
  }, {
258
- merchantId: string | null;
259
258
  id: string;
259
+ merchantId: string | null;
260
260
  createdAt: string;
261
261
  title: string;
262
262
  body: string;
@@ -268,8 +268,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
268
268
  }>, "many">;
269
269
  }, "strip", z.ZodTypeAny, {
270
270
  data: {
271
- merchantId: string | null;
272
271
  id: string;
272
+ merchantId: string | null;
273
273
  createdAt: string;
274
274
  title: string;
275
275
  body: string;
@@ -281,8 +281,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
281
281
  }[];
282
282
  }, {
283
283
  data: {
284
- merchantId: string | null;
285
284
  id: string;
285
+ merchantId: string | null;
286
286
  createdAt: string;
287
287
  title: string;
288
288
  body: string;
@@ -294,6 +294,24 @@ declare const broadcastListResponseSchema: z.ZodObject<{
294
294
  }[];
295
295
  }>;
296
296
  type BroadcastListResponse = z.infer<typeof broadcastListResponseSchema>;
297
+ /** One broadcast as a merchant reads it. `html` is already sanitized by the API. */
298
+ declare const notificationBroadcastSchema: z.ZodObject<{
299
+ id: z.ZodString;
300
+ title: z.ZodString;
301
+ html: z.ZodString;
302
+ createdAt: z.ZodString;
303
+ }, "strip", z.ZodTypeAny, {
304
+ id: string;
305
+ createdAt: string;
306
+ title: string;
307
+ html: string;
308
+ }, {
309
+ id: string;
310
+ createdAt: string;
311
+ title: string;
312
+ html: string;
313
+ }>;
314
+ type NotificationBroadcast = z.infer<typeof notificationBroadcastSchema>;
297
315
  declare const notificationSchema: z.ZodObject<{
298
316
  /** Deterministic client id — `{kind}:{sourceId}`. Safe for React keys. */
299
317
  id: z.ZodString;
@@ -401,4 +419,4 @@ declare const markNotificationsReadResponseSchema: z.ZodObject<{
401
419
  }>;
402
420
  type MarkNotificationsReadResponse = z.infer<typeof markNotificationsReadResponseSchema>;
403
421
 
404
- export { type Broadcast, type BroadcastAudience, type BroadcastListResponse, type ContactRequestInput, type ContactRequestOutput, type ContactRequestParsed, type ContactTopic, type CreateBroadcastInput, type CreateBroadcastParsed, type MarkNotificationsReadResponse, type NotificationKind, type NotificationListResponse, type NotificationView, type TokenCapabilities, type TokenMetadata, type TokenPermitNonce, broadcastAudienceSchema, broadcastListResponseSchema, broadcastSchema, contactRequestInputSchema, contactRequestOutputSchema, contactTopicSchema, createBroadcastInputSchema, markNotificationsReadResponseSchema, notificationKindSchema, notificationListResponseSchema, notificationSchema, tokenCapabilitiesSchema, tokenMetadataSchema, tokenPermitNonceSchema };
422
+ export { type Broadcast, type BroadcastAudience, type BroadcastListResponse, type ContactRequestInput, type ContactRequestOutput, type ContactRequestParsed, type ContactTopic, type CreateBroadcastInput, type CreateBroadcastParsed, type MarkNotificationsReadResponse, type NotificationBroadcast, type NotificationKind, type NotificationListResponse, type NotificationView, type TokenCapabilities, type TokenMetadata, type TokenPermitNonce, broadcastAudienceSchema, broadcastListResponseSchema, broadcastSchema, contactRequestInputSchema, contactRequestOutputSchema, contactTopicSchema, createBroadcastInputSchema, markNotificationsReadResponseSchema, notificationBroadcastSchema, notificationKindSchema, notificationListResponseSchema, notificationSchema, tokenCapabilitiesSchema, tokenMetadataSchema, tokenPermitNonceSchema };
package/dist/index.js CHANGED
@@ -1089,6 +1089,12 @@ var broadcastSchema = z.object({
1089
1089
  var broadcastListResponseSchema = z.object({
1090
1090
  data: z.array(broadcastSchema)
1091
1091
  });
1092
+ var notificationBroadcastSchema = z.object({
1093
+ id: idSchema,
1094
+ title: z.string(),
1095
+ html: z.string(),
1096
+ createdAt: isoTimestampSchema
1097
+ });
1092
1098
  var notificationSchema = z.object({
1093
1099
  /** Deterministic client id — `{kind}:{sourceId}`. Safe for React keys. */
1094
1100
  id: z.string().min(1),
@@ -1302,6 +1308,6 @@ var adminTopMerchantsSchema = z.object({
1302
1308
  data: z.array(adminTopMerchantSchema)
1303
1309
  });
1304
1310
 
1305
- export { DEFAULT_MERCHANT_EMAIL_PREFS, STATS_VOLUME_DEFAULT_DAYS, STATS_VOLUME_MAX_DAYS, adminMerchantStatsSchema, adminOverviewSchema, adminStatsModeQuerySchema, adminTopMerchantSchema, adminTopMerchantsQuerySchema, adminTopMerchantsSchema, adminVolumeDaySchema, adminVolumeQuerySchema, adminVolumeSeriesSchema, agentActionOutcomeSchema, agentActionTypeSchema, agentActivityLogSchema, agentCapabilitySchema, agentIdentitySchema, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, agentJobSchema, agentJobStatusSchema, agentMerchantConfigSchema, apiKeyKindSchema, apiKeySchema, apiKeyScopeSchema, arcEnvironmentSchema, broadcastAudienceSchema, broadcastListResponseSchema, broadcastSchema, callbackUrlSchema, cancelSubscriptionInputSchema, changeTierInputSchema, checkoutResultErrorCodeSchema, checkoutResultErrorCodes, checkoutResultMessageSchema, complianceLogSchema, complianceProviderSchema, complianceScreeningContextSchema, complianceStatusSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, contactRequestInputSchema, contactRequestOutputSchema, contactTopicSchema, countryCodeSchema, createAgentJobInputSchema, createApiKeyInputSchema, createApiKeyOutputSchema, createBroadcastInputSchema, createInvoiceInputSchema, createMerchantInputSchema, createPaymentSessionInputSchema, createRefundInputSchema, createStorefrontInputSchema, createStorefrontProductInputSchema, createSubscriptionPlanInputSchema, createWebhookEndpointInputSchema, createWebhookEndpointOutputSchema, currencyAmountsSchema, customerSchema, emailSchema, evmAddressSchema, evmTxHashSchema, forecastConfidenceSchema, forecastSchema, httpUrlSchema, httpsUrlSchema, idSchema, inviteMemberInputSchema, invoiceCreatedEventSchema, invoiceLineItemSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, invoiceSchema, invoiceStatusSchema, isoTimestampSchema, loginInputSchema, loginOutputSchema, makePaginatedSchema, markNotificationsReadResponseSchema, merchantBalanceSchema, merchantEmailPrefsSchema, merchantMemberSchema, merchantPublicBrandSchema, merchantRoleSchema, merchantSchema, merchantStatusSchema, merchantTierSchema, metadataSchema, modeSchema, moneySchema, notificationKindSchema, notificationListResponseSchema, notificationSchema, onboardMerchantInputSchema, paginationInputSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentCurrencies, paymentCurrencySchema, paymentFailedEventSchema, paymentSessionSchema, paymentSessionStatusSchema, refundCompletedEventSchema, refundCreateOutputSchema, refundCreatedEventSchema, refundReasonSchema, refundSchema, refundSigningInstructionsSchema, refundStatusSchema, replayDeliveryInputSchema, resolveStatsVolumeRange, rotateApiKeyInputSchema, statsForecastSchema, statsLtvQuerySchema, statsLtvRowSchema, statsLtvSchema, statsMrrSchema, statsSummarySchema, statsVolumeDaySchema, statsVolumeQuerySchema, statsVolumeSchema, storefrontCheckoutInputSchema, storefrontCheckoutResponseSchema, storefrontProductSchema, storefrontProductTypeSchema, storefrontSchema, storefrontStatusSchema, submitPaymentSessionInputSchema, submitRefundSignatureInputSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargeOutcomeSchema, subscriptionChargeSchema, subscriptionChargeStatusSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionEnrolmentTermsSchema, subscriptionIntervalSchema, subscriptionLapsedEventSchema, subscriptionPlanSchema, subscriptionPlanStatusSchema, subscriptionReactivatedEventSchema, subscriptionRecoveryAttemptEventSchema, subscriptionResultErrorCodeSchema, subscriptionResultErrorCodes, subscriptionResultMessageSchema, subscriptionSchema, subscriptionStatusResultSchema, subscriptionStatusSchema, tokenAmountSchema, tokenCapabilitiesSchema, tokenMetadataSchema, tokenPermitNonceSchema, tokenSymbolSchema, transactionKindSchema, transactionSchema, transactionStatusSchema, uintSchema, updateAgentConfigInputSchema, updateMerchantInputSchema, updateSubscriptionPlanInputSchema, upsertCustomerInputSchema, volumeWindowSchema, webhookDeliveryDetailSchema, webhookDeliverySchema, webhookDeliveryStatusSchema, webhookEndpointSchema, webhookEndpointStatusSchema, webhookEventNameSchema, webhookEventSchema };
1311
+ export { DEFAULT_MERCHANT_EMAIL_PREFS, STATS_VOLUME_DEFAULT_DAYS, STATS_VOLUME_MAX_DAYS, adminMerchantStatsSchema, adminOverviewSchema, adminStatsModeQuerySchema, adminTopMerchantSchema, adminTopMerchantsQuerySchema, adminTopMerchantsSchema, adminVolumeDaySchema, adminVolumeQuerySchema, adminVolumeSeriesSchema, agentActionOutcomeSchema, agentActionTypeSchema, agentActivityLogSchema, agentCapabilitySchema, agentIdentitySchema, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, agentJobSchema, agentJobStatusSchema, agentMerchantConfigSchema, apiKeyKindSchema, apiKeySchema, apiKeyScopeSchema, arcEnvironmentSchema, broadcastAudienceSchema, broadcastListResponseSchema, broadcastSchema, callbackUrlSchema, cancelSubscriptionInputSchema, changeTierInputSchema, checkoutResultErrorCodeSchema, checkoutResultErrorCodes, checkoutResultMessageSchema, complianceLogSchema, complianceProviderSchema, complianceScreeningContextSchema, complianceStatusSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, contactRequestInputSchema, contactRequestOutputSchema, contactTopicSchema, countryCodeSchema, createAgentJobInputSchema, createApiKeyInputSchema, createApiKeyOutputSchema, createBroadcastInputSchema, createInvoiceInputSchema, createMerchantInputSchema, createPaymentSessionInputSchema, createRefundInputSchema, createStorefrontInputSchema, createStorefrontProductInputSchema, createSubscriptionPlanInputSchema, createWebhookEndpointInputSchema, createWebhookEndpointOutputSchema, currencyAmountsSchema, customerSchema, emailSchema, evmAddressSchema, evmTxHashSchema, forecastConfidenceSchema, forecastSchema, httpUrlSchema, httpsUrlSchema, idSchema, inviteMemberInputSchema, invoiceCreatedEventSchema, invoiceLineItemSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, invoiceSchema, invoiceStatusSchema, isoTimestampSchema, loginInputSchema, loginOutputSchema, makePaginatedSchema, markNotificationsReadResponseSchema, merchantBalanceSchema, merchantEmailPrefsSchema, merchantMemberSchema, merchantPublicBrandSchema, merchantRoleSchema, merchantSchema, merchantStatusSchema, merchantTierSchema, metadataSchema, modeSchema, moneySchema, notificationBroadcastSchema, notificationKindSchema, notificationListResponseSchema, notificationSchema, onboardMerchantInputSchema, paginationInputSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentCurrencies, paymentCurrencySchema, paymentFailedEventSchema, paymentSessionSchema, paymentSessionStatusSchema, refundCompletedEventSchema, refundCreateOutputSchema, refundCreatedEventSchema, refundReasonSchema, refundSchema, refundSigningInstructionsSchema, refundStatusSchema, replayDeliveryInputSchema, resolveStatsVolumeRange, rotateApiKeyInputSchema, statsForecastSchema, statsLtvQuerySchema, statsLtvRowSchema, statsLtvSchema, statsMrrSchema, statsSummarySchema, statsVolumeDaySchema, statsVolumeQuerySchema, statsVolumeSchema, storefrontCheckoutInputSchema, storefrontCheckoutResponseSchema, storefrontProductSchema, storefrontProductTypeSchema, storefrontSchema, storefrontStatusSchema, submitPaymentSessionInputSchema, submitRefundSignatureInputSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargeOutcomeSchema, subscriptionChargeSchema, subscriptionChargeStatusSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionEnrolmentTermsSchema, subscriptionIntervalSchema, subscriptionLapsedEventSchema, subscriptionPlanSchema, subscriptionPlanStatusSchema, subscriptionReactivatedEventSchema, subscriptionRecoveryAttemptEventSchema, subscriptionResultErrorCodeSchema, subscriptionResultErrorCodes, subscriptionResultMessageSchema, subscriptionSchema, subscriptionStatusResultSchema, subscriptionStatusSchema, tokenAmountSchema, tokenCapabilitiesSchema, tokenMetadataSchema, tokenPermitNonceSchema, tokenSymbolSchema, transactionKindSchema, transactionSchema, transactionStatusSchema, uintSchema, updateAgentConfigInputSchema, updateMerchantInputSchema, updateSubscriptionPlanInputSchema, upsertCustomerInputSchema, volumeWindowSchema, webhookDeliveryDetailSchema, webhookDeliverySchema, webhookDeliveryStatusSchema, webhookEndpointSchema, webhookEndpointStatusSchema, webhookEventNameSchema, webhookEventSchema };
1306
1312
  //# sourceMappingURL=index.js.map
1307
1313
  //# sourceMappingURL=index.js.map