@nokinc-flur/sdk 1.1.4 → 2.0.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/README.md +229 -229
- package/dist/index.cjs +24 -137
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +119 -1078
- package/dist/index.d.ts +119 -1078
- package/dist/index.js +21 -127
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
declare const TransferResponseSchema: z.ZodObject<{
|
|
4
|
+
transactionId: z.ZodString;
|
|
5
|
+
status: z.ZodEnum<["SETTLED", "PENDING_REVIEW", "DECLINED"]>;
|
|
6
|
+
userStatus: z.ZodEnum<["SETTLED", "PENDING_REVIEW", "DECLINED"]>;
|
|
7
|
+
recipientName: z.ZodString;
|
|
8
|
+
timestamp: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
status: "SETTLED" | "PENDING_REVIEW" | "DECLINED";
|
|
11
|
+
transactionId: string;
|
|
12
|
+
userStatus: "SETTLED" | "PENDING_REVIEW" | "DECLINED";
|
|
13
|
+
recipientName: string;
|
|
14
|
+
timestamp: string;
|
|
15
|
+
}, {
|
|
16
|
+
status: "SETTLED" | "PENDING_REVIEW" | "DECLINED";
|
|
17
|
+
transactionId: string;
|
|
18
|
+
userStatus: "SETTLED" | "PENDING_REVIEW" | "DECLINED";
|
|
19
|
+
recipientName: string;
|
|
20
|
+
timestamp: string;
|
|
21
|
+
}>;
|
|
22
|
+
|
|
3
23
|
type Money = {
|
|
4
24
|
amountMinor: bigint;
|
|
5
25
|
currency: string;
|
|
@@ -902,13 +922,12 @@ type TransferInput = {
|
|
|
902
922
|
sendAuthToken: string;
|
|
903
923
|
};
|
|
904
924
|
type TransferStatus = 'SETTLED' | 'PENDING_REVIEW' | 'DECLINED';
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
};
|
|
925
|
+
/**
|
|
926
|
+
* Successful response from `POST /api/v1/transfers`. Derived directly
|
|
927
|
+
* from the canonical Zod schema so the static type and the runtime
|
|
928
|
+
* parser stay in lockstep with the backend response.
|
|
929
|
+
*/
|
|
930
|
+
type TransferResponse = z.infer<typeof TransferResponseSchema>;
|
|
912
931
|
type TransactionDirection = 'OUTGOING' | 'INCOMING';
|
|
913
932
|
type AccountActivityItem = {
|
|
914
933
|
id: string;
|
|
@@ -2865,24 +2884,26 @@ declare function createAccountsClient(opts: AccountsClientOptions): AccountsClie
|
|
|
2865
2884
|
* Wraps the backend `/v1/me/offline/*` routes (session-bearer auth ONLY —
|
|
2866
2885
|
* NOT partner HMAC). These power the payer authorization side of Flur Offline Collect:
|
|
2867
2886
|
* - register/list/revoke device signing keys
|
|
2868
|
-
* -
|
|
2869
|
-
* - read offline status (
|
|
2887
|
+
* - issue account-funded Offline Authorization Certificates (OACs)
|
|
2888
|
+
* - read offline status (active OAC)
|
|
2870
2889
|
* - submit a signed offline collection claim for settlement
|
|
2871
2890
|
*
|
|
2872
2891
|
* Schemas mirror `flur-backend/src/offline-consumer/types.ts`.
|
|
2873
2892
|
*/
|
|
2874
2893
|
|
|
2875
|
-
declare const
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2894
|
+
declare const ACCOUNT_FUNDED_OAC_MAX_TTL_MS: number;
|
|
2895
|
+
/**
|
|
2896
|
+
* Counterparty claim-submission grace after `oac.validUntilMs`. Claims
|
|
2897
|
+
* signed while the OAC was valid may still be relayed within this window
|
|
2898
|
+
* and the backend will settle them (cumulative cap and revocation still
|
|
2899
|
+
* apply). Mobile outbox / queue logic MUST honor this grace before pruning
|
|
2900
|
+
* a queued claim — otherwise legitimate offline payments are silently
|
|
2901
|
+
* dropped between OAC expiry and the backend grace boundary.
|
|
2902
|
+
*
|
|
2903
|
+
* Mirrors `CONSUMER_OFFLINE_DEFAULTS.claimSubmitGraceMs` in
|
|
2904
|
+
* `flur-backend/src/offline-consumer/service.ts`.
|
|
2905
|
+
*/
|
|
2906
|
+
declare const CONSUMER_OFFLINE_CLAIM_SUBMIT_GRACE_MS: number;
|
|
2886
2907
|
declare const AttestationSecurityLevelSchema: z.ZodEnum<["STRONGBOX", "TEE", "SECURE_ENCLAVE", "SOFTWARE"]>;
|
|
2887
2908
|
type AttestationSecurityLevel = z.infer<typeof AttestationSecurityLevelSchema>;
|
|
2888
2909
|
declare const DeviceKeyAlgSchema: z.ZodLiteral<"p256">;
|
|
@@ -2935,9 +2956,7 @@ declare const DeviceKeyRecordSchema: z.ZodObject<{
|
|
|
2935
2956
|
deviceId: z.ZodString;
|
|
2936
2957
|
/** Always 'p256' on the consumer offline rail. Field retained for forward-compat. */
|
|
2937
2958
|
alg: z.ZodDefault<z.ZodLiteral<"p256">>;
|
|
2938
|
-
/**
|
|
2939
|
-
publicKeyHex: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2940
|
-
/** P-256 SubjectPublicKeyInfo DER, base64. Required for new records. */
|
|
2959
|
+
/** P-256 SubjectPublicKeyInfo DER, base64. */
|
|
2941
2960
|
publicKeySpkiB64: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2942
2961
|
securityLevel: z.ZodDefault<z.ZodNullable<z.ZodEnum<["STRONGBOX", "TEE", "SECURE_ENCLAVE", "SOFTWARE"]>>>;
|
|
2943
2962
|
hardwareBacked: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -2950,7 +2969,6 @@ declare const DeviceKeyRecordSchema: z.ZodObject<{
|
|
|
2950
2969
|
id: string;
|
|
2951
2970
|
createdAtMs: number;
|
|
2952
2971
|
revokedAtMs: number | null;
|
|
2953
|
-
publicKeyHex: string | null;
|
|
2954
2972
|
publicKeySpkiB64: string | null;
|
|
2955
2973
|
securityLevel: "STRONGBOX" | "TEE" | "SECURE_ENCLAVE" | "SOFTWARE" | null;
|
|
2956
2974
|
alg: "p256";
|
|
@@ -2962,7 +2980,6 @@ declare const DeviceKeyRecordSchema: z.ZodObject<{
|
|
|
2962
2980
|
id: string;
|
|
2963
2981
|
createdAtMs: number;
|
|
2964
2982
|
revokedAtMs: number | null;
|
|
2965
|
-
publicKeyHex?: string | null | undefined;
|
|
2966
2983
|
publicKeySpkiB64?: string | null | undefined;
|
|
2967
2984
|
securityLevel?: "STRONGBOX" | "TEE" | "SECURE_ENCLAVE" | "SOFTWARE" | null | undefined;
|
|
2968
2985
|
alg?: "p256" | undefined;
|
|
@@ -2975,8 +2992,13 @@ declare const ConsumerOACSchema: z.ZodObject<{
|
|
|
2975
2992
|
issuerId: z.ZodString;
|
|
2976
2993
|
userId: z.ZodString;
|
|
2977
2994
|
deviceId: z.ZodString;
|
|
2978
|
-
/**
|
|
2979
|
-
|
|
2995
|
+
/**
|
|
2996
|
+
* Always 'p256'. Required on the wire (backend always emits it).
|
|
2997
|
+
* Kept as a literal so input/output infer identically and the schema
|
|
2998
|
+
* can be nested inside other response shapes without Zod input/output
|
|
2999
|
+
* divergence under tsup DTS bundling.
|
|
3000
|
+
*/
|
|
3001
|
+
alg: z.ZodLiteral<"p256">;
|
|
2980
3002
|
/** P-256 SubjectPublicKeyInfo DER, base64. */
|
|
2981
3003
|
devicePubkeySpkiB64: z.ZodString;
|
|
2982
3004
|
perTxCapKobo: z.ZodNumber;
|
|
@@ -3011,9 +3033,9 @@ declare const ConsumerOACSchema: z.ZodObject<{
|
|
|
3011
3033
|
counterSeed: number;
|
|
3012
3034
|
issuedAtMs: number;
|
|
3013
3035
|
issuerId: string;
|
|
3036
|
+
alg: "p256";
|
|
3014
3037
|
oacId: string;
|
|
3015
3038
|
devicePubkeySpkiB64: string;
|
|
3016
|
-
alg?: "p256" | undefined;
|
|
3017
3039
|
}>;
|
|
3018
3040
|
type ConsumerOAC = z.infer<typeof ConsumerOACSchema>;
|
|
3019
3041
|
declare const SignedConsumerOACSchema: z.ZodObject<{
|
|
@@ -3022,8 +3044,13 @@ declare const SignedConsumerOACSchema: z.ZodObject<{
|
|
|
3022
3044
|
issuerId: z.ZodString;
|
|
3023
3045
|
userId: z.ZodString;
|
|
3024
3046
|
deviceId: z.ZodString;
|
|
3025
|
-
/**
|
|
3026
|
-
|
|
3047
|
+
/**
|
|
3048
|
+
* Always 'p256'. Required on the wire (backend always emits it).
|
|
3049
|
+
* Kept as a literal so input/output infer identically and the schema
|
|
3050
|
+
* can be nested inside other response shapes without Zod input/output
|
|
3051
|
+
* divergence under tsup DTS bundling.
|
|
3052
|
+
*/
|
|
3053
|
+
alg: z.ZodLiteral<"p256">;
|
|
3027
3054
|
/** P-256 SubjectPublicKeyInfo DER, base64. */
|
|
3028
3055
|
devicePubkeySpkiB64: z.ZodString;
|
|
3029
3056
|
perTxCapKobo: z.ZodNumber;
|
|
@@ -3058,9 +3085,9 @@ declare const SignedConsumerOACSchema: z.ZodObject<{
|
|
|
3058
3085
|
counterSeed: number;
|
|
3059
3086
|
issuedAtMs: number;
|
|
3060
3087
|
issuerId: string;
|
|
3088
|
+
alg: "p256";
|
|
3061
3089
|
oacId: string;
|
|
3062
3090
|
devicePubkeySpkiB64: string;
|
|
3063
|
-
alg?: "p256" | undefined;
|
|
3064
3091
|
}>;
|
|
3065
3092
|
/** ASN.1 DER ECDSA P-256 issuer signature, base64. */
|
|
3066
3093
|
issuerSig: z.ZodString;
|
|
@@ -3097,9 +3124,9 @@ declare const SignedConsumerOACSchema: z.ZodObject<{
|
|
|
3097
3124
|
counterSeed: number;
|
|
3098
3125
|
issuedAtMs: number;
|
|
3099
3126
|
issuerId: string;
|
|
3127
|
+
alg: "p256";
|
|
3100
3128
|
oacId: string;
|
|
3101
3129
|
devicePubkeySpkiB64: string;
|
|
3102
|
-
alg?: "p256" | undefined;
|
|
3103
3130
|
};
|
|
3104
3131
|
issuerPublicKeySpkiB64: string;
|
|
3105
3132
|
}>;
|
|
@@ -3110,8 +3137,13 @@ declare const OACRecordSchema: z.ZodObject<{
|
|
|
3110
3137
|
issuerId: z.ZodString;
|
|
3111
3138
|
userId: z.ZodString;
|
|
3112
3139
|
deviceId: z.ZodString;
|
|
3113
|
-
/**
|
|
3114
|
-
|
|
3140
|
+
/**
|
|
3141
|
+
* Always 'p256'. Required on the wire (backend always emits it).
|
|
3142
|
+
* Kept as a literal so input/output infer identically and the schema
|
|
3143
|
+
* can be nested inside other response shapes without Zod input/output
|
|
3144
|
+
* divergence under tsup DTS bundling.
|
|
3145
|
+
*/
|
|
3146
|
+
alg: z.ZodLiteral<"p256">;
|
|
3115
3147
|
/** P-256 SubjectPublicKeyInfo DER, base64. */
|
|
3116
3148
|
devicePubkeySpkiB64: z.ZodString;
|
|
3117
3149
|
perTxCapKobo: z.ZodNumber;
|
|
@@ -3146,9 +3178,9 @@ declare const OACRecordSchema: z.ZodObject<{
|
|
|
3146
3178
|
counterSeed: number;
|
|
3147
3179
|
issuedAtMs: number;
|
|
3148
3180
|
issuerId: string;
|
|
3181
|
+
alg: "p256";
|
|
3149
3182
|
oacId: string;
|
|
3150
3183
|
devicePubkeySpkiB64: string;
|
|
3151
|
-
alg?: "p256" | undefined;
|
|
3152
3184
|
}>;
|
|
3153
3185
|
/** ASN.1 DER ECDSA P-256 issuer signature, base64. */
|
|
3154
3186
|
issuerSig: z.ZodString;
|
|
@@ -3156,12 +3188,11 @@ declare const OACRecordSchema: z.ZodObject<{
|
|
|
3156
3188
|
issuerPublicKeySpkiB64: z.ZodString;
|
|
3157
3189
|
} & {
|
|
3158
3190
|
currentOfflineSpentKobo: z.ZodNumber;
|
|
3159
|
-
status: z.ZodEnum<["active", "superseded", "expired", "revoked"
|
|
3191
|
+
status: z.ZodEnum<["active", "superseded", "expired", "revoked"]>;
|
|
3160
3192
|
supersededAtMs: z.ZodNullable<z.ZodNumber>;
|
|
3161
3193
|
revokedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
3162
|
-
holdId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3163
3194
|
}, "strip", z.ZodTypeAny, {
|
|
3164
|
-
status: "active" | "
|
|
3195
|
+
status: "active" | "expired" | "revoked" | "superseded";
|
|
3165
3196
|
issuerSig: string;
|
|
3166
3197
|
revokedAtMs: number | null;
|
|
3167
3198
|
oac: {
|
|
@@ -3182,9 +3213,8 @@ declare const OACRecordSchema: z.ZodObject<{
|
|
|
3182
3213
|
issuerPublicKeySpkiB64: string;
|
|
3183
3214
|
currentOfflineSpentKobo: number;
|
|
3184
3215
|
supersededAtMs: number | null;
|
|
3185
|
-
holdId?: string | null | undefined;
|
|
3186
3216
|
}, {
|
|
3187
|
-
status: "active" | "
|
|
3217
|
+
status: "active" | "expired" | "revoked" | "superseded";
|
|
3188
3218
|
issuerSig: string;
|
|
3189
3219
|
revokedAtMs: number | null;
|
|
3190
3220
|
oac: {
|
|
@@ -3198,222 +3228,55 @@ declare const OACRecordSchema: z.ZodObject<{
|
|
|
3198
3228
|
counterSeed: number;
|
|
3199
3229
|
issuedAtMs: number;
|
|
3200
3230
|
issuerId: string;
|
|
3231
|
+
alg: "p256";
|
|
3201
3232
|
oacId: string;
|
|
3202
3233
|
devicePubkeySpkiB64: string;
|
|
3203
|
-
alg?: "p256" | undefined;
|
|
3204
3234
|
};
|
|
3205
3235
|
issuerPublicKeySpkiB64: string;
|
|
3206
3236
|
currentOfflineSpentKobo: number;
|
|
3207
3237
|
supersededAtMs: number | null;
|
|
3208
|
-
holdId?: string | null | undefined;
|
|
3209
3238
|
}>;
|
|
3210
3239
|
type OACRecord = z.infer<typeof OACRecordSchema>;
|
|
3211
|
-
|
|
3240
|
+
/**
|
|
3241
|
+
* Inputs for issuing an account-funded OAC.
|
|
3242
|
+
*
|
|
3243
|
+
* Mirrors the backend `POST /v1/me/offline/oac` route. No funds are
|
|
3244
|
+
* pre-reserved; offline claims settle by debiting the payer's main
|
|
3245
|
+
* wallet at submission time via the canonical transfer primitive. Claims
|
|
3246
|
+
* signed during the OAC validity window may be submitted during the server's
|
|
3247
|
+
* bounded grace window; devices should refresh this credential when online.
|
|
3248
|
+
*/
|
|
3249
|
+
declare const IssueAccountOacInputSchema: z.ZodObject<{
|
|
3212
3250
|
deviceId: z.ZodString;
|
|
3213
3251
|
perTxCapKobo: z.ZodOptional<z.ZodNumber>;
|
|
3214
3252
|
cumulativeCapKobo: z.ZodOptional<z.ZodNumber>;
|
|
3215
3253
|
ttlMs: z.ZodOptional<z.ZodNumber>;
|
|
3216
|
-
spendableOnlineKobo: z.ZodOptional<z.ZodNumber>;
|
|
3217
3254
|
}, "strip", z.ZodTypeAny, {
|
|
3218
3255
|
deviceId: string;
|
|
3219
3256
|
perTxCapKobo?: number | undefined;
|
|
3220
3257
|
cumulativeCapKobo?: number | undefined;
|
|
3221
3258
|
ttlMs?: number | undefined;
|
|
3222
|
-
spendableOnlineKobo?: number | undefined;
|
|
3223
3259
|
}, {
|
|
3224
3260
|
deviceId: string;
|
|
3225
3261
|
perTxCapKobo?: number | undefined;
|
|
3226
3262
|
cumulativeCapKobo?: number | undefined;
|
|
3227
3263
|
ttlMs?: number | undefined;
|
|
3228
|
-
spendableOnlineKobo?: number | undefined;
|
|
3229
|
-
}>;
|
|
3230
|
-
type IssueOACInput = z.infer<typeof IssueOACInputSchema>;
|
|
3231
|
-
declare const EnableOfflineInputSchema: z.ZodObject<{
|
|
3232
|
-
deviceId: z.ZodString;
|
|
3233
|
-
amountKobo: z.ZodNumber;
|
|
3234
|
-
perTxCapKobo: z.ZodOptional<z.ZodNumber>;
|
|
3235
|
-
ttlMs: z.ZodOptional<z.ZodNumber>;
|
|
3236
|
-
installId: z.ZodString;
|
|
3237
|
-
partnerId: z.ZodOptional<z.ZodString>;
|
|
3238
|
-
}, "strip", z.ZodTypeAny, {
|
|
3239
|
-
deviceId: string;
|
|
3240
|
-
amountKobo: number;
|
|
3241
|
-
installId: string;
|
|
3242
|
-
perTxCapKobo?: number | undefined;
|
|
3243
|
-
ttlMs?: number | undefined;
|
|
3244
|
-
partnerId?: string | undefined;
|
|
3245
|
-
}, {
|
|
3246
|
-
deviceId: string;
|
|
3247
|
-
amountKobo: number;
|
|
3248
|
-
installId: string;
|
|
3249
|
-
perTxCapKobo?: number | undefined;
|
|
3250
|
-
ttlMs?: number | undefined;
|
|
3251
|
-
partnerId?: string | undefined;
|
|
3252
|
-
}>;
|
|
3253
|
-
type EnableOfflineInput = z.infer<typeof EnableOfflineInputSchema>;
|
|
3254
|
-
declare const ProvisionOfflineAllowanceInputSchema: z.ZodObject<{
|
|
3255
|
-
deviceId: z.ZodString;
|
|
3256
|
-
amountKobo: z.ZodNumber;
|
|
3257
|
-
perTxCapKobo: z.ZodOptional<z.ZodNumber>;
|
|
3258
|
-
ttlMs: z.ZodOptional<z.ZodNumber>;
|
|
3259
|
-
installId: z.ZodString;
|
|
3260
|
-
partnerId: z.ZodOptional<z.ZodString>;
|
|
3261
|
-
}, "strip", z.ZodTypeAny, {
|
|
3262
|
-
deviceId: string;
|
|
3263
|
-
amountKobo: number;
|
|
3264
|
-
installId: string;
|
|
3265
|
-
perTxCapKobo?: number | undefined;
|
|
3266
|
-
ttlMs?: number | undefined;
|
|
3267
|
-
partnerId?: string | undefined;
|
|
3268
|
-
}, {
|
|
3269
|
-
deviceId: string;
|
|
3270
|
-
amountKobo: number;
|
|
3271
|
-
installId: string;
|
|
3272
|
-
perTxCapKobo?: number | undefined;
|
|
3273
|
-
ttlMs?: number | undefined;
|
|
3274
|
-
partnerId?: string | undefined;
|
|
3275
|
-
}>;
|
|
3276
|
-
type ProvisionOfflineAllowanceInput = EnableOfflineInput;
|
|
3277
|
-
declare const DisableOfflineInputSchema: z.ZodObject<{
|
|
3278
|
-
deviceId: z.ZodString;
|
|
3279
|
-
installId: z.ZodOptional<z.ZodString>;
|
|
3280
|
-
claims: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3281
|
-
}, "strip", z.ZodTypeAny, {
|
|
3282
|
-
deviceId: string;
|
|
3283
|
-
installId?: string | undefined;
|
|
3284
|
-
claims?: unknown[] | undefined;
|
|
3285
|
-
}, {
|
|
3286
|
-
deviceId: string;
|
|
3287
|
-
installId?: string | undefined;
|
|
3288
|
-
claims?: unknown[] | undefined;
|
|
3289
|
-
}>;
|
|
3290
|
-
type DisableOfflineInput = z.infer<typeof DisableOfflineInputSchema>;
|
|
3291
|
-
declare const OfflineHoldRecordSchema: z.ZodObject<{
|
|
3292
|
-
holdId: z.ZodString;
|
|
3293
|
-
userId: z.ZodString;
|
|
3294
|
-
deviceId: z.ZodString;
|
|
3295
|
-
partnerId: z.ZodString;
|
|
3296
|
-
adapterKind: z.ZodString;
|
|
3297
|
-
externalHoldRef: z.ZodNullable<z.ZodString>;
|
|
3298
|
-
amountKobo: z.ZodNumber;
|
|
3299
|
-
capturedKobo: z.ZodNumber;
|
|
3300
|
-
releasedKobo: z.ZodNumber;
|
|
3301
|
-
remainingKobo: z.ZodNumber;
|
|
3302
|
-
currency: z.ZodString;
|
|
3303
|
-
status: z.ZodEnum<["placing", "active", "disabling", "draining", "closed", "revoked", "failed"]>;
|
|
3304
|
-
installId: z.ZodNullable<z.ZodString>;
|
|
3305
|
-
drainDeadlineMs: z.ZodNumber;
|
|
3306
|
-
disableRequestedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
3307
|
-
createdAtMs: z.ZodNumber;
|
|
3308
|
-
closedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
3309
|
-
isTrusted: z.ZodOptional<z.ZodBoolean>;
|
|
3310
|
-
}, "strip", z.ZodTypeAny, {
|
|
3311
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
3312
|
-
userId: string;
|
|
3313
|
-
deviceId: string;
|
|
3314
|
-
currency: string;
|
|
3315
|
-
createdAtMs: number;
|
|
3316
|
-
amountKobo: number;
|
|
3317
|
-
holdId: string;
|
|
3318
|
-
installId: string | null;
|
|
3319
|
-
partnerId: string;
|
|
3320
|
-
adapterKind: string;
|
|
3321
|
-
externalHoldRef: string | null;
|
|
3322
|
-
capturedKobo: number;
|
|
3323
|
-
releasedKobo: number;
|
|
3324
|
-
remainingKobo: number;
|
|
3325
|
-
drainDeadlineMs: number;
|
|
3326
|
-
disableRequestedAtMs: number | null;
|
|
3327
|
-
closedAtMs: number | null;
|
|
3328
|
-
isTrusted?: boolean | undefined;
|
|
3329
|
-
}, {
|
|
3330
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
3331
|
-
userId: string;
|
|
3332
|
-
deviceId: string;
|
|
3333
|
-
currency: string;
|
|
3334
|
-
createdAtMs: number;
|
|
3335
|
-
amountKobo: number;
|
|
3336
|
-
holdId: string;
|
|
3337
|
-
installId: string | null;
|
|
3338
|
-
partnerId: string;
|
|
3339
|
-
adapterKind: string;
|
|
3340
|
-
externalHoldRef: string | null;
|
|
3341
|
-
capturedKobo: number;
|
|
3342
|
-
releasedKobo: number;
|
|
3343
|
-
remainingKobo: number;
|
|
3344
|
-
drainDeadlineMs: number;
|
|
3345
|
-
disableRequestedAtMs: number | null;
|
|
3346
|
-
closedAtMs: number | null;
|
|
3347
|
-
isTrusted?: boolean | undefined;
|
|
3348
3264
|
}>;
|
|
3349
|
-
type
|
|
3350
|
-
declare const
|
|
3351
|
-
|
|
3352
|
-
holdId: z.ZodString;
|
|
3353
|
-
userId: z.ZodString;
|
|
3354
|
-
deviceId: z.ZodString;
|
|
3355
|
-
partnerId: z.ZodString;
|
|
3356
|
-
adapterKind: z.ZodString;
|
|
3357
|
-
externalHoldRef: z.ZodNullable<z.ZodString>;
|
|
3358
|
-
amountKobo: z.ZodNumber;
|
|
3359
|
-
capturedKobo: z.ZodNumber;
|
|
3360
|
-
releasedKobo: z.ZodNumber;
|
|
3361
|
-
remainingKobo: z.ZodNumber;
|
|
3362
|
-
currency: z.ZodString;
|
|
3363
|
-
status: z.ZodEnum<["placing", "active", "disabling", "draining", "closed", "revoked", "failed"]>;
|
|
3364
|
-
installId: z.ZodNullable<z.ZodString>;
|
|
3365
|
-
drainDeadlineMs: z.ZodNumber;
|
|
3366
|
-
disableRequestedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
3367
|
-
createdAtMs: z.ZodNumber;
|
|
3368
|
-
closedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
3369
|
-
isTrusted: z.ZodOptional<z.ZodBoolean>;
|
|
3370
|
-
}, "strip", z.ZodTypeAny, {
|
|
3371
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
3372
|
-
userId: string;
|
|
3373
|
-
deviceId: string;
|
|
3374
|
-
currency: string;
|
|
3375
|
-
createdAtMs: number;
|
|
3376
|
-
amountKobo: number;
|
|
3377
|
-
holdId: string;
|
|
3378
|
-
installId: string | null;
|
|
3379
|
-
partnerId: string;
|
|
3380
|
-
adapterKind: string;
|
|
3381
|
-
externalHoldRef: string | null;
|
|
3382
|
-
capturedKobo: number;
|
|
3383
|
-
releasedKobo: number;
|
|
3384
|
-
remainingKobo: number;
|
|
3385
|
-
drainDeadlineMs: number;
|
|
3386
|
-
disableRequestedAtMs: number | null;
|
|
3387
|
-
closedAtMs: number | null;
|
|
3388
|
-
isTrusted?: boolean | undefined;
|
|
3389
|
-
}, {
|
|
3390
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
3391
|
-
userId: string;
|
|
3392
|
-
deviceId: string;
|
|
3393
|
-
currency: string;
|
|
3394
|
-
createdAtMs: number;
|
|
3395
|
-
amountKobo: number;
|
|
3396
|
-
holdId: string;
|
|
3397
|
-
installId: string | null;
|
|
3398
|
-
partnerId: string;
|
|
3399
|
-
adapterKind: string;
|
|
3400
|
-
externalHoldRef: string | null;
|
|
3401
|
-
capturedKobo: number;
|
|
3402
|
-
releasedKobo: number;
|
|
3403
|
-
remainingKobo: number;
|
|
3404
|
-
drainDeadlineMs: number;
|
|
3405
|
-
disableRequestedAtMs: number | null;
|
|
3406
|
-
closedAtMs: number | null;
|
|
3407
|
-
isTrusted?: boolean | undefined;
|
|
3408
|
-
}>;
|
|
3409
|
-
oac: z.ZodObject<{
|
|
3265
|
+
type IssueAccountOacInput = z.infer<typeof IssueAccountOacInputSchema>;
|
|
3266
|
+
declare const OfflineStatusResultSchema: z.ZodObject<{
|
|
3267
|
+
active: z.ZodNullable<z.ZodObject<{
|
|
3410
3268
|
oac: z.ZodObject<{
|
|
3411
3269
|
oacId: z.ZodString;
|
|
3412
3270
|
issuerId: z.ZodString;
|
|
3413
3271
|
userId: z.ZodString;
|
|
3414
3272
|
deviceId: z.ZodString;
|
|
3415
|
-
/**
|
|
3416
|
-
|
|
3273
|
+
/**
|
|
3274
|
+
* Always 'p256'. Required on the wire (backend always emits it).
|
|
3275
|
+
* Kept as a literal so input/output infer identically and the schema
|
|
3276
|
+
* can be nested inside other response shapes without Zod input/output
|
|
3277
|
+
* divergence under tsup DTS bundling.
|
|
3278
|
+
*/
|
|
3279
|
+
alg: z.ZodLiteral<"p256">;
|
|
3417
3280
|
/** P-256 SubjectPublicKeyInfo DER, base64. */
|
|
3418
3281
|
devicePubkeySpkiB64: z.ZodString;
|
|
3419
3282
|
perTxCapKobo: z.ZodNumber;
|
|
@@ -3448,9 +3311,9 @@ declare const EnableOfflineResultSchema: z.ZodObject<{
|
|
|
3448
3311
|
counterSeed: number;
|
|
3449
3312
|
issuedAtMs: number;
|
|
3450
3313
|
issuerId: string;
|
|
3314
|
+
alg: "p256";
|
|
3451
3315
|
oacId: string;
|
|
3452
3316
|
devicePubkeySpkiB64: string;
|
|
3453
|
-
alg?: "p256" | undefined;
|
|
3454
3317
|
}>;
|
|
3455
3318
|
/** ASN.1 DER ECDSA P-256 issuer signature, base64. */
|
|
3456
3319
|
issuerSig: z.ZodString;
|
|
@@ -3458,12 +3321,11 @@ declare const EnableOfflineResultSchema: z.ZodObject<{
|
|
|
3458
3321
|
issuerPublicKeySpkiB64: z.ZodString;
|
|
3459
3322
|
} & {
|
|
3460
3323
|
currentOfflineSpentKobo: z.ZodNumber;
|
|
3461
|
-
status: z.ZodEnum<["active", "superseded", "expired", "revoked"
|
|
3324
|
+
status: z.ZodEnum<["active", "superseded", "expired", "revoked"]>;
|
|
3462
3325
|
supersededAtMs: z.ZodNullable<z.ZodNumber>;
|
|
3463
3326
|
revokedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
3464
|
-
holdId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3465
3327
|
}, "strip", z.ZodTypeAny, {
|
|
3466
|
-
status: "active" | "
|
|
3328
|
+
status: "active" | "expired" | "revoked" | "superseded";
|
|
3467
3329
|
issuerSig: string;
|
|
3468
3330
|
revokedAtMs: number | null;
|
|
3469
3331
|
oac: {
|
|
@@ -3484,9 +3346,8 @@ declare const EnableOfflineResultSchema: z.ZodObject<{
|
|
|
3484
3346
|
issuerPublicKeySpkiB64: string;
|
|
3485
3347
|
currentOfflineSpentKobo: number;
|
|
3486
3348
|
supersededAtMs: number | null;
|
|
3487
|
-
holdId?: string | null | undefined;
|
|
3488
3349
|
}, {
|
|
3489
|
-
status: "active" | "
|
|
3350
|
+
status: "active" | "expired" | "revoked" | "superseded";
|
|
3490
3351
|
issuerSig: string;
|
|
3491
3352
|
revokedAtMs: number | null;
|
|
3492
3353
|
oac: {
|
|
@@ -3500,18 +3361,17 @@ declare const EnableOfflineResultSchema: z.ZodObject<{
|
|
|
3500
3361
|
counterSeed: number;
|
|
3501
3362
|
issuedAtMs: number;
|
|
3502
3363
|
issuerId: string;
|
|
3364
|
+
alg: "p256";
|
|
3503
3365
|
oacId: string;
|
|
3504
3366
|
devicePubkeySpkiB64: string;
|
|
3505
|
-
alg?: "p256" | undefined;
|
|
3506
3367
|
};
|
|
3507
3368
|
issuerPublicKeySpkiB64: string;
|
|
3508
3369
|
currentOfflineSpentKobo: number;
|
|
3509
3370
|
supersededAtMs: number | null;
|
|
3510
|
-
|
|
3511
|
-
}>;
|
|
3371
|
+
}>>;
|
|
3512
3372
|
}, "strip", z.ZodTypeAny, {
|
|
3513
|
-
|
|
3514
|
-
status: "active" | "
|
|
3373
|
+
active: {
|
|
3374
|
+
status: "active" | "expired" | "revoked" | "superseded";
|
|
3515
3375
|
issuerSig: string;
|
|
3516
3376
|
revokedAtMs: number | null;
|
|
3517
3377
|
oac: {
|
|
@@ -3532,192 +3392,10 @@ declare const EnableOfflineResultSchema: z.ZodObject<{
|
|
|
3532
3392
|
issuerPublicKeySpkiB64: string;
|
|
3533
3393
|
currentOfflineSpentKobo: number;
|
|
3534
3394
|
supersededAtMs: number | null;
|
|
3535
|
-
|
|
3536
|
-
};
|
|
3537
|
-
hold: {
|
|
3538
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
3539
|
-
userId: string;
|
|
3540
|
-
deviceId: string;
|
|
3541
|
-
currency: string;
|
|
3542
|
-
createdAtMs: number;
|
|
3543
|
-
amountKobo: number;
|
|
3544
|
-
holdId: string;
|
|
3545
|
-
installId: string | null;
|
|
3546
|
-
partnerId: string;
|
|
3547
|
-
adapterKind: string;
|
|
3548
|
-
externalHoldRef: string | null;
|
|
3549
|
-
capturedKobo: number;
|
|
3550
|
-
releasedKobo: number;
|
|
3551
|
-
remainingKobo: number;
|
|
3552
|
-
drainDeadlineMs: number;
|
|
3553
|
-
disableRequestedAtMs: number | null;
|
|
3554
|
-
closedAtMs: number | null;
|
|
3555
|
-
isTrusted?: boolean | undefined;
|
|
3556
|
-
};
|
|
3395
|
+
} | null;
|
|
3557
3396
|
}, {
|
|
3558
|
-
|
|
3559
|
-
status: "active" | "
|
|
3560
|
-
issuerSig: string;
|
|
3561
|
-
revokedAtMs: number | null;
|
|
3562
|
-
oac: {
|
|
3563
|
-
userId: string;
|
|
3564
|
-
deviceId: string;
|
|
3565
|
-
currency: string;
|
|
3566
|
-
perTxCapKobo: number;
|
|
3567
|
-
cumulativeCapKobo: number;
|
|
3568
|
-
validFromMs: number;
|
|
3569
|
-
validUntilMs: number;
|
|
3570
|
-
counterSeed: number;
|
|
3571
|
-
issuedAtMs: number;
|
|
3572
|
-
issuerId: string;
|
|
3573
|
-
oacId: string;
|
|
3574
|
-
devicePubkeySpkiB64: string;
|
|
3575
|
-
alg?: "p256" | undefined;
|
|
3576
|
-
};
|
|
3577
|
-
issuerPublicKeySpkiB64: string;
|
|
3578
|
-
currentOfflineSpentKobo: number;
|
|
3579
|
-
supersededAtMs: number | null;
|
|
3580
|
-
holdId?: string | null | undefined;
|
|
3581
|
-
};
|
|
3582
|
-
hold: {
|
|
3583
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
3584
|
-
userId: string;
|
|
3585
|
-
deviceId: string;
|
|
3586
|
-
currency: string;
|
|
3587
|
-
createdAtMs: number;
|
|
3588
|
-
amountKobo: number;
|
|
3589
|
-
holdId: string;
|
|
3590
|
-
installId: string | null;
|
|
3591
|
-
partnerId: string;
|
|
3592
|
-
adapterKind: string;
|
|
3593
|
-
externalHoldRef: string | null;
|
|
3594
|
-
capturedKobo: number;
|
|
3595
|
-
releasedKobo: number;
|
|
3596
|
-
remainingKobo: number;
|
|
3597
|
-
drainDeadlineMs: number;
|
|
3598
|
-
disableRequestedAtMs: number | null;
|
|
3599
|
-
closedAtMs: number | null;
|
|
3600
|
-
isTrusted?: boolean | undefined;
|
|
3601
|
-
};
|
|
3602
|
-
}>;
|
|
3603
|
-
type EnableOfflineResult = z.infer<typeof EnableOfflineResultSchema>;
|
|
3604
|
-
declare const ProvisionOfflineAllowanceResultSchema: z.ZodObject<{
|
|
3605
|
-
hold: z.ZodObject<{
|
|
3606
|
-
holdId: z.ZodString;
|
|
3607
|
-
userId: z.ZodString;
|
|
3608
|
-
deviceId: z.ZodString;
|
|
3609
|
-
partnerId: z.ZodString;
|
|
3610
|
-
adapterKind: z.ZodString;
|
|
3611
|
-
externalHoldRef: z.ZodNullable<z.ZodString>;
|
|
3612
|
-
amountKobo: z.ZodNumber;
|
|
3613
|
-
capturedKobo: z.ZodNumber;
|
|
3614
|
-
releasedKobo: z.ZodNumber;
|
|
3615
|
-
remainingKobo: z.ZodNumber;
|
|
3616
|
-
currency: z.ZodString;
|
|
3617
|
-
status: z.ZodEnum<["placing", "active", "disabling", "draining", "closed", "revoked", "failed"]>;
|
|
3618
|
-
installId: z.ZodNullable<z.ZodString>;
|
|
3619
|
-
drainDeadlineMs: z.ZodNumber;
|
|
3620
|
-
disableRequestedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
3621
|
-
createdAtMs: z.ZodNumber;
|
|
3622
|
-
closedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
3623
|
-
isTrusted: z.ZodOptional<z.ZodBoolean>;
|
|
3624
|
-
}, "strip", z.ZodTypeAny, {
|
|
3625
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
3626
|
-
userId: string;
|
|
3627
|
-
deviceId: string;
|
|
3628
|
-
currency: string;
|
|
3629
|
-
createdAtMs: number;
|
|
3630
|
-
amountKobo: number;
|
|
3631
|
-
holdId: string;
|
|
3632
|
-
installId: string | null;
|
|
3633
|
-
partnerId: string;
|
|
3634
|
-
adapterKind: string;
|
|
3635
|
-
externalHoldRef: string | null;
|
|
3636
|
-
capturedKobo: number;
|
|
3637
|
-
releasedKobo: number;
|
|
3638
|
-
remainingKobo: number;
|
|
3639
|
-
drainDeadlineMs: number;
|
|
3640
|
-
disableRequestedAtMs: number | null;
|
|
3641
|
-
closedAtMs: number | null;
|
|
3642
|
-
isTrusted?: boolean | undefined;
|
|
3643
|
-
}, {
|
|
3644
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
3645
|
-
userId: string;
|
|
3646
|
-
deviceId: string;
|
|
3647
|
-
currency: string;
|
|
3648
|
-
createdAtMs: number;
|
|
3649
|
-
amountKobo: number;
|
|
3650
|
-
holdId: string;
|
|
3651
|
-
installId: string | null;
|
|
3652
|
-
partnerId: string;
|
|
3653
|
-
adapterKind: string;
|
|
3654
|
-
externalHoldRef: string | null;
|
|
3655
|
-
capturedKobo: number;
|
|
3656
|
-
releasedKobo: number;
|
|
3657
|
-
remainingKobo: number;
|
|
3658
|
-
drainDeadlineMs: number;
|
|
3659
|
-
disableRequestedAtMs: number | null;
|
|
3660
|
-
closedAtMs: number | null;
|
|
3661
|
-
isTrusted?: boolean | undefined;
|
|
3662
|
-
}>;
|
|
3663
|
-
oac: z.ZodObject<{
|
|
3664
|
-
oac: z.ZodObject<{
|
|
3665
|
-
oacId: z.ZodString;
|
|
3666
|
-
issuerId: z.ZodString;
|
|
3667
|
-
userId: z.ZodString;
|
|
3668
|
-
deviceId: z.ZodString;
|
|
3669
|
-
/** Always 'p256'. Field retained for forward-compat. */
|
|
3670
|
-
alg: z.ZodDefault<z.ZodLiteral<"p256">>;
|
|
3671
|
-
/** P-256 SubjectPublicKeyInfo DER, base64. */
|
|
3672
|
-
devicePubkeySpkiB64: z.ZodString;
|
|
3673
|
-
perTxCapKobo: z.ZodNumber;
|
|
3674
|
-
cumulativeCapKobo: z.ZodNumber;
|
|
3675
|
-
currency: z.ZodString;
|
|
3676
|
-
validFromMs: z.ZodNumber;
|
|
3677
|
-
validUntilMs: z.ZodNumber;
|
|
3678
|
-
counterSeed: z.ZodNumber;
|
|
3679
|
-
issuedAtMs: z.ZodNumber;
|
|
3680
|
-
}, "strip", z.ZodTypeAny, {
|
|
3681
|
-
userId: string;
|
|
3682
|
-
deviceId: string;
|
|
3683
|
-
currency: string;
|
|
3684
|
-
perTxCapKobo: number;
|
|
3685
|
-
cumulativeCapKobo: number;
|
|
3686
|
-
validFromMs: number;
|
|
3687
|
-
validUntilMs: number;
|
|
3688
|
-
counterSeed: number;
|
|
3689
|
-
issuedAtMs: number;
|
|
3690
|
-
issuerId: string;
|
|
3691
|
-
alg: "p256";
|
|
3692
|
-
oacId: string;
|
|
3693
|
-
devicePubkeySpkiB64: string;
|
|
3694
|
-
}, {
|
|
3695
|
-
userId: string;
|
|
3696
|
-
deviceId: string;
|
|
3697
|
-
currency: string;
|
|
3698
|
-
perTxCapKobo: number;
|
|
3699
|
-
cumulativeCapKobo: number;
|
|
3700
|
-
validFromMs: number;
|
|
3701
|
-
validUntilMs: number;
|
|
3702
|
-
counterSeed: number;
|
|
3703
|
-
issuedAtMs: number;
|
|
3704
|
-
issuerId: string;
|
|
3705
|
-
oacId: string;
|
|
3706
|
-
devicePubkeySpkiB64: string;
|
|
3707
|
-
alg?: "p256" | undefined;
|
|
3708
|
-
}>;
|
|
3709
|
-
/** ASN.1 DER ECDSA P-256 issuer signature, base64. */
|
|
3710
|
-
issuerSig: z.ZodString;
|
|
3711
|
-
/** Issuer's P-256 public key as SubjectPublicKeyInfo DER, base64. */
|
|
3712
|
-
issuerPublicKeySpkiB64: z.ZodString;
|
|
3713
|
-
} & {
|
|
3714
|
-
currentOfflineSpentKobo: z.ZodNumber;
|
|
3715
|
-
status: z.ZodEnum<["active", "superseded", "expired", "revoked", "disabling", "draining", "closed"]>;
|
|
3716
|
-
supersededAtMs: z.ZodNullable<z.ZodNumber>;
|
|
3717
|
-
revokedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
3718
|
-
holdId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3719
|
-
}, "strip", z.ZodTypeAny, {
|
|
3720
|
-
status: "active" | "closed" | "expired" | "revoked" | "superseded" | "disabling" | "draining";
|
|
3397
|
+
active: {
|
|
3398
|
+
status: "active" | "expired" | "revoked" | "superseded";
|
|
3721
3399
|
issuerSig: string;
|
|
3722
3400
|
revokedAtMs: number | null;
|
|
3723
3401
|
oac: {
|
|
@@ -3738,642 +3416,9 @@ declare const ProvisionOfflineAllowanceResultSchema: z.ZodObject<{
|
|
|
3738
3416
|
issuerPublicKeySpkiB64: string;
|
|
3739
3417
|
currentOfflineSpentKobo: number;
|
|
3740
3418
|
supersededAtMs: number | null;
|
|
3741
|
-
holdId?: string | null | undefined;
|
|
3742
|
-
}, {
|
|
3743
|
-
status: "active" | "closed" | "expired" | "revoked" | "superseded" | "disabling" | "draining";
|
|
3744
|
-
issuerSig: string;
|
|
3745
|
-
revokedAtMs: number | null;
|
|
3746
|
-
oac: {
|
|
3747
|
-
userId: string;
|
|
3748
|
-
deviceId: string;
|
|
3749
|
-
currency: string;
|
|
3750
|
-
perTxCapKobo: number;
|
|
3751
|
-
cumulativeCapKobo: number;
|
|
3752
|
-
validFromMs: number;
|
|
3753
|
-
validUntilMs: number;
|
|
3754
|
-
counterSeed: number;
|
|
3755
|
-
issuedAtMs: number;
|
|
3756
|
-
issuerId: string;
|
|
3757
|
-
oacId: string;
|
|
3758
|
-
devicePubkeySpkiB64: string;
|
|
3759
|
-
alg?: "p256" | undefined;
|
|
3760
|
-
};
|
|
3761
|
-
issuerPublicKeySpkiB64: string;
|
|
3762
|
-
currentOfflineSpentKobo: number;
|
|
3763
|
-
supersededAtMs: number | null;
|
|
3764
|
-
holdId?: string | null | undefined;
|
|
3765
|
-
}>;
|
|
3766
|
-
}, "strip", z.ZodTypeAny, {
|
|
3767
|
-
oac: {
|
|
3768
|
-
status: "active" | "closed" | "expired" | "revoked" | "superseded" | "disabling" | "draining";
|
|
3769
|
-
issuerSig: string;
|
|
3770
|
-
revokedAtMs: number | null;
|
|
3771
|
-
oac: {
|
|
3772
|
-
userId: string;
|
|
3773
|
-
deviceId: string;
|
|
3774
|
-
currency: string;
|
|
3775
|
-
perTxCapKobo: number;
|
|
3776
|
-
cumulativeCapKobo: number;
|
|
3777
|
-
validFromMs: number;
|
|
3778
|
-
validUntilMs: number;
|
|
3779
|
-
counterSeed: number;
|
|
3780
|
-
issuedAtMs: number;
|
|
3781
|
-
issuerId: string;
|
|
3782
|
-
alg: "p256";
|
|
3783
|
-
oacId: string;
|
|
3784
|
-
devicePubkeySpkiB64: string;
|
|
3785
|
-
};
|
|
3786
|
-
issuerPublicKeySpkiB64: string;
|
|
3787
|
-
currentOfflineSpentKobo: number;
|
|
3788
|
-
supersededAtMs: number | null;
|
|
3789
|
-
holdId?: string | null | undefined;
|
|
3790
|
-
};
|
|
3791
|
-
hold: {
|
|
3792
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
3793
|
-
userId: string;
|
|
3794
|
-
deviceId: string;
|
|
3795
|
-
currency: string;
|
|
3796
|
-
createdAtMs: number;
|
|
3797
|
-
amountKobo: number;
|
|
3798
|
-
holdId: string;
|
|
3799
|
-
installId: string | null;
|
|
3800
|
-
partnerId: string;
|
|
3801
|
-
adapterKind: string;
|
|
3802
|
-
externalHoldRef: string | null;
|
|
3803
|
-
capturedKobo: number;
|
|
3804
|
-
releasedKobo: number;
|
|
3805
|
-
remainingKobo: number;
|
|
3806
|
-
drainDeadlineMs: number;
|
|
3807
|
-
disableRequestedAtMs: number | null;
|
|
3808
|
-
closedAtMs: number | null;
|
|
3809
|
-
isTrusted?: boolean | undefined;
|
|
3810
|
-
};
|
|
3811
|
-
}, {
|
|
3812
|
-
oac: {
|
|
3813
|
-
status: "active" | "closed" | "expired" | "revoked" | "superseded" | "disabling" | "draining";
|
|
3814
|
-
issuerSig: string;
|
|
3815
|
-
revokedAtMs: number | null;
|
|
3816
|
-
oac: {
|
|
3817
|
-
userId: string;
|
|
3818
|
-
deviceId: string;
|
|
3819
|
-
currency: string;
|
|
3820
|
-
perTxCapKobo: number;
|
|
3821
|
-
cumulativeCapKobo: number;
|
|
3822
|
-
validFromMs: number;
|
|
3823
|
-
validUntilMs: number;
|
|
3824
|
-
counterSeed: number;
|
|
3825
|
-
issuedAtMs: number;
|
|
3826
|
-
issuerId: string;
|
|
3827
|
-
oacId: string;
|
|
3828
|
-
devicePubkeySpkiB64: string;
|
|
3829
|
-
alg?: "p256" | undefined;
|
|
3830
|
-
};
|
|
3831
|
-
issuerPublicKeySpkiB64: string;
|
|
3832
|
-
currentOfflineSpentKobo: number;
|
|
3833
|
-
supersededAtMs: number | null;
|
|
3834
|
-
holdId?: string | null | undefined;
|
|
3835
|
-
};
|
|
3836
|
-
hold: {
|
|
3837
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
3838
|
-
userId: string;
|
|
3839
|
-
deviceId: string;
|
|
3840
|
-
currency: string;
|
|
3841
|
-
createdAtMs: number;
|
|
3842
|
-
amountKobo: number;
|
|
3843
|
-
holdId: string;
|
|
3844
|
-
installId: string | null;
|
|
3845
|
-
partnerId: string;
|
|
3846
|
-
adapterKind: string;
|
|
3847
|
-
externalHoldRef: string | null;
|
|
3848
|
-
capturedKobo: number;
|
|
3849
|
-
releasedKobo: number;
|
|
3850
|
-
remainingKobo: number;
|
|
3851
|
-
drainDeadlineMs: number;
|
|
3852
|
-
disableRequestedAtMs: number | null;
|
|
3853
|
-
closedAtMs: number | null;
|
|
3854
|
-
isTrusted?: boolean | undefined;
|
|
3855
|
-
};
|
|
3856
|
-
}>;
|
|
3857
|
-
type ProvisionOfflineAllowanceResult = EnableOfflineResult;
|
|
3858
|
-
declare const DisableOfflineResultSchema: z.ZodObject<{
|
|
3859
|
-
hold: z.ZodObject<{
|
|
3860
|
-
holdId: z.ZodString;
|
|
3861
|
-
userId: z.ZodString;
|
|
3862
|
-
deviceId: z.ZodString;
|
|
3863
|
-
partnerId: z.ZodString;
|
|
3864
|
-
adapterKind: z.ZodString;
|
|
3865
|
-
externalHoldRef: z.ZodNullable<z.ZodString>;
|
|
3866
|
-
amountKobo: z.ZodNumber;
|
|
3867
|
-
capturedKobo: z.ZodNumber;
|
|
3868
|
-
releasedKobo: z.ZodNumber;
|
|
3869
|
-
remainingKobo: z.ZodNumber;
|
|
3870
|
-
currency: z.ZodString;
|
|
3871
|
-
status: z.ZodEnum<["placing", "active", "disabling", "draining", "closed", "revoked", "failed"]>;
|
|
3872
|
-
installId: z.ZodNullable<z.ZodString>;
|
|
3873
|
-
drainDeadlineMs: z.ZodNumber;
|
|
3874
|
-
disableRequestedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
3875
|
-
createdAtMs: z.ZodNumber;
|
|
3876
|
-
closedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
3877
|
-
isTrusted: z.ZodOptional<z.ZodBoolean>;
|
|
3878
|
-
}, "strip", z.ZodTypeAny, {
|
|
3879
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
3880
|
-
userId: string;
|
|
3881
|
-
deviceId: string;
|
|
3882
|
-
currency: string;
|
|
3883
|
-
createdAtMs: number;
|
|
3884
|
-
amountKobo: number;
|
|
3885
|
-
holdId: string;
|
|
3886
|
-
installId: string | null;
|
|
3887
|
-
partnerId: string;
|
|
3888
|
-
adapterKind: string;
|
|
3889
|
-
externalHoldRef: string | null;
|
|
3890
|
-
capturedKobo: number;
|
|
3891
|
-
releasedKobo: number;
|
|
3892
|
-
remainingKobo: number;
|
|
3893
|
-
drainDeadlineMs: number;
|
|
3894
|
-
disableRequestedAtMs: number | null;
|
|
3895
|
-
closedAtMs: number | null;
|
|
3896
|
-
isTrusted?: boolean | undefined;
|
|
3897
|
-
}, {
|
|
3898
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
3899
|
-
userId: string;
|
|
3900
|
-
deviceId: string;
|
|
3901
|
-
currency: string;
|
|
3902
|
-
createdAtMs: number;
|
|
3903
|
-
amountKobo: number;
|
|
3904
|
-
holdId: string;
|
|
3905
|
-
installId: string | null;
|
|
3906
|
-
partnerId: string;
|
|
3907
|
-
adapterKind: string;
|
|
3908
|
-
externalHoldRef: string | null;
|
|
3909
|
-
capturedKobo: number;
|
|
3910
|
-
releasedKobo: number;
|
|
3911
|
-
remainingKobo: number;
|
|
3912
|
-
drainDeadlineMs: number;
|
|
3913
|
-
disableRequestedAtMs: number | null;
|
|
3914
|
-
closedAtMs: number | null;
|
|
3915
|
-
isTrusted?: boolean | undefined;
|
|
3916
|
-
}>;
|
|
3917
|
-
trusted: z.ZodBoolean;
|
|
3918
|
-
settledClaims: z.ZodNumber;
|
|
3919
|
-
}, "strip", z.ZodTypeAny, {
|
|
3920
|
-
hold: {
|
|
3921
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
3922
|
-
userId: string;
|
|
3923
|
-
deviceId: string;
|
|
3924
|
-
currency: string;
|
|
3925
|
-
createdAtMs: number;
|
|
3926
|
-
amountKobo: number;
|
|
3927
|
-
holdId: string;
|
|
3928
|
-
installId: string | null;
|
|
3929
|
-
partnerId: string;
|
|
3930
|
-
adapterKind: string;
|
|
3931
|
-
externalHoldRef: string | null;
|
|
3932
|
-
capturedKobo: number;
|
|
3933
|
-
releasedKobo: number;
|
|
3934
|
-
remainingKobo: number;
|
|
3935
|
-
drainDeadlineMs: number;
|
|
3936
|
-
disableRequestedAtMs: number | null;
|
|
3937
|
-
closedAtMs: number | null;
|
|
3938
|
-
isTrusted?: boolean | undefined;
|
|
3939
|
-
};
|
|
3940
|
-
trusted: boolean;
|
|
3941
|
-
settledClaims: number;
|
|
3942
|
-
}, {
|
|
3943
|
-
hold: {
|
|
3944
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
3945
|
-
userId: string;
|
|
3946
|
-
deviceId: string;
|
|
3947
|
-
currency: string;
|
|
3948
|
-
createdAtMs: number;
|
|
3949
|
-
amountKobo: number;
|
|
3950
|
-
holdId: string;
|
|
3951
|
-
installId: string | null;
|
|
3952
|
-
partnerId: string;
|
|
3953
|
-
adapterKind: string;
|
|
3954
|
-
externalHoldRef: string | null;
|
|
3955
|
-
capturedKobo: number;
|
|
3956
|
-
releasedKobo: number;
|
|
3957
|
-
remainingKobo: number;
|
|
3958
|
-
drainDeadlineMs: number;
|
|
3959
|
-
disableRequestedAtMs: number | null;
|
|
3960
|
-
closedAtMs: number | null;
|
|
3961
|
-
isTrusted?: boolean | undefined;
|
|
3962
|
-
};
|
|
3963
|
-
trusted: boolean;
|
|
3964
|
-
settledClaims: number;
|
|
3965
|
-
}>;
|
|
3966
|
-
type DisableOfflineResult = z.infer<typeof DisableOfflineResultSchema>;
|
|
3967
|
-
declare const OfflineStatusResultSchema: z.ZodObject<{
|
|
3968
|
-
hold: z.ZodNullable<z.ZodObject<{
|
|
3969
|
-
holdId: z.ZodString;
|
|
3970
|
-
userId: z.ZodString;
|
|
3971
|
-
deviceId: z.ZodString;
|
|
3972
|
-
partnerId: z.ZodString;
|
|
3973
|
-
adapterKind: z.ZodString;
|
|
3974
|
-
externalHoldRef: z.ZodNullable<z.ZodString>;
|
|
3975
|
-
amountKobo: z.ZodNumber;
|
|
3976
|
-
capturedKobo: z.ZodNumber;
|
|
3977
|
-
releasedKobo: z.ZodNumber;
|
|
3978
|
-
remainingKobo: z.ZodNumber;
|
|
3979
|
-
currency: z.ZodString;
|
|
3980
|
-
status: z.ZodEnum<["placing", "active", "disabling", "draining", "closed", "revoked", "failed"]>;
|
|
3981
|
-
installId: z.ZodNullable<z.ZodString>;
|
|
3982
|
-
drainDeadlineMs: z.ZodNumber;
|
|
3983
|
-
disableRequestedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
3984
|
-
createdAtMs: z.ZodNumber;
|
|
3985
|
-
closedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
3986
|
-
isTrusted: z.ZodOptional<z.ZodBoolean>;
|
|
3987
|
-
}, "strip", z.ZodTypeAny, {
|
|
3988
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
3989
|
-
userId: string;
|
|
3990
|
-
deviceId: string;
|
|
3991
|
-
currency: string;
|
|
3992
|
-
createdAtMs: number;
|
|
3993
|
-
amountKobo: number;
|
|
3994
|
-
holdId: string;
|
|
3995
|
-
installId: string | null;
|
|
3996
|
-
partnerId: string;
|
|
3997
|
-
adapterKind: string;
|
|
3998
|
-
externalHoldRef: string | null;
|
|
3999
|
-
capturedKobo: number;
|
|
4000
|
-
releasedKobo: number;
|
|
4001
|
-
remainingKobo: number;
|
|
4002
|
-
drainDeadlineMs: number;
|
|
4003
|
-
disableRequestedAtMs: number | null;
|
|
4004
|
-
closedAtMs: number | null;
|
|
4005
|
-
isTrusted?: boolean | undefined;
|
|
4006
|
-
}, {
|
|
4007
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
4008
|
-
userId: string;
|
|
4009
|
-
deviceId: string;
|
|
4010
|
-
currency: string;
|
|
4011
|
-
createdAtMs: number;
|
|
4012
|
-
amountKobo: number;
|
|
4013
|
-
holdId: string;
|
|
4014
|
-
installId: string | null;
|
|
4015
|
-
partnerId: string;
|
|
4016
|
-
adapterKind: string;
|
|
4017
|
-
externalHoldRef: string | null;
|
|
4018
|
-
capturedKobo: number;
|
|
4019
|
-
releasedKobo: number;
|
|
4020
|
-
remainingKobo: number;
|
|
4021
|
-
drainDeadlineMs: number;
|
|
4022
|
-
disableRequestedAtMs: number | null;
|
|
4023
|
-
closedAtMs: number | null;
|
|
4024
|
-
isTrusted?: boolean | undefined;
|
|
4025
|
-
}>>;
|
|
4026
|
-
active: z.ZodNullable<z.ZodObject<{
|
|
4027
|
-
oac: z.ZodObject<{
|
|
4028
|
-
oacId: z.ZodString;
|
|
4029
|
-
issuerId: z.ZodString;
|
|
4030
|
-
userId: z.ZodString;
|
|
4031
|
-
deviceId: z.ZodString;
|
|
4032
|
-
/** Always 'p256'. Field retained for forward-compat. */
|
|
4033
|
-
alg: z.ZodDefault<z.ZodLiteral<"p256">>;
|
|
4034
|
-
/** P-256 SubjectPublicKeyInfo DER, base64. */
|
|
4035
|
-
devicePubkeySpkiB64: z.ZodString;
|
|
4036
|
-
perTxCapKobo: z.ZodNumber;
|
|
4037
|
-
cumulativeCapKobo: z.ZodNumber;
|
|
4038
|
-
currency: z.ZodString;
|
|
4039
|
-
validFromMs: z.ZodNumber;
|
|
4040
|
-
validUntilMs: z.ZodNumber;
|
|
4041
|
-
counterSeed: z.ZodNumber;
|
|
4042
|
-
issuedAtMs: z.ZodNumber;
|
|
4043
|
-
}, "strip", z.ZodTypeAny, {
|
|
4044
|
-
userId: string;
|
|
4045
|
-
deviceId: string;
|
|
4046
|
-
currency: string;
|
|
4047
|
-
perTxCapKobo: number;
|
|
4048
|
-
cumulativeCapKobo: number;
|
|
4049
|
-
validFromMs: number;
|
|
4050
|
-
validUntilMs: number;
|
|
4051
|
-
counterSeed: number;
|
|
4052
|
-
issuedAtMs: number;
|
|
4053
|
-
issuerId: string;
|
|
4054
|
-
alg: "p256";
|
|
4055
|
-
oacId: string;
|
|
4056
|
-
devicePubkeySpkiB64: string;
|
|
4057
|
-
}, {
|
|
4058
|
-
userId: string;
|
|
4059
|
-
deviceId: string;
|
|
4060
|
-
currency: string;
|
|
4061
|
-
perTxCapKobo: number;
|
|
4062
|
-
cumulativeCapKobo: number;
|
|
4063
|
-
validFromMs: number;
|
|
4064
|
-
validUntilMs: number;
|
|
4065
|
-
counterSeed: number;
|
|
4066
|
-
issuedAtMs: number;
|
|
4067
|
-
issuerId: string;
|
|
4068
|
-
oacId: string;
|
|
4069
|
-
devicePubkeySpkiB64: string;
|
|
4070
|
-
alg?: "p256" | undefined;
|
|
4071
|
-
}>;
|
|
4072
|
-
/** ASN.1 DER ECDSA P-256 issuer signature, base64. */
|
|
4073
|
-
issuerSig: z.ZodString;
|
|
4074
|
-
/** Issuer's P-256 public key as SubjectPublicKeyInfo DER, base64. */
|
|
4075
|
-
issuerPublicKeySpkiB64: z.ZodString;
|
|
4076
|
-
} & {
|
|
4077
|
-
currentOfflineSpentKobo: z.ZodNumber;
|
|
4078
|
-
status: z.ZodEnum<["active", "superseded", "expired", "revoked", "disabling", "draining", "closed"]>;
|
|
4079
|
-
supersededAtMs: z.ZodNullable<z.ZodNumber>;
|
|
4080
|
-
revokedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
4081
|
-
holdId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4082
|
-
}, "strip", z.ZodTypeAny, {
|
|
4083
|
-
status: "active" | "closed" | "expired" | "revoked" | "superseded" | "disabling" | "draining";
|
|
4084
|
-
issuerSig: string;
|
|
4085
|
-
revokedAtMs: number | null;
|
|
4086
|
-
oac: {
|
|
4087
|
-
userId: string;
|
|
4088
|
-
deviceId: string;
|
|
4089
|
-
currency: string;
|
|
4090
|
-
perTxCapKobo: number;
|
|
4091
|
-
cumulativeCapKobo: number;
|
|
4092
|
-
validFromMs: number;
|
|
4093
|
-
validUntilMs: number;
|
|
4094
|
-
counterSeed: number;
|
|
4095
|
-
issuedAtMs: number;
|
|
4096
|
-
issuerId: string;
|
|
4097
|
-
alg: "p256";
|
|
4098
|
-
oacId: string;
|
|
4099
|
-
devicePubkeySpkiB64: string;
|
|
4100
|
-
};
|
|
4101
|
-
issuerPublicKeySpkiB64: string;
|
|
4102
|
-
currentOfflineSpentKobo: number;
|
|
4103
|
-
supersededAtMs: number | null;
|
|
4104
|
-
holdId?: string | null | undefined;
|
|
4105
|
-
}, {
|
|
4106
|
-
status: "active" | "closed" | "expired" | "revoked" | "superseded" | "disabling" | "draining";
|
|
4107
|
-
issuerSig: string;
|
|
4108
|
-
revokedAtMs: number | null;
|
|
4109
|
-
oac: {
|
|
4110
|
-
userId: string;
|
|
4111
|
-
deviceId: string;
|
|
4112
|
-
currency: string;
|
|
4113
|
-
perTxCapKobo: number;
|
|
4114
|
-
cumulativeCapKobo: number;
|
|
4115
|
-
validFromMs: number;
|
|
4116
|
-
validUntilMs: number;
|
|
4117
|
-
counterSeed: number;
|
|
4118
|
-
issuedAtMs: number;
|
|
4119
|
-
issuerId: string;
|
|
4120
|
-
oacId: string;
|
|
4121
|
-
devicePubkeySpkiB64: string;
|
|
4122
|
-
alg?: "p256" | undefined;
|
|
4123
|
-
};
|
|
4124
|
-
issuerPublicKeySpkiB64: string;
|
|
4125
|
-
currentOfflineSpentKobo: number;
|
|
4126
|
-
supersededAtMs: number | null;
|
|
4127
|
-
holdId?: string | null | undefined;
|
|
4128
|
-
}>>;
|
|
4129
|
-
}, "strip", z.ZodTypeAny, {
|
|
4130
|
-
active: {
|
|
4131
|
-
status: "active" | "closed" | "expired" | "revoked" | "superseded" | "disabling" | "draining";
|
|
4132
|
-
issuerSig: string;
|
|
4133
|
-
revokedAtMs: number | null;
|
|
4134
|
-
oac: {
|
|
4135
|
-
userId: string;
|
|
4136
|
-
deviceId: string;
|
|
4137
|
-
currency: string;
|
|
4138
|
-
perTxCapKobo: number;
|
|
4139
|
-
cumulativeCapKobo: number;
|
|
4140
|
-
validFromMs: number;
|
|
4141
|
-
validUntilMs: number;
|
|
4142
|
-
counterSeed: number;
|
|
4143
|
-
issuedAtMs: number;
|
|
4144
|
-
issuerId: string;
|
|
4145
|
-
alg: "p256";
|
|
4146
|
-
oacId: string;
|
|
4147
|
-
devicePubkeySpkiB64: string;
|
|
4148
|
-
};
|
|
4149
|
-
issuerPublicKeySpkiB64: string;
|
|
4150
|
-
currentOfflineSpentKobo: number;
|
|
4151
|
-
supersededAtMs: number | null;
|
|
4152
|
-
holdId?: string | null | undefined;
|
|
4153
|
-
} | null;
|
|
4154
|
-
hold: {
|
|
4155
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
4156
|
-
userId: string;
|
|
4157
|
-
deviceId: string;
|
|
4158
|
-
currency: string;
|
|
4159
|
-
createdAtMs: number;
|
|
4160
|
-
amountKobo: number;
|
|
4161
|
-
holdId: string;
|
|
4162
|
-
installId: string | null;
|
|
4163
|
-
partnerId: string;
|
|
4164
|
-
adapterKind: string;
|
|
4165
|
-
externalHoldRef: string | null;
|
|
4166
|
-
capturedKobo: number;
|
|
4167
|
-
releasedKobo: number;
|
|
4168
|
-
remainingKobo: number;
|
|
4169
|
-
drainDeadlineMs: number;
|
|
4170
|
-
disableRequestedAtMs: number | null;
|
|
4171
|
-
closedAtMs: number | null;
|
|
4172
|
-
isTrusted?: boolean | undefined;
|
|
4173
|
-
} | null;
|
|
4174
|
-
}, {
|
|
4175
|
-
active: {
|
|
4176
|
-
status: "active" | "closed" | "expired" | "revoked" | "superseded" | "disabling" | "draining";
|
|
4177
|
-
issuerSig: string;
|
|
4178
|
-
revokedAtMs: number | null;
|
|
4179
|
-
oac: {
|
|
4180
|
-
userId: string;
|
|
4181
|
-
deviceId: string;
|
|
4182
|
-
currency: string;
|
|
4183
|
-
perTxCapKobo: number;
|
|
4184
|
-
cumulativeCapKobo: number;
|
|
4185
|
-
validFromMs: number;
|
|
4186
|
-
validUntilMs: number;
|
|
4187
|
-
counterSeed: number;
|
|
4188
|
-
issuedAtMs: number;
|
|
4189
|
-
issuerId: string;
|
|
4190
|
-
oacId: string;
|
|
4191
|
-
devicePubkeySpkiB64: string;
|
|
4192
|
-
alg?: "p256" | undefined;
|
|
4193
|
-
};
|
|
4194
|
-
issuerPublicKeySpkiB64: string;
|
|
4195
|
-
currentOfflineSpentKobo: number;
|
|
4196
|
-
supersededAtMs: number | null;
|
|
4197
|
-
holdId?: string | null | undefined;
|
|
4198
|
-
} | null;
|
|
4199
|
-
hold: {
|
|
4200
|
-
status: "active" | "closed" | "failed" | "revoked" | "disabling" | "draining" | "placing";
|
|
4201
|
-
userId: string;
|
|
4202
|
-
deviceId: string;
|
|
4203
|
-
currency: string;
|
|
4204
|
-
createdAtMs: number;
|
|
4205
|
-
amountKobo: number;
|
|
4206
|
-
holdId: string;
|
|
4207
|
-
installId: string | null;
|
|
4208
|
-
partnerId: string;
|
|
4209
|
-
adapterKind: string;
|
|
4210
|
-
externalHoldRef: string | null;
|
|
4211
|
-
capturedKobo: number;
|
|
4212
|
-
releasedKobo: number;
|
|
4213
|
-
remainingKobo: number;
|
|
4214
|
-
drainDeadlineMs: number;
|
|
4215
|
-
disableRequestedAtMs: number | null;
|
|
4216
|
-
closedAtMs: number | null;
|
|
4217
|
-
isTrusted?: boolean | undefined;
|
|
4218
3419
|
} | null;
|
|
4219
3420
|
}>;
|
|
4220
3421
|
type OfflineStatusResult = z.infer<typeof OfflineStatusResultSchema>;
|
|
4221
|
-
declare const OfflineStateResultSchema: z.ZodObject<{
|
|
4222
|
-
active: z.ZodNullable<z.ZodObject<{
|
|
4223
|
-
oac: z.ZodObject<{
|
|
4224
|
-
oacId: z.ZodString;
|
|
4225
|
-
issuerId: z.ZodString;
|
|
4226
|
-
userId: z.ZodString;
|
|
4227
|
-
deviceId: z.ZodString;
|
|
4228
|
-
/** Always 'p256'. Field retained for forward-compat. */
|
|
4229
|
-
alg: z.ZodDefault<z.ZodLiteral<"p256">>;
|
|
4230
|
-
/** P-256 SubjectPublicKeyInfo DER, base64. */
|
|
4231
|
-
devicePubkeySpkiB64: z.ZodString;
|
|
4232
|
-
perTxCapKobo: z.ZodNumber;
|
|
4233
|
-
cumulativeCapKobo: z.ZodNumber;
|
|
4234
|
-
currency: z.ZodString;
|
|
4235
|
-
validFromMs: z.ZodNumber;
|
|
4236
|
-
validUntilMs: z.ZodNumber;
|
|
4237
|
-
counterSeed: z.ZodNumber;
|
|
4238
|
-
issuedAtMs: z.ZodNumber;
|
|
4239
|
-
}, "strip", z.ZodTypeAny, {
|
|
4240
|
-
userId: string;
|
|
4241
|
-
deviceId: string;
|
|
4242
|
-
currency: string;
|
|
4243
|
-
perTxCapKobo: number;
|
|
4244
|
-
cumulativeCapKobo: number;
|
|
4245
|
-
validFromMs: number;
|
|
4246
|
-
validUntilMs: number;
|
|
4247
|
-
counterSeed: number;
|
|
4248
|
-
issuedAtMs: number;
|
|
4249
|
-
issuerId: string;
|
|
4250
|
-
alg: "p256";
|
|
4251
|
-
oacId: string;
|
|
4252
|
-
devicePubkeySpkiB64: string;
|
|
4253
|
-
}, {
|
|
4254
|
-
userId: string;
|
|
4255
|
-
deviceId: string;
|
|
4256
|
-
currency: string;
|
|
4257
|
-
perTxCapKobo: number;
|
|
4258
|
-
cumulativeCapKobo: number;
|
|
4259
|
-
validFromMs: number;
|
|
4260
|
-
validUntilMs: number;
|
|
4261
|
-
counterSeed: number;
|
|
4262
|
-
issuedAtMs: number;
|
|
4263
|
-
issuerId: string;
|
|
4264
|
-
oacId: string;
|
|
4265
|
-
devicePubkeySpkiB64: string;
|
|
4266
|
-
alg?: "p256" | undefined;
|
|
4267
|
-
}>;
|
|
4268
|
-
/** ASN.1 DER ECDSA P-256 issuer signature, base64. */
|
|
4269
|
-
issuerSig: z.ZodString;
|
|
4270
|
-
/** Issuer's P-256 public key as SubjectPublicKeyInfo DER, base64. */
|
|
4271
|
-
issuerPublicKeySpkiB64: z.ZodString;
|
|
4272
|
-
} & {
|
|
4273
|
-
currentOfflineSpentKobo: z.ZodNumber;
|
|
4274
|
-
status: z.ZodEnum<["active", "superseded", "expired", "revoked", "disabling", "draining", "closed"]>;
|
|
4275
|
-
supersededAtMs: z.ZodNullable<z.ZodNumber>;
|
|
4276
|
-
revokedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
4277
|
-
holdId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4278
|
-
}, "strip", z.ZodTypeAny, {
|
|
4279
|
-
status: "active" | "closed" | "expired" | "revoked" | "superseded" | "disabling" | "draining";
|
|
4280
|
-
issuerSig: string;
|
|
4281
|
-
revokedAtMs: number | null;
|
|
4282
|
-
oac: {
|
|
4283
|
-
userId: string;
|
|
4284
|
-
deviceId: string;
|
|
4285
|
-
currency: string;
|
|
4286
|
-
perTxCapKobo: number;
|
|
4287
|
-
cumulativeCapKobo: number;
|
|
4288
|
-
validFromMs: number;
|
|
4289
|
-
validUntilMs: number;
|
|
4290
|
-
counterSeed: number;
|
|
4291
|
-
issuedAtMs: number;
|
|
4292
|
-
issuerId: string;
|
|
4293
|
-
alg: "p256";
|
|
4294
|
-
oacId: string;
|
|
4295
|
-
devicePubkeySpkiB64: string;
|
|
4296
|
-
};
|
|
4297
|
-
issuerPublicKeySpkiB64: string;
|
|
4298
|
-
currentOfflineSpentKobo: number;
|
|
4299
|
-
supersededAtMs: number | null;
|
|
4300
|
-
holdId?: string | null | undefined;
|
|
4301
|
-
}, {
|
|
4302
|
-
status: "active" | "closed" | "expired" | "revoked" | "superseded" | "disabling" | "draining";
|
|
4303
|
-
issuerSig: string;
|
|
4304
|
-
revokedAtMs: number | null;
|
|
4305
|
-
oac: {
|
|
4306
|
-
userId: string;
|
|
4307
|
-
deviceId: string;
|
|
4308
|
-
currency: string;
|
|
4309
|
-
perTxCapKobo: number;
|
|
4310
|
-
cumulativeCapKobo: number;
|
|
4311
|
-
validFromMs: number;
|
|
4312
|
-
validUntilMs: number;
|
|
4313
|
-
counterSeed: number;
|
|
4314
|
-
issuedAtMs: number;
|
|
4315
|
-
issuerId: string;
|
|
4316
|
-
oacId: string;
|
|
4317
|
-
devicePubkeySpkiB64: string;
|
|
4318
|
-
alg?: "p256" | undefined;
|
|
4319
|
-
};
|
|
4320
|
-
issuerPublicKeySpkiB64: string;
|
|
4321
|
-
currentOfflineSpentKobo: number;
|
|
4322
|
-
supersededAtMs: number | null;
|
|
4323
|
-
holdId?: string | null | undefined;
|
|
4324
|
-
}>>;
|
|
4325
|
-
}, "strip", z.ZodTypeAny, {
|
|
4326
|
-
active: {
|
|
4327
|
-
status: "active" | "closed" | "expired" | "revoked" | "superseded" | "disabling" | "draining";
|
|
4328
|
-
issuerSig: string;
|
|
4329
|
-
revokedAtMs: number | null;
|
|
4330
|
-
oac: {
|
|
4331
|
-
userId: string;
|
|
4332
|
-
deviceId: string;
|
|
4333
|
-
currency: string;
|
|
4334
|
-
perTxCapKobo: number;
|
|
4335
|
-
cumulativeCapKobo: number;
|
|
4336
|
-
validFromMs: number;
|
|
4337
|
-
validUntilMs: number;
|
|
4338
|
-
counterSeed: number;
|
|
4339
|
-
issuedAtMs: number;
|
|
4340
|
-
issuerId: string;
|
|
4341
|
-
alg: "p256";
|
|
4342
|
-
oacId: string;
|
|
4343
|
-
devicePubkeySpkiB64: string;
|
|
4344
|
-
};
|
|
4345
|
-
issuerPublicKeySpkiB64: string;
|
|
4346
|
-
currentOfflineSpentKobo: number;
|
|
4347
|
-
supersededAtMs: number | null;
|
|
4348
|
-
holdId?: string | null | undefined;
|
|
4349
|
-
} | null;
|
|
4350
|
-
}, {
|
|
4351
|
-
active: {
|
|
4352
|
-
status: "active" | "closed" | "expired" | "revoked" | "superseded" | "disabling" | "draining";
|
|
4353
|
-
issuerSig: string;
|
|
4354
|
-
revokedAtMs: number | null;
|
|
4355
|
-
oac: {
|
|
4356
|
-
userId: string;
|
|
4357
|
-
deviceId: string;
|
|
4358
|
-
currency: string;
|
|
4359
|
-
perTxCapKobo: number;
|
|
4360
|
-
cumulativeCapKobo: number;
|
|
4361
|
-
validFromMs: number;
|
|
4362
|
-
validUntilMs: number;
|
|
4363
|
-
counterSeed: number;
|
|
4364
|
-
issuedAtMs: number;
|
|
4365
|
-
issuerId: string;
|
|
4366
|
-
oacId: string;
|
|
4367
|
-
devicePubkeySpkiB64: string;
|
|
4368
|
-
alg?: "p256" | undefined;
|
|
4369
|
-
};
|
|
4370
|
-
issuerPublicKeySpkiB64: string;
|
|
4371
|
-
currentOfflineSpentKobo: number;
|
|
4372
|
-
supersededAtMs: number | null;
|
|
4373
|
-
holdId?: string | null | undefined;
|
|
4374
|
-
} | null;
|
|
4375
|
-
}>;
|
|
4376
|
-
type OfflineStateResult = z.infer<typeof OfflineStateResultSchema>;
|
|
4377
3422
|
declare const ConsumerPaymentClaimSchema: z.ZodObject<{
|
|
4378
3423
|
/** Always 'p256'. Retained for forward-compat and as an explicit domain marker. */
|
|
4379
3424
|
alg: z.ZodDefault<z.ZodLiteral<"p256">>;
|
|
@@ -4579,19 +3624,15 @@ type MeOfflineClientOptions = {
|
|
|
4579
3624
|
fetchImpl?: typeof fetch;
|
|
4580
3625
|
};
|
|
4581
3626
|
type MeOfflineClient = {
|
|
4582
|
-
registerDeviceKey: (input: RegisterDeviceKeyInput) => Promise<DeviceKeyRecord>;
|
|
4583
3627
|
issueP256EnrollmentChallenge: (input: P256EnrollmentChallengeInput) => Promise<P256EnrollmentChallengeResult>;
|
|
4584
3628
|
registerDeviceKeyP256: (input: RegisterDeviceKeyP256Input) => Promise<DeviceKeyRecord>;
|
|
4585
3629
|
listDeviceKeys: () => Promise<{
|
|
4586
3630
|
items: DeviceKeyRecord[];
|
|
4587
3631
|
}>;
|
|
4588
3632
|
revokeDeviceKey: (input: RevokeDeviceKeyInput) => Promise<void>;
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
refresh: (input: IssueOACInput) => Promise<OACRecord>;
|
|
4592
|
-
disable: (input: DisableOfflineInput) => Promise<DisableOfflineResult>;
|
|
3633
|
+
/** Issue an account-funded OAC for this device. */
|
|
3634
|
+
issueAccountOac: (input: IssueAccountOacInput) => Promise<OACRecord>;
|
|
4593
3635
|
getStatus: (deviceId?: string) => Promise<OfflineStatusResult>;
|
|
4594
|
-
getState: (deviceId?: string) => Promise<OfflineStateResult>;
|
|
4595
3636
|
submitClaim: (claim: ConsumerPaymentClaim) => Promise<ConsumerSettleResult>;
|
|
4596
3637
|
};
|
|
4597
3638
|
declare function createMeOfflineClient(opts: MeOfflineClientOptions): MeOfflineClient;
|
|
@@ -4861,11 +3902,11 @@ declare const PartnerFundingSchema: z.ZodObject<{
|
|
|
4861
3902
|
createdAtMs: number;
|
|
4862
3903
|
updatedAtMs: number;
|
|
4863
3904
|
ledgerRef: string;
|
|
4864
|
-
partnerId: string;
|
|
4865
3905
|
externalRef: string;
|
|
4866
3906
|
fundingSource: string;
|
|
4867
3907
|
providerMetadata: Record<string, unknown>;
|
|
4868
3908
|
fundingId: string;
|
|
3909
|
+
partnerId: string;
|
|
4869
3910
|
}, {
|
|
4870
3911
|
status: "pending" | "failed" | "posted";
|
|
4871
3912
|
userId: string | null;
|
|
@@ -4876,11 +3917,11 @@ declare const PartnerFundingSchema: z.ZodObject<{
|
|
|
4876
3917
|
createdAtMs: number;
|
|
4877
3918
|
updatedAtMs: number;
|
|
4878
3919
|
ledgerRef: string;
|
|
4879
|
-
partnerId: string;
|
|
4880
3920
|
externalRef: string;
|
|
4881
3921
|
fundingSource: string;
|
|
4882
3922
|
providerMetadata: Record<string, unknown>;
|
|
4883
3923
|
fundingId: string;
|
|
3924
|
+
partnerId: string;
|
|
4884
3925
|
}>;
|
|
4885
3926
|
type PartnerFunding = z.infer<typeof PartnerFundingSchema>;
|
|
4886
3927
|
declare const IngestFundingResultSchema: z.ZodObject<{
|
|
@@ -4909,11 +3950,11 @@ declare const IngestFundingResultSchema: z.ZodObject<{
|
|
|
4909
3950
|
createdAtMs: number;
|
|
4910
3951
|
updatedAtMs: number;
|
|
4911
3952
|
ledgerRef: string;
|
|
4912
|
-
partnerId: string;
|
|
4913
3953
|
externalRef: string;
|
|
4914
3954
|
fundingSource: string;
|
|
4915
3955
|
providerMetadata: Record<string, unknown>;
|
|
4916
3956
|
fundingId: string;
|
|
3957
|
+
partnerId: string;
|
|
4917
3958
|
}, {
|
|
4918
3959
|
status: "pending" | "failed" | "posted";
|
|
4919
3960
|
userId: string | null;
|
|
@@ -4924,11 +3965,11 @@ declare const IngestFundingResultSchema: z.ZodObject<{
|
|
|
4924
3965
|
createdAtMs: number;
|
|
4925
3966
|
updatedAtMs: number;
|
|
4926
3967
|
ledgerRef: string;
|
|
4927
|
-
partnerId: string;
|
|
4928
3968
|
externalRef: string;
|
|
4929
3969
|
fundingSource: string;
|
|
4930
3970
|
providerMetadata: Record<string, unknown>;
|
|
4931
3971
|
fundingId: string;
|
|
3972
|
+
partnerId: string;
|
|
4932
3973
|
}>;
|
|
4933
3974
|
replayed: z.ZodBoolean;
|
|
4934
3975
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4943,11 +3984,11 @@ declare const IngestFundingResultSchema: z.ZodObject<{
|
|
|
4943
3984
|
createdAtMs: number;
|
|
4944
3985
|
updatedAtMs: number;
|
|
4945
3986
|
ledgerRef: string;
|
|
4946
|
-
partnerId: string;
|
|
4947
3987
|
externalRef: string;
|
|
4948
3988
|
fundingSource: string;
|
|
4949
3989
|
providerMetadata: Record<string, unknown>;
|
|
4950
3990
|
fundingId: string;
|
|
3991
|
+
partnerId: string;
|
|
4951
3992
|
};
|
|
4952
3993
|
}, {
|
|
4953
3994
|
replayed: boolean;
|
|
@@ -4961,11 +4002,11 @@ declare const IngestFundingResultSchema: z.ZodObject<{
|
|
|
4961
4002
|
createdAtMs: number;
|
|
4962
4003
|
updatedAtMs: number;
|
|
4963
4004
|
ledgerRef: string;
|
|
4964
|
-
partnerId: string;
|
|
4965
4005
|
externalRef: string;
|
|
4966
4006
|
fundingSource: string;
|
|
4967
4007
|
providerMetadata: Record<string, unknown>;
|
|
4968
4008
|
fundingId: string;
|
|
4009
|
+
partnerId: string;
|
|
4969
4010
|
};
|
|
4970
4011
|
}>;
|
|
4971
4012
|
type IngestFundingResult = z.infer<typeof IngestFundingResultSchema>;
|
|
@@ -4987,8 +4028,8 @@ declare const PayoutDestinationSchema: z.ZodObject<{
|
|
|
4987
4028
|
metadata: Record<string, unknown>;
|
|
4988
4029
|
createdAtMs: number;
|
|
4989
4030
|
updatedAtMs: number;
|
|
4990
|
-
partnerId: string;
|
|
4991
4031
|
bankCode: string;
|
|
4032
|
+
partnerId: string;
|
|
4992
4033
|
destinationId: string;
|
|
4993
4034
|
accountNumber: string;
|
|
4994
4035
|
accountName: string;
|
|
@@ -4999,8 +4040,8 @@ declare const PayoutDestinationSchema: z.ZodObject<{
|
|
|
4999
4040
|
metadata: Record<string, unknown>;
|
|
5000
4041
|
createdAtMs: number;
|
|
5001
4042
|
updatedAtMs: number;
|
|
5002
|
-
partnerId: string;
|
|
5003
4043
|
bankCode: string;
|
|
4044
|
+
partnerId: string;
|
|
5004
4045
|
destinationId: string;
|
|
5005
4046
|
accountNumber: string;
|
|
5006
4047
|
accountName: string;
|
|
@@ -5014,14 +4055,14 @@ declare const CreatePayoutDestinationInputSchema: z.ZodObject<{
|
|
|
5014
4055
|
accountName: z.ZodString;
|
|
5015
4056
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5016
4057
|
}, "strip", z.ZodTypeAny, {
|
|
5017
|
-
partnerId: string;
|
|
5018
4058
|
bankCode: string;
|
|
4059
|
+
partnerId: string;
|
|
5019
4060
|
accountNumber: string;
|
|
5020
4061
|
accountName: string;
|
|
5021
4062
|
metadata?: Record<string, unknown> | undefined;
|
|
5022
4063
|
}, {
|
|
5023
|
-
partnerId: string;
|
|
5024
4064
|
bankCode: string;
|
|
4065
|
+
partnerId: string;
|
|
5025
4066
|
accountNumber: string;
|
|
5026
4067
|
accountName: string;
|
|
5027
4068
|
metadata?: Record<string, unknown> | undefined;
|
|
@@ -5046,8 +4087,8 @@ declare const ListPayoutDestinationsResultSchema: z.ZodObject<{
|
|
|
5046
4087
|
metadata: Record<string, unknown>;
|
|
5047
4088
|
createdAtMs: number;
|
|
5048
4089
|
updatedAtMs: number;
|
|
5049
|
-
partnerId: string;
|
|
5050
4090
|
bankCode: string;
|
|
4091
|
+
partnerId: string;
|
|
5051
4092
|
destinationId: string;
|
|
5052
4093
|
accountNumber: string;
|
|
5053
4094
|
accountName: string;
|
|
@@ -5058,8 +4099,8 @@ declare const ListPayoutDestinationsResultSchema: z.ZodObject<{
|
|
|
5058
4099
|
metadata: Record<string, unknown>;
|
|
5059
4100
|
createdAtMs: number;
|
|
5060
4101
|
updatedAtMs: number;
|
|
5061
|
-
partnerId: string;
|
|
5062
4102
|
bankCode: string;
|
|
4103
|
+
partnerId: string;
|
|
5063
4104
|
destinationId: string;
|
|
5064
4105
|
accountNumber: string;
|
|
5065
4106
|
accountName: string;
|
|
@@ -5072,8 +4113,8 @@ declare const ListPayoutDestinationsResultSchema: z.ZodObject<{
|
|
|
5072
4113
|
metadata: Record<string, unknown>;
|
|
5073
4114
|
createdAtMs: number;
|
|
5074
4115
|
updatedAtMs: number;
|
|
5075
|
-
partnerId: string;
|
|
5076
4116
|
bankCode: string;
|
|
4117
|
+
partnerId: string;
|
|
5077
4118
|
destinationId: string;
|
|
5078
4119
|
accountNumber: string;
|
|
5079
4120
|
accountName: string;
|
|
@@ -5086,8 +4127,8 @@ declare const ListPayoutDestinationsResultSchema: z.ZodObject<{
|
|
|
5086
4127
|
metadata: Record<string, unknown>;
|
|
5087
4128
|
createdAtMs: number;
|
|
5088
4129
|
updatedAtMs: number;
|
|
5089
|
-
partnerId: string;
|
|
5090
4130
|
bankCode: string;
|
|
4131
|
+
partnerId: string;
|
|
5091
4132
|
destinationId: string;
|
|
5092
4133
|
accountNumber: string;
|
|
5093
4134
|
accountName: string;
|
|
@@ -6993,4 +6034,4 @@ declare function createOfflinePaymentAuthorizationArtifactUri(input: {
|
|
|
6993
6034
|
}>;
|
|
6994
6035
|
};
|
|
6995
6036
|
|
|
6996
|
-
export { ACCOUNT_STATUSES, ACCOUNT_TYPES, ADDITIONAL_DATA_SUBFIELD, ARTIFACT_BODY_SCHEMAS, ARTIFACT_TYPES, type Account, type AccountActivityItem, type AccountMembership, AccountMembershipSchema, AccountSchema, type AccountStatus, type AccountSummaryResponse, type AccountType, type AccountsClient, type AccountsClientOptions, type AddMemberInput, type AdditionalData, type ApiCredentialPublic, ApiCredentialPublicSchema, type ApiCredentialsAdminClient, type ArtifactBody, type ArtifactHeader, ArtifactHeaderSchema, type ArtifactType, type AtomicRedeemReceiptInput, type AtomicRedeemResponse, type AttestationSecurityLevel, AttestationSecurityLevelSchema, type AuthLogoutInput, type AuthRefreshInput, type AuthRefreshResponse, type AuthorizeSendWithBiometricInput, type AuthorizedOptions, type BiometricSigner, type BuildPassInput, type BuildReceiptInput, type BuildRedemptionInput, CLAIM_DOMAIN_V2, COLLECTION_INTENT_STATUSES, COLLECTION_PAYMENT_STATUSES, CUSTODIAL_MODES, type CanonicalClaimInput, type CashNamespace, type ClaimSignature, type CollectionIntent, CollectionIntentSchema, type CollectionPayment, type CollectionPaymentResult, CollectionPaymentResultSchema, CollectionPaymentSchema, type CollectionReportSummary, CollectionReportSummarySchema, type CollectionStatement, CollectionStatementSchema, type CollectionsClient, type CollectionsClientOptions, type ConsumerCollectionsClient, type ConsumerOAC, type OACRecord as ConsumerOACRecord, OACRecordSchema as ConsumerOACRecordSchema, ConsumerOACSchema, type ConsumerPaymentClaim, ConsumerPaymentClaimSchema, type ConsumerSettleResult, ConsumerSettleResultSchema, type ConsumerSettlement, ConsumerSettlementSchema, type ConsumerWithdrawalsClient, type ConsumerWithdrawalsClientOptions, type CreateBusinessAccountInput, type CreateCollectionIntentInput, CreateCollectionIntentInputSchema, type CreatePayLinkResponse, type CreatePayoutDestinationInput, CreatePayoutDestinationInputSchema, type CreatePayoutInput, CreatePayoutInputSchema, type CreateTransferOptions, type CreateWithdrawalInput, CreateWithdrawalInputSchema, type CreateWithdrawalResult, CreateWithdrawalResultSchema, type CustodialMode, type DecodedArtifactUri, type DeviceKeyAlg, DeviceKeyAlgSchema, type DeviceKeyRecord, DeviceKeyRecordSchema, type DeviceTrustState,
|
|
6037
|
+
export { ACCOUNT_FUNDED_OAC_MAX_TTL_MS, ACCOUNT_STATUSES, ACCOUNT_TYPES, ADDITIONAL_DATA_SUBFIELD, ARTIFACT_BODY_SCHEMAS, ARTIFACT_TYPES, type Account, type AccountActivityItem, type AccountMembership, AccountMembershipSchema, AccountSchema, type AccountStatus, type AccountSummaryResponse, type AccountType, type AccountsClient, type AccountsClientOptions, type AddMemberInput, type AdditionalData, type ApiCredentialPublic, ApiCredentialPublicSchema, type ApiCredentialsAdminClient, type ArtifactBody, type ArtifactHeader, ArtifactHeaderSchema, type ArtifactType, type AtomicRedeemReceiptInput, type AtomicRedeemResponse, type AttestationSecurityLevel, AttestationSecurityLevelSchema, type AuthLogoutInput, type AuthRefreshInput, type AuthRefreshResponse, type AuthorizeSendWithBiometricInput, type AuthorizedOptions, type BiometricSigner, type BuildPassInput, type BuildReceiptInput, type BuildRedemptionInput, CLAIM_DOMAIN_V2, COLLECTION_INTENT_STATUSES, COLLECTION_PAYMENT_STATUSES, CONSUMER_OFFLINE_CLAIM_SUBMIT_GRACE_MS, CUSTODIAL_MODES, type CanonicalClaimInput, type CashNamespace, type ClaimSignature, type CollectionIntent, CollectionIntentSchema, type CollectionPayment, type CollectionPaymentResult, CollectionPaymentResultSchema, CollectionPaymentSchema, type CollectionReportSummary, CollectionReportSummarySchema, type CollectionStatement, CollectionStatementSchema, type CollectionsClient, type CollectionsClientOptions, type ConsumerCollectionsClient, type ConsumerOAC, type OACRecord as ConsumerOACRecord, OACRecordSchema as ConsumerOACRecordSchema, ConsumerOACSchema, type ConsumerPaymentClaim, ConsumerPaymentClaimSchema, type ConsumerSettleResult, ConsumerSettleResultSchema, type ConsumerSettlement, ConsumerSettlementSchema, type ConsumerWithdrawalsClient, type ConsumerWithdrawalsClientOptions, type CreateBusinessAccountInput, type CreateCollectionIntentInput, CreateCollectionIntentInputSchema, type CreatePayLinkResponse, type CreatePayoutDestinationInput, CreatePayoutDestinationInputSchema, type CreatePayoutInput, CreatePayoutInputSchema, type CreateTransferOptions, type CreateWithdrawalInput, CreateWithdrawalInputSchema, type CreateWithdrawalResult, CreateWithdrawalResultSchema, type CustodialMode, type DecodedArtifactUri, type DeviceKeyAlg, DeviceKeyAlgSchema, type DeviceKeyRecord, DeviceKeyRecordSchema, type DeviceTrustState, FIELD, FLUR_ARTIFACT_URI_PREFIX, FLUR_ARTIFACT_URI_SCHEME, FLUR_ARTIFACT_VERSION, FlurApiError, FlurArtifactError, FlurCapExceededError, FlurClient, type FlurClientOptions, FlurError, type FlurErrorCode, FlurExpiredError, type FlurHandle, type FlurInitOptions, type FlurOfflineSettlementsClient, type FlurPartnerClient, type FlurPaymentEvent, FlurReplayError, HARDENED_ARTIFACT_TYPES, type HmacFetchOptions, IdentityArtifactSchema, type IngestFundingResult, IngestFundingResultSchema, type IssueAccountOacInput, IssueAccountOacInputSchema, type IssueOfflineTokenInput, type IssuePassInput, type IssueReceiptInput, LedgerJournalEntryArtifactSchema, type ListPassesInput, type ListPassesResponse, type ListPayoutDestinationsResult, ListPayoutDestinationsResultSchema, type ListReceiptsInput, type ListReceiptsResponse, type ListTransactionsOptions, MEMBERSHIP_ROLES, MERCHANT_PAYOUT_STATUSES, MERCHANT_PROFILE_STATUSES, type MeOfflineClient, type MeOfflineClientOptions, type MembershipRole, type MerchantAccountInfo, type MerchantPayout, MerchantPayoutSchema, type MerchantProfile, MerchantProfileSchema, type MintedApiCredential, MintedApiCredentialSchema, type Money, NGN_CURRENCY_CODE, NG_COUNTRY_CODE, NQRParseError, type NQRPayloadInput, NqrPaymentRequestArtifactSchema, type OAC, OACSchema, OAC_DEFAULT_CUMULATIVE_KOBO, OAC_DEFAULT_PER_TX_KOBO, OAC_DEFAULT_VALIDITY_MS, OFFLINE_CLAIM_SMS_PREFIX, type OfflineClaimAlgorithm, OfflineClaimArtifactSchema, type OfflineClaimSigner, type OfflinePaymentAuthorization, type OfflinePaymentAuthorizationArtifact, OfflinePaymentAuthorizationArtifactSchema, OfflinePaymentAuthorizationSchema, type OfflinePaymentRequest, OfflinePaymentRequestSchema, type OfflineStatusResult, OfflineStatusResultSchema, type OfflineToken, OfflineTokenSchema, type OnboardingCompleteInput, type OnboardingCompleteResponse, type OnboardingFallback, type OnboardingRiskReason, type OnboardingStartInput, type OnboardingStartResponse, type P256EnrollmentChallengeInput, P256EnrollmentChallengeInputSchema, type P256EnrollmentChallengeResult, P256EnrollmentChallengeResultSchema, PARTNER_FUNDING_DIRECTIONS, PARTNER_FUNDING_STATUSES, PARTNER_KINDS, PARTNER_PROFILE_STATUSES, PARTNER_SCOPES, PASS_KINDS, PASS_STATES, PAYLOAD_FORMAT_INDICATOR_VALUE, PAYOUT_DESTINATION_STATUSES, POINT_OF_INITIATION, type ParsedNQR, type PartnerClientOptions, type PartnerCollectionsClient, type PartnerFunding, type PartnerFundingClient, type PartnerFundingDirection, type PartnerFundingEventInput, PartnerFundingEventInputSchema, PartnerFundingSchema, type PartnerFundingStatus, type PartnerKind, type PartnerProfile, type PartnerProfileAdminClient, type PartnerProfileAdminClientOptions, PartnerProfileSchema, type PartnerProfileStatus, type PartnerScope, type PartnerSignResult, type Pass, PassArtifactSchema, type PassKind, type PassMetadata, PassMetadataSchema, PassSchema, type PassState, type PassesClient, type PassesClientOptions, type PayCollectionInput, PayCollectionInputSchema, type PayCollectionOptions, type PayCollectionResponse, type PaymentClaim, PaymentClaimSchema, PaymentIntentArtifactSchema, type PayoutDestination, PayoutDestinationSchema, type PayoutDestinationStatus, type PayoutEventInput, PayoutEventInputSchema, type PinSetInput, type PinVerifyInput, type ProviderEventInput, ProviderEventInputSchema, type ProviderEventRecord, ProviderEventRecordSchema, type PublicCollectionIntent, PublicCollectionIntentSchema, type PushPlatform, type PushRegisterInput, RECEIPT_CHANNELS, RECEIPT_KINDS, REPLAY_WINDOW_MS, type Receipt, type ReceiptArtifact, ReceiptArtifactSchema, type ReceiptChannel, type ReceiptKind, type ReceiptPayload, ReceiptPayloadSchema, ReceiptSchema, type ReceiptsClient, type ReceiptsClientOptions, type RecipientResolveInput, type RecipientResolveResponse, type ReconciliationReport, ReconciliationReportSchema, type RecordPayoutEventResult, RecordPayoutEventResultSchema, type RedeemPassResponse, type Redemption, RedemptionSchema, type RegisterDeviceInput, type RegisterDeviceKeyP256Input, RegisterDeviceKeyP256InputSchema, type RegisterDeviceResponse, type RegisterSendDeviceKeyInput, type ResolveCollectionOptions, type ResolveCollectionResponse, type ResolvePayLinkResponse, ReversalRecordArtifactSchema, RevokeDeviceKeyInputSchema, type RevokePassInput, type RoutingHint, SETTLEMENT_SCHEDULES, type SendChallengeInput, type SendChallengeResponse, type SendMoneyInput, type SendMoneyOptions, type SendVerifyInput, type SendVerifyResponse, type SettleResponse, SettleResponseSchema, type Settlement, SettlementRecordArtifactSchema, SettlementSchema, type SignedArtifact, type SignedConsumerOAC, SignedConsumerOACSchema, type SignerPublicKey, StatementArtifactSchema, type SubscribeOptions, type TLVField, type TransactionDetailResponse, type TransactionDirection, type TransactionsListResponse, type TransferInput, type TransferResponse, type TransferStatus, type UnsignedOAC, type UnsignedOfflinePaymentAuthorization, type UnsignedOfflinePaymentRequest, type UnsignedPass, type UnsignedReceipt, type UnsignedRedemption, type UpsertMerchantProfileInput, UpsertMerchantProfileInputSchema, type UpsertPartnerProfileInput, UpsertPartnerProfileInputSchema, type VerifiedArtifact, type VerifyArtifactOptions, type VerifyClaimSignatureInput, WITHDRAWAL_STATES, type Withdrawal, WithdrawalSchema, type WithdrawalState, base64UrlDecode, base64UrlEncode, bodySha256Hex, buildArtifactBody, buildAuthorization, buildOAC, buildPass, buildPaymentRequest, buildReceipt, buildRedemption, canonicalClaimSigningBytes, canonicalClaimSigningPayload, canonicalJSONBytes, canonicalJSONStringify, canonicalRequestString, computeEncounterId, constantTimeEqual, crc16ccitt, crc16ccittHex, createAccountsClient, createApiCredentialsAdminClient, createArtifactUri, createCollectionsClient, createConsumerCollectionsClient, createConsumerWithdrawalsClient, createFlurPartnerClient, createHmacFetch, createMeOfflineClient, createOfflinePaymentAuthorizationArtifactUri, createOfflineSettlementsClient, createPartnerCollectionsClient, createPartnerFundingClient, createPartnerProfileAdminClient, createPassesClient, createReceiptArtifactUri, createReceiptsClient, createSoftwareP256Signer, decodeArtifactUri, decodeAuthorizationQR, decodeBase45, decodeOfflineClaimSmsMessage, decodePaymentRequestQR, encodeArtifactUri, encodeAuthorizationQR, encodeBase45, encodeNQR, encodeOfflineClaimSmsMessage, encodePaymentRequestQR, extractOfflineClaimSmsToken, formatAmount, generateDynamicQR, generateStaticQR, init, isHardenedArtifactType, isKnownArtifactType, isPassWithinValidity, moneyMinorToNumber, normalizeE164, parseAmountInput, parseNQR, parseQR, readTLV, routingHint, signArtifact, signAuthorization, signOAC, signPartnerRequest, signPass, signPaymentRequest, signReceipt, signRedemption, signRequestHMAC, verifyArtifactSignature, verifyArtifactUri, verifyAuthorization, verifyClaimSignature, verifyOAC, verifyPass, verifyPaymentRequest, verifyReceipt, verifyRedemption, verifyRequestHMAC, writeTLV };
|