@mittwald/api-client 1.0.6 → 2.0.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.
@@ -1468,87 +1468,81 @@ export const userRemovePhoneNumber = {
1468
1468
  method: "DELETE",
1469
1469
  operationId: "user-remove-phone-number",
1470
1470
  };
1471
- /** Authenticate yourself to get an access token. */
1472
- export const userAuthenticate = {
1473
- path: "/v2/signup/authentication",
1474
- method: "POST",
1475
- operationId: "user-authenticate",
1476
- };
1477
1471
  /** Validate your second factor. */
1478
1472
  export const userAuthenticateMfa = {
1479
- path: "/v2/signup/authentication/mfa",
1473
+ path: "/v2/authenticate-mfa",
1480
1474
  method: "POST",
1481
1475
  operationId: "user-authenticate-mfa",
1482
1476
  };
1483
- /** Get your primary verified Email-Address */
1484
- export const userGetEmail = {
1485
- path: "/v2/signup/email",
1477
+ /** Authenticate yourself to get an access token. */
1478
+ export const userAuthenticate = {
1479
+ path: "/v2/authenticate",
1480
+ method: "POST",
1481
+ operationId: "user-authenticate",
1482
+ };
1483
+ /** Get your verified Email-Address. */
1484
+ export const userGetOwnEmail = {
1485
+ path: "/v2/users/self/credentials/email",
1486
1486
  method: "GET",
1487
- operationId: "user-get-email",
1487
+ operationId: "user-get-own-email",
1488
1488
  };
1489
- /** Change your Email-Address */
1489
+ /** Change your Email-Address. */
1490
1490
  export const userChangeEmail = {
1491
- path: "/v2/signup/email",
1491
+ path: "/v2/users/self/credentials/email",
1492
1492
  method: "PUT",
1493
1493
  operationId: "user-change-email",
1494
1494
  };
1495
- /** The timestamp of your latest password change */
1496
- export const userGetPasswordUpdatedAt = {
1497
- path: "/v2/signup/password",
1498
- method: "GET",
1499
- operationId: "user-get-password-updated-at",
1500
- };
1501
- /** Change your password */
1495
+ /** Change your password. */
1502
1496
  export const userChangePassword = {
1503
- path: "/v2/signup/password",
1497
+ path: "/v2/users/self/credentials/password",
1504
1498
  method: "PUT",
1505
1499
  operationId: "user-change-password",
1506
1500
  };
1507
- /** Get your profile information */
1508
- export const userGetOwnProfile = {
1509
- path: "/v2/signup/profile",
1510
- method: "GET",
1511
- operationId: "user-get-own-profile",
1512
- };
1513
- /** Change your profile information */
1514
- export const userChangeProfile = {
1515
- path: "/v2/signup/profile",
1516
- method: "PUT",
1517
- operationId: "user-change-profile",
1518
- };
1519
- /** Delete your profile and all your personal data */
1520
- export const userDeleteProfile = {
1521
- path: "/v2/signup/profile",
1522
- method: "DELETE",
1523
- operationId: "user-delete-profile",
1524
- };
1525
- /** Check a token for validity */
1501
+ /** Check token for validity. */
1526
1502
  export const userCheckToken = {
1527
- path: "/v2/signup/token/check",
1503
+ path: "/v2/users/self/credentials/token",
1528
1504
  method: "POST",
1529
1505
  operationId: "user-check-token",
1530
1506
  };
1531
- /** Confirm Multi Factor Authentication */
1507
+ /** Get your current multi factor auth status. */
1508
+ export const userGetMfaStatus = {
1509
+ path: "/v2/users/self/credentials/mfa",
1510
+ method: "GET",
1511
+ operationId: "user-get-mfa-status",
1512
+ };
1513
+ /** Reset RecoveryCodes for MFA. */
1514
+ export const userResetRecoverycodes = {
1515
+ path: "/v2/users/self/credentials/mfa",
1516
+ method: "PUT",
1517
+ operationId: "user-reset-recoverycodes",
1518
+ };
1519
+ /** Confirm Multi Factor Authentication. */
1532
1520
  export const userConfirmMfa = {
1533
- path: "/v2/signup/mfa/confirm",
1521
+ path: "/v2/users/self/credentials/mfa",
1534
1522
  method: "POST",
1535
1523
  operationId: "user-confirm-mfa",
1536
1524
  };
1537
- /** Confirm password reset */
1525
+ /** Disable Multi Factor Authentication. */
1526
+ export const userDisableMfa = {
1527
+ path: "/v2/users/self/credentials/mfa",
1528
+ method: "DELETE",
1529
+ operationId: "user-disable-mfa",
1530
+ };
1531
+ /** Confirm password reset. */
1538
1532
  export const userConfirmPasswordReset = {
1539
- path: "/v2/signup/password/reset/confirm",
1533
+ path: "/v2/users/self/credentials/password/confirm-reset",
1540
1534
  method: "POST",
1541
1535
  operationId: "user-confirm-password-reset",
1542
1536
  };
1543
- /** List all ApiTokens of the user */
1537
+ /** List all of your ApiTokens. */
1544
1538
  export const userListApiTokens = {
1545
- path: "/v2/signup/token/api",
1539
+ path: "/v2/users/self/api-tokens",
1546
1540
  method: "GET",
1547
1541
  operationId: "user-list-api-tokens",
1548
1542
  };
1549
- /** Store a new ApiToken */
1543
+ /** Store a new ApiToken. */
1550
1544
  export const userCreateApiToken = {
1551
- path: "/v2/signup/token/api",
1545
+ path: "/v2/users/self/api-tokens",
1552
1546
  method: "POST",
1553
1547
  operationId: "user-create-api-token",
1554
1548
  };
@@ -1564,71 +1558,77 @@ export const userCreateIssue = {
1564
1558
  method: "POST",
1565
1559
  operationId: "user-create-issue",
1566
1560
  };
1567
- /** Get your stored ssh keys */
1561
+ /** Get your stored ssh-keys. */
1568
1562
  export const userListSshKeys = {
1569
- path: "/v2/signup/ssh",
1563
+ path: "/v2/users/self/ssh-keys",
1570
1564
  method: "GET",
1571
1565
  operationId: "user-list-ssh-keys",
1572
1566
  };
1573
- /** Store a new SSH key */
1567
+ /** Store a new ssh-key. */
1574
1568
  export const userCreateSshKey = {
1575
- path: "/v2/signup/ssh",
1569
+ path: "/v2/users/self/ssh-keys",
1576
1570
  method: "POST",
1577
1571
  operationId: "user-create-ssh-key",
1578
1572
  };
1579
- /** Get a specific ApiToken */
1573
+ /** Get a specific ApiToken. */
1580
1574
  export const userGetApiToken = {
1581
- path: "/v2/signup/token/api/{apiTokenId}",
1575
+ path: "/v2/users/self/api-tokens/{apiTokenId}",
1582
1576
  method: "GET",
1583
1577
  operationId: "user-get-api-token",
1584
1578
  };
1585
- /** Update an existing `ApiToken` */
1579
+ /** Update an existing `ApiToken`. */
1586
1580
  export const userEditApiToken = {
1587
- path: "/v2/signup/token/api/{apiTokenId}",
1581
+ path: "/v2/users/self/api-tokens/{apiTokenId}",
1588
1582
  method: "PUT",
1589
1583
  operationId: "user-edit-api-token",
1590
1584
  };
1591
- /** Deletes an ApiToken */
1585
+ /** Deletes an ApiToken. */
1592
1586
  export const userDeleteApiToken = {
1593
- path: "/v2/signup/token/api/{apiTokenId}",
1587
+ path: "/v2/users/self/api-tokens/{apiTokenId}",
1594
1588
  method: "DELETE",
1595
1589
  operationId: "user-delete-api-token",
1596
1590
  };
1597
- /** Get a specific stored SshKey */
1591
+ /** Get a specific stored ssh-key. */
1598
1592
  export const userGetSshKey = {
1599
- path: "/v2/signup/ssh/{sshKeyId}",
1593
+ path: "/v2/users/self/ssh-keys/{sshKeyId}",
1600
1594
  method: "GET",
1601
1595
  operationId: "user-get-ssh-key",
1602
1596
  };
1603
- /** Edit a stored SshKey */
1597
+ /** Edit a stored ssh-key. */
1604
1598
  export const userEditSshKey = {
1605
- path: "/v2/signup/ssh/{sshKeyId}",
1599
+ path: "/v2/users/self/ssh-keys/{sshKeyId}",
1606
1600
  method: "PUT",
1607
1601
  operationId: "user-edit-ssh-key",
1608
1602
  };
1609
- /** Remove a SSH-key */
1603
+ /** Remove a ssh-key. */
1610
1604
  export const userDeleteSshKey = {
1611
- path: "/v2/signup/ssh/{sshKeyId}",
1605
+ path: "/v2/users/self/ssh-keys/{sshKeyId}",
1612
1606
  method: "DELETE",
1613
1607
  operationId: "user-delete-ssh-key",
1614
1608
  };
1615
- /** Get your current multi factor auth status */
1616
- export const userGetMfaStatus = {
1617
- path: "/v2/signup/mfa",
1609
+ /** Delete your account and all your personal data. */
1610
+ export const userDeleteUser = {
1611
+ path: "/v2/users/self",
1612
+ method: "DELETE",
1613
+ operationId: "user-delete-user",
1614
+ };
1615
+ /** Get your account information. */
1616
+ export const userGetOwnAccount = {
1617
+ path: "/v2/users/self/personal-information",
1618
1618
  method: "GET",
1619
- operationId: "user-get-mfa-status",
1619
+ operationId: "user-get-own-account",
1620
1620
  };
1621
- /** Initialize Multi Factor Authentication. If successfull, it needs to be confirmed, before usage of mfa. */
1622
- export const userInitMfa = {
1623
- path: "/v2/signup/mfa",
1624
- method: "POST",
1625
- operationId: "user-init-mfa",
1621
+ /** Update your account information. */
1622
+ export const userUpdateAccount = {
1623
+ path: "/v2/users/self/personal-information",
1624
+ method: "PUT",
1625
+ operationId: "user-update-account",
1626
1626
  };
1627
- /** Disable Multi Factor Authentication. */
1628
- export const userDisableMfa = {
1629
- path: "/v2/signup/mfa",
1630
- method: "DELETE",
1631
- operationId: "user-disable-mfa",
1627
+ /** The timestamp of your latest password change. */
1628
+ export const userGetPasswordUpdatedAt = {
1629
+ path: "/v2/users/self/credentials/password-updated-at",
1630
+ method: "GET",
1631
+ operationId: "user-get-password-updated-at",
1632
1632
  };
1633
1633
  /** Get personalized settings. */
1634
1634
  export const userGetPersonalizedSettings = {
@@ -1642,15 +1642,15 @@ export const userUpdatePersonalizedSettings = {
1642
1642
  method: "PUT",
1643
1643
  operationId: "user-update-personalized-settings",
1644
1644
  };
1645
- /** Get a specific Session */
1645
+ /** Get a specific session. */
1646
1646
  export const userGetSession = {
1647
- path: "/v2/signup/sessions/{tokenId}",
1647
+ path: "/v2/users/self/sessions/{tokenId}",
1648
1648
  method: "GET",
1649
1649
  operationId: "user-get-session",
1650
1650
  };
1651
- /** Terminate a specific Session */
1651
+ /** Terminate a specific Session. */
1652
1652
  export const userTerminateSession = {
1653
- path: "/v2/signup/sessions/{tokenId}",
1653
+ path: "/v2/users/self/sessions/{tokenId}",
1654
1654
  method: "DELETE",
1655
1655
  operationId: "user-terminate-session",
1656
1656
  };
@@ -1666,9 +1666,15 @@ export const userUpdatePersonalInformation = {
1666
1666
  method: "PUT",
1667
1667
  operationId: "user-update-personal-information",
1668
1668
  };
1669
- /** Initialize password reset process */
1669
+ /** Initialize Multi Factor Authentication. If successful, it needs to be confirmed, before usage of mfa. */
1670
+ export const userInitMfa = {
1671
+ path: "/v2/users/self/credentials/init-mfa",
1672
+ method: "POST",
1673
+ operationId: "user-init-mfa",
1674
+ };
1675
+ /** Initialize password reset process. */
1670
1676
  export const userInitPasswordReset = {
1671
- path: "/v2/signup/password/reset",
1677
+ path: "/v2/users/self/credentials/actions/init-password-reset",
1672
1678
  method: "POST",
1673
1679
  operationId: "user-init-password-reset",
1674
1680
  };
@@ -1678,27 +1684,27 @@ export const userListFeedback = {
1678
1684
  method: "GET",
1679
1685
  operationId: "user-list-feedback",
1680
1686
  };
1681
- /** List all active sessions */
1687
+ /** List all sessions. */
1682
1688
  export const userListSessions = {
1683
- path: "/v2/signup/sessions",
1689
+ path: "/v2/users/self/sessions",
1684
1690
  method: "GET",
1685
1691
  operationId: "user-list-sessions",
1686
1692
  };
1687
- /** Terminate all sessions, except the current Session */
1693
+ /** Terminate all sessions, except the current session. */
1688
1694
  export const userTerminateAllSessions = {
1689
- path: "/v2/signup/sessions",
1695
+ path: "/v2/users/self/sessions",
1690
1696
  method: "DELETE",
1691
1697
  operationId: "user-terminate-all-sessions",
1692
1698
  };
1693
- /** Terminate session and invalidate access token */
1699
+ /** Terminate session and invalidate access token. */
1694
1700
  export const userLogout = {
1695
- path: "/v2/signup/logout",
1701
+ path: "/v2/logout",
1696
1702
  method: "PUT",
1697
1703
  operationId: "user-logout",
1698
1704
  };
1699
1705
  /** Register with email and password. */
1700
1706
  export const userRegister = {
1701
- path: "/v2/signup/registration",
1707
+ path: "/v2/register",
1702
1708
  method: "POST",
1703
1709
  operationId: "user-register",
1704
1710
  };
@@ -1714,27 +1720,21 @@ export const userRemoveAvatar = {
1714
1720
  method: "DELETE",
1715
1721
  operationId: "user-remove-avatar",
1716
1722
  };
1717
- /** Resend the Email-Address verification email */
1723
+ /** Resend the Email-Address verification email. */
1718
1724
  export const userResendVerificationEmail = {
1719
- path: "/v2/signup/email/resend",
1725
+ path: "/v2/users/self/credentials/email/actions/resend-email",
1720
1726
  method: "POST",
1721
1727
  operationId: "user-resend-verification-email",
1722
1728
  };
1723
- /** Reset RecoveryCodes for MFA */
1724
- export const userResetRecoverycodes = {
1725
- path: "/v2/signup/mfa/reset-recoverycodes",
1726
- method: "PUT",
1727
- operationId: "user-reset-recoverycodes",
1728
- };
1729
- /** Request a support code */
1729
+ /** Request a support code. */
1730
1730
  export const userSupportCodeRequest = {
1731
- path: "/v2/signup/supportcode",
1731
+ path: "/v2/users/self/credentials/support-code",
1732
1732
  method: "GET",
1733
1733
  operationId: "user-support-code-request",
1734
1734
  };
1735
- /** Verify an added Email-Address */
1735
+ /** Verify an added Email-Address. */
1736
1736
  export const userVerifyEmail = {
1737
- path: "/v2/signup/email/verify",
1737
+ path: "/v2/users/self/credentials/email/actions/verify-email",
1738
1738
  method: "POST",
1739
1739
  operationId: "user-verify-email",
1740
1740
  };
@@ -1744,9 +1744,9 @@ export const userVerifyPhoneNumber = {
1744
1744
  method: "POST",
1745
1745
  operationId: "user-verify-phone-number",
1746
1746
  };
1747
- /** Verify your registration */
1747
+ /** Verify your registration. */
1748
1748
  export const userVerifyRegistration = {
1749
- path: "/v2/signup/registration/verification",
1749
+ path: "/v2/verify-registration",
1750
1750
  method: "POST",
1751
1751
  operationId: "user-verify-registration",
1752
1752
  };