@turnkey/http 3.3.0 → 3.4.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.
Files changed (33) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +75 -0
  3. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts.map +1 -1
  4. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js +125 -0
  5. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -1
  6. package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs +125 -0
  7. package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs.map +1 -1
  8. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +12067 -2192
  9. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
  10. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +120 -0
  11. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
  12. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs +111 -1
  13. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs.map +1 -1
  14. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +257 -9
  15. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
  16. package/dist/async.js.map +1 -1
  17. package/dist/async.mjs.map +1 -1
  18. package/dist/base.js.map +1 -1
  19. package/dist/base.mjs.map +1 -1
  20. package/dist/config.js.map +1 -1
  21. package/dist/config.mjs.map +1 -1
  22. package/dist/shared.js.map +1 -1
  23. package/dist/shared.mjs.map +1 -1
  24. package/dist/version.d.ts +1 -1
  25. package/dist/version.js +1 -1
  26. package/dist/version.mjs +1 -1
  27. package/dist/webauthn-json/base64url.js.map +1 -1
  28. package/dist/webauthn-json/base64url.mjs.map +1 -1
  29. package/dist/webauthn-json/convert.js.map +1 -1
  30. package/dist/webauthn-json/convert.mjs.map +1 -1
  31. package/dist/webauthn.js.map +1 -1
  32. package/dist/webauthn.mjs.map +1 -1
  33. package/package.json +6 -5
@@ -247,6 +247,10 @@ export type paths = {
247
247
  /** Initializes a new wallet import */
248
248
  post: operations["PublicApiService_InitImportWallet"];
249
249
  };
250
+ "/public/v1/submit/init_otp": {
251
+ /** Initiate a Generic OTP activity */
252
+ post: operations["PublicApiService_InitOtp"];
253
+ };
250
254
  "/public/v1/submit/init_otp_auth": {
251
255
  /** Initiate an OTP auth activity */
252
256
  post: operations["PublicApiService_InitOtpAuth"];
@@ -259,10 +263,18 @@ export type paths = {
259
263
  /** Authenticate a user with an Oidc token (Oauth) - BETA */
260
264
  post: operations["PublicApiService_Oauth"];
261
265
  };
266
+ "/public/v1/submit/oauth_login": {
267
+ /** Create an Oauth session for a user */
268
+ post: operations["PublicApiService_OauthLogin"];
269
+ };
262
270
  "/public/v1/submit/otp_auth": {
263
271
  /** Authenticate a user with an OTP code sent via email or SMS */
264
272
  post: operations["PublicApiService_OtpAuth"];
265
273
  };
274
+ "/public/v1/submit/otp_login": {
275
+ /** Create an OTP session for a user */
276
+ post: operations["PublicApiService_OtpLogin"];
277
+ };
266
278
  "/public/v1/submit/recover_user": {
267
279
  /** Completes the process of recovering a user by adding an authenticator */
268
280
  post: operations["PublicApiService_RecoverUser"];
@@ -291,6 +303,10 @@ export type paths = {
291
303
  /** Sign a transaction */
292
304
  post: operations["PublicApiService_SignTransaction"];
293
305
  };
306
+ "/public/v1/submit/stamp_login": {
307
+ /** Create a session for a user through stamping client side (api key, wallet client, or passkey client) */
308
+ post: operations["PublicApiService_StampLogin"];
309
+ };
294
310
  "/public/v1/submit/update_policy": {
295
311
  /** Update an existing Policy */
296
312
  post: operations["PublicApiService_UpdatePolicy"];
@@ -315,6 +331,10 @@ export type paths = {
315
331
  /** Update a wallet for an organization */
316
332
  post: operations["PublicApiService_UpdateWallet"];
317
333
  };
334
+ "/public/v1/submit/verify_otp": {
335
+ /** Verify a Generic OTP */
336
+ post: operations["PublicApiService_VerifyOtp"];
337
+ };
318
338
  "/tkhq/api/v1/noop-codegen-anchor": {
319
339
  post: operations["PublicApiService_NOOPCodegenAnchor"];
320
340
  };
@@ -479,7 +499,7 @@ export type definitions = {
479
499
  /** @enum {string} */
480
500
  v1ActivityStatus: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
481
501
  /** @enum {string} */
482
- v1ActivityType: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" | "ACTIVITY_TYPE_UPDATE_USER" | "ACTIVITY_TYPE_UPDATE_POLICY" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3" | "ACTIVITY_TYPE_CREATE_WALLET" | "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY" | "ACTIVITY_TYPE_RECOVER_USER" | "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" | "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" | "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" | "ACTIVITY_TYPE_EMAIL_AUTH" | "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" | "ACTIVITY_TYPE_INIT_IMPORT_WALLET" | "ACTIVITY_TYPE_IMPORT_WALLET" | "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_CREATE_POLICIES" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS" | "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5" | "ACTIVITY_TYPE_OAUTH" | "ACTIVITY_TYPE_CREATE_API_KEYS_V2" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION" | "ACTIVITY_TYPE_EMAIL_AUTH_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS" | "ACTIVITY_TYPE_DELETE_WALLETS" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2" | "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_INIT_OTP_AUTH" | "ACTIVITY_TYPE_OTP_AUTH" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7" | "ACTIVITY_TYPE_UPDATE_WALLET" | "ACTIVITY_TYPE_UPDATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_USERS_V3" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V2";
502
+ v1ActivityType: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" | "ACTIVITY_TYPE_UPDATE_USER" | "ACTIVITY_TYPE_UPDATE_POLICY" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3" | "ACTIVITY_TYPE_CREATE_WALLET" | "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY" | "ACTIVITY_TYPE_RECOVER_USER" | "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" | "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" | "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" | "ACTIVITY_TYPE_EMAIL_AUTH" | "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" | "ACTIVITY_TYPE_INIT_IMPORT_WALLET" | "ACTIVITY_TYPE_IMPORT_WALLET" | "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_CREATE_POLICIES" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS" | "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5" | "ACTIVITY_TYPE_OAUTH" | "ACTIVITY_TYPE_CREATE_API_KEYS_V2" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION" | "ACTIVITY_TYPE_EMAIL_AUTH_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS" | "ACTIVITY_TYPE_DELETE_WALLETS" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2" | "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_INIT_OTP_AUTH" | "ACTIVITY_TYPE_OTP_AUTH" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7" | "ACTIVITY_TYPE_UPDATE_WALLET" | "ACTIVITY_TYPE_UPDATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_USERS_V3" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V2" | "ACTIVITY_TYPE_INIT_OTP" | "ACTIVITY_TYPE_VERIFY_OTP" | "ACTIVITY_TYPE_OTP_LOGIN" | "ACTIVITY_TYPE_STAMP_LOGIN" | "ACTIVITY_TYPE_OAUTH_LOGIN";
483
503
  /** @enum {string} */
484
504
  v1AddressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS" | "ADDRESS_FORMAT_TRON" | "ADDRESS_FORMAT_SUI" | "ADDRESS_FORMAT_APTOS" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2PKH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2SH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2WSH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2TR" | "ADDRESS_FORMAT_SEI" | "ADDRESS_FORMAT_XLM" | "ADDRESS_FORMAT_DOGE_MAINNET" | "ADDRESS_FORMAT_DOGE_TESTNET" | "ADDRESS_FORMAT_TON_V3R2" | "ADDRESS_FORMAT_TON_V4R2" | "ADDRESS_FORMAT_XRP";
485
505
  v1ApiKey: {
@@ -859,7 +879,7 @@ export type definitions = {
859
879
  email: string;
860
880
  /** @description Optional human-readable name for an API Key. If none provided, default to Read Write Session - <Timestamp> */
861
881
  apiKeyName?: string;
862
- /** @description Expiration window (in seconds) indicating how long the API key is valid. If not provided, a default of 15 minutes will be used. */
882
+ /** @description Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
863
883
  expirationSeconds?: string;
864
884
  };
865
885
  v1CreateReadWriteSessionIntentV2: {
@@ -869,7 +889,7 @@ export type definitions = {
869
889
  userId?: string;
870
890
  /** @description Optional human-readable name for an API Key. If none provided, default to Read Write Session - <Timestamp> */
871
891
  apiKeyName?: string;
872
- /** @description Expiration window (in seconds) indicating how long the API key is valid. If not provided, a default of 15 minutes will be used. */
892
+ /** @description Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
873
893
  expirationSeconds?: string;
874
894
  /** @description Invalidate all other previously generated ReadWriteSession API keys */
875
895
  invalidateExisting?: boolean;
@@ -1147,7 +1167,7 @@ export type definitions = {
1147
1167
  rk: boolean;
1148
1168
  };
1149
1169
  /** @enum {string} */
1150
- v1CredentialType: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256" | "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256" | "CREDENTIAL_TYPE_API_KEY_SECP256K1" | "CREDENTIAL_TYPE_EMAIL_AUTH_KEY_P256" | "CREDENTIAL_TYPE_API_KEY_ED25519" | "CREDENTIAL_TYPE_OTP_AUTH_KEY_P256" | "CREDENTIAL_TYPE_READ_WRITE_SESSION_KEY_P256" | "CREDENTIAL_TYPE_OAUTH_KEY_P256";
1170
+ v1CredentialType: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256" | "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256" | "CREDENTIAL_TYPE_API_KEY_SECP256K1" | "CREDENTIAL_TYPE_EMAIL_AUTH_KEY_P256" | "CREDENTIAL_TYPE_API_KEY_ED25519" | "CREDENTIAL_TYPE_OTP_AUTH_KEY_P256" | "CREDENTIAL_TYPE_READ_WRITE_SESSION_KEY_P256" | "CREDENTIAL_TYPE_OAUTH_KEY_P256" | "CREDENTIAL_TYPE_LOGIN";
1151
1171
  /** @enum {string} */
1152
1172
  v1Curve: "CURVE_SECP256K1" | "CURVE_ED25519";
1153
1173
  v1DeleteApiKeysIntent: {
@@ -1376,7 +1396,7 @@ export type definitions = {
1376
1396
  targetPublicKey: string;
1377
1397
  /** @description Optional human-readable name for an API Key. If none provided, default to Email Auth - <Timestamp> */
1378
1398
  apiKeyName?: string;
1379
- /** @description Expiration window (in seconds) indicating how long the API key is valid. If not provided, a default of 15 minutes will be used. */
1399
+ /** @description Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
1380
1400
  expirationSeconds?: string;
1381
1401
  /** @description Optional parameters for customizing emails. If not provided, the default email will be used. */
1382
1402
  emailCustomization?: definitions["v1EmailCustomizationParams"];
@@ -1396,7 +1416,7 @@ export type definitions = {
1396
1416
  targetPublicKey: string;
1397
1417
  /** @description Optional human-readable name for an API Key. If none provided, default to Email Auth - <Timestamp> */
1398
1418
  apiKeyName?: string;
1399
- /** @description Expiration window (in seconds) indicating how long the API key is valid. If not provided, a default of 15 minutes will be used. */
1419
+ /** @description Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
1400
1420
  expirationSeconds?: string;
1401
1421
  /** @description Optional parameters for customizing emails. If not provided, the default email will be used. */
1402
1422
  emailCustomization?: definitions["v1EmailCustomizationParams"];
@@ -1894,12 +1914,52 @@ export type definitions = {
1894
1914
  /** @description Unique identifier for an OTP authentication */
1895
1915
  otpId: string;
1896
1916
  };
1917
+ v1InitOtpIntent: {
1918
+ /** @description Whether to send OTP via SMS or email. Possible values: OTP_TYPE_SMS, OTP_TYPE_EMAIL */
1919
+ otpType: string;
1920
+ /** @description Email or phone number to send the OTP code to */
1921
+ contact: string;
1922
+ /**
1923
+ * Format: int32
1924
+ * @description Optional length of the OTP code. Default = 9
1925
+ */
1926
+ otpLength?: number;
1927
+ /** @description Optional parameters for customizing emails. If not provided, the default email will be used. */
1928
+ emailCustomization?: definitions["v1EmailCustomizationParams"];
1929
+ /** @description Optional parameters for customizing SMS message. If not provided, the default sms message will be used. */
1930
+ smsCustomization?: definitions["v1SmsCustomizationParams"];
1931
+ /** @description Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address. */
1932
+ userIdentifier?: string;
1933
+ /** @description Optional custom email address from which to send the OTP email */
1934
+ sendFromEmailAddress?: string;
1935
+ /** @description Optional flag to specify if the OTP code should be alphanumeric (Crockford’s Base32). Default = true */
1936
+ alphanumeric?: boolean;
1937
+ /** @description Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
1938
+ sendFromEmailSenderName?: string;
1939
+ /** @description Expiration window (in seconds) indicating how long the OTP is valid for. If not provided, a default of 5 minutes will be used. Maximum value is 600 seconds (10 minutes) */
1940
+ expirationSeconds?: string;
1941
+ /** @description Optional custom email address to use as reply-to */
1942
+ replyToEmailAddress?: string;
1943
+ };
1944
+ v1InitOtpRequest: {
1945
+ /** @enum {string} */
1946
+ type: "ACTIVITY_TYPE_INIT_OTP";
1947
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1948
+ timestampMs: string;
1949
+ /** @description Unique identifier for a given Organization. */
1950
+ organizationId: string;
1951
+ parameters: definitions["v1InitOtpIntent"];
1952
+ };
1953
+ v1InitOtpResult: {
1954
+ /** @description Unique identifier for an OTP authentication */
1955
+ otpId: string;
1956
+ };
1897
1957
  v1InitUserEmailRecoveryIntent: {
1898
1958
  /** @description Email of the user starting recovery */
1899
1959
  email: string;
1900
1960
  /** @description Client-side public key generated by the user, to which the recovery bundle will be encrypted. */
1901
1961
  targetPublicKey: string;
1902
- /** @description Expiration window (in seconds) indicating how long the recovery credential is valid. If not provided, a default of 15 minutes will be used. */
1962
+ /** @description Expiration window (in seconds) indicating how long the recovery credential is valid for. If not provided, a default of 15 minutes will be used. */
1903
1963
  expirationSeconds?: string;
1904
1964
  /** @description Optional parameters for customizing emails. If not provided, the default email will be used. */
1905
1965
  emailCustomization?: definitions["v1EmailCustomizationParams"];
@@ -2001,6 +2061,11 @@ export type definitions = {
2001
2061
  updatePolicyIntentV2?: definitions["v1UpdatePolicyIntentV2"];
2002
2062
  createUsersIntentV3?: definitions["v1CreateUsersIntentV3"];
2003
2063
  initOtpAuthIntentV2?: definitions["v1InitOtpAuthIntentV2"];
2064
+ initOtpIntent?: definitions["v1InitOtpIntent"];
2065
+ verifyOtpIntent?: definitions["v1VerifyOtpIntent"];
2066
+ otpLoginIntent?: definitions["v1OtpLoginIntent"];
2067
+ stampLoginIntent?: definitions["v1StampLoginIntent"];
2068
+ oauthLoginIntent?: definitions["v1OauthLoginIntent"];
2004
2069
  };
2005
2070
  v1Invitation: {
2006
2071
  /** @description Unique identifier for a given Invitation object. */
@@ -2062,11 +2127,34 @@ export type definitions = {
2062
2127
  targetPublicKey: string;
2063
2128
  /** @description Optional human-readable name for an API Key. If none provided, default to Oauth - <Timestamp> */
2064
2129
  apiKeyName?: string;
2065
- /** @description Expiration window (in seconds) indicating how long the API key is valid. If not provided, a default of 15 minutes will be used. */
2130
+ /** @description Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
2066
2131
  expirationSeconds?: string;
2067
2132
  /** @description Invalidate all other previously generated Oauth API keys */
2068
2133
  invalidateExisting?: boolean;
2069
2134
  };
2135
+ v1OauthLoginIntent: {
2136
+ /** @description Base64 encoded OIDC token */
2137
+ oidcToken: string;
2138
+ /** @description Client-side public key generated by the user, which will be conditionally added to org data based on the validity of the oidc token associated with this request */
2139
+ publicKey: string;
2140
+ /** @description Expiration window (in seconds) indicating how long the Session is valid for. If not provided, a default of 15 minutes will be used. */
2141
+ expirationSeconds?: string;
2142
+ /** @description Invalidate all other previously generated Login API keys */
2143
+ invalidateExisting?: boolean;
2144
+ };
2145
+ v1OauthLoginRequest: {
2146
+ /** @enum {string} */
2147
+ type: "ACTIVITY_TYPE_OAUTH_LOGIN";
2148
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2149
+ timestampMs: string;
2150
+ /** @description Unique identifier for a given Organization. */
2151
+ organizationId: string;
2152
+ parameters: definitions["v1OauthLoginIntent"];
2153
+ };
2154
+ v1OauthLoginResult: {
2155
+ /** @description Signed JWT containing an expiry, public key, session type, user id, and organization id */
2156
+ session: string;
2157
+ };
2070
2158
  v1OauthProvider: {
2071
2159
  /** @description Unique identifier for an OAuth Provider */
2072
2160
  providerId: string;
@@ -2127,7 +2215,7 @@ export type definitions = {
2127
2215
  targetPublicKey: string;
2128
2216
  /** @description Optional human-readable name for an API Key. If none provided, default to OTP Auth - <Timestamp> */
2129
2217
  apiKeyName?: string;
2130
- /** @description Expiration window (in seconds) indicating how long the API key is valid. If not provided, a default of 15 minutes will be used. */
2218
+ /** @description Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
2131
2219
  expirationSeconds?: string;
2132
2220
  /** @description Invalidate all other previously generated OTP Auth API keys */
2133
2221
  invalidateExisting?: boolean;
@@ -2149,6 +2237,29 @@ export type definitions = {
2149
2237
  /** @description HPKE encrypted credential bundle */
2150
2238
  credentialBundle?: string;
2151
2239
  };
2240
+ v1OtpLoginIntent: {
2241
+ /** @description Signed JWT containing a unique id, expiry, verification type, contact */
2242
+ verificationToken: string;
2243
+ /** @description Client-side public key generated by the user, which will be conditionally added to org data based on the validity of the verification token */
2244
+ publicKey: string;
2245
+ /** @description Expiration window (in seconds) indicating how long the Session is valid for. If not provided, a default of 15 minutes will be used. */
2246
+ expirationSeconds?: string;
2247
+ /** @description Invalidate all other previously generated Login API keys */
2248
+ invalidateExisting?: boolean;
2249
+ };
2250
+ v1OtpLoginRequest: {
2251
+ /** @enum {string} */
2252
+ type: "ACTIVITY_TYPE_OTP_LOGIN";
2253
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2254
+ timestampMs: string;
2255
+ /** @description Unique identifier for a given Organization. */
2256
+ organizationId: string;
2257
+ parameters: definitions["v1OtpLoginIntent"];
2258
+ };
2259
+ v1OtpLoginResult: {
2260
+ /** @description Signed JWT containing an expiry, public key, session type, user id, and organization id */
2261
+ session: string;
2262
+ };
2152
2263
  v1Pagination: {
2153
2264
  /** @description A limit of the number of object to be returned, between 1 and 100. Defaults to 10. */
2154
2265
  limit?: string;
@@ -2339,6 +2450,11 @@ export type definitions = {
2339
2450
  updateWalletResult?: definitions["v1UpdateWalletResult"];
2340
2451
  updatePolicyResultV2?: definitions["v1UpdatePolicyResultV2"];
2341
2452
  initOtpAuthResultV2?: definitions["v1InitOtpAuthResultV2"];
2453
+ initOtpResult?: definitions["v1InitOtpResult"];
2454
+ verifyOtpResult?: definitions["v1VerifyOtpResult"];
2455
+ otpLoginResult?: definitions["v1OtpLoginResult"];
2456
+ stampLoginResult?: definitions["v1StampLoginResult"];
2457
+ oauthLoginResult?: definitions["v1OauthLoginResult"];
2342
2458
  };
2343
2459
  v1RootUserParams: {
2344
2460
  /** @description Human-readable name for a User. */
@@ -2511,6 +2627,27 @@ export type definitions = {
2511
2627
  /** @description Template containing references to .OtpCode i.e Your OTP is {{.OtpCode}} */
2512
2628
  template?: string;
2513
2629
  };
2630
+ v1StampLoginIntent: {
2631
+ /** @description Client-side public key generated by the user, which will be conditionally added to org data based on the passkey stamp associated with this request */
2632
+ publicKey: string;
2633
+ /** @description Expiration window (in seconds) indicating how long the Session is valid for. If not provided, a default of 15 minutes will be used. */
2634
+ expirationSeconds?: string;
2635
+ /** @description Invalidate all other previously generated Login API keys */
2636
+ invalidateExisting?: boolean;
2637
+ };
2638
+ v1StampLoginRequest: {
2639
+ /** @enum {string} */
2640
+ type: "ACTIVITY_TYPE_STAMP_LOGIN";
2641
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2642
+ timestampMs: string;
2643
+ /** @description Unique identifier for a given Organization. */
2644
+ organizationId: string;
2645
+ parameters: definitions["v1StampLoginIntent"];
2646
+ };
2647
+ v1StampLoginResult: {
2648
+ /** @description Signed JWT containing an expiry, public key, session type, user id, and organization id */
2649
+ session: string;
2650
+ };
2514
2651
  /** @enum {string} */
2515
2652
  v1TagType: "TAG_TYPE_USER" | "TAG_TYPE_PRIVATE_KEY";
2516
2653
  v1TestRateLimitsRequest: {
@@ -2754,6 +2891,27 @@ export type definitions = {
2754
2891
  /** @description A list of User Tag IDs. This field, if not needed, should be an empty array in your request body. */
2755
2892
  userTags: string[];
2756
2893
  };
2894
+ v1VerifyOtpIntent: {
2895
+ /** @description ID representing the result of an init OTP activity. */
2896
+ otpId: string;
2897
+ /** @description OTP sent out to a user's contact (email or SMS) */
2898
+ otpCode: string;
2899
+ /** @description Expiration window (in seconds) indicating how long the verification token is valid for. If not provided, a default of 1 hour will be used. Maximum value is 86400 seconds (24 hours) */
2900
+ expirationSeconds?: string;
2901
+ };
2902
+ v1VerifyOtpRequest: {
2903
+ /** @enum {string} */
2904
+ type: "ACTIVITY_TYPE_VERIFY_OTP";
2905
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2906
+ timestampMs: string;
2907
+ /** @description Unique identifier for a given Organization. */
2908
+ organizationId: string;
2909
+ parameters: definitions["v1VerifyOtpIntent"];
2910
+ };
2911
+ v1VerifyOtpResult: {
2912
+ /** @description Signed JWT containing a unique id, expiry, verification type, contact */
2913
+ verificationToken: string;
2914
+ };
2757
2915
  v1Vote: {
2758
2916
  /** @description Unique identifier for a given Vote object. */
2759
2917
  id: string;
@@ -3945,6 +4103,24 @@ export type operations = {
3945
4103
  };
3946
4104
  };
3947
4105
  };
4106
+ /** Initiate a Generic OTP activity */
4107
+ PublicApiService_InitOtp: {
4108
+ parameters: {
4109
+ body: {
4110
+ body: definitions["v1InitOtpRequest"];
4111
+ };
4112
+ };
4113
+ responses: {
4114
+ /** A successful response. */
4115
+ 200: {
4116
+ schema: definitions["v1ActivityResponse"];
4117
+ };
4118
+ /** An unexpected error response. */
4119
+ default: {
4120
+ schema: definitions["rpcStatus"];
4121
+ };
4122
+ };
4123
+ };
3948
4124
  /** Initiate an OTP auth activity */
3949
4125
  PublicApiService_InitOtpAuth: {
3950
4126
  parameters: {
@@ -3999,6 +4175,24 @@ export type operations = {
3999
4175
  };
4000
4176
  };
4001
4177
  };
4178
+ /** Create an Oauth session for a user */
4179
+ PublicApiService_OauthLogin: {
4180
+ parameters: {
4181
+ body: {
4182
+ body: definitions["v1OauthLoginRequest"];
4183
+ };
4184
+ };
4185
+ responses: {
4186
+ /** A successful response. */
4187
+ 200: {
4188
+ schema: definitions["v1ActivityResponse"];
4189
+ };
4190
+ /** An unexpected error response. */
4191
+ default: {
4192
+ schema: definitions["rpcStatus"];
4193
+ };
4194
+ };
4195
+ };
4002
4196
  /** Authenticate a user with an OTP code sent via email or SMS */
4003
4197
  PublicApiService_OtpAuth: {
4004
4198
  parameters: {
@@ -4017,6 +4211,24 @@ export type operations = {
4017
4211
  };
4018
4212
  };
4019
4213
  };
4214
+ /** Create an OTP session for a user */
4215
+ PublicApiService_OtpLogin: {
4216
+ parameters: {
4217
+ body: {
4218
+ body: definitions["v1OtpLoginRequest"];
4219
+ };
4220
+ };
4221
+ responses: {
4222
+ /** A successful response. */
4223
+ 200: {
4224
+ schema: definitions["v1ActivityResponse"];
4225
+ };
4226
+ /** An unexpected error response. */
4227
+ default: {
4228
+ schema: definitions["rpcStatus"];
4229
+ };
4230
+ };
4231
+ };
4020
4232
  /** Completes the process of recovering a user by adding an authenticator */
4021
4233
  PublicApiService_RecoverUser: {
4022
4234
  parameters: {
@@ -4143,6 +4355,24 @@ export type operations = {
4143
4355
  };
4144
4356
  };
4145
4357
  };
4358
+ /** Create a session for a user through stamping client side (api key, wallet client, or passkey client) */
4359
+ PublicApiService_StampLogin: {
4360
+ parameters: {
4361
+ body: {
4362
+ body: definitions["v1StampLoginRequest"];
4363
+ };
4364
+ };
4365
+ responses: {
4366
+ /** A successful response. */
4367
+ 200: {
4368
+ schema: definitions["v1ActivityResponse"];
4369
+ };
4370
+ /** An unexpected error response. */
4371
+ default: {
4372
+ schema: definitions["rpcStatus"];
4373
+ };
4374
+ };
4375
+ };
4146
4376
  /** Update an existing Policy */
4147
4377
  PublicApiService_UpdatePolicy: {
4148
4378
  parameters: {
@@ -4251,6 +4481,24 @@ export type operations = {
4251
4481
  };
4252
4482
  };
4253
4483
  };
4484
+ /** Verify a Generic OTP */
4485
+ PublicApiService_VerifyOtp: {
4486
+ parameters: {
4487
+ body: {
4488
+ body: definitions["v1VerifyOtpRequest"];
4489
+ };
4490
+ };
4491
+ responses: {
4492
+ /** A successful response. */
4493
+ 200: {
4494
+ schema: definitions["v1ActivityResponse"];
4495
+ };
4496
+ /** An unexpected error response. */
4497
+ default: {
4498
+ schema: definitions["rpcStatus"];
4499
+ };
4500
+ };
4501
+ };
4254
4502
  PublicApiService_NOOPCodegenAnchor: {
4255
4503
  responses: {
4256
4504
  /** A successful response. */