@sneekin/sdk 1.1.0 → 1.1.2
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/core/derive-keys.d.ts +1 -0
- package/dist/core/generated/api.d.ts +283 -245
- package/dist/index.cjs +31 -24
- package/dist/index.js +29 -23
- package/dist/messages/index.cjs +31 -24
- package/dist/messages/index.js +29 -23
- package/dist/pay/index.cjs +31 -24
- package/dist/pay/index.js +29 -23
- package/dist/verify/auth-schema.d.ts +2 -2
- package/dist/verify/index.cjs +44 -29
- package/dist/verify/index.js +43 -29
- package/package.json +2 -2
|
@@ -34,6 +34,56 @@ export type HealthResponse = {
|
|
|
34
34
|
timestamp: string;
|
|
35
35
|
service: string;
|
|
36
36
|
};
|
|
37
|
+
export type OpenapiDocumentResponse = {
|
|
38
|
+
[key: string]: unknown;
|
|
39
|
+
};
|
|
40
|
+
export type WebsiteSessionResponse = {
|
|
41
|
+
authenticated: true;
|
|
42
|
+
user: {
|
|
43
|
+
sub: string;
|
|
44
|
+
email: string;
|
|
45
|
+
displayName: string;
|
|
46
|
+
platformRole: 'owner' | 'admin' | 'developer' | 'viewer';
|
|
47
|
+
activeOrgId: string | null;
|
|
48
|
+
orgRoles: Array<{
|
|
49
|
+
orgId: string;
|
|
50
|
+
role: 'owner' | 'admin' | 'developer' | 'viewer';
|
|
51
|
+
}>;
|
|
52
|
+
};
|
|
53
|
+
} | {
|
|
54
|
+
authenticated: false;
|
|
55
|
+
user: null;
|
|
56
|
+
};
|
|
57
|
+
export type SneekVerifyAction = {
|
|
58
|
+
action: 'config';
|
|
59
|
+
} | {
|
|
60
|
+
action: 'request';
|
|
61
|
+
identifier: string;
|
|
62
|
+
} | {
|
|
63
|
+
action: 'switch';
|
|
64
|
+
requestId: string;
|
|
65
|
+
channel: 'sms' | 'whatsapp' | 'email' | 'push';
|
|
66
|
+
proof: string;
|
|
67
|
+
} | {
|
|
68
|
+
action: 'verify';
|
|
69
|
+
requestId: string;
|
|
70
|
+
code?: string;
|
|
71
|
+
proof: string;
|
|
72
|
+
} | {
|
|
73
|
+
action: 'verify';
|
|
74
|
+
requestId: string;
|
|
75
|
+
ref: string;
|
|
76
|
+
bindingProof: string;
|
|
77
|
+
} | {
|
|
78
|
+
action: 'create';
|
|
79
|
+
} | {
|
|
80
|
+
action: 'status';
|
|
81
|
+
ref: string;
|
|
82
|
+
bindingProof: string;
|
|
83
|
+
};
|
|
84
|
+
export type SneekVerifyResponse = {
|
|
85
|
+
[key: string]: unknown;
|
|
86
|
+
};
|
|
37
87
|
export type CreateApplication = {
|
|
38
88
|
websiteUrl: string;
|
|
39
89
|
displayName?: string;
|
|
@@ -53,7 +103,6 @@ export type UpdateApplication = {
|
|
|
53
103
|
};
|
|
54
104
|
export type CreateApiKey = {
|
|
55
105
|
name?: string;
|
|
56
|
-
environment?: 'live' | 'test';
|
|
57
106
|
expiresAt?: string;
|
|
58
107
|
};
|
|
59
108
|
export type ListApplicationsResponse = {
|
|
@@ -129,7 +178,6 @@ export type ListApiKeysResponse = {
|
|
|
129
178
|
applicationId: string;
|
|
130
179
|
name: string;
|
|
131
180
|
prefix: string;
|
|
132
|
-
environment: 'live' | 'test';
|
|
133
181
|
lastUsedAt: string | null;
|
|
134
182
|
expiresAt: string | null;
|
|
135
183
|
revokedAt: string | null;
|
|
@@ -141,7 +189,6 @@ export type CreateApiKeyResponse = {
|
|
|
141
189
|
applicationId: string;
|
|
142
190
|
name: string;
|
|
143
191
|
prefix: string;
|
|
144
|
-
environment: 'live' | 'test';
|
|
145
192
|
lastUsedAt: string | null;
|
|
146
193
|
expiresAt: string | null;
|
|
147
194
|
revokedAt: string | null;
|
|
@@ -149,16 +196,12 @@ export type CreateApiKeyResponse = {
|
|
|
149
196
|
key: string;
|
|
150
197
|
};
|
|
151
198
|
export type QrSignInSettings = {
|
|
152
|
-
secretCreatedAt: string | null;
|
|
153
199
|
webhookUrl: string | null;
|
|
154
200
|
defaultWebhookPath: string;
|
|
155
201
|
};
|
|
156
202
|
export type UpdateQrWebhook = {
|
|
157
203
|
webhookUrl: string | null;
|
|
158
204
|
};
|
|
159
|
-
export type CreateQrSigningSecretResponse = QrSignInSettings & {
|
|
160
|
-
secret: string;
|
|
161
|
-
};
|
|
162
205
|
export type CreateOrder = {
|
|
163
206
|
amount: string;
|
|
164
207
|
currency?: 'INR';
|
|
@@ -370,9 +413,6 @@ export type ListAuditLogResponse = {
|
|
|
370
413
|
organizationSlug: string | null;
|
|
371
414
|
}>;
|
|
372
415
|
};
|
|
373
|
-
export type GetOpenapiDocumentResponse = {
|
|
374
|
-
[key: string]: unknown;
|
|
375
|
-
};
|
|
376
416
|
export type OrganizationDetailResponse = {
|
|
377
417
|
organization: {
|
|
378
418
|
id: string;
|
|
@@ -422,6 +462,11 @@ export type OrganizationDetailResponse = {
|
|
|
422
462
|
analytics: {
|
|
423
463
|
currency: 'INR';
|
|
424
464
|
authUsers: number;
|
|
465
|
+
uniqueUsers: {
|
|
466
|
+
accounts: number;
|
|
467
|
+
emailOnly: number;
|
|
468
|
+
mobileOnly: number;
|
|
469
|
+
};
|
|
425
470
|
monthToDateChargeMicroInr: number;
|
|
426
471
|
allTimeChargeMicroInr: number;
|
|
427
472
|
monthToDateUsage: {
|
|
@@ -469,6 +514,11 @@ export type OrganizationDetailResponse = {
|
|
|
469
514
|
applicationAnalytics: Array<{
|
|
470
515
|
applicationId: string;
|
|
471
516
|
authUsers: number;
|
|
517
|
+
uniqueUsers: {
|
|
518
|
+
accounts: number;
|
|
519
|
+
emailOnly: number;
|
|
520
|
+
mobileOnly: number;
|
|
521
|
+
};
|
|
472
522
|
monthToDateChargeMicroInr: number;
|
|
473
523
|
monthToDateUsage: {
|
|
474
524
|
SMS_OTP: number;
|
|
@@ -613,6 +663,11 @@ export type ApplicationDetailResponse = {
|
|
|
613
663
|
analytics: {
|
|
614
664
|
currency: 'INR';
|
|
615
665
|
authUsers: number;
|
|
666
|
+
uniqueUsers: {
|
|
667
|
+
accounts: number;
|
|
668
|
+
emailOnly: number;
|
|
669
|
+
mobileOnly: number;
|
|
670
|
+
};
|
|
616
671
|
monthToDateChargeMicroInr: number;
|
|
617
672
|
allTimeChargeMicroInr: number;
|
|
618
673
|
monthToDateUsage: {
|
|
@@ -761,6 +816,11 @@ export type GetBillingResponse = {
|
|
|
761
816
|
analytics: {
|
|
762
817
|
currency: 'INR';
|
|
763
818
|
authUsers: number;
|
|
819
|
+
uniqueUsers: {
|
|
820
|
+
accounts: number;
|
|
821
|
+
emailOnly: number;
|
|
822
|
+
mobileOnly: number;
|
|
823
|
+
};
|
|
764
824
|
monthToDateChargeMicroInr: number;
|
|
765
825
|
allTimeChargeMicroInr: number;
|
|
766
826
|
monthToDateUsage: {
|
|
@@ -856,6 +916,7 @@ export type ListInvoicesResponse = {
|
|
|
856
916
|
quantity: number;
|
|
857
917
|
unitPriceMicroInr: number;
|
|
858
918
|
amountMicroInr: number;
|
|
919
|
+
priceRevisionId?: string;
|
|
859
920
|
}>;
|
|
860
921
|
}>;
|
|
861
922
|
};
|
|
@@ -889,6 +950,7 @@ export type InvoiceResponse = {
|
|
|
889
950
|
quantity: number;
|
|
890
951
|
unitPriceMicroInr: number;
|
|
891
952
|
amountMicroInr: number;
|
|
953
|
+
priceRevisionId?: string;
|
|
892
954
|
}>;
|
|
893
955
|
};
|
|
894
956
|
export type WalletResponse = {
|
|
@@ -995,6 +1057,42 @@ export type WebsiteSettlementsResponse = {
|
|
|
995
1057
|
settlement: Settlement;
|
|
996
1058
|
}>;
|
|
997
1059
|
};
|
|
1060
|
+
export type PriceRevision = {
|
|
1061
|
+
id: string;
|
|
1062
|
+
channel: 'SMS_OTP' | 'SMS_MSG' | 'WHATSAPP_OTP' | 'WHATSAPP_MSG' | 'EMAIL_OTP' | 'EMAIL_MSG' | 'PUSH' | 'QR_SCAN' | 'PASSKEY';
|
|
1063
|
+
unitPriceMicroInr: number;
|
|
1064
|
+
currency: 'INR';
|
|
1065
|
+
effectiveFrom: string;
|
|
1066
|
+
reason: string;
|
|
1067
|
+
createdByUserId?: string | null;
|
|
1068
|
+
createdAt: string;
|
|
1069
|
+
};
|
|
1070
|
+
export type ChannelPricing = {
|
|
1071
|
+
channel: 'SMS_OTP' | 'SMS_MSG' | 'WHATSAPP_OTP' | 'WHATSAPP_MSG' | 'EMAIL_OTP' | 'EMAIL_MSG' | 'PUSH' | 'QR_SCAN' | 'PASSKEY';
|
|
1072
|
+
currentPrice: PriceRevision;
|
|
1073
|
+
scheduledChange: PriceRevision & ({
|
|
1074
|
+
[key: string]: unknown;
|
|
1075
|
+
} | null);
|
|
1076
|
+
};
|
|
1077
|
+
export type GetPricingResponse = {
|
|
1078
|
+
channels: Array<ChannelPricing>;
|
|
1079
|
+
noticeDays: number;
|
|
1080
|
+
};
|
|
1081
|
+
export type GetPriceRevisionsQuery = {
|
|
1082
|
+
channel?: 'SMS_OTP' | 'SMS_MSG' | 'WHATSAPP_OTP' | 'WHATSAPP_MSG' | 'EMAIL_OTP' | 'EMAIL_MSG' | 'PUSH' | 'QR_SCAN' | 'PASSKEY';
|
|
1083
|
+
};
|
|
1084
|
+
export type GetPriceRevisionsResponse = {
|
|
1085
|
+
revisions: Array<PriceRevision>;
|
|
1086
|
+
};
|
|
1087
|
+
export type CreatePriceRevision = {
|
|
1088
|
+
channel: 'SMS_OTP' | 'SMS_MSG' | 'WHATSAPP_OTP' | 'WHATSAPP_MSG' | 'EMAIL_OTP' | 'EMAIL_MSG' | 'PUSH' | 'QR_SCAN' | 'PASSKEY';
|
|
1089
|
+
unitPriceMicroInr: number;
|
|
1090
|
+
effectiveFrom?: string;
|
|
1091
|
+
reason: string;
|
|
1092
|
+
};
|
|
1093
|
+
export type CreatePriceRevisionResponse = {
|
|
1094
|
+
revision: PriceRevision;
|
|
1095
|
+
};
|
|
998
1096
|
export type MatchPushApprovalNumber = {
|
|
999
1097
|
trustedDeviceId: string;
|
|
1000
1098
|
selectedNumber: string;
|
|
@@ -1012,12 +1110,29 @@ export type PushApprovalMatchResponse = {
|
|
|
1012
1110
|
trustedDeviceId: string;
|
|
1013
1111
|
algorithm: 'ES256';
|
|
1014
1112
|
};
|
|
1113
|
+
export type BeginPasskeyEnrollment = {
|
|
1114
|
+
publicKey: string;
|
|
1115
|
+
recoveryMode?: 'standard' | 'unavailable_device' | 'lost_all';
|
|
1116
|
+
};
|
|
1117
|
+
export type BeginPasskeyEnrollmentResponse = {
|
|
1118
|
+
challenge: string;
|
|
1119
|
+
algorithm: 'ES256';
|
|
1120
|
+
otpVerificationId: string;
|
|
1121
|
+
maskedIdentifier: string | null;
|
|
1122
|
+
expiresAt: string;
|
|
1123
|
+
approvalRequired: boolean;
|
|
1124
|
+
};
|
|
1015
1125
|
export type RegisterPasskey = {
|
|
1016
1126
|
response: {
|
|
1017
|
-
trustedDeviceId?: string;
|
|
1018
1127
|
publicKey: string;
|
|
1019
1128
|
signature: string;
|
|
1020
1129
|
};
|
|
1130
|
+
otpVerificationId: string;
|
|
1131
|
+
code: string;
|
|
1132
|
+
existingDeviceProof?: {
|
|
1133
|
+
trustedDeviceId: string;
|
|
1134
|
+
signature: string;
|
|
1135
|
+
};
|
|
1021
1136
|
label?: string;
|
|
1022
1137
|
};
|
|
1023
1138
|
export type DeviceCredentialOptions = {
|
|
@@ -1075,13 +1190,6 @@ export type RegisterPushTokenResponse = {
|
|
|
1075
1190
|
export type VerifyIdentifier = {
|
|
1076
1191
|
identifier: string;
|
|
1077
1192
|
};
|
|
1078
|
-
export type VerifyCode = {
|
|
1079
|
-
requestId: string;
|
|
1080
|
-
code?: string;
|
|
1081
|
-
response?: {
|
|
1082
|
-
[key: string]: unknown;
|
|
1083
|
-
};
|
|
1084
|
-
};
|
|
1085
1193
|
export type CheckVerification = {
|
|
1086
1194
|
code?: string;
|
|
1087
1195
|
response?: {
|
|
@@ -1106,14 +1214,9 @@ export type ApproveVerification = {
|
|
|
1106
1214
|
} | {
|
|
1107
1215
|
action: 'deny';
|
|
1108
1216
|
};
|
|
1109
|
-
export type InteractionQrResponse = {
|
|
1110
|
-
ref: string;
|
|
1111
|
-
nonce: string;
|
|
1112
|
-
issuedAt: number;
|
|
1113
|
-
expiresAt: number;
|
|
1114
|
-
};
|
|
1115
1217
|
export type ApproveQr = {
|
|
1116
1218
|
applicationId: string;
|
|
1219
|
+
kid?: string;
|
|
1117
1220
|
nonce: string;
|
|
1118
1221
|
origin: string;
|
|
1119
1222
|
iat: number;
|
|
@@ -1164,39 +1267,17 @@ export type VerifiedUser = {
|
|
|
1164
1267
|
profileUpdatedAt: string;
|
|
1165
1268
|
};
|
|
1166
1269
|
export type VerifyCheckResponse = {
|
|
1167
|
-
status: 'profile_required';
|
|
1168
|
-
profileComplete: false;
|
|
1169
|
-
profileEnrollmentUrl: string;
|
|
1170
|
-
} | {
|
|
1171
1270
|
status: 'verified';
|
|
1172
1271
|
idToken: string;
|
|
1173
1272
|
identifier: string;
|
|
1174
1273
|
kind: 'email' | 'mobile';
|
|
1175
|
-
} | {
|
|
1176
|
-
status: 'verified';
|
|
1177
|
-
idToken: string;
|
|
1178
|
-
subject: string;
|
|
1179
|
-
user: VerifiedUser;
|
|
1180
|
-
profileComplete: true;
|
|
1181
|
-
} | {
|
|
1182
|
-
status: 'verified';
|
|
1183
|
-
idToken: string;
|
|
1184
|
-
subject: string;
|
|
1185
|
-
user: VerifiedUser;
|
|
1186
|
-
profileComplete: true;
|
|
1187
|
-
accessToken: string;
|
|
1188
|
-
refreshToken: string;
|
|
1189
|
-
expiresIn: number;
|
|
1190
1274
|
};
|
|
1191
1275
|
export type VerifyApproveResponse = {
|
|
1192
1276
|
status: 'verified' | 'cancelled';
|
|
1193
1277
|
};
|
|
1194
|
-
export type QrConfigResponse = {
|
|
1195
|
-
applicationId: string;
|
|
1196
|
-
qrTtlSeconds: number;
|
|
1197
|
-
};
|
|
1198
1278
|
export type QrPartnerConfigResponse = {
|
|
1199
1279
|
applicationId: string;
|
|
1280
|
+
kid: string;
|
|
1200
1281
|
clientId: string;
|
|
1201
1282
|
issuer: string;
|
|
1202
1283
|
origins: Array<string>;
|
|
@@ -1211,26 +1292,6 @@ export type QrWebhookEvent = {
|
|
|
1211
1292
|
export type ApproveQrResponse = {
|
|
1212
1293
|
status: 'verified';
|
|
1213
1294
|
};
|
|
1214
|
-
export type InteractionIdentifierResponse = {
|
|
1215
|
-
requestId: string;
|
|
1216
|
-
channel?: 'sms' | 'whatsapp' | 'email' | 'push' | 'qr' | 'passkey';
|
|
1217
|
-
maskedIdentifier?: string;
|
|
1218
|
-
expiresAt?: string;
|
|
1219
|
-
instruction?: {
|
|
1220
|
-
code: 'approve_push' | 'enter_email_otp' | 'enter_whatsapp_otp' | 'enter_sms_otp';
|
|
1221
|
-
message: string;
|
|
1222
|
-
};
|
|
1223
|
-
alternatives?: Array<'sms' | 'whatsapp' | 'email' | 'push'>;
|
|
1224
|
-
challengeNumber?: string;
|
|
1225
|
-
publicKeyOptions?: {
|
|
1226
|
-
[key: string]: unknown;
|
|
1227
|
-
};
|
|
1228
|
-
};
|
|
1229
|
-
export type InteractionProfileRequiredResponse = {
|
|
1230
|
-
status: 'profile_required';
|
|
1231
|
-
profileComplete: false;
|
|
1232
|
-
profileEnrollmentUrl: string;
|
|
1233
|
-
};
|
|
1234
1295
|
export type UpdateProfile = {
|
|
1235
1296
|
displayName?: string;
|
|
1236
1297
|
addressLine1?: string;
|
|
@@ -1531,30 +1592,22 @@ export type ListOwnershipTransfersResponse = {
|
|
|
1531
1592
|
export type WhatsAppWebhookEvent = {
|
|
1532
1593
|
object?: string;
|
|
1533
1594
|
};
|
|
1534
|
-
export type
|
|
1535
|
-
|
|
1595
|
+
export type SigningJwk = {
|
|
1596
|
+
kty: 'EC';
|
|
1597
|
+
crv: 'P-256';
|
|
1598
|
+
x: string;
|
|
1599
|
+
y: string;
|
|
1600
|
+
kid: string;
|
|
1601
|
+
alg: 'ES256';
|
|
1602
|
+
use: 'sig';
|
|
1536
1603
|
};
|
|
1537
|
-
export type
|
|
1538
|
-
|
|
1539
|
-
refresh_token: string;
|
|
1604
|
+
export type JwksResponse = {
|
|
1605
|
+
keys: Array<SigningJwk>;
|
|
1540
1606
|
};
|
|
1541
|
-
export type
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
email: string;
|
|
1546
|
-
displayName: string;
|
|
1547
|
-
platformRole: 'owner' | 'admin' | 'developer' | 'viewer';
|
|
1548
|
-
activeOrgId: string | null;
|
|
1549
|
-
orgRoles: Array<{
|
|
1550
|
-
orgId: string;
|
|
1551
|
-
role: 'owner' | 'admin' | 'developer' | 'viewer';
|
|
1552
|
-
}>;
|
|
1553
|
-
};
|
|
1554
|
-
profileEnrollmentUrl?: string;
|
|
1555
|
-
};
|
|
1556
|
-
export type WebAuthSessionError = {
|
|
1557
|
-
error: 'no_session' | 'invalid_session' | 'profile_enrollment_unavailable';
|
|
1607
|
+
export type OidcDiscoveryResponse = {
|
|
1608
|
+
issuer: string;
|
|
1609
|
+
jwks_uri: string;
|
|
1610
|
+
id_token_signing_alg_values_supported: Array<'ES256'>;
|
|
1558
1611
|
};
|
|
1559
1612
|
export type HealthGetData = {
|
|
1560
1613
|
body?: never;
|
|
@@ -1566,6 +1619,16 @@ export type HealthGetResponses = {
|
|
|
1566
1619
|
200: HealthResponse;
|
|
1567
1620
|
};
|
|
1568
1621
|
export type HealthGetResponse = HealthGetResponses[keyof HealthGetResponses];
|
|
1622
|
+
export type OpenapiGetPublicData = {
|
|
1623
|
+
body?: never;
|
|
1624
|
+
path?: never;
|
|
1625
|
+
query?: never;
|
|
1626
|
+
url: '/api/openapi.json';
|
|
1627
|
+
};
|
|
1628
|
+
export type OpenapiGetPublicResponses = {
|
|
1629
|
+
200: OpenapiDocumentResponse;
|
|
1630
|
+
};
|
|
1631
|
+
export type OpenapiGetPublicResponse = OpenapiGetPublicResponses[keyof OpenapiGetPublicResponses];
|
|
1569
1632
|
export type StorageGetData = {
|
|
1570
1633
|
body?: never;
|
|
1571
1634
|
path?: never;
|
|
@@ -1803,22 +1866,6 @@ export type VerifyApproveResponses = {
|
|
|
1803
1866
|
200: VerifyApproveResponse;
|
|
1804
1867
|
};
|
|
1805
1868
|
export type VerifyApproveResponse2 = VerifyApproveResponses[keyof VerifyApproveResponses];
|
|
1806
|
-
export type VerifyQrSubscribeData = {
|
|
1807
|
-
body?: never;
|
|
1808
|
-
path?: never;
|
|
1809
|
-
query: {
|
|
1810
|
-
ref: string;
|
|
1811
|
-
};
|
|
1812
|
-
url: '/api/verify/qr/subscribe';
|
|
1813
|
-
};
|
|
1814
|
-
export type VerifyQrSubscribeErrors = {
|
|
1815
|
-
400: ErrorEnvelope;
|
|
1816
|
-
};
|
|
1817
|
-
export type VerifyQrSubscribeError = VerifyQrSubscribeErrors[keyof VerifyQrSubscribeErrors];
|
|
1818
|
-
export type VerifyQrSubscribeResponses = {
|
|
1819
|
-
200: string;
|
|
1820
|
-
};
|
|
1821
|
-
export type VerifyQrSubscribeResponse = VerifyQrSubscribeResponses[keyof VerifyQrSubscribeResponses];
|
|
1822
1869
|
export type VerifyQrApproveData = {
|
|
1823
1870
|
body: ApproveQr;
|
|
1824
1871
|
path?: never;
|
|
@@ -1834,16 +1881,6 @@ export type VerifyQrApproveResponses = {
|
|
|
1834
1881
|
200: ApproveQrResponse;
|
|
1835
1882
|
};
|
|
1836
1883
|
export type VerifyQrApproveResponse = VerifyQrApproveResponses[keyof VerifyQrApproveResponses];
|
|
1837
|
-
export type VerifyQrConfigData = {
|
|
1838
|
-
body?: never;
|
|
1839
|
-
path?: never;
|
|
1840
|
-
query?: never;
|
|
1841
|
-
url: '/api/verify/qr/config';
|
|
1842
|
-
};
|
|
1843
|
-
export type VerifyQrConfigResponses = {
|
|
1844
|
-
200: QrConfigResponse;
|
|
1845
|
-
};
|
|
1846
|
-
export type VerifyQrConfigResponse = VerifyQrConfigResponses[keyof VerifyQrConfigResponses];
|
|
1847
1884
|
export type VerifyQrPartnerConfigData = {
|
|
1848
1885
|
body?: never;
|
|
1849
1886
|
path?: never;
|
|
@@ -1858,85 +1895,26 @@ export type VerifyQrPartnerConfigResponses = {
|
|
|
1858
1895
|
200: QrPartnerConfigResponse;
|
|
1859
1896
|
};
|
|
1860
1897
|
export type VerifyQrPartnerConfigResponse = VerifyQrPartnerConfigResponses[keyof VerifyQrPartnerConfigResponses];
|
|
1861
|
-
export type
|
|
1898
|
+
export type OidcJwksData = {
|
|
1862
1899
|
body?: never;
|
|
1863
|
-
path
|
|
1864
|
-
uid: string;
|
|
1865
|
-
};
|
|
1866
|
-
query?: never;
|
|
1867
|
-
url: '/interaction/{uid}/qr';
|
|
1868
|
-
};
|
|
1869
|
-
export type InteractionQrErrors = {
|
|
1870
|
-
400: ErrorEnvelope;
|
|
1871
|
-
};
|
|
1872
|
-
export type InteractionQrError = InteractionQrErrors[keyof InteractionQrErrors];
|
|
1873
|
-
export type InteractionQrResponses = {
|
|
1874
|
-
200: InteractionQrResponse;
|
|
1875
|
-
};
|
|
1876
|
-
export type InteractionQrResponse2 = InteractionQrResponses[keyof InteractionQrResponses];
|
|
1877
|
-
export type InteractionIdentifierData = {
|
|
1878
|
-
body: VerifyIdentifier;
|
|
1879
|
-
path: {
|
|
1880
|
-
uid: string;
|
|
1881
|
-
};
|
|
1882
|
-
query?: never;
|
|
1883
|
-
url: '/interaction/{uid}/identifier';
|
|
1884
|
-
};
|
|
1885
|
-
export type InteractionIdentifierErrors = {
|
|
1886
|
-
400: ErrorEnvelope;
|
|
1887
|
-
};
|
|
1888
|
-
export type InteractionIdentifierError = InteractionIdentifierErrors[keyof InteractionIdentifierErrors];
|
|
1889
|
-
export type InteractionIdentifierResponses = {
|
|
1890
|
-
200: InteractionIdentifierResponse;
|
|
1891
|
-
};
|
|
1892
|
-
export type InteractionIdentifierResponse2 = InteractionIdentifierResponses[keyof InteractionIdentifierResponses];
|
|
1893
|
-
export type InteractionVerifyData = {
|
|
1894
|
-
body: VerifyCode;
|
|
1895
|
-
path: {
|
|
1896
|
-
uid: string;
|
|
1897
|
-
};
|
|
1898
|
-
query?: never;
|
|
1899
|
-
url: '/interaction/{uid}/verify';
|
|
1900
|
-
};
|
|
1901
|
-
export type InteractionVerifyErrors = {
|
|
1902
|
-
400: ErrorEnvelope;
|
|
1903
|
-
};
|
|
1904
|
-
export type InteractionVerifyError = InteractionVerifyErrors[keyof InteractionVerifyErrors];
|
|
1905
|
-
export type InteractionVerifyResponses = {
|
|
1906
|
-
200: InteractionProfileRequiredResponse;
|
|
1907
|
-
};
|
|
1908
|
-
export type InteractionVerifyResponse = InteractionVerifyResponses[keyof InteractionVerifyResponses];
|
|
1909
|
-
export type InteractionSwitchMethodData = {
|
|
1910
|
-
body: SwitchVerificationMethod;
|
|
1911
|
-
path: {
|
|
1912
|
-
uid: string;
|
|
1913
|
-
id: string;
|
|
1914
|
-
};
|
|
1900
|
+
path?: never;
|
|
1915
1901
|
query?: never;
|
|
1916
|
-
url: '/
|
|
1902
|
+
url: '/oauth/jwks';
|
|
1917
1903
|
};
|
|
1918
|
-
export type
|
|
1919
|
-
|
|
1920
|
-
};
|
|
1921
|
-
export type InteractionSwitchMethodError = InteractionSwitchMethodErrors[keyof InteractionSwitchMethodErrors];
|
|
1922
|
-
export type InteractionSwitchMethodResponses = {
|
|
1923
|
-
200: InteractionIdentifierResponse;
|
|
1904
|
+
export type OidcJwksResponses = {
|
|
1905
|
+
200: JwksResponse;
|
|
1924
1906
|
};
|
|
1925
|
-
export type
|
|
1926
|
-
export type
|
|
1927
|
-
body
|
|
1907
|
+
export type OidcJwksResponse = OidcJwksResponses[keyof OidcJwksResponses];
|
|
1908
|
+
export type OidcDiscoveryData = {
|
|
1909
|
+
body?: never;
|
|
1928
1910
|
path?: never;
|
|
1929
1911
|
query?: never;
|
|
1930
|
-
url: '/
|
|
1912
|
+
url: '/.well-known/openid-configuration';
|
|
1931
1913
|
};
|
|
1932
|
-
export type
|
|
1933
|
-
|
|
1914
|
+
export type OidcDiscoveryResponses = {
|
|
1915
|
+
200: OidcDiscoveryResponse;
|
|
1934
1916
|
};
|
|
1935
|
-
export type
|
|
1936
|
-
export type OidcLogoutAllResponses = {
|
|
1937
|
-
200: OkResponse;
|
|
1938
|
-
};
|
|
1939
|
-
export type OidcLogoutAllResponse = OidcLogoutAllResponses[keyof OidcLogoutAllResponses];
|
|
1917
|
+
export type OidcDiscoveryResponse2 = OidcDiscoveryResponses[keyof OidcDiscoveryResponses];
|
|
1940
1918
|
export type FactorsListData = {
|
|
1941
1919
|
body?: never;
|
|
1942
1920
|
path?: never;
|
|
@@ -1981,17 +1959,18 @@ export type FactorsPendingApprovalsResponses = {
|
|
|
1981
1959
|
};
|
|
1982
1960
|
export type FactorsPendingApprovalsResponse = FactorsPendingApprovalsResponses[keyof FactorsPendingApprovalsResponses];
|
|
1983
1961
|
export type FactorsRegistrationOptionsData = {
|
|
1984
|
-
body
|
|
1962
|
+
body: BeginPasskeyEnrollment;
|
|
1985
1963
|
path?: never;
|
|
1986
1964
|
query?: never;
|
|
1987
1965
|
url: '/api/verify/factors/registration-options';
|
|
1988
1966
|
};
|
|
1989
1967
|
export type FactorsRegistrationOptionsErrors = {
|
|
1968
|
+
400: ErrorEnvelope;
|
|
1990
1969
|
401: ErrorEnvelope;
|
|
1991
1970
|
};
|
|
1992
1971
|
export type FactorsRegistrationOptionsError = FactorsRegistrationOptionsErrors[keyof FactorsRegistrationOptionsErrors];
|
|
1993
1972
|
export type FactorsRegistrationOptionsResponses = {
|
|
1994
|
-
200:
|
|
1973
|
+
200: BeginPasskeyEnrollmentResponse;
|
|
1995
1974
|
};
|
|
1996
1975
|
export type FactorsRegistrationOptionsResponse = FactorsRegistrationOptionsResponses[keyof FactorsRegistrationOptionsResponses];
|
|
1997
1976
|
export type FactorsAuthenticationOptionsData = {
|
|
@@ -2072,6 +2051,74 @@ export type FactorsRegisterPushTokenResponses = {
|
|
|
2072
2051
|
200: RegisterPushTokenResponse;
|
|
2073
2052
|
};
|
|
2074
2053
|
export type FactorsRegisterPushTokenResponse = FactorsRegisterPushTokenResponses[keyof FactorsRegisterPushTokenResponses];
|
|
2054
|
+
export type AuthSessionData = {
|
|
2055
|
+
body?: never;
|
|
2056
|
+
path?: never;
|
|
2057
|
+
query?: never;
|
|
2058
|
+
url: '/api/auth/session';
|
|
2059
|
+
};
|
|
2060
|
+
export type AuthSessionResponses = {
|
|
2061
|
+
200: WebsiteSessionResponse;
|
|
2062
|
+
};
|
|
2063
|
+
export type AuthSessionResponse = AuthSessionResponses[keyof AuthSessionResponses];
|
|
2064
|
+
export type AuthLogoutData = {
|
|
2065
|
+
body?: never;
|
|
2066
|
+
path?: never;
|
|
2067
|
+
query?: never;
|
|
2068
|
+
url: '/api/auth/logout';
|
|
2069
|
+
};
|
|
2070
|
+
export type AuthLogoutErrors = {
|
|
2071
|
+
401: ErrorEnvelope;
|
|
2072
|
+
403: ErrorEnvelope;
|
|
2073
|
+
};
|
|
2074
|
+
export type AuthLogoutError = AuthLogoutErrors[keyof AuthLogoutErrors];
|
|
2075
|
+
export type AuthLogoutResponses = {
|
|
2076
|
+
200: OkResponse;
|
|
2077
|
+
};
|
|
2078
|
+
export type AuthLogoutResponse = AuthLogoutResponses[keyof AuthLogoutResponses];
|
|
2079
|
+
export type AuthLogoutAllData = {
|
|
2080
|
+
body?: never;
|
|
2081
|
+
path?: never;
|
|
2082
|
+
query?: never;
|
|
2083
|
+
url: '/api/auth/logout-all';
|
|
2084
|
+
};
|
|
2085
|
+
export type AuthLogoutAllErrors = {
|
|
2086
|
+
401: ErrorEnvelope;
|
|
2087
|
+
403: ErrorEnvelope;
|
|
2088
|
+
};
|
|
2089
|
+
export type AuthLogoutAllError = AuthLogoutAllErrors[keyof AuthLogoutAllErrors];
|
|
2090
|
+
export type AuthLogoutAllResponses = {
|
|
2091
|
+
200: OkResponse;
|
|
2092
|
+
};
|
|
2093
|
+
export type AuthLogoutAllResponse = AuthLogoutAllResponses[keyof AuthLogoutAllResponses];
|
|
2094
|
+
export type AuthSneekData = {
|
|
2095
|
+
body: SneekVerifyAction;
|
|
2096
|
+
path?: never;
|
|
2097
|
+
query?: never;
|
|
2098
|
+
url: '/api/auth/sneek';
|
|
2099
|
+
};
|
|
2100
|
+
export type AuthSneekErrors = {
|
|
2101
|
+
400: ErrorEnvelope;
|
|
2102
|
+
};
|
|
2103
|
+
export type AuthSneekError = AuthSneekErrors[keyof AuthSneekErrors];
|
|
2104
|
+
export type AuthSneekResponses = {
|
|
2105
|
+
200: SneekVerifyResponse;
|
|
2106
|
+
};
|
|
2107
|
+
export type AuthSneekResponse = AuthSneekResponses[keyof AuthSneekResponses];
|
|
2108
|
+
export type AuthSneekWebhookData = {
|
|
2109
|
+
body: QrWebhookEvent;
|
|
2110
|
+
path?: never;
|
|
2111
|
+
query?: never;
|
|
2112
|
+
url: '/api/auth/sneek/webhook';
|
|
2113
|
+
};
|
|
2114
|
+
export type AuthSneekWebhookErrors = {
|
|
2115
|
+
400: ErrorEnvelope;
|
|
2116
|
+
};
|
|
2117
|
+
export type AuthSneekWebhookError = AuthSneekWebhookErrors[keyof AuthSneekWebhookErrors];
|
|
2118
|
+
export type AuthSneekWebhookResponses = {
|
|
2119
|
+
204: void;
|
|
2120
|
+
};
|
|
2121
|
+
export type AuthSneekWebhookResponse = AuthSneekWebhookResponses[keyof AuthSneekWebhookResponses];
|
|
2075
2122
|
export type AccountDeleteData = {
|
|
2076
2123
|
body?: never;
|
|
2077
2124
|
path?: never;
|
|
@@ -2760,24 +2807,6 @@ export type QrSignInGetResponses = {
|
|
|
2760
2807
|
200: QrSignInSettings;
|
|
2761
2808
|
};
|
|
2762
2809
|
export type QrSignInGetResponse = QrSignInGetResponses[keyof QrSignInGetResponses];
|
|
2763
|
-
export type QrSignInCreateSecretData = {
|
|
2764
|
-
body?: never;
|
|
2765
|
-
path: {
|
|
2766
|
-
orgId: string;
|
|
2767
|
-
appId: string;
|
|
2768
|
-
};
|
|
2769
|
-
query?: never;
|
|
2770
|
-
url: '/api/orgs/{orgId}/applications/{appId}/qr-sign-in/secret';
|
|
2771
|
-
};
|
|
2772
|
-
export type QrSignInCreateSecretErrors = {
|
|
2773
|
-
400: ErrorEnvelope;
|
|
2774
|
-
401: ErrorEnvelope;
|
|
2775
|
-
};
|
|
2776
|
-
export type QrSignInCreateSecretError = QrSignInCreateSecretErrors[keyof QrSignInCreateSecretErrors];
|
|
2777
|
-
export type QrSignInCreateSecretResponses = {
|
|
2778
|
-
201: CreateQrSigningSecretResponse;
|
|
2779
|
-
};
|
|
2780
|
-
export type QrSignInCreateSecretResponse = QrSignInCreateSecretResponses[keyof QrSignInCreateSecretResponses];
|
|
2781
2810
|
export type QrSignInUpdateWebhookData = {
|
|
2782
2811
|
body: UpdateQrWebhook;
|
|
2783
2812
|
path: {
|
|
@@ -2986,14 +3015,14 @@ export type ConsoleGetOpenapiData = {
|
|
|
2986
3015
|
body?: never;
|
|
2987
3016
|
path?: never;
|
|
2988
3017
|
query?: never;
|
|
2989
|
-
url: '/api/console/openapi';
|
|
3018
|
+
url: '/api/console/openapi.json';
|
|
2990
3019
|
};
|
|
2991
3020
|
export type ConsoleGetOpenapiErrors = {
|
|
2992
3021
|
401: ErrorEnvelope;
|
|
2993
3022
|
};
|
|
2994
3023
|
export type ConsoleGetOpenapiError = ConsoleGetOpenapiErrors[keyof ConsoleGetOpenapiErrors];
|
|
2995
3024
|
export type ConsoleGetOpenapiResponses = {
|
|
2996
|
-
200:
|
|
3025
|
+
200: OpenapiDocumentResponse;
|
|
2997
3026
|
};
|
|
2998
3027
|
export type ConsoleGetOpenapiResponse = ConsoleGetOpenapiResponses[keyof ConsoleGetOpenapiResponses];
|
|
2999
3028
|
export type ConsoleGetOrganizationData = {
|
|
@@ -3420,6 +3449,52 @@ export type ConsoleListUsersResponses = {
|
|
|
3420
3449
|
200: ListConsoleUsersResponse;
|
|
3421
3450
|
};
|
|
3422
3451
|
export type ConsoleListUsersResponse = ConsoleListUsersResponses[keyof ConsoleListUsersResponses];
|
|
3452
|
+
export type ConsoleGetPricingData = {
|
|
3453
|
+
body?: never;
|
|
3454
|
+
path?: never;
|
|
3455
|
+
query?: never;
|
|
3456
|
+
url: '/api/console/pricing';
|
|
3457
|
+
};
|
|
3458
|
+
export type ConsoleGetPricingErrors = {
|
|
3459
|
+
401: ErrorEnvelope;
|
|
3460
|
+
};
|
|
3461
|
+
export type ConsoleGetPricingError = ConsoleGetPricingErrors[keyof ConsoleGetPricingErrors];
|
|
3462
|
+
export type ConsoleGetPricingResponses = {
|
|
3463
|
+
200: GetPricingResponse;
|
|
3464
|
+
};
|
|
3465
|
+
export type ConsoleGetPricingResponse = ConsoleGetPricingResponses[keyof ConsoleGetPricingResponses];
|
|
3466
|
+
export type ConsoleGetPriceRevisionsData = {
|
|
3467
|
+
body?: never;
|
|
3468
|
+
path?: never;
|
|
3469
|
+
query?: {
|
|
3470
|
+
channel?: 'SMS_OTP' | 'SMS_MSG' | 'WHATSAPP_OTP' | 'WHATSAPP_MSG' | 'EMAIL_OTP' | 'EMAIL_MSG' | 'PUSH' | 'QR_SCAN' | 'PASSKEY';
|
|
3471
|
+
};
|
|
3472
|
+
url: '/api/console/pricing/revisions';
|
|
3473
|
+
};
|
|
3474
|
+
export type ConsoleGetPriceRevisionsErrors = {
|
|
3475
|
+
400: ErrorEnvelope;
|
|
3476
|
+
401: ErrorEnvelope;
|
|
3477
|
+
};
|
|
3478
|
+
export type ConsoleGetPriceRevisionsError = ConsoleGetPriceRevisionsErrors[keyof ConsoleGetPriceRevisionsErrors];
|
|
3479
|
+
export type ConsoleGetPriceRevisionsResponses = {
|
|
3480
|
+
200: GetPriceRevisionsResponse;
|
|
3481
|
+
};
|
|
3482
|
+
export type ConsoleGetPriceRevisionsResponse = ConsoleGetPriceRevisionsResponses[keyof ConsoleGetPriceRevisionsResponses];
|
|
3483
|
+
export type ConsoleCreatePriceRevisionData = {
|
|
3484
|
+
body: CreatePriceRevision;
|
|
3485
|
+
path?: never;
|
|
3486
|
+
query?: never;
|
|
3487
|
+
url: '/api/console/pricing/revisions';
|
|
3488
|
+
};
|
|
3489
|
+
export type ConsoleCreatePriceRevisionErrors = {
|
|
3490
|
+
400: ErrorEnvelope;
|
|
3491
|
+
401: ErrorEnvelope;
|
|
3492
|
+
};
|
|
3493
|
+
export type ConsoleCreatePriceRevisionError = ConsoleCreatePriceRevisionErrors[keyof ConsoleCreatePriceRevisionErrors];
|
|
3494
|
+
export type ConsoleCreatePriceRevisionResponses = {
|
|
3495
|
+
201: CreatePriceRevisionResponse;
|
|
3496
|
+
};
|
|
3497
|
+
export type ConsoleCreatePriceRevisionResponse = ConsoleCreatePriceRevisionResponses[keyof ConsoleCreatePriceRevisionResponses];
|
|
3423
3498
|
export type WhatsappVerifyWebhookData = {
|
|
3424
3499
|
body?: never;
|
|
3425
3500
|
path?: never;
|
|
@@ -3451,40 +3526,3 @@ export type WhatsappWebhookError = WhatsappWebhookErrors[keyof WhatsappWebhookEr
|
|
|
3451
3526
|
export type WhatsappWebhookResponses = {
|
|
3452
3527
|
200: unknown;
|
|
3453
3528
|
};
|
|
3454
|
-
export type WebAuthLoginData = {
|
|
3455
|
-
body?: never;
|
|
3456
|
-
path?: never;
|
|
3457
|
-
query?: never;
|
|
3458
|
-
url: '/api/auth/login';
|
|
3459
|
-
};
|
|
3460
|
-
export type WebAuthCallbackData = {
|
|
3461
|
-
body?: never;
|
|
3462
|
-
path?: never;
|
|
3463
|
-
query?: never;
|
|
3464
|
-
url: '/api/auth/callback';
|
|
3465
|
-
};
|
|
3466
|
-
export type WebAuthRefreshData = {
|
|
3467
|
-
body?: never;
|
|
3468
|
-
path?: never;
|
|
3469
|
-
query?: never;
|
|
3470
|
-
url: '/api/auth/refresh';
|
|
3471
|
-
};
|
|
3472
|
-
export type WebAuthRefreshErrors = {
|
|
3473
|
-
401: WebAuthSessionError;
|
|
3474
|
-
503: WebAuthSessionError;
|
|
3475
|
-
};
|
|
3476
|
-
export type WebAuthRefreshError = WebAuthRefreshErrors[keyof WebAuthRefreshErrors];
|
|
3477
|
-
export type WebAuthRefreshResponses = {
|
|
3478
|
-
200: WebAuthRefreshResponse;
|
|
3479
|
-
};
|
|
3480
|
-
export type WebAuthRefreshResponse2 = WebAuthRefreshResponses[keyof WebAuthRefreshResponses];
|
|
3481
|
-
export type WebAuthLogoutData = {
|
|
3482
|
-
body?: never;
|
|
3483
|
-
path?: never;
|
|
3484
|
-
query?: never;
|
|
3485
|
-
url: '/api/auth/logout';
|
|
3486
|
-
};
|
|
3487
|
-
export type WebAuthLogoutResponses = {
|
|
3488
|
-
200: OkResponse;
|
|
3489
|
-
};
|
|
3490
|
-
export type WebAuthLogoutResponse = WebAuthLogoutResponses[keyof WebAuthLogoutResponses];
|