@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.
- package/README.md +16 -2
- package/{dist-cjs → dist/cjs}/generated/v2/client.d.ts +993 -1005
- package/{dist-cjs → dist/cjs}/generated/v2/client.js +45 -45
- package/dist/cjs/generated/v2/descriptors.d.ts +589 -0
- package/{dist-cjs → dist/cjs}/generated/v2/descriptors.js +108 -108
- package/{dist-cjs → dist/cjs}/generated/v2/types.d.ts +302 -251
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +5 -0
- package/{dist-cjs → dist/cjs}/v2.d.ts +1 -0
- package/dist/{generated → esm/generated}/v2/client.d.ts +993 -1005
- package/dist/{generated → esm/generated}/v2/client.js +45 -45
- package/dist/esm/generated/v2/descriptors.d.ts +589 -0
- package/dist/{generated → esm/generated}/v2/descriptors.js +106 -106
- package/dist/{generated → esm/generated}/v2/types.d.ts +302 -251
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +1 -0
- package/dist/{v2.d.ts → esm/v2.d.ts} +1 -0
- package/package.json +17 -7
- package/dist/generated/v2/descriptors.d.ts +0 -589
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist-cjs/generated/v2/descriptors.d.ts +0 -589
- package/dist-cjs/index.d.ts +0 -1
- package/dist-cjs/index.js +0 -2
- /package/{dist-cjs → dist/cjs}/generated/v2/types.js +0 -0
- /package/{dist-cjs → dist/cjs}/v2.js +0 -0
- /package/dist/{generated → esm/generated}/v2/types.js +0 -0
- /package/dist/{v2.js → esm/v2.js} +0 -0
|
@@ -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/
|
|
1473
|
+
path: "/v2/authenticate-mfa",
|
|
1480
1474
|
method: "POST",
|
|
1481
1475
|
operationId: "user-authenticate-mfa",
|
|
1482
1476
|
};
|
|
1483
|
-
/**
|
|
1484
|
-
export const
|
|
1485
|
-
path: "/v2/
|
|
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/
|
|
1491
|
+
path: "/v2/users/self/credentials/email",
|
|
1492
1492
|
method: "PUT",
|
|
1493
1493
|
operationId: "user-change-email",
|
|
1494
1494
|
};
|
|
1495
|
-
/**
|
|
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/
|
|
1497
|
+
path: "/v2/users/self/credentials/password",
|
|
1504
1498
|
method: "PUT",
|
|
1505
1499
|
operationId: "user-change-password",
|
|
1506
1500
|
};
|
|
1507
|
-
/**
|
|
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/
|
|
1503
|
+
path: "/v2/users/self/credentials/token",
|
|
1528
1504
|
method: "POST",
|
|
1529
1505
|
operationId: "user-check-token",
|
|
1530
1506
|
};
|
|
1531
|
-
/**
|
|
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/
|
|
1521
|
+
path: "/v2/users/self/credentials/mfa",
|
|
1534
1522
|
method: "POST",
|
|
1535
1523
|
operationId: "user-confirm-mfa",
|
|
1536
1524
|
};
|
|
1537
|
-
/**
|
|
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/
|
|
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
|
|
1537
|
+
/** List all of your ApiTokens. */
|
|
1544
1538
|
export const userListApiTokens = {
|
|
1545
|
-
path: "/v2/
|
|
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/
|
|
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
|
|
1561
|
+
/** Get your stored ssh-keys. */
|
|
1568
1562
|
export const userListSshKeys = {
|
|
1569
|
-
path: "/v2/
|
|
1563
|
+
path: "/v2/users/self/ssh-keys",
|
|
1570
1564
|
method: "GET",
|
|
1571
1565
|
operationId: "user-list-ssh-keys",
|
|
1572
1566
|
};
|
|
1573
|
-
/** Store a new
|
|
1567
|
+
/** Store a new ssh-key. */
|
|
1574
1568
|
export const userCreateSshKey = {
|
|
1575
|
-
path: "/v2/
|
|
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/
|
|
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/
|
|
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/
|
|
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
|
|
1591
|
+
/** Get a specific stored ssh-key. */
|
|
1598
1592
|
export const userGetSshKey = {
|
|
1599
|
-
path: "/v2/
|
|
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
|
|
1597
|
+
/** Edit a stored ssh-key. */
|
|
1604
1598
|
export const userEditSshKey = {
|
|
1605
|
-
path: "/v2/
|
|
1599
|
+
path: "/v2/users/self/ssh-keys/{sshKeyId}",
|
|
1606
1600
|
method: "PUT",
|
|
1607
1601
|
operationId: "user-edit-ssh-key",
|
|
1608
1602
|
};
|
|
1609
|
-
/** Remove a
|
|
1603
|
+
/** Remove a ssh-key. */
|
|
1610
1604
|
export const userDeleteSshKey = {
|
|
1611
|
-
path: "/v2/
|
|
1605
|
+
path: "/v2/users/self/ssh-keys/{sshKeyId}",
|
|
1612
1606
|
method: "DELETE",
|
|
1613
1607
|
operationId: "user-delete-ssh-key",
|
|
1614
1608
|
};
|
|
1615
|
-
/**
|
|
1616
|
-
export const
|
|
1617
|
-
path: "/v2/
|
|
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-
|
|
1619
|
+
operationId: "user-get-own-account",
|
|
1620
1620
|
};
|
|
1621
|
-
/**
|
|
1622
|
-
export const
|
|
1623
|
-
path: "/v2/
|
|
1624
|
-
method: "
|
|
1625
|
-
operationId: "user-
|
|
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
|
-
/**
|
|
1628
|
-
export const
|
|
1629
|
-
path: "/v2/
|
|
1630
|
-
method: "
|
|
1631
|
-
operationId: "user-
|
|
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
|
|
1645
|
+
/** Get a specific session. */
|
|
1646
1646
|
export const userGetSession = {
|
|
1647
|
-
path: "/v2/
|
|
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/
|
|
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
|
|
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/
|
|
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
|
|
1687
|
+
/** List all sessions. */
|
|
1682
1688
|
export const userListSessions = {
|
|
1683
|
-
path: "/v2/
|
|
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
|
|
1693
|
+
/** Terminate all sessions, except the current session. */
|
|
1688
1694
|
export const userTerminateAllSessions = {
|
|
1689
|
-
path: "/v2/
|
|
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/
|
|
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/
|
|
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/
|
|
1725
|
+
path: "/v2/users/self/credentials/email/actions/resend-email",
|
|
1720
1726
|
method: "POST",
|
|
1721
1727
|
operationId: "user-resend-verification-email",
|
|
1722
1728
|
};
|
|
1723
|
-
/**
|
|
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/
|
|
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/
|
|
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/
|
|
1749
|
+
path: "/v2/verify-registration",
|
|
1750
1750
|
method: "POST",
|
|
1751
1751
|
operationId: "user-verify-registration",
|
|
1752
1752
|
};
|