auth0 5.5.0 → 5.6.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 (116) hide show
  1. package/dist/cjs/management/Client.d.ts +12 -0
  2. package/dist/cjs/management/Client.js +67 -0
  3. package/dist/cjs/management/api/requests/requests.d.ts +140 -22
  4. package/dist/cjs/management/api/resources/actions/client/Client.d.ts +2 -2
  5. package/dist/cjs/management/api/resources/actions/client/Client.js +3 -3
  6. package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.d.ts +2 -2
  7. package/dist/cjs/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.js +2 -2
  8. package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +0 -1
  9. package/dist/cjs/management/api/resources/clientGrants/client/Client.js +0 -1
  10. package/dist/cjs/management/api/resources/clients/client/Client.d.ts +46 -0
  11. package/dist/cjs/management/api/resources/clients/client/Client.js +146 -1
  12. package/dist/cjs/management/api/resources/customDomains/client/Client.d.ts +30 -0
  13. package/dist/cjs/management/api/resources/customDomains/client/Client.js +115 -0
  14. package/dist/cjs/management/api/resources/groups/client/Client.d.ts +16 -0
  15. package/dist/cjs/management/api/resources/groups/client/Client.js +57 -0
  16. package/dist/cjs/management/api/resources/networkAcls/client/Client.d.ts +0 -2
  17. package/dist/cjs/management/api/resources/networkAcls/client/Client.js +0 -2
  18. package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +3 -0
  19. package/dist/cjs/management/api/resources/organizations/client/Client.js +13 -8
  20. package/dist/cjs/management/api/resources/organizations/resources/connections/client/Client.d.ts +95 -0
  21. package/dist/cjs/management/api/resources/organizations/resources/connections/client/Client.js +383 -0
  22. package/dist/cjs/management/api/resources/organizations/resources/connections/client/index.d.ts +1 -0
  23. package/dist/cjs/management/api/resources/organizations/resources/connections/client/index.js +2 -0
  24. package/dist/cjs/management/api/resources/organizations/resources/connections/index.d.ts +1 -0
  25. package/dist/cjs/management/api/resources/organizations/resources/connections/index.js +17 -0
  26. package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.ts +3 -1
  27. package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +3 -1
  28. package/dist/cjs/management/api/resources/organizations/resources/index.d.ts +1 -0
  29. package/dist/cjs/management/api/resources/organizations/resources/index.js +2 -1
  30. package/dist/cjs/management/api/resources/refreshTokens/client/Client.d.ts +23 -0
  31. package/dist/cjs/management/api/resources/refreshTokens/client/Client.js +88 -0
  32. package/dist/cjs/management/api/types/types.d.ts +492 -292
  33. package/dist/cjs/management/api/types/types.js +96 -103
  34. package/dist/cjs/management/core/auth/BasicAuth.d.ts +2 -2
  35. package/dist/cjs/management/core/auth/BasicAuth.js +7 -1
  36. package/dist/cjs/management/core/fetcher/BinaryResponse.d.ts +1 -1
  37. package/dist/cjs/management/core/fetcher/Fetcher.d.ts +2 -0
  38. package/dist/cjs/management/core/fetcher/Fetcher.js +5 -1
  39. package/dist/cjs/management/core/fetcher/index.d.ts +2 -0
  40. package/dist/cjs/management/core/fetcher/index.js +3 -1
  41. package/dist/cjs/management/core/fetcher/makePassthroughRequest.d.ts +49 -0
  42. package/dist/cjs/management/core/fetcher/makePassthroughRequest.js +135 -0
  43. package/dist/cjs/management/core/fetcher/makeRequest.d.ts +6 -1
  44. package/dist/cjs/management/core/fetcher/makeRequest.js +30 -9
  45. package/dist/cjs/management/core/pagination/Page.d.ts +1 -1
  46. package/dist/cjs/management/core/pagination/index.d.ts +0 -1
  47. package/dist/cjs/management/core/pagination/index.js +1 -4
  48. package/dist/cjs/management/core/runtime/runtime.js +8 -7
  49. package/dist/cjs/management/errors/ManagementError.d.ts +3 -1
  50. package/dist/cjs/management/errors/ManagementError.js +4 -1
  51. package/dist/cjs/management/errors/ManagementTimeoutError.d.ts +4 -1
  52. package/dist/cjs/management/errors/ManagementTimeoutError.js +4 -1
  53. package/dist/cjs/management/errors/handleNonStatusCodeError.js +4 -1
  54. package/dist/cjs/management/version.d.ts +1 -1
  55. package/dist/cjs/management/version.js +1 -1
  56. package/dist/esm/management/Client.d.mts +12 -0
  57. package/dist/esm/management/Client.mjs +34 -0
  58. package/dist/esm/management/api/requests/requests.d.mts +140 -22
  59. package/dist/esm/management/api/resources/actions/client/Client.d.mts +2 -2
  60. package/dist/esm/management/api/resources/actions/client/Client.mjs +3 -3
  61. package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.d.mts +2 -2
  62. package/dist/esm/management/api/resources/actions/resources/triggers/resources/bindings/client/Client.mjs +2 -2
  63. package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +0 -1
  64. package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +0 -1
  65. package/dist/esm/management/api/resources/clients/client/Client.d.mts +46 -0
  66. package/dist/esm/management/api/resources/clients/client/Client.mjs +146 -1
  67. package/dist/esm/management/api/resources/customDomains/client/Client.d.mts +30 -0
  68. package/dist/esm/management/api/resources/customDomains/client/Client.mjs +115 -0
  69. package/dist/esm/management/api/resources/groups/client/Client.d.mts +16 -0
  70. package/dist/esm/management/api/resources/groups/client/Client.mjs +57 -0
  71. package/dist/esm/management/api/resources/networkAcls/client/Client.d.mts +0 -2
  72. package/dist/esm/management/api/resources/networkAcls/client/Client.mjs +0 -2
  73. package/dist/esm/management/api/resources/organizations/client/Client.d.mts +3 -0
  74. package/dist/esm/management/api/resources/organizations/client/Client.mjs +5 -0
  75. package/dist/esm/management/api/resources/organizations/resources/connections/client/Client.d.mts +95 -0
  76. package/dist/esm/management/api/resources/organizations/resources/connections/client/Client.mjs +346 -0
  77. package/dist/esm/management/api/resources/organizations/resources/connections/client/index.d.mts +1 -0
  78. package/dist/esm/management/api/resources/organizations/resources/connections/client/index.mjs +1 -0
  79. package/dist/esm/management/api/resources/organizations/resources/connections/index.d.mts +1 -0
  80. package/dist/esm/management/api/resources/organizations/resources/connections/index.mjs +1 -0
  81. package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.mts +3 -1
  82. package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +3 -1
  83. package/dist/esm/management/api/resources/organizations/resources/index.d.mts +1 -0
  84. package/dist/esm/management/api/resources/organizations/resources/index.mjs +1 -0
  85. package/dist/esm/management/api/resources/refreshTokens/client/Client.d.mts +23 -0
  86. package/dist/esm/management/api/resources/refreshTokens/client/Client.mjs +88 -0
  87. package/dist/esm/management/api/types/types.d.mts +492 -292
  88. package/dist/esm/management/api/types/types.mjs +86 -93
  89. package/dist/esm/management/core/auth/BasicAuth.d.mts +2 -2
  90. package/dist/esm/management/core/auth/BasicAuth.mjs +7 -1
  91. package/dist/esm/management/core/fetcher/BinaryResponse.d.mts +1 -1
  92. package/dist/esm/management/core/fetcher/Fetcher.d.mts +2 -0
  93. package/dist/esm/management/core/fetcher/Fetcher.mjs +5 -1
  94. package/dist/esm/management/core/fetcher/index.d.mts +2 -0
  95. package/dist/esm/management/core/fetcher/index.mjs +1 -0
  96. package/dist/esm/management/core/fetcher/makePassthroughRequest.d.mts +49 -0
  97. package/dist/esm/management/core/fetcher/makePassthroughRequest.mjs +132 -0
  98. package/dist/esm/management/core/fetcher/makeRequest.d.mts +6 -1
  99. package/dist/esm/management/core/fetcher/makeRequest.mjs +28 -9
  100. package/dist/esm/management/core/pagination/Page.d.mts +1 -1
  101. package/dist/esm/management/core/pagination/index.d.mts +0 -1
  102. package/dist/esm/management/core/pagination/index.mjs +0 -1
  103. package/dist/esm/management/core/runtime/runtime.mjs +8 -7
  104. package/dist/esm/management/errors/ManagementError.d.mts +3 -1
  105. package/dist/esm/management/errors/ManagementError.mjs +4 -1
  106. package/dist/esm/management/errors/ManagementTimeoutError.d.mts +4 -1
  107. package/dist/esm/management/errors/ManagementTimeoutError.mjs +4 -1
  108. package/dist/esm/management/errors/handleNonStatusCodeError.mjs +4 -1
  109. package/dist/esm/management/version.d.mts +1 -1
  110. package/dist/esm/management/version.mjs +1 -1
  111. package/package.json +5 -6
  112. package/reference.md +752 -30
  113. package/dist/cjs/management/core/pagination/CustomPager.d.ts +0 -67
  114. package/dist/cjs/management/core/pagination/CustomPager.js +0 -194
  115. package/dist/esm/management/core/pagination/CustomPager.d.mts +0 -67
  116. package/dist/esm/management/core/pagination/CustomPager.mjs +0 -189
@@ -297,6 +297,9 @@ export const OauthScope = {
297
297
  /**
298
298
  * Read Groups */
299
299
  ReadGroups: "read:groups",
300
+ /**
301
+ * Delete Groups */
302
+ DeleteGroups: "delete:groups",
300
303
  /**
301
304
  * Create Guardian Enrollment Tickets */
302
305
  CreateGuardianEnrollmentTickets: "create:guardian_enrollment_tickets",
@@ -687,6 +690,23 @@ export const ActionExecutionStatusEnum = {
687
690
  Canceled: "canceled",
688
691
  Suspended: "suspended",
689
692
  };
693
+ /** An actions extensibility point. */
694
+ export const ActionTriggerTypeEnum = {
695
+ PostLogin: "post-login",
696
+ CredentialsExchange: "credentials-exchange",
697
+ PreUserRegistration: "pre-user-registration",
698
+ PostUserRegistration: "post-user-registration",
699
+ PostChangePassword: "post-change-password",
700
+ SendPhoneMessage: "send-phone-message",
701
+ CustomPhoneProvider: "custom-phone-provider",
702
+ CustomEmailProvider: "custom-email-provider",
703
+ PasswordResetPostChallenge: "password-reset-post-challenge",
704
+ CustomTokenExchange: "custom-token-exchange",
705
+ EventStream: "event-stream",
706
+ PasswordHashMigration: "password-hash-migration",
707
+ LoginPostIdentifier: "login-post-identifier",
708
+ SignupPostIdentifier: "signup-post-identifier",
709
+ };
690
710
  /** The build status of this specific version. */
691
711
  export const ActionVersionBuildStatusEnum = {
692
712
  Pending: "pending",
@@ -926,6 +946,15 @@ export const ClientCredentialTypeEnum = {
926
946
  export const ClientDefaultOrganizationFlowsEnum = {
927
947
  ClientCredentials: "client_credentials",
928
948
  };
949
+ /** Indicates who created the external metadata client. The value <code>admin</code> indicates the client was registered via the Management API. The value <code>client</code> indicates the client was registered dynamically. This field is only present when external_metadata_type is set. */
950
+ export const ClientExternalMetadataCreatedByEnum = {
951
+ Admin: "admin",
952
+ Client: "client",
953
+ };
954
+ /** Indicates the type of external metadata used to register the client. This field is omitted for regular clients. The value <code>cimd</code> identifies clients registered via a Client ID Metadata Document. */
955
+ export const ClientExternalMetadataTypeEnum = {
956
+ Cimd: "cimd",
957
+ };
929
958
  /** Controls how organizations may be used with this grant */
930
959
  export const ClientGrantOrganizationNullableUsageEnum = {
931
960
  Deny: "deny",
@@ -1036,11 +1065,6 @@ export const ConnectionDigestAlgorithmEnumSaml = {
1036
1065
  Sha1: "sha1",
1037
1066
  Sha256: "sha256",
1038
1067
  };
1039
- /** Algorithm used for DPoP proof JWT signing. */
1040
- export const ConnectionDpopSigningAlgEnum = {
1041
- Es256: "ES256",
1042
- Ed25519: "Ed25519",
1043
- };
1044
1068
  export var ConnectionEmailEmail;
1045
1069
  (function (ConnectionEmailEmail) {
1046
1070
  /** Email template syntax type */
@@ -1077,7 +1101,6 @@ export const ConnectionIdentityProviderEnum = {
1077
1101
  Apple: "apple",
1078
1102
  Dropbox: "dropbox",
1079
1103
  Bitbucket: "bitbucket",
1080
- Aol: "aol",
1081
1104
  Auth0Oidc: "auth0-oidc",
1082
1105
  Auth0: "auth0",
1083
1106
  Baidu: "baidu",
@@ -1092,7 +1115,6 @@ export const ConnectionIdentityProviderEnum = {
1092
1115
  Exact: "exact",
1093
1116
  Facebook: "facebook",
1094
1117
  Fitbit: "fitbit",
1095
- Flickr: "flickr",
1096
1118
  Github: "github",
1097
1119
  GoogleApps: "google-apps",
1098
1120
  GoogleOauth2: "google-oauth2",
@@ -1100,7 +1122,6 @@ export const ConnectionIdentityProviderEnum = {
1100
1122
  Ip: "ip",
1101
1123
  Line: "line",
1102
1124
  Linkedin: "linkedin",
1103
- Miicard: "miicard",
1104
1125
  Oauth1: "oauth1",
1105
1126
  Oauth2: "oauth2",
1106
1127
  Office365: "office365",
@@ -1110,7 +1131,6 @@ export const ConnectionIdentityProviderEnum = {
1110
1131
  PaypalSandbox: "paypal-sandbox",
1111
1132
  Pingfederate: "pingfederate",
1112
1133
  Planningcenter: "planningcenter",
1113
- Renren: "renren",
1114
1134
  SalesforceCommunity: "salesforce-community",
1115
1135
  SalesforceSandbox: "salesforce-sandbox",
1116
1136
  Salesforce: "salesforce",
@@ -1120,8 +1140,6 @@ export const ConnectionIdentityProviderEnum = {
1120
1140
  Shop: "shop",
1121
1141
  Sms: "sms",
1122
1142
  Soundcloud: "soundcloud",
1123
- ThecitySandbox: "thecity-sandbox",
1124
- Thecity: "thecity",
1125
1143
  Thirtysevensignals: "thirtysevensignals",
1126
1144
  Twitter: "twitter",
1127
1145
  Untappd: "untappd",
@@ -1131,7 +1149,6 @@ export const ConnectionIdentityProviderEnum = {
1131
1149
  Windowslive: "windowslive",
1132
1150
  Wordpress: "wordpress",
1133
1151
  Yahoo: "yahoo",
1134
- Yammer: "yammer",
1135
1152
  Yandex: "yandex",
1136
1153
  };
1137
1154
  /** Signing key use, whether for encryption or signing */
@@ -1208,12 +1225,6 @@ export var ConnectionResponseContentAdfs;
1208
1225
  Adfs: "adfs",
1209
1226
  };
1210
1227
  })(ConnectionResponseContentAdfs || (ConnectionResponseContentAdfs = {}));
1211
- export var ConnectionResponseContentAol;
1212
- (function (ConnectionResponseContentAol) {
1213
- ConnectionResponseContentAol.Strategy = {
1214
- Aol: "aol",
1215
- };
1216
- })(ConnectionResponseContentAol || (ConnectionResponseContentAol = {}));
1217
1228
  export var ConnectionResponseContentAmazon;
1218
1229
  (function (ConnectionResponseContentAmazon) {
1219
1230
  ConnectionResponseContentAmazon.Strategy = {
@@ -1328,12 +1339,6 @@ export var ConnectionResponseContentFitbit;
1328
1339
  Fitbit: "fitbit",
1329
1340
  };
1330
1341
  })(ConnectionResponseContentFitbit || (ConnectionResponseContentFitbit = {}));
1331
- export var ConnectionResponseContentFlickr;
1332
- (function (ConnectionResponseContentFlickr) {
1333
- ConnectionResponseContentFlickr.Strategy = {
1334
- Flickr: "flickr",
1335
- };
1336
- })(ConnectionResponseContentFlickr || (ConnectionResponseContentFlickr = {}));
1337
1342
  export var ConnectionResponseContentGitHub;
1338
1343
  (function (ConnectionResponseContentGitHub) {
1339
1344
  ConnectionResponseContentGitHub.Strategy = {
@@ -1376,12 +1381,6 @@ export var ConnectionResponseContentLinkedin;
1376
1381
  Linkedin: "linkedin",
1377
1382
  };
1378
1383
  })(ConnectionResponseContentLinkedin || (ConnectionResponseContentLinkedin = {}));
1379
- export var ConnectionResponseContentMiicard;
1380
- (function (ConnectionResponseContentMiicard) {
1381
- ConnectionResponseContentMiicard.Strategy = {
1382
- Miicard: "miicard",
1383
- };
1384
- })(ConnectionResponseContentMiicard || (ConnectionResponseContentMiicard = {}));
1385
1384
  export var ConnectionResponseContentOAuth1;
1386
1385
  (function (ConnectionResponseContentOAuth1) {
1387
1386
  ConnectionResponseContentOAuth1.Strategy = {
@@ -1436,12 +1435,6 @@ export var ConnectionResponseContentPlanningCenter;
1436
1435
  Planningcenter: "planningcenter",
1437
1436
  };
1438
1437
  })(ConnectionResponseContentPlanningCenter || (ConnectionResponseContentPlanningCenter = {}));
1439
- export var ConnectionResponseContentRenren;
1440
- (function (ConnectionResponseContentRenren) {
1441
- ConnectionResponseContentRenren.Strategy = {
1442
- Renren: "renren",
1443
- };
1444
- })(ConnectionResponseContentRenren || (ConnectionResponseContentRenren = {}));
1445
1438
  export var ConnectionResponseContentSaml;
1446
1439
  (function (ConnectionResponseContentSaml) {
1447
1440
  ConnectionResponseContentSaml.Strategy = {
@@ -1544,12 +1537,6 @@ export var ConnectionResponseContentYahoo;
1544
1537
  Yahoo: "yahoo",
1545
1538
  };
1546
1539
  })(ConnectionResponseContentYahoo || (ConnectionResponseContentYahoo = {}));
1547
- export var ConnectionResponseContentYammer;
1548
- (function (ConnectionResponseContentYammer) {
1549
- ConnectionResponseContentYammer.Strategy = {
1550
- Yammer: "yammer",
1551
- };
1552
- })(ConnectionResponseContentYammer || (ConnectionResponseContentYammer = {}));
1553
1540
  export var ConnectionResponseContentYandex;
1554
1541
  (function (ConnectionResponseContentYandex) {
1555
1542
  ConnectionResponseContentYandex.Strategy = {
@@ -1588,7 +1575,6 @@ export const ConnectionStrategyEnum = {
1588
1575
  Apple: "apple",
1589
1576
  Dropbox: "dropbox",
1590
1577
  Bitbucket: "bitbucket",
1591
- Aol: "aol",
1592
1578
  Auth0Oidc: "auth0-oidc",
1593
1579
  Auth0: "auth0",
1594
1580
  Baidu: "baidu",
@@ -1603,7 +1589,6 @@ export const ConnectionStrategyEnum = {
1603
1589
  Exact: "exact",
1604
1590
  Facebook: "facebook",
1605
1591
  Fitbit: "fitbit",
1606
- Flickr: "flickr",
1607
1592
  Github: "github",
1608
1593
  GoogleApps: "google-apps",
1609
1594
  GoogleOauth2: "google-oauth2",
@@ -1611,7 +1596,6 @@ export const ConnectionStrategyEnum = {
1611
1596
  Ip: "ip",
1612
1597
  Line: "line",
1613
1598
  Linkedin: "linkedin",
1614
- Miicard: "miicard",
1615
1599
  Oauth1: "oauth1",
1616
1600
  Oauth2: "oauth2",
1617
1601
  Office365: "office365",
@@ -1621,7 +1605,6 @@ export const ConnectionStrategyEnum = {
1621
1605
  PaypalSandbox: "paypal-sandbox",
1622
1606
  Pingfederate: "pingfederate",
1623
1607
  Planningcenter: "planningcenter",
1624
- Renren: "renren",
1625
1608
  SalesforceCommunity: "salesforce-community",
1626
1609
  SalesforceSandbox: "salesforce-sandbox",
1627
1610
  Salesforce: "salesforce",
@@ -1631,8 +1614,6 @@ export const ConnectionStrategyEnum = {
1631
1614
  Shop: "shop",
1632
1615
  Sms: "sms",
1633
1616
  Soundcloud: "soundcloud",
1634
- ThecitySandbox: "thecity-sandbox",
1635
- Thecity: "thecity",
1636
1617
  Thirtysevensignals: "thirtysevensignals",
1637
1618
  Twitter: "twitter",
1638
1619
  Untappd: "untappd",
@@ -1642,7 +1623,6 @@ export const ConnectionStrategyEnum = {
1642
1623
  Windowslive: "windowslive",
1643
1624
  Wordpress: "wordpress",
1644
1625
  Yahoo: "yahoo",
1645
- Yammer: "yammer",
1646
1626
  Yandex: "yandex",
1647
1627
  Auth0Adldap: "auth0-adldap",
1648
1628
  };
@@ -1711,12 +1691,6 @@ export var CreateConnectionRequestContentAdfs;
1711
1691
  Adfs: "adfs",
1712
1692
  };
1713
1693
  })(CreateConnectionRequestContentAdfs || (CreateConnectionRequestContentAdfs = {}));
1714
- export var CreateConnectionRequestContentAol;
1715
- (function (CreateConnectionRequestContentAol) {
1716
- CreateConnectionRequestContentAol.Strategy = {
1717
- Aol: "aol",
1718
- };
1719
- })(CreateConnectionRequestContentAol || (CreateConnectionRequestContentAol = {}));
1720
1694
  export var CreateConnectionRequestContentAmazon;
1721
1695
  (function (CreateConnectionRequestContentAmazon) {
1722
1696
  CreateConnectionRequestContentAmazon.Strategy = {
@@ -1831,12 +1805,6 @@ export var CreateConnectionRequestContentFitbit;
1831
1805
  Fitbit: "fitbit",
1832
1806
  };
1833
1807
  })(CreateConnectionRequestContentFitbit || (CreateConnectionRequestContentFitbit = {}));
1834
- export var CreateConnectionRequestContentFlickr;
1835
- (function (CreateConnectionRequestContentFlickr) {
1836
- CreateConnectionRequestContentFlickr.Strategy = {
1837
- Flickr: "flickr",
1838
- };
1839
- })(CreateConnectionRequestContentFlickr || (CreateConnectionRequestContentFlickr = {}));
1840
1808
  export var CreateConnectionRequestContentGitHub;
1841
1809
  (function (CreateConnectionRequestContentGitHub) {
1842
1810
  CreateConnectionRequestContentGitHub.Strategy = {
@@ -1879,12 +1847,6 @@ export var CreateConnectionRequestContentLinkedin;
1879
1847
  Linkedin: "linkedin",
1880
1848
  };
1881
1849
  })(CreateConnectionRequestContentLinkedin || (CreateConnectionRequestContentLinkedin = {}));
1882
- export var CreateConnectionRequestContentMiicard;
1883
- (function (CreateConnectionRequestContentMiicard) {
1884
- CreateConnectionRequestContentMiicard.Strategy = {
1885
- Miicard: "miicard",
1886
- };
1887
- })(CreateConnectionRequestContentMiicard || (CreateConnectionRequestContentMiicard = {}));
1888
1850
  export var CreateConnectionRequestContentOAuth1;
1889
1851
  (function (CreateConnectionRequestContentOAuth1) {
1890
1852
  CreateConnectionRequestContentOAuth1.Strategy = {
@@ -1939,12 +1901,6 @@ export var CreateConnectionRequestContentPlanningCenter;
1939
1901
  Planningcenter: "planningcenter",
1940
1902
  };
1941
1903
  })(CreateConnectionRequestContentPlanningCenter || (CreateConnectionRequestContentPlanningCenter = {}));
1942
- export var CreateConnectionRequestContentRenren;
1943
- (function (CreateConnectionRequestContentRenren) {
1944
- CreateConnectionRequestContentRenren.Strategy = {
1945
- Renren: "renren",
1946
- };
1947
- })(CreateConnectionRequestContentRenren || (CreateConnectionRequestContentRenren = {}));
1948
1904
  export var CreateConnectionRequestContentSaml;
1949
1905
  (function (CreateConnectionRequestContentSaml) {
1950
1906
  CreateConnectionRequestContentSaml.Strategy = {
@@ -2047,12 +2003,6 @@ export var CreateConnectionRequestContentYahoo;
2047
2003
  Yahoo: "yahoo",
2048
2004
  };
2049
2005
  })(CreateConnectionRequestContentYahoo || (CreateConnectionRequestContentYahoo = {}));
2050
- export var CreateConnectionRequestContentYammer;
2051
- (function (CreateConnectionRequestContentYammer) {
2052
- CreateConnectionRequestContentYammer.Strategy = {
2053
- Yammer: "yammer",
2054
- };
2055
- })(CreateConnectionRequestContentYammer || (CreateConnectionRequestContentYammer = {}));
2056
2006
  export var CreateConnectionRequestContentYandex;
2057
2007
  (function (CreateConnectionRequestContentYandex) {
2058
2008
  CreateConnectionRequestContentYandex.Strategy = {
@@ -2364,6 +2314,10 @@ export const EventStreamWebhookBasicAuthMethodEnum = {
2364
2314
  export const EventStreamWebhookBearerAuthMethodEnum = {
2365
2315
  Bearer: "bearer",
2366
2316
  };
2317
+ /** Type of authorization. */
2318
+ export const EventStreamWebhookCustomHeaderAuthMethodEnum = {
2319
+ CustomHeader: "custom_header",
2320
+ };
2367
2321
  export const EventStreamWebhookDestinationTypeEnum = {
2368
2322
  Webhook: "webhook",
2369
2323
  };
@@ -3358,7 +3312,6 @@ export const IdentityProviderEnum = {
3358
3312
  Apple: "apple",
3359
3313
  Dropbox: "dropbox",
3360
3314
  Bitbucket: "bitbucket",
3361
- Aol: "aol",
3362
3315
  Auth0Oidc: "auth0-oidc",
3363
3316
  Auth0: "auth0",
3364
3317
  Baidu: "baidu",
@@ -3373,7 +3326,6 @@ export const IdentityProviderEnum = {
3373
3326
  Exact: "exact",
3374
3327
  Facebook: "facebook",
3375
3328
  Fitbit: "fitbit",
3376
- Flickr: "flickr",
3377
3329
  Github: "github",
3378
3330
  GoogleApps: "google-apps",
3379
3331
  GoogleOauth2: "google-oauth2",
@@ -3381,7 +3333,6 @@ export const IdentityProviderEnum = {
3381
3333
  Ip: "ip",
3382
3334
  Line: "line",
3383
3335
  Linkedin: "linkedin",
3384
- Miicard: "miicard",
3385
3336
  Oauth1: "oauth1",
3386
3337
  Oauth2: "oauth2",
3387
3338
  Office365: "office365",
@@ -3391,7 +3342,6 @@ export const IdentityProviderEnum = {
3391
3342
  PaypalSandbox: "paypal-sandbox",
3392
3343
  Pingfederate: "pingfederate",
3393
3344
  Planningcenter: "planningcenter",
3394
- Renren: "renren",
3395
3345
  SalesforceCommunity: "salesforce-community",
3396
3346
  SalesforceSandbox: "salesforce-sandbox",
3397
3347
  Salesforce: "salesforce",
@@ -3401,8 +3351,6 @@ export const IdentityProviderEnum = {
3401
3351
  Shop: "shop",
3402
3352
  Sms: "sms",
3403
3353
  Soundcloud: "soundcloud",
3404
- ThecitySandbox: "thecity-sandbox",
3405
- Thecity: "thecity",
3406
3354
  Thirtysevensignals: "thirtysevensignals",
3407
3355
  Twitter: "twitter",
3408
3356
  Untappd: "untappd",
@@ -3412,7 +3360,6 @@ export const IdentityProviderEnum = {
3412
3360
  Windowslive: "windowslive",
3413
3361
  Wordpress: "wordpress",
3414
3362
  Yahoo: "yahoo",
3415
- Yammer: "yammer",
3416
3363
  Yandex: "yandex",
3417
3364
  };
3418
3365
  /** Identity provider name of the identity. Only `auth0` is supported */
@@ -3618,6 +3565,20 @@ export const NetworkAclRuleScopeEnum = {
3618
3565
  Tenant: "tenant",
3619
3566
  DynamicClientRegistration: "dynamic_client_registration",
3620
3567
  };
3568
+ /** Access level for the organization (e.g., "none", "full"). */
3569
+ export const OrganizationAccessLevelEnum = {
3570
+ None: "none",
3571
+ Readonly: "readonly",
3572
+ Limited: "limited",
3573
+ Full: "full",
3574
+ };
3575
+ /** Access level for the organization (e.g., "none", "full"). */
3576
+ export const OrganizationAccessLevelEnumWithNull = {
3577
+ None: "none",
3578
+ Readonly: "readonly",
3579
+ Limited: "limited",
3580
+ Full: "full",
3581
+ };
3621
3582
  /** The verification status of the discovery domain. */
3622
3583
  export const OrganizationDiscoveryDomainStatus = {
3623
3584
  Pending: "pending",
@@ -3641,6 +3602,37 @@ export const PartialGroupsEnum = {
3641
3602
  CustomizedConsent: "customized-consent",
3642
3603
  Passkeys: "passkeys",
3643
3604
  };
3605
+ export const PasswordCharacterTypeEnum = {
3606
+ Uppercase: "uppercase",
3607
+ Lowercase: "lowercase",
3608
+ Number: "number",
3609
+ Special: "special",
3610
+ };
3611
+ /** When enabled, passwords must contain at least 3 out of 4 character types. Can only be enabled when all 4 character types are specified */
3612
+ export const PasswordCharacterTypeRulePolicyEnum = {
3613
+ All: "all",
3614
+ ThreeOfFour: "three_of_four",
3615
+ };
3616
+ /** Default dictionary to use for password validation. Options: "en_10k" (10,000 common words) or "en_100k" (100,000 common words) */
3617
+ export const PasswordDefaultDictionariesEnum = {
3618
+ En10K: "en_10k",
3619
+ En100K: "en_100k",
3620
+ };
3621
+ /** Controls whether identical consecutive characters are allowed in passwords */
3622
+ export const PasswordIdenticalCharactersPolicyEnum = {
3623
+ Allow: "allow",
3624
+ Block: "block",
3625
+ };
3626
+ /** Controls whether passwords that exceed the maximum length are truncated or rejected */
3627
+ export const PasswordMaxLengthExceededPolicyEnum = {
3628
+ Truncate: "truncate",
3629
+ Error: "error",
3630
+ };
3631
+ /** Controls whether sequential characters are allowed in passwords */
3632
+ export const PasswordSequentialCharactersPolicyEnum = {
3633
+ Allow: "allow",
3634
+ Block: "block",
3635
+ };
3644
3636
  /** This depicts the type of notifications this provider can receive. */
3645
3637
  export const PhoneProviderChannelEnum = {
3646
3638
  Phone: "phone",
@@ -3798,6 +3790,7 @@ export const PromptLanguageEnum = {
3798
3790
  Zgh: "zgh",
3799
3791
  ZhCn: "zh-CN",
3800
3792
  ZhHk: "zh-HK",
3793
+ ZhMo: "zh-MO",
3801
3794
  ZhTw: "zh-TW",
3802
3795
  };
3803
3796
  /** Algorithm which will be used with the credential. Can be one of RS256, RS384, PS256. If not specified, RS256 will be used. Applies to `public_key` credential type. */
@@ -4123,12 +4116,18 @@ export const SupportedLocales = {
4123
4116
  Zgh: "zgh",
4124
4117
  ZhCn: "zh-CN",
4125
4118
  ZhHk: "zh-HK",
4119
+ ZhMo: "zh-MO",
4126
4120
  ZhTw: "zh-TW",
4127
4121
  };
4128
4122
  export const SuspiciousIpThrottlingShieldsEnum = {
4129
4123
  Block: "block",
4130
4124
  AdminNotification: "admin_notification",
4131
4125
  };
4126
+ /** Group synchronization configuration */
4127
+ export const SynchronizeGroupsEnum = {
4128
+ All: "all",
4129
+ Off: "off",
4130
+ };
4132
4131
  /** Character set used to generate a User Code. Can be `base20` or `digits`. */
4133
4132
  export const TenantSettingsDeviceFlowCharset = {
4134
4133
  Base20: "base20",
@@ -4220,6 +4219,7 @@ export const TenantSettingsSupportedLocalesEnum = {
4220
4219
  Zgh: "zgh",
4221
4220
  ZhCn: "zh-CN",
4222
4221
  ZhHk: "zh-HK",
4222
+ ZhMo: "zh-MO",
4223
4223
  ZhTw: "zh-TW",
4224
4224
  };
4225
4225
  /** The type of the profile, which controls how the profile will be executed when receiving a token exchange request. */
@@ -4272,7 +4272,6 @@ export const UserIdentityProviderEnum = {
4272
4272
  Apple: "apple",
4273
4273
  Dropbox: "dropbox",
4274
4274
  Bitbucket: "bitbucket",
4275
- Aol: "aol",
4276
4275
  Auth0Oidc: "auth0-oidc",
4277
4276
  Auth0: "auth0",
4278
4277
  Baidu: "baidu",
@@ -4287,7 +4286,6 @@ export const UserIdentityProviderEnum = {
4287
4286
  Exact: "exact",
4288
4287
  Facebook: "facebook",
4289
4288
  Fitbit: "fitbit",
4290
- Flickr: "flickr",
4291
4289
  Github: "github",
4292
4290
  GoogleApps: "google-apps",
4293
4291
  GoogleOauth2: "google-oauth2",
@@ -4295,7 +4293,6 @@ export const UserIdentityProviderEnum = {
4295
4293
  Ip: "ip",
4296
4294
  Line: "line",
4297
4295
  Linkedin: "linkedin",
4298
- Miicard: "miicard",
4299
4296
  Oauth1: "oauth1",
4300
4297
  Oauth2: "oauth2",
4301
4298
  Office365: "office365",
@@ -4305,7 +4302,6 @@ export const UserIdentityProviderEnum = {
4305
4302
  PaypalSandbox: "paypal-sandbox",
4306
4303
  Pingfederate: "pingfederate",
4307
4304
  Planningcenter: "planningcenter",
4308
- Renren: "renren",
4309
4305
  SalesforceCommunity: "salesforce-community",
4310
4306
  SalesforceSandbox: "salesforce-sandbox",
4311
4307
  Salesforce: "salesforce",
@@ -4315,8 +4311,6 @@ export const UserIdentityProviderEnum = {
4315
4311
  Shop: "shop",
4316
4312
  Sms: "sms",
4317
4313
  Soundcloud: "soundcloud",
4318
- ThecitySandbox: "thecity-sandbox",
4319
- Thecity: "thecity",
4320
4314
  Thirtysevensignals: "thirtysevensignals",
4321
4315
  Twitter: "twitter",
4322
4316
  Untappd: "untappd",
@@ -4326,7 +4320,6 @@ export const UserIdentityProviderEnum = {
4326
4320
  Windowslive: "windowslive",
4327
4321
  Wordpress: "wordpress",
4328
4322
  Yahoo: "yahoo",
4329
- Yammer: "yammer",
4330
4323
  Yandex: "yandex",
4331
4324
  };
4332
4325
  /** The multi-factor provider. Supported values 'duo' or 'google-authenticator' */
@@ -1,6 +1,6 @@
1
1
  export interface BasicAuth {
2
- username: string;
3
- password: string;
2
+ username?: string;
3
+ password?: string;
4
4
  }
5
5
  export declare const BasicAuth: {
6
6
  toAuthorizationHeader: (basicAuth: BasicAuth | undefined) => string | undefined;
@@ -2,10 +2,16 @@ import { base64Decode, base64Encode } from "../base64.mjs";
2
2
  const BASIC_AUTH_HEADER_PREFIX = /^Basic /i;
3
3
  export const BasicAuth = {
4
4
  toAuthorizationHeader: (basicAuth) => {
5
+ var _a, _b;
5
6
  if (basicAuth == null) {
6
7
  return undefined;
7
8
  }
8
- const token = base64Encode(`${basicAuth.username}:${basicAuth.password}`);
9
+ const username = (_a = basicAuth.username) !== null && _a !== void 0 ? _a : "";
10
+ const password = (_b = basicAuth.password) !== null && _b !== void 0 ? _b : "";
11
+ if (username === "" && password === "") {
12
+ return undefined;
13
+ }
14
+ const token = base64Encode(`${username}:${password}`);
9
15
  return `Basic ${token}`;
10
16
  },
11
17
  fromAuthorizationHeader: (header) => {
@@ -14,6 +14,6 @@ export type BinaryResponse = {
14
14
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
15
15
  * Some versions of the Fetch API may not support this method.
16
16
  */
17
- bytes?(): ReturnType<Response["bytes"]>;
17
+ bytes?(): Promise<Uint8Array>;
18
18
  };
19
19
  export declare function getBinaryResponse(response: Response): BinaryResponse;
@@ -38,10 +38,12 @@ export declare namespace Fetcher {
38
38
  }
39
39
  interface TimeoutError {
40
40
  reason: "timeout";
41
+ cause?: unknown;
41
42
  }
42
43
  interface UnknownError {
43
44
  reason: "unknown";
44
45
  errorMessage: string;
46
+ cause?: unknown;
45
47
  }
46
48
  }
47
49
  export declare function fetcherImpl<R = unknown>(args: Fetcher.Args): Promise<APIResponse<R, Fetcher.Error>>;
@@ -202,7 +202,7 @@ export function fetcherImpl(args) {
202
202
  }
203
203
  try {
204
204
  const response = yield requestWithRetries(() => __awaiter(this, void 0, void 0, function* () {
205
- return makeRequest(fetchFn, url, args.method, headers, requestBody, args.timeoutMs, args.abortSignal, args.withCredentials, args.duplex);
205
+ return makeRequest(fetchFn, url, args.method, headers, requestBody, args.timeoutMs, args.abortSignal, args.withCredentials, args.duplex, args.responseType === "streaming" || args.responseType === "sse");
206
206
  }), args.maxRetries);
207
207
  if (response.status >= 200 && response.status < 400) {
208
208
  if (logger.isDebug()) {
@@ -257,6 +257,7 @@ export function fetcherImpl(args) {
257
257
  error: {
258
258
  reason: "unknown",
259
259
  errorMessage: "The user aborted a request",
260
+ cause: error,
260
261
  },
261
262
  rawResponse: abortRawResponse,
262
263
  };
@@ -274,6 +275,7 @@ export function fetcherImpl(args) {
274
275
  ok: false,
275
276
  error: {
276
277
  reason: "timeout",
278
+ cause: error,
277
279
  },
278
280
  rawResponse: abortRawResponse,
279
281
  };
@@ -292,6 +294,7 @@ export function fetcherImpl(args) {
292
294
  error: {
293
295
  reason: "unknown",
294
296
  errorMessage: error.message,
297
+ cause: error,
295
298
  },
296
299
  rawResponse: unknownRawResponse,
297
300
  };
@@ -309,6 +312,7 @@ export function fetcherImpl(args) {
309
312
  error: {
310
313
  reason: "unknown",
311
314
  errorMessage: toJson(error),
315
+ cause: error,
312
316
  },
313
317
  rawResponse: unknownRawResponse,
314
318
  };
@@ -6,6 +6,8 @@ export type { Fetcher, FetchFunction } from "./Fetcher.mjs";
6
6
  export { fetcher } from "./Fetcher.mjs";
7
7
  export { getHeader } from "./getHeader.mjs";
8
8
  export { HttpResponsePromise } from "./HttpResponsePromise.mjs";
9
+ export type { PassthroughRequest } from "./makePassthroughRequest.mjs";
10
+ export { makePassthroughRequest } from "./makePassthroughRequest.mjs";
9
11
  export type { RawResponse, WithRawResponse } from "./RawResponse.mjs";
10
12
  export { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse.mjs";
11
13
  export { Supplier } from "./Supplier.mjs";
@@ -2,5 +2,6 @@ export { EndpointSupplier } from "./EndpointSupplier.mjs";
2
2
  export { fetcher } from "./Fetcher.mjs";
3
3
  export { getHeader } from "./getHeader.mjs";
4
4
  export { HttpResponsePromise } from "./HttpResponsePromise.mjs";
5
+ export { makePassthroughRequest } from "./makePassthroughRequest.mjs";
5
6
  export { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse.mjs";
6
7
  export { Supplier } from "./Supplier.mjs";
@@ -0,0 +1,49 @@
1
+ import { type LogConfig, type Logger } from "../logging/logger.mjs";
2
+ import { Supplier } from "./Supplier.mjs";
3
+ export declare namespace PassthroughRequest {
4
+ /**
5
+ * Per-request options that can override the SDK client defaults.
6
+ */
7
+ interface RequestOptions {
8
+ /** Override the default timeout for this request (in seconds). */
9
+ timeoutInSeconds?: number;
10
+ /** Override the default number of retries for this request. */
11
+ maxRetries?: number;
12
+ /** Additional headers to include in this request. */
13
+ headers?: Record<string, string>;
14
+ /** Abort signal for this request. */
15
+ abortSignal?: AbortSignal;
16
+ }
17
+ /**
18
+ * SDK client configuration used by the passthrough fetch method.
19
+ */
20
+ interface ClientOptions {
21
+ /** The base URL or environment for the client. */
22
+ environment?: Supplier<string>;
23
+ /** Override the base URL. */
24
+ baseUrl?: Supplier<string>;
25
+ /** Default headers to include in requests. */
26
+ headers?: Record<string, unknown>;
27
+ /** Default maximum time to wait for a response in seconds. */
28
+ timeoutInSeconds?: number;
29
+ /** Default number of times to retry the request. Defaults to 2. */
30
+ maxRetries?: number;
31
+ /** A custom fetch function. */
32
+ fetch?: typeof fetch;
33
+ /** Logging configuration. */
34
+ logging?: LogConfig | Logger;
35
+ /** A function that returns auth headers. */
36
+ getAuthHeaders?: () => Promise<Record<string, string>>;
37
+ }
38
+ }
39
+ /**
40
+ * Makes a passthrough HTTP request using the SDK's configuration (auth, retry, logging, etc.)
41
+ * while mimicking the standard `fetch` API.
42
+ *
43
+ * @param input - The URL, path, or Request object. If a relative path, it will be resolved against the configured base URL.
44
+ * @param init - Standard RequestInit options (method, headers, body, signal, etc.)
45
+ * @param clientOptions - SDK client options (auth, default headers, logging, etc.)
46
+ * @param requestOptions - Per-request overrides (timeout, retries, extra headers, abort signal).
47
+ * @returns A standard Response object.
48
+ */
49
+ export declare function makePassthroughRequest(input: Request | string | URL, init: RequestInit | undefined, clientOptions: PassthroughRequest.ClientOptions, requestOptions?: PassthroughRequest.RequestOptions): Promise<Response>;