@gravity-rail/sdk 6.0.0 → 6.1.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.
@@ -439,21 +439,84 @@ interface TwoFactorStatusResponse {
439
439
  /** When recovery codes were last generated */
440
440
  lastRecoveryCodesGenerated?: string | null;
441
441
  }
442
+ /**
443
+ * Authenticator selection criteria in WebAuthn creation options.
444
+ */
445
+ interface WebAuthnAuthenticatorSelection {
446
+ userVerification: WebAuthnAuthenticatorSelectionUserVerification;
447
+ residentKey: WebAuthnAuthenticatorSelectionResidentKey;
448
+ }
449
+ type WebAuthnAuthenticatorSelectionResidentKey = typeof WebAuthnAuthenticatorSelectionResidentKey[keyof typeof WebAuthnAuthenticatorSelectionResidentKey];
450
+ declare const WebAuthnAuthenticatorSelectionResidentKey: {
451
+ readonly required: "required";
452
+ readonly preferred: "preferred";
453
+ readonly discouraged: "discouraged";
454
+ };
455
+ type WebAuthnAuthenticatorSelectionUserVerification = typeof WebAuthnAuthenticatorSelectionUserVerification[keyof typeof WebAuthnAuthenticatorSelectionUserVerification];
456
+ declare const WebAuthnAuthenticatorSelectionUserVerification: {
457
+ readonly required: "required";
458
+ readonly preferred: "preferred";
459
+ readonly discouraged: "discouraged";
460
+ };
461
+ /**
462
+ * Credential creation options passed to navigator.credentials.create().
463
+ */
464
+ interface WebAuthnCredentialCreationOptions {
465
+ challenge: string;
466
+ rp: WebAuthnRelyingParty;
467
+ user: WebAuthnUserEntity;
468
+ pubKeyCredParams: WebAuthnPubKeyCredParam[];
469
+ excludeCredentials: WebAuthnCredentialDescriptor[];
470
+ authenticatorSelection: WebAuthnAuthenticatorSelection;
471
+ timeout: number;
472
+ attestation: WebAuthnCredentialCreationOptionsAttestation;
473
+ }
474
+ type WebAuthnCredentialCreationOptionsAttestation = typeof WebAuthnCredentialCreationOptionsAttestation[keyof typeof WebAuthnCredentialCreationOptionsAttestation];
475
+ declare const WebAuthnCredentialCreationOptionsAttestation: {
476
+ readonly none: "none";
477
+ readonly indirect: "indirect";
478
+ readonly direct: "direct";
479
+ readonly enterprise: "enterprise";
480
+ };
481
+ /**
482
+ * Descriptor for a registered WebAuthn credential.
483
+ */
484
+ interface WebAuthnCredentialDescriptor {
485
+ id: string;
486
+ type: 'public-key';
487
+ }
488
+ /**
489
+ * A public-key credential parameter the authenticator may create.
490
+ */
491
+ interface WebAuthnPubKeyCredParam {
492
+ alg: number;
493
+ type: 'public-key';
494
+ }
442
495
  /**
443
496
  * Response for WebAuthn registration initiation
444
497
  */
445
498
  interface WebAuthnRegistrationResponse {
446
499
  /** Session ID for completing setup */
447
500
  setupId: string;
448
- /** Full WebAuthn credential creation options */
449
- credentialCreationOptions: WebAuthnRegistrationResponseCredentialCreationOptions;
501
+ /** WebAuthn credential creation options */
502
+ credentialCreationOptions: WebAuthnCredentialCreationOptions;
450
503
  }
451
504
  /**
452
- * Full WebAuthn credential creation options
505
+ * Relying party entity in WebAuthn creation options.
453
506
  */
454
- type WebAuthnRegistrationResponseCredentialCreationOptions = {
455
- [key: string]: unknown;
456
- };
507
+ interface WebAuthnRelyingParty {
508
+ name: string;
509
+ id: string;
510
+ }
511
+ /**
512
+ * User entity in WebAuthn creation options.
513
+ */
514
+ interface WebAuthnUserEntity {
515
+ /** Base64url-encoded user handle */
516
+ id: string;
517
+ name: string;
518
+ displayName: string;
519
+ }
457
520
 
458
521
  export { DataUseMode as D, AccountResponseAvatarColor as l, AccountResponseAvatarIcon as m, AccountResponseAvatarSource as n, SessionKind as t };
459
- export type { AccountResponse as A, CancelCredentialChangeInviteResponse as C, LoginResponse as L, MintedSessionFields as M, PendingCredentialChangeResponse as P, RecoveryCodeResponse as R, SendLoginCodeResponse as S, TOTPSetupResponse as T, WebAuthnRegistrationResponse as W, ApiKeyResponse as a, ApiKeyCreatedResponse as b, CancelCredentialChangeResponse as c, CredentialChangeInviteConfirmResponse as d, CredentialChangeInviteDetailsResponse as e, CredentialChangeInviteResponse as f, CredentialChangeRequestResponse as g, CredentialChangeVerifyResponse as h, PendingCredentialChangeInviteResponse as i, TwoFactorOperationResponse as j, AccountBillingOrganizationRef as k, AdminAccountResponse as o, AdminAccountOrgMembershipResponse as p, TwoFactorMethodResponse as q, TwoFactorStatusResponse as r, SessionDescription as s, AdminAccountMembershipResponse as u };
522
+ export type { AccountResponse as A, AdminAccountMembershipResponse as B, CancelCredentialChangeInviteResponse as C, LoginResponse as L, MintedSessionFields as M, PendingCredentialChangeResponse as P, RecoveryCodeResponse as R, SendLoginCodeResponse as S, TOTPSetupResponse as T, WebAuthnAuthenticatorSelection as W, ApiKeyResponse as a, ApiKeyCreatedResponse as b, CancelCredentialChangeResponse as c, CredentialChangeInviteConfirmResponse as d, CredentialChangeInviteDetailsResponse as e, CredentialChangeInviteResponse as f, CredentialChangeRequestResponse as g, CredentialChangeVerifyResponse as h, PendingCredentialChangeInviteResponse as i, TwoFactorOperationResponse as j, AccountBillingOrganizationRef as k, AdminAccountResponse as o, AdminAccountOrgMembershipResponse as p, TwoFactorMethodResponse as q, TwoFactorStatusResponse as r, SessionDescription as s, WebAuthnCredentialCreationOptions as u, WebAuthnCredentialDescriptor as v, WebAuthnPubKeyCredParam as w, WebAuthnRegistrationResponse as x, WebAuthnRelyingParty as y, WebAuthnUserEntity as z };
@@ -439,21 +439,84 @@ interface TwoFactorStatusResponse {
439
439
  /** When recovery codes were last generated */
440
440
  lastRecoveryCodesGenerated?: string | null;
441
441
  }
442
+ /**
443
+ * Authenticator selection criteria in WebAuthn creation options.
444
+ */
445
+ interface WebAuthnAuthenticatorSelection {
446
+ userVerification: WebAuthnAuthenticatorSelectionUserVerification;
447
+ residentKey: WebAuthnAuthenticatorSelectionResidentKey;
448
+ }
449
+ type WebAuthnAuthenticatorSelectionResidentKey = typeof WebAuthnAuthenticatorSelectionResidentKey[keyof typeof WebAuthnAuthenticatorSelectionResidentKey];
450
+ declare const WebAuthnAuthenticatorSelectionResidentKey: {
451
+ readonly required: "required";
452
+ readonly preferred: "preferred";
453
+ readonly discouraged: "discouraged";
454
+ };
455
+ type WebAuthnAuthenticatorSelectionUserVerification = typeof WebAuthnAuthenticatorSelectionUserVerification[keyof typeof WebAuthnAuthenticatorSelectionUserVerification];
456
+ declare const WebAuthnAuthenticatorSelectionUserVerification: {
457
+ readonly required: "required";
458
+ readonly preferred: "preferred";
459
+ readonly discouraged: "discouraged";
460
+ };
461
+ /**
462
+ * Credential creation options passed to navigator.credentials.create().
463
+ */
464
+ interface WebAuthnCredentialCreationOptions {
465
+ challenge: string;
466
+ rp: WebAuthnRelyingParty;
467
+ user: WebAuthnUserEntity;
468
+ pubKeyCredParams: WebAuthnPubKeyCredParam[];
469
+ excludeCredentials: WebAuthnCredentialDescriptor[];
470
+ authenticatorSelection: WebAuthnAuthenticatorSelection;
471
+ timeout: number;
472
+ attestation: WebAuthnCredentialCreationOptionsAttestation;
473
+ }
474
+ type WebAuthnCredentialCreationOptionsAttestation = typeof WebAuthnCredentialCreationOptionsAttestation[keyof typeof WebAuthnCredentialCreationOptionsAttestation];
475
+ declare const WebAuthnCredentialCreationOptionsAttestation: {
476
+ readonly none: "none";
477
+ readonly indirect: "indirect";
478
+ readonly direct: "direct";
479
+ readonly enterprise: "enterprise";
480
+ };
481
+ /**
482
+ * Descriptor for a registered WebAuthn credential.
483
+ */
484
+ interface WebAuthnCredentialDescriptor {
485
+ id: string;
486
+ type: 'public-key';
487
+ }
488
+ /**
489
+ * A public-key credential parameter the authenticator may create.
490
+ */
491
+ interface WebAuthnPubKeyCredParam {
492
+ alg: number;
493
+ type: 'public-key';
494
+ }
442
495
  /**
443
496
  * Response for WebAuthn registration initiation
444
497
  */
445
498
  interface WebAuthnRegistrationResponse {
446
499
  /** Session ID for completing setup */
447
500
  setupId: string;
448
- /** Full WebAuthn credential creation options */
449
- credentialCreationOptions: WebAuthnRegistrationResponseCredentialCreationOptions;
501
+ /** WebAuthn credential creation options */
502
+ credentialCreationOptions: WebAuthnCredentialCreationOptions;
450
503
  }
451
504
  /**
452
- * Full WebAuthn credential creation options
505
+ * Relying party entity in WebAuthn creation options.
453
506
  */
454
- type WebAuthnRegistrationResponseCredentialCreationOptions = {
455
- [key: string]: unknown;
456
- };
507
+ interface WebAuthnRelyingParty {
508
+ name: string;
509
+ id: string;
510
+ }
511
+ /**
512
+ * User entity in WebAuthn creation options.
513
+ */
514
+ interface WebAuthnUserEntity {
515
+ /** Base64url-encoded user handle */
516
+ id: string;
517
+ name: string;
518
+ displayName: string;
519
+ }
457
520
 
458
521
  export { DataUseMode as D, AccountResponseAvatarColor as l, AccountResponseAvatarIcon as m, AccountResponseAvatarSource as n, SessionKind as t };
459
- export type { AccountResponse as A, CancelCredentialChangeInviteResponse as C, LoginResponse as L, MintedSessionFields as M, PendingCredentialChangeResponse as P, RecoveryCodeResponse as R, SendLoginCodeResponse as S, TOTPSetupResponse as T, WebAuthnRegistrationResponse as W, ApiKeyResponse as a, ApiKeyCreatedResponse as b, CancelCredentialChangeResponse as c, CredentialChangeInviteConfirmResponse as d, CredentialChangeInviteDetailsResponse as e, CredentialChangeInviteResponse as f, CredentialChangeRequestResponse as g, CredentialChangeVerifyResponse as h, PendingCredentialChangeInviteResponse as i, TwoFactorOperationResponse as j, AccountBillingOrganizationRef as k, AdminAccountResponse as o, AdminAccountOrgMembershipResponse as p, TwoFactorMethodResponse as q, TwoFactorStatusResponse as r, SessionDescription as s, AdminAccountMembershipResponse as u };
522
+ export type { AccountResponse as A, AdminAccountMembershipResponse as B, CancelCredentialChangeInviteResponse as C, LoginResponse as L, MintedSessionFields as M, PendingCredentialChangeResponse as P, RecoveryCodeResponse as R, SendLoginCodeResponse as S, TOTPSetupResponse as T, WebAuthnAuthenticatorSelection as W, ApiKeyResponse as a, ApiKeyCreatedResponse as b, CancelCredentialChangeResponse as c, CredentialChangeInviteConfirmResponse as d, CredentialChangeInviteDetailsResponse as e, CredentialChangeInviteResponse as f, CredentialChangeRequestResponse as g, CredentialChangeVerifyResponse as h, PendingCredentialChangeInviteResponse as i, TwoFactorOperationResponse as j, AccountBillingOrganizationRef as k, AdminAccountResponse as o, AdminAccountOrgMembershipResponse as p, TwoFactorMethodResponse as q, TwoFactorStatusResponse as r, SessionDescription as s, WebAuthnCredentialCreationOptions as u, WebAuthnCredentialDescriptor as v, WebAuthnPubKeyCredParam as w, WebAuthnRegistrationResponse as x, WebAuthnRelyingParty as y, WebAuthnUserEntity as z };
@@ -1,5 +1,5 @@
1
- import { cz as ChannelMessagesUnavailableReason, ux as UiPromptProposedMessage, pT as Resource$1, a2 as ActivityEventLine, S as ActivityAggregateResponse, a4 as ActivityEventsResponse, nf as PathDefinition } from './chat-interaction-CAfwlYvv.cjs';
2
- import { eU as SortOrder } from './tasks-A12E_RLa.cjs';
1
+ import { cz as ChannelMessagesUnavailableReason, ux as UiPromptProposedMessage, pT as Resource$1, a2 as ActivityEventLine, S as ActivityAggregateResponse, a4 as ActivityEventsResponse, nf as PathDefinition } from './chat-interaction-rktAADW0.cjs';
2
+ import { eU as SortOrder } from './tasks-DChznvPX.cjs';
3
3
 
4
4
  /**
5
5
  * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
@@ -1,5 +1,5 @@
1
- import { cz as ChannelMessagesUnavailableReason, ux as UiPromptProposedMessage, pT as Resource$1, a2 as ActivityEventLine, S as ActivityAggregateResponse, a4 as ActivityEventsResponse, nf as PathDefinition } from './chat-interaction-BtUtVszg.js';
2
- import { eU as SortOrder } from './tasks-DrmyOlRh.js';
1
+ import { cz as ChannelMessagesUnavailableReason, ux as UiPromptProposedMessage, pT as Resource$1, a2 as ActivityEventLine, S as ActivityAggregateResponse, a4 as ActivityEventsResponse, nf as PathDefinition } from './chat-interaction-CCdK_MtC.js';
2
+ import { eU as SortOrder } from './tasks-CGiE1y_T.js';
3
3
 
4
4
  /**
5
5
  * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts