@relipay/shared-types 0.1.0-beta.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.ts +1378 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +417 -0
- package/dist/index.js.map +1 -0
- package/package.json +31 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB;;;IAG7B,2DAA2D;;IAE3D,6CAA6C;;;;;;;;;;;;EAE7C,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC;;;;;;;;;;;;;;QAP/D,2DAA2D;;QAE3D,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAS3C,CAAC;AAOL;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,aAA4B,CAAC;AAC1D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,gBAAgB;IAC3B,uEAAuE;;;IAGvE,sDAAsD;;IAEtD,uEAAuE;;IAEvE,+EAA+E;;IAE/E;;;;;;;OAOG;;IAEH;;;;;;OAMG;;IAEH;;;;;;;OAOG;;;QAIC,6EAA6E;;QAE7E,4EAA4E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIhF,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,qBAAqB,6CAA2C,C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AAE/E,eAAO,MAAM,eAAe;;;;;IAK1B,kFAAkF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYlF,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,2BAA2B;;;;;;;;;EAGtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,6BAA6B;;;;;;QArBxC,kFAAkF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BlF,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @relipay/shared-types
|
|
3
|
+
*
|
|
4
|
+
* Zod schemas + TypeScript types shared between the API and the SDKs.
|
|
5
|
+
* Anything serialized over the wire lives here — never duplicate a shape.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
// ============================================================================
|
|
9
|
+
// Errors
|
|
10
|
+
// ============================================================================
|
|
11
|
+
/**
|
|
12
|
+
* The error envelope every ReliPay API response uses on failure.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* { code: 'PLAN_NOT_FOUND', message: 'Plan "pro" not found.', fix: 'Run `relipay plans list`.' }
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export const RelipayErrorSchema = z.object({
|
|
20
|
+
code: z.string(),
|
|
21
|
+
message: z.string(),
|
|
22
|
+
/** Concrete remediation a human or AI agent can act on. */
|
|
23
|
+
fix: z.string().optional(),
|
|
24
|
+
/** Documentation URL for this error code. */
|
|
25
|
+
docs: z.string().url().optional(),
|
|
26
|
+
});
|
|
27
|
+
export const ApiResponseSchema = (data) => z.discriminatedUnion('success', [
|
|
28
|
+
z.object({ success: z.literal(true), data }),
|
|
29
|
+
z.object({ success: z.literal(false), error: RelipayErrorSchema }),
|
|
30
|
+
]);
|
|
31
|
+
// ============================================================================
|
|
32
|
+
// Application config — the per-app settings stored in Application.authConfig
|
|
33
|
+
// and Application.billingConfig (Json columns).
|
|
34
|
+
// ============================================================================
|
|
35
|
+
/**
|
|
36
|
+
* Auth methods this Application exposes. `password` and `magic_link` are
|
|
37
|
+
* primary methods (the SDK calls them directly). OAuth provider presence is
|
|
38
|
+
* implicit from `Application.oauthConfig` having that provider as a key —
|
|
39
|
+
* not duplicated here. Open string to keep the enum from limiting future
|
|
40
|
+
* additions.
|
|
41
|
+
*/
|
|
42
|
+
export const AuthMethodSchema = z.string().min(1).max(40);
|
|
43
|
+
export const AuthConfigSchema = z.object({
|
|
44
|
+
/** Which primary methods are enabled. Empty array = OAuth-only app. */
|
|
45
|
+
methods: z.array(AuthMethodSchema),
|
|
46
|
+
passwordMinLength: z.number().int().min(8).default(8),
|
|
47
|
+
/** Where to send the user after sign-in / sign-up. */
|
|
48
|
+
redirectUrls: z.array(z.string().url()),
|
|
49
|
+
/** If true, organisations / teams are enabled for this application. */
|
|
50
|
+
organizationsEnabled: z.boolean().default(false),
|
|
51
|
+
/** If false, public sign-up is blocked and operators must invite end-users. */
|
|
52
|
+
signupEnabled: z.boolean().default(true),
|
|
53
|
+
/**
|
|
54
|
+
* End-user two-factor (TOTP) policy for this Application:
|
|
55
|
+
* - `off` — MFA endpoints are refused (`MFA_NOT_ENABLED`).
|
|
56
|
+
* - `optional` — end-users may enroll; enrolled users are challenged at
|
|
57
|
+
* sign-in (the default — preserves prior behaviour).
|
|
58
|
+
* - `required` — sign-in returns `mfaEnrollmentRequired: true` for users
|
|
59
|
+
* who haven't enrolled yet, so the app can force setup.
|
|
60
|
+
*/
|
|
61
|
+
mfa: z.enum(['off', 'optional', 'required']).default('optional'),
|
|
62
|
+
/**
|
|
63
|
+
* If true (default), submitted passwords are checked against the HIBP
|
|
64
|
+
* Pwned Passwords k-anonymity API at sign-up + password-reset +
|
|
65
|
+
* password-change time. Operators on offline / restricted networks can
|
|
66
|
+
* opt out per Application; a deployment-level kill-switch lives at
|
|
67
|
+
* env `HIBP_BREACH_CHECK_DISABLED=true`.
|
|
68
|
+
*/
|
|
69
|
+
passwordBreachCheckEnabled: z.boolean().default(true),
|
|
70
|
+
/**
|
|
71
|
+
* WebAuthn / passkey configuration. Both fields are required when
|
|
72
|
+
* `"passkey"` appears in `methods` — the registration ceremony needs
|
|
73
|
+
* to bind credentials to a specific Relying Party. `rpId` is the
|
|
74
|
+
* eTLD+1 the credential is scoped to (e.g. `"acme.example.com"`),
|
|
75
|
+
* `rpOrigins` is the list of full origins the customer's app will
|
|
76
|
+
* authenticate from (used to verify `origin` on the client response).
|
|
77
|
+
*/
|
|
78
|
+
webauthn: z
|
|
79
|
+
.object({
|
|
80
|
+
rpId: z.string().min(1).max(253),
|
|
81
|
+
/** At least one origin required. e.g. `["https://app.acme.example.com"]`. */
|
|
82
|
+
rpOrigins: z.array(z.string().url()).min(1),
|
|
83
|
+
/** Human-readable name shown in the OS passkey UI. Falls back to `rpId`. */
|
|
84
|
+
rpName: z.string().min(1).max(120).optional(),
|
|
85
|
+
})
|
|
86
|
+
.optional(),
|
|
87
|
+
});
|
|
88
|
+
export const BillingProviderSchema = z.enum(['stripe', 'paypal', 'razorpay']);
|
|
89
|
+
export const BillingConfigSchema = z.object({
|
|
90
|
+
provider: BillingProviderSchema,
|
|
91
|
+
/** Default currency for this application. ISO 4217. */
|
|
92
|
+
currency: z.string().length(3).default('USD'),
|
|
93
|
+
/** Provider-specific config — Stripe account id, PayPal merchant id, etc. */
|
|
94
|
+
metadata: z.record(z.unknown()).default({}),
|
|
95
|
+
});
|
|
96
|
+
// ============================================================================
|
|
97
|
+
// Public DTOs — what the API actually returns over the wire.
|
|
98
|
+
// ============================================================================
|
|
99
|
+
export const ApplicationDtoSchema = z.object({
|
|
100
|
+
id: z.string(),
|
|
101
|
+
tenantId: z.string(),
|
|
102
|
+
name: z.string(),
|
|
103
|
+
slug: z.string(),
|
|
104
|
+
publicKey: z.string(),
|
|
105
|
+
authConfig: AuthConfigSchema,
|
|
106
|
+
billingConfig: BillingConfigSchema,
|
|
107
|
+
createdAt: z.string().datetime(),
|
|
108
|
+
});
|
|
109
|
+
export const EndUserDtoSchema = z.object({
|
|
110
|
+
id: z.string(),
|
|
111
|
+
applicationId: z.string(),
|
|
112
|
+
email: z.string().email(),
|
|
113
|
+
emailVerified: z.boolean(),
|
|
114
|
+
metadata: z.record(z.unknown()).nullable(),
|
|
115
|
+
createdAt: z.string().datetime(),
|
|
116
|
+
});
|
|
117
|
+
export const ApiKeyDtoSchema = z.object({
|
|
118
|
+
id: z.string(),
|
|
119
|
+
applicationId: z.string(),
|
|
120
|
+
name: z.string(),
|
|
121
|
+
keyPrefix: z.string(),
|
|
122
|
+
scopes: z.array(z.string()),
|
|
123
|
+
lastUsedAt: z.string().datetime().nullable(),
|
|
124
|
+
expiresAt: z.string().datetime().nullable(),
|
|
125
|
+
revokedAt: z.string().datetime().nullable(),
|
|
126
|
+
createdAt: z.string().datetime(),
|
|
127
|
+
});
|
|
128
|
+
// ============================================================================
|
|
129
|
+
// Auth requests + responses
|
|
130
|
+
// ============================================================================
|
|
131
|
+
export const SignUpRequestSchema = z.object({
|
|
132
|
+
email: z.string().email().max(254),
|
|
133
|
+
password: z.string().min(1).max(256),
|
|
134
|
+
metadata: z.record(z.unknown()).optional(),
|
|
135
|
+
});
|
|
136
|
+
export const SignInRequestSchema = z.object({
|
|
137
|
+
email: z.string().email().max(254),
|
|
138
|
+
password: z.string().min(1).max(256),
|
|
139
|
+
});
|
|
140
|
+
/**
|
|
141
|
+
* Result of a successful primary-factor auth (password sign-in, OAuth
|
|
142
|
+
* callback, MFA-verify). Includes `mfaRequired: false` as the
|
|
143
|
+
* discriminator field for `SignInOutcomeDto`.
|
|
144
|
+
*/
|
|
145
|
+
export const AuthResultDtoSchema = z.object({
|
|
146
|
+
mfaRequired: z.literal(false).default(false),
|
|
147
|
+
/**
|
|
148
|
+
* True when the Application's MFA policy is `required` but this user has not
|
|
149
|
+
* enrolled yet. The session is still issued; the app should route the user
|
|
150
|
+
* to MFA setup before granting sensitive access.
|
|
151
|
+
*/
|
|
152
|
+
mfaEnrollmentRequired: z.boolean().optional(),
|
|
153
|
+
endUser: EndUserDtoSchema,
|
|
154
|
+
/** Short-lived access JWT. Pass via X-Relipay-User-Token. */
|
|
155
|
+
accessToken: z.string(),
|
|
156
|
+
accessTokenExpiresAt: z.string().datetime(),
|
|
157
|
+
/** Long-lived refresh token. Use to mint new access tokens via auth.refresh(). */
|
|
158
|
+
refreshToken: z.string(),
|
|
159
|
+
refreshTokenExpiresAt: z.string().datetime(),
|
|
160
|
+
});
|
|
161
|
+
/**
|
|
162
|
+
* The user passed the primary factor (password / OAuth) but has MFA
|
|
163
|
+
* enrolled. The customer's server must prompt the user for their TOTP /
|
|
164
|
+
* backup code and POST it to /auth/mfa-verify along with
|
|
165
|
+
* `mfaChallengeToken` to receive a real session.
|
|
166
|
+
*
|
|
167
|
+
* The challenge token is short-lived (5 min) and bound to (endUser,
|
|
168
|
+
* application). It is **not** a session token — it cannot be used at any
|
|
169
|
+
* other endpoint.
|
|
170
|
+
*/
|
|
171
|
+
export const MfaChallengeResultDtoSchema = z.object({
|
|
172
|
+
mfaRequired: z.literal(true),
|
|
173
|
+
endUser: EndUserDtoSchema,
|
|
174
|
+
mfaChallengeToken: z.string(),
|
|
175
|
+
mfaChallengeExpiresAt: z.string().datetime(),
|
|
176
|
+
});
|
|
177
|
+
/**
|
|
178
|
+
* Discriminated union over `mfaRequired`. Returned by `signIn`, OAuth
|
|
179
|
+
* `callback`, and any future flow that accepts a primary factor — the
|
|
180
|
+
* client always branches on `mfaRequired` to decide whether to render the
|
|
181
|
+
* second-factor prompt or store the session tokens.
|
|
182
|
+
*/
|
|
183
|
+
export const SignInOutcomeDtoSchema = z.discriminatedUnion('mfaRequired', [
|
|
184
|
+
AuthResultDtoSchema,
|
|
185
|
+
MfaChallengeResultDtoSchema,
|
|
186
|
+
]);
|
|
187
|
+
export const MfaVerifyRequestSchema = z.object({
|
|
188
|
+
mfaChallengeToken: z.string().min(1).max(2048),
|
|
189
|
+
code: z.string().min(1).max(64),
|
|
190
|
+
});
|
|
191
|
+
export const RefreshRequestSchema = z.object({
|
|
192
|
+
refreshToken: z.string().min(1).max(512),
|
|
193
|
+
});
|
|
194
|
+
export const ForgotPasswordRequestSchema = z.object({
|
|
195
|
+
email: z.string().email().max(254),
|
|
196
|
+
/**
|
|
197
|
+
* Optional URL for the reset link in the email. `{token}` will be
|
|
198
|
+
* URL-encoded and substituted by the server. Required only if you've
|
|
199
|
+
* configured email transport — otherwise the server returns the raw
|
|
200
|
+
* token in the response for you to forward.
|
|
201
|
+
*/
|
|
202
|
+
resetUrl: z.string().max(2048).optional(),
|
|
203
|
+
});
|
|
204
|
+
export const ForgotPasswordResultDtoSchema = z.object({
|
|
205
|
+
/** True iff a real user existed and a token was minted. False is also returned when the email is unknown — never enumerate. */
|
|
206
|
+
delivered: z.boolean(),
|
|
207
|
+
/**
|
|
208
|
+
* True iff ReliPay sent the email itself (BYO Resend creds or
|
|
209
|
+
* RESEND_DEFAULT_* env configured). When true, `resetToken` is null and
|
|
210
|
+
* no further action is needed from the caller.
|
|
211
|
+
*/
|
|
212
|
+
emailSent: z.boolean(),
|
|
213
|
+
/**
|
|
214
|
+
* Raw reset token. Null when `delivered` is false (unknown email) OR
|
|
215
|
+
* when `emailSent` is true (we delivered it). Present when the customer's
|
|
216
|
+
* server is expected to forward it via its own provider.
|
|
217
|
+
*/
|
|
218
|
+
resetToken: z.string().nullable(),
|
|
219
|
+
});
|
|
220
|
+
export const SendVerificationRequestSchema = z.object({
|
|
221
|
+
/** Optional URL for the verify link. `{token}` is URL-encoded + substituted. */
|
|
222
|
+
verifyUrl: z.string().max(2048).optional(),
|
|
223
|
+
});
|
|
224
|
+
export const SendVerificationResultDtoSchema = z.object({
|
|
225
|
+
/** True iff ReliPay sent the email via its transport. */
|
|
226
|
+
emailSent: z.boolean(),
|
|
227
|
+
/** Raw verification token; null when emailSent is true. */
|
|
228
|
+
verificationToken: z.string().nullable(),
|
|
229
|
+
});
|
|
230
|
+
export const VerifyEmailRequestSchema = z.object({
|
|
231
|
+
token: z.string().min(1).max(512),
|
|
232
|
+
});
|
|
233
|
+
/**
|
|
234
|
+
* Known transactional email events. Templates can be customised per
|
|
235
|
+
* Application in the panel. New events are added as part of a release;
|
|
236
|
+
* older SDK versions will see unknown keys as plain strings.
|
|
237
|
+
*/
|
|
238
|
+
export const EmailEventKeySchema = z.enum([
|
|
239
|
+
'password_reset',
|
|
240
|
+
'email_verification',
|
|
241
|
+
'workspace_invitation',
|
|
242
|
+
'welcome',
|
|
243
|
+
'mfa_enabled',
|
|
244
|
+
'password_changed',
|
|
245
|
+
]);
|
|
246
|
+
export const ResetPasswordRequestSchema = z.object({
|
|
247
|
+
token: z.string().min(1).max(512),
|
|
248
|
+
newPassword: z.string().min(1).max(256),
|
|
249
|
+
});
|
|
250
|
+
export const ChangePasswordRequestSchema = z.object({
|
|
251
|
+
currentPassword: z.string().min(1).max(256),
|
|
252
|
+
newPassword: z.string().min(1).max(256),
|
|
253
|
+
});
|
|
254
|
+
// ============================================================================
|
|
255
|
+
// Billing
|
|
256
|
+
// ============================================================================
|
|
257
|
+
export const PlanIntervalSchema = z.enum(['MONTH', 'YEAR']);
|
|
258
|
+
/** What a plan sells. SUBSCRIPTION = recurring; LICENSE = key issued on purchase; USAGE = metered; CREDIT = prepaid balance / lead pack. */
|
|
259
|
+
export const PlanKindSchema = z.enum(['SUBSCRIPTION', 'LICENSE', 'USAGE', 'CREDIT']);
|
|
260
|
+
/** Shape of a LICENSE-kind plan's key. PERPETUAL = never expires; TIMED = N-day; SEATS = capped activations. */
|
|
261
|
+
export const LicenseKindSchema = z.enum(['PERPETUAL', 'TIMED', 'SEATS']);
|
|
262
|
+
export const SubscriptionStatusSchema = z.enum(['PENDING', 'ACTIVE', 'PAST_DUE', 'CANCELED', 'EXPIRED']);
|
|
263
|
+
export const PlanDtoSchema = z.object({
|
|
264
|
+
id: z.string(),
|
|
265
|
+
applicationId: z.string(),
|
|
266
|
+
slug: z.string(),
|
|
267
|
+
name: z.string(),
|
|
268
|
+
/** Amount in the smallest currency unit (cents/paise/sen). Always integer. */
|
|
269
|
+
amount: z.number().int(),
|
|
270
|
+
currency: z.string(),
|
|
271
|
+
interval: PlanIntervalSchema,
|
|
272
|
+
/** What this plan sells. Defaults to SUBSCRIPTION for plans created before kinds existed. */
|
|
273
|
+
kind: PlanKindSchema,
|
|
274
|
+
// ── LICENSE-kind config (null for non-LICENSE plans) ──
|
|
275
|
+
licenseKind: LicenseKindSchema.nullable(),
|
|
276
|
+
licenseSeatsAllowed: z.number().int().nullable(),
|
|
277
|
+
/** For TIMED licenses: key lifetime in days from purchase. */
|
|
278
|
+
licenseDurationDays: z.number().int().nullable(),
|
|
279
|
+
// ── USAGE-kind config (null for non-USAGE plans) ──
|
|
280
|
+
/** Slug of the usage meter this plan bills against. */
|
|
281
|
+
meterSlug: z.string().nullable(),
|
|
282
|
+
/** Per-unit price in the smallest currency unit. `amount` is the base/recurring fee. */
|
|
283
|
+
pricePerUnitCents: z.number().int().nullable(),
|
|
284
|
+
// ── CREDIT-kind config (null for non-CREDIT plans) ──
|
|
285
|
+
/** Credits granted to the buyer on successful payment of a CREDIT-kind plan. */
|
|
286
|
+
creditsAmount: z.number().int().nullable(),
|
|
287
|
+
active: z.boolean(),
|
|
288
|
+
metadata: z.record(z.unknown()),
|
|
289
|
+
createdAt: z.string().datetime(),
|
|
290
|
+
updatedAt: z.string().datetime(),
|
|
291
|
+
});
|
|
292
|
+
// ── Credits (prepaid balance / lead-pack drawdown) ──
|
|
293
|
+
export const CreditReasonSchema = z.enum(['PURCHASE', 'GRANT', 'CONSUME', 'REFUND', 'ADJUST']);
|
|
294
|
+
export const CreditBalanceDtoSchema = z.object({
|
|
295
|
+
applicationId: z.string(),
|
|
296
|
+
endUserId: z.string(),
|
|
297
|
+
/** Current spendable balance (whole credits, never negative). */
|
|
298
|
+
balance: z.number().int(),
|
|
299
|
+
updatedAt: z.string().datetime(),
|
|
300
|
+
});
|
|
301
|
+
export const CreditLedgerEntryDtoSchema = z.object({
|
|
302
|
+
id: z.string(),
|
|
303
|
+
/** Signed change: + added (purchase/grant/refund), − consumed. */
|
|
304
|
+
delta: z.number().int(),
|
|
305
|
+
reason: CreditReasonSchema,
|
|
306
|
+
/** Balance immediately after this entry. */
|
|
307
|
+
balanceAfter: z.number().int(),
|
|
308
|
+
description: z.string().nullable(),
|
|
309
|
+
metadata: z.record(z.unknown()),
|
|
310
|
+
createdAt: z.string().datetime(),
|
|
311
|
+
});
|
|
312
|
+
/** Body for POST /api/v1/credits/consume (end-user drawdown). */
|
|
313
|
+
export const ConsumeCreditsRequestSchema = z.object({
|
|
314
|
+
/** How many credits to deduct. Must be a positive integer. */
|
|
315
|
+
amount: z.number().int().positive(),
|
|
316
|
+
/**
|
|
317
|
+
* Optional idempotency key (e.g. the lead id). A repeated consume with the
|
|
318
|
+
* same key is a no-op that returns the original result — safe to retry.
|
|
319
|
+
*/
|
|
320
|
+
idempotencyKey: z.string().min(1).max(200).optional(),
|
|
321
|
+
description: z.string().max(500).optional(),
|
|
322
|
+
metadata: z.record(z.unknown()).optional(),
|
|
323
|
+
});
|
|
324
|
+
/** Body for the operator grant endpoint (manual top-up / adjustment). */
|
|
325
|
+
export const GrantCreditsRequestSchema = z.object({
|
|
326
|
+
/** Credits to add (positive) or remove (negative, for ADJUST). */
|
|
327
|
+
amount: z.number().int(),
|
|
328
|
+
reason: z.enum(['GRANT', 'REFUND', 'ADJUST']).default('GRANT'),
|
|
329
|
+
idempotencyKey: z.string().min(1).max(200).optional(),
|
|
330
|
+
description: z.string().max(500).optional(),
|
|
331
|
+
metadata: z.record(z.unknown()).optional(),
|
|
332
|
+
});
|
|
333
|
+
export const SubscriptionDtoSchema = z.object({
|
|
334
|
+
id: z.string(),
|
|
335
|
+
applicationId: z.string(),
|
|
336
|
+
endUserId: z.string(),
|
|
337
|
+
planId: z.string(),
|
|
338
|
+
status: SubscriptionStatusSchema,
|
|
339
|
+
currentPeriodEnd: z.string().datetime().nullable(),
|
|
340
|
+
cancelAt: z.string().datetime().nullable(),
|
|
341
|
+
canceledAt: z.string().datetime().nullable(),
|
|
342
|
+
providerSubId: z.string().nullable(),
|
|
343
|
+
metadata: z.record(z.unknown()),
|
|
344
|
+
createdAt: z.string().datetime(),
|
|
345
|
+
updatedAt: z.string().datetime(),
|
|
346
|
+
});
|
|
347
|
+
export const CreateCheckoutRequestSchema = z.object({
|
|
348
|
+
planSlug: z.string().min(1).max(40),
|
|
349
|
+
successUrl: z.string().url(),
|
|
350
|
+
cancelUrl: z.string().url(),
|
|
351
|
+
/**
|
|
352
|
+
* Optional billing provider override. When omitted, the geo router picks
|
|
353
|
+
* one from the Application's enabled providers using `country` and the
|
|
354
|
+
* per-provider routing rules.
|
|
355
|
+
*/
|
|
356
|
+
provider: BillingProviderSchema.optional(),
|
|
357
|
+
/** ISO 3166-1 alpha-2. Used by the geo router when `provider` is absent. */
|
|
358
|
+
country: z.string().length(2).optional(),
|
|
359
|
+
});
|
|
360
|
+
export const CreateCheckoutRequestWithCouponSchema = CreateCheckoutRequestSchema.extend({
|
|
361
|
+
couponCode: z.string().min(1).max(40).optional(),
|
|
362
|
+
});
|
|
363
|
+
export const CheckoutResultDtoSchema = z.object({
|
|
364
|
+
url: z.string().url(),
|
|
365
|
+
subscription: SubscriptionDtoSchema,
|
|
366
|
+
/** Discount applied (smallest currency unit). 0 if no coupon. */
|
|
367
|
+
discountAmount: z.number().int().min(0),
|
|
368
|
+
/** Which provider issued this checkout. Stamped on Subscription.provider. */
|
|
369
|
+
provider: BillingProviderSchema,
|
|
370
|
+
});
|
|
371
|
+
export const BillingProviderInfoDtoSchema = z.object({
|
|
372
|
+
provider: BillingProviderSchema,
|
|
373
|
+
priority: z.number().int().min(0),
|
|
374
|
+
countries: z.array(z.string().length(2)),
|
|
375
|
+
});
|
|
376
|
+
export const ProvidersListDtoSchema = z.object({
|
|
377
|
+
country: z.string().length(2).nullable(),
|
|
378
|
+
providers: z.array(BillingProviderInfoDtoSchema),
|
|
379
|
+
});
|
|
380
|
+
// ============================================================================
|
|
381
|
+
// Coupons
|
|
382
|
+
// ============================================================================
|
|
383
|
+
export const CouponDiscountTypeSchema = z.enum(['PERCENT', 'AMOUNT']);
|
|
384
|
+
export const CouponDtoSchema = z.object({
|
|
385
|
+
id: z.string(),
|
|
386
|
+
applicationId: z.string(),
|
|
387
|
+
code: z.string(),
|
|
388
|
+
discountType: CouponDiscountTypeSchema,
|
|
389
|
+
/** PERCENT: basis-points × 10 (1500 = 15.00%). AMOUNT: smallest currency unit. */
|
|
390
|
+
amountOff: z.number().int().min(0),
|
|
391
|
+
currency: z.string().nullable(),
|
|
392
|
+
planSlugs: z.array(z.string()),
|
|
393
|
+
active: z.boolean(),
|
|
394
|
+
startsAt: z.string().datetime().nullable(),
|
|
395
|
+
endsAt: z.string().datetime().nullable(),
|
|
396
|
+
maxRedemptions: z.number().int().nullable(),
|
|
397
|
+
maxRedemptionsPerUser: z.number().int().nullable(),
|
|
398
|
+
metadata: z.record(z.unknown()),
|
|
399
|
+
createdAt: z.string().datetime(),
|
|
400
|
+
updatedAt: z.string().datetime(),
|
|
401
|
+
});
|
|
402
|
+
export const ValidateCouponRequestSchema = z.object({
|
|
403
|
+
code: z.string().min(1).max(40),
|
|
404
|
+
planSlug: z.string().min(1).max(40),
|
|
405
|
+
});
|
|
406
|
+
export const ValidateCouponResultDtoSchema = z.object({
|
|
407
|
+
coupon: CouponDtoSchema,
|
|
408
|
+
plan: z.object({
|
|
409
|
+
slug: z.string(),
|
|
410
|
+
name: z.string(),
|
|
411
|
+
amount: z.number().int(),
|
|
412
|
+
currency: z.string(),
|
|
413
|
+
}),
|
|
414
|
+
discountAmount: z.number().int().min(0),
|
|
415
|
+
amountAfterDiscount: z.number().int().min(0),
|
|
416
|
+
});
|
|
417
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,2DAA2D;IAC3D,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,6CAA6C;IAC7C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAyB,IAAO,EAAE,EAAE,CACnE,CAAC,CAAC,kBAAkB,CAAC,SAAS,EAAE;IAC9B,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC;IAC5C,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC;CACnE,CAAC,CAAC;AAEL,+EAA+E;AAC/E,6EAA6E;AAC7E,gDAAgD;AAChD,+EAA+E;AAE/E;;;;;;GAMG;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,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;CACpC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,MAAM,EAAE,eAAe;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;QACxB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;KACrB,CAAC;IACF,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvC,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC7C,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@relipay/shared-types",
|
|
3
|
+
"version": "0.1.0-beta.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"zod": "^3.23.8"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"typescript": "^5.6.3"
|
|
21
|
+
},
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public",
|
|
24
|
+
"tag": "beta"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsc -p tsconfig.json",
|
|
28
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
29
|
+
"lint": "echo \"(eslint not yet wired)\""
|
|
30
|
+
}
|
|
31
|
+
}
|