auth0 6.1.0 → 6.2.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 (156) hide show
  1. package/dist/cjs/management/Client.d.ts +3 -0
  2. package/dist/cjs/management/Client.js +93 -88
  3. package/dist/cjs/management/api/requests/requests.d.ts +175 -3
  4. package/dist/cjs/management/api/resources/agents/client/Client.d.ts +100 -0
  5. package/dist/cjs/management/api/resources/agents/client/Client.js +383 -0
  6. package/dist/cjs/management/api/resources/agents/client/index.d.ts +1 -0
  7. package/dist/cjs/management/api/resources/agents/client/index.js +2 -0
  8. package/dist/cjs/management/api/resources/agents/exports.d.ts +2 -0
  9. package/dist/cjs/management/api/resources/agents/exports.js +21 -0
  10. package/dist/cjs/management/api/resources/agents/index.d.ts +1 -0
  11. package/dist/cjs/management/api/resources/agents/index.js +17 -0
  12. package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +1 -0
  13. package/dist/cjs/management/api/resources/clientGrants/client/Client.js +3 -1
  14. package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.d.ts +1 -0
  15. package/dist/cjs/management/api/resources/clientGrants/resources/organizations/client/Client.js +3 -1
  16. package/dist/cjs/management/api/resources/connections/client/Client.d.ts +1 -0
  17. package/dist/cjs/management/api/resources/connections/client/Client.js +3 -1
  18. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.ts +46 -1
  19. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +140 -2
  20. package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.d.ts +1 -2
  21. package/dist/cjs/management/api/resources/eventStreams/resources/deliveries/client/Client.js +66 -54
  22. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +1 -0
  23. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +3 -1
  24. package/dist/cjs/management/api/resources/groups/client/Client.d.ts +1 -0
  25. package/dist/cjs/management/api/resources/groups/client/Client.js +3 -1
  26. package/dist/cjs/management/api/resources/index.d.ts +1 -0
  27. package/dist/cjs/management/api/resources/index.js +2 -1
  28. package/dist/cjs/management/api/resources/organizations/client/Client.d.ts +6 -1
  29. package/dist/cjs/management/api/resources/organizations/client/Client.js +25 -16
  30. package/dist/cjs/management/api/resources/organizations/resources/clients/client/Client.d.ts +119 -0
  31. package/dist/cjs/management/api/resources/organizations/resources/clients/client/Client.js +422 -0
  32. package/dist/cjs/management/api/resources/organizations/resources/clients/client/index.d.ts +1 -0
  33. package/dist/cjs/management/api/resources/organizations/resources/clients/client/index.js +2 -0
  34. package/dist/cjs/management/api/resources/organizations/resources/clients/exports.d.ts +2 -0
  35. package/dist/cjs/management/api/resources/organizations/resources/clients/exports.js +21 -0
  36. package/dist/cjs/management/api/resources/organizations/resources/clients/index.d.ts +1 -0
  37. package/dist/cjs/management/api/resources/organizations/resources/clients/index.js +17 -0
  38. package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.d.ts +1 -0
  39. package/dist/cjs/management/api/resources/organizations/resources/enabledConnections/client/Client.js +3 -0
  40. package/dist/cjs/management/api/resources/organizations/resources/index.d.ts +1 -0
  41. package/dist/cjs/management/api/resources/organizations/resources/index.js +2 -1
  42. package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.d.ts +2 -1
  43. package/dist/cjs/management/api/resources/organizations/resources/members/client/Client.js +4 -2
  44. package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.ts +2 -0
  45. package/dist/cjs/management/api/resources/organizations/resources/members/resources/roles/client/Client.js +2 -0
  46. package/dist/cjs/management/api/resources/organizations/resources/roles/client/Client.d.ts +3 -0
  47. package/dist/cjs/management/api/resources/organizations/resources/roles/client/Client.js +7 -2
  48. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/Client.d.ts +34 -0
  49. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/Client.js +145 -0
  50. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/index.d.ts +1 -0
  51. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/client/index.js +2 -0
  52. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/exports.d.ts +2 -0
  53. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/exports.js +21 -0
  54. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/index.d.ts +1 -0
  55. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/groups/index.js +17 -0
  56. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/index.d.ts +1 -0
  57. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/index.js +2 -1
  58. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/members/client/Client.d.ts +5 -0
  59. package/dist/cjs/management/api/resources/organizations/resources/roles/resources/members/client/Client.js +5 -0
  60. package/dist/cjs/management/api/resources/roles/client/Client.d.ts +3 -1
  61. package/dist/cjs/management/api/resources/roles/client/Client.js +6 -2
  62. package/dist/cjs/management/api/resources/roles/resources/users/client/Client.d.ts +3 -0
  63. package/dist/cjs/management/api/resources/roles/resources/users/client/Client.js +5 -1
  64. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.d.ts +1 -0
  65. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +3 -1
  66. package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.d.ts +2 -0
  67. package/dist/cjs/management/api/resources/users/resources/permissions/client/Client.js +2 -0
  68. package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.d.ts +1 -0
  69. package/dist/cjs/management/api/resources/users/resources/refreshToken/client/Client.js +3 -1
  70. package/dist/cjs/management/api/resources/users/resources/roles/client/Client.d.ts +2 -0
  71. package/dist/cjs/management/api/resources/users/resources/roles/client/Client.js +2 -0
  72. package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.d.ts +1 -0
  73. package/dist/cjs/management/api/resources/users/resources/sessions/client/Client.js +3 -1
  74. package/dist/cjs/management/api/types/types.d.ts +255 -10
  75. package/dist/cjs/management/api/types/types.js +70 -22
  76. package/dist/cjs/management/version.d.ts +1 -1
  77. package/dist/cjs/management/version.js +1 -1
  78. package/dist/esm/management/Client.d.mts +3 -0
  79. package/dist/esm/management/Client.mjs +5 -0
  80. package/dist/esm/management/api/requests/requests.d.mts +175 -3
  81. package/dist/esm/management/api/resources/agents/client/Client.d.mts +100 -0
  82. package/dist/esm/management/api/resources/agents/client/Client.mjs +346 -0
  83. package/dist/esm/management/api/resources/agents/client/index.d.mts +1 -0
  84. package/dist/esm/management/api/resources/agents/client/index.mjs +1 -0
  85. package/dist/esm/management/api/resources/agents/exports.d.mts +2 -0
  86. package/dist/esm/management/api/resources/agents/exports.mjs +3 -0
  87. package/dist/esm/management/api/resources/agents/index.d.mts +1 -0
  88. package/dist/esm/management/api/resources/agents/index.mjs +1 -0
  89. package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +1 -0
  90. package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +3 -1
  91. package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.d.mts +1 -0
  92. package/dist/esm/management/api/resources/clientGrants/resources/organizations/client/Client.mjs +3 -1
  93. package/dist/esm/management/api/resources/connections/client/Client.d.mts +1 -0
  94. package/dist/esm/management/api/resources/connections/client/Client.mjs +3 -1
  95. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.mts +46 -1
  96. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +140 -2
  97. package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.d.mts +1 -2
  98. package/dist/esm/management/api/resources/eventStreams/resources/deliveries/client/Client.mjs +66 -54
  99. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +1 -0
  100. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +3 -1
  101. package/dist/esm/management/api/resources/groups/client/Client.d.mts +1 -0
  102. package/dist/esm/management/api/resources/groups/client/Client.mjs +3 -1
  103. package/dist/esm/management/api/resources/index.d.mts +1 -0
  104. package/dist/esm/management/api/resources/index.mjs +1 -0
  105. package/dist/esm/management/api/resources/organizations/client/Client.d.mts +6 -1
  106. package/dist/esm/management/api/resources/organizations/client/Client.mjs +11 -2
  107. package/dist/esm/management/api/resources/organizations/resources/clients/client/Client.d.mts +119 -0
  108. package/dist/esm/management/api/resources/organizations/resources/clients/client/Client.mjs +385 -0
  109. package/dist/esm/management/api/resources/organizations/resources/clients/client/index.d.mts +1 -0
  110. package/dist/esm/management/api/resources/organizations/resources/clients/client/index.mjs +1 -0
  111. package/dist/esm/management/api/resources/organizations/resources/clients/exports.d.mts +2 -0
  112. package/dist/esm/management/api/resources/organizations/resources/clients/exports.mjs +3 -0
  113. package/dist/esm/management/api/resources/organizations/resources/clients/index.d.mts +1 -0
  114. package/dist/esm/management/api/resources/organizations/resources/clients/index.mjs +1 -0
  115. package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.d.mts +1 -0
  116. package/dist/esm/management/api/resources/organizations/resources/enabledConnections/client/Client.mjs +3 -0
  117. package/dist/esm/management/api/resources/organizations/resources/index.d.mts +1 -0
  118. package/dist/esm/management/api/resources/organizations/resources/index.mjs +1 -0
  119. package/dist/esm/management/api/resources/organizations/resources/members/client/Client.d.mts +2 -1
  120. package/dist/esm/management/api/resources/organizations/resources/members/client/Client.mjs +4 -2
  121. package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.d.mts +2 -0
  122. package/dist/esm/management/api/resources/organizations/resources/members/resources/roles/client/Client.mjs +2 -0
  123. package/dist/esm/management/api/resources/organizations/resources/roles/client/Client.d.mts +3 -0
  124. package/dist/esm/management/api/resources/organizations/resources/roles/client/Client.mjs +5 -0
  125. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/Client.d.mts +34 -0
  126. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/Client.mjs +108 -0
  127. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/index.d.mts +1 -0
  128. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/client/index.mjs +1 -0
  129. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/exports.d.mts +2 -0
  130. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/exports.mjs +3 -0
  131. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/index.d.mts +1 -0
  132. package/dist/esm/management/api/resources/organizations/resources/roles/resources/groups/index.mjs +1 -0
  133. package/dist/esm/management/api/resources/organizations/resources/roles/resources/index.d.mts +1 -0
  134. package/dist/esm/management/api/resources/organizations/resources/roles/resources/index.mjs +1 -0
  135. package/dist/esm/management/api/resources/organizations/resources/roles/resources/members/client/Client.d.mts +5 -0
  136. package/dist/esm/management/api/resources/organizations/resources/roles/resources/members/client/Client.mjs +5 -0
  137. package/dist/esm/management/api/resources/roles/client/Client.d.mts +3 -1
  138. package/dist/esm/management/api/resources/roles/client/Client.mjs +6 -2
  139. package/dist/esm/management/api/resources/roles/resources/users/client/Client.d.mts +3 -0
  140. package/dist/esm/management/api/resources/roles/resources/users/client/Client.mjs +5 -1
  141. package/dist/esm/management/api/resources/users/resources/groups/client/Client.d.mts +1 -0
  142. package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +3 -1
  143. package/dist/esm/management/api/resources/users/resources/permissions/client/Client.d.mts +2 -0
  144. package/dist/esm/management/api/resources/users/resources/permissions/client/Client.mjs +2 -0
  145. package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.d.mts +1 -0
  146. package/dist/esm/management/api/resources/users/resources/refreshToken/client/Client.mjs +3 -1
  147. package/dist/esm/management/api/resources/users/resources/roles/client/Client.d.mts +2 -0
  148. package/dist/esm/management/api/resources/users/resources/roles/client/Client.mjs +2 -0
  149. package/dist/esm/management/api/resources/users/resources/sessions/client/Client.d.mts +1 -0
  150. package/dist/esm/management/api/resources/users/resources/sessions/client/Client.mjs +3 -1
  151. package/dist/esm/management/api/types/types.d.mts +255 -10
  152. package/dist/esm/management/api/types/types.mjs +54 -6
  153. package/dist/esm/management/version.d.mts +1 -1
  154. package/dist/esm/management/version.mjs +1 -1
  155. package/package.json +45 -12
  156. package/reference.md +1463 -406
@@ -444,17 +444,19 @@ export class DirectoryProvisioningClient {
444
444
  * @example
445
445
  * await client.connections.directoryProvisioning.listSynchronizedGroups("id", {
446
446
  * from: "from",
447
- * take: 1
447
+ * take: 1,
448
+ * q: "q"
448
449
  * })
449
450
  */
450
451
  listSynchronizedGroups(id_1) {
451
452
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
452
453
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
453
454
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
454
- const { from: from_, take = 50 } = request;
455
+ const { from: from_, take = 50, q } = request;
455
456
  const _queryParams = {
456
457
  from: from_,
457
458
  take,
459
+ q,
458
460
  };
459
461
  const _authRequest = yield this._options.authProvider.getAuthRequest();
460
462
  let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -513,6 +515,74 @@ export class DirectoryProvisioningClient {
513
515
  });
514
516
  });
515
517
  }
518
+ /**
519
+ * Add synchronized group selections to a directory provisioning configuration.
520
+ *
521
+ * @param {string} id - The id of the connection to add synchronized groups to
522
+ * @param {Management.AddSynchronizedGroupsRequestContent} request
523
+ * @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
524
+ *
525
+ * @throws {@link Management.BadRequestError}
526
+ * @throws {@link Management.UnauthorizedError}
527
+ * @throws {@link Management.ForbiddenError}
528
+ * @throws {@link Management.NotFoundError}
529
+ * @throws {@link Management.TooManyRequestsError}
530
+ *
531
+ * @example
532
+ * await client.connections.directoryProvisioning.addSynchronizedGroupSelections("id", {
533
+ * groups: [{
534
+ * id: "id"
535
+ * }]
536
+ * })
537
+ */
538
+ addSynchronizedGroupSelections(id, request, requestOptions) {
539
+ return core.HttpResponsePromise.fromPromise(this.__addSynchronizedGroupSelections(id, request, requestOptions));
540
+ }
541
+ __addSynchronizedGroupSelections(id, request, requestOptions) {
542
+ return __awaiter(this, void 0, void 0, function* () {
543
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
544
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
545
+ let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
546
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
547
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `connections/${core.url.encodePathParam(id)}/directory-provisioning/synchronized-groups`),
548
+ method: "POST",
549
+ headers: _headers,
550
+ contentType: "application/json",
551
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
552
+ requestType: "json",
553
+ body: request,
554
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
555
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
556
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
557
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
558
+ logging: this._options.logging,
559
+ });
560
+ if (_response.ok) {
561
+ return { data: undefined, rawResponse: _response.rawResponse };
562
+ }
563
+ if (_response.error.reason === "status-code") {
564
+ switch (_response.error.statusCode) {
565
+ case 400:
566
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
567
+ case 401:
568
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
569
+ case 403:
570
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
571
+ case 404:
572
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
573
+ case 429:
574
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
575
+ default:
576
+ throw new errors.ManagementError({
577
+ statusCode: _response.error.statusCode,
578
+ body: _response.error.body,
579
+ rawResponse: _response.rawResponse,
580
+ });
581
+ }
582
+ }
583
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/connections/{id}/directory-provisioning/synchronized-groups");
584
+ });
585
+ }
516
586
  /**
517
587
  * Create or replace the selected groups for a connection directory provisioning configuration.
518
588
  *
@@ -584,4 +654,72 @@ export class DirectoryProvisioningClient {
584
654
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/connections/{id}/directory-provisioning/synchronized-groups");
585
655
  });
586
656
  }
657
+ /**
658
+ * Delete synchronized group selections for a directory provisioning configuration
659
+ *
660
+ * @param {string} id - The id of the connection to delete synchronized group selections for
661
+ * @param {Management.DeleteSynchronizedGroupsRequestContent} request
662
+ * @param {DirectoryProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
663
+ *
664
+ * @throws {@link Management.BadRequestError}
665
+ * @throws {@link Management.UnauthorizedError}
666
+ * @throws {@link Management.ForbiddenError}
667
+ * @throws {@link Management.NotFoundError}
668
+ * @throws {@link Management.TooManyRequestsError}
669
+ *
670
+ * @example
671
+ * await client.connections.directoryProvisioning.deleteSynchronizedGroupSelections("id", {
672
+ * groups: [{
673
+ * id: "id"
674
+ * }]
675
+ * })
676
+ */
677
+ deleteSynchronizedGroupSelections(id, request, requestOptions) {
678
+ return core.HttpResponsePromise.fromPromise(this.__deleteSynchronizedGroupSelections(id, request, requestOptions));
679
+ }
680
+ __deleteSynchronizedGroupSelections(id, request, requestOptions) {
681
+ return __awaiter(this, void 0, void 0, function* () {
682
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
683
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
684
+ let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
685
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
686
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `connections/${core.url.encodePathParam(id)}/directory-provisioning/synchronized-groups`),
687
+ method: "DELETE",
688
+ headers: _headers,
689
+ contentType: "application/json",
690
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
691
+ requestType: "json",
692
+ body: request,
693
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
694
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
695
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
696
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
697
+ logging: this._options.logging,
698
+ });
699
+ if (_response.ok) {
700
+ return { data: undefined, rawResponse: _response.rawResponse };
701
+ }
702
+ if (_response.error.reason === "status-code") {
703
+ switch (_response.error.statusCode) {
704
+ case 400:
705
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
706
+ case 401:
707
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
708
+ case 403:
709
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
710
+ case 404:
711
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
712
+ case 429:
713
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
714
+ default:
715
+ throw new errors.ManagementError({
716
+ statusCode: _response.error.statusCode,
717
+ body: _response.error.body,
718
+ rawResponse: _response.rawResponse,
719
+ });
720
+ }
721
+ }
722
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/connections/{id}/directory-provisioning/synchronized-groups");
723
+ });
724
+ }
587
725
  }
@@ -31,8 +31,7 @@ export declare class DeliveriesClient {
31
31
  * take: 1
32
32
  * })
33
33
  */
34
- list(id: string, request?: Management.ListEventStreamDeliveriesRequestParameters, requestOptions?: DeliveriesClient.RequestOptions): core.HttpResponsePromise<Management.EventStreamDelivery[]>;
35
- private __list;
34
+ list(id: string, request?: Management.ListEventStreamDeliveriesRequestParameters, requestOptions?: DeliveriesClient.RequestOptions): Promise<core.Page<Management.EventStreamDelivery, Management.ListEventStreamDeliveriesResponseContent>>;
36
35
  /**
37
36
  * @param {string} id - Unique identifier for the event stream.
38
37
  * @param {string} event_id - Unique identifier for the event
@@ -40,62 +40,74 @@ export class DeliveriesClient {
40
40
  * take: 1
41
41
  * })
42
42
  */
43
- list(id, request = {}, requestOptions) {
44
- return core.HttpResponsePromise.fromPromise(this.__list(id, request, requestOptions));
45
- }
46
- __list(id_1) {
43
+ list(id_1) {
47
44
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
48
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
49
- const { statuses, event_types: eventTypes, date_from: dateFrom, date_to: dateTo, from: from_, take = 50, } = request;
50
- const _queryParams = {
51
- statuses,
52
- event_types: eventTypes,
53
- date_from: dateFrom,
54
- date_to: dateTo,
55
- from: from_,
56
- take,
57
- };
58
- const _authRequest = yield this._options.authProvider.getAuthRequest();
59
- let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
60
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
61
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `event-streams/${core.url.encodePathParam(id)}/deliveries`),
62
- method: "GET",
63
- headers: _headers,
64
- queryString: core.url
65
- .queryBuilder()
66
- .addMany(_queryParams)
67
- .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
68
- .build(),
69
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
70
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
71
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
72
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
73
- logging: this._options.logging,
74
- });
75
- if (_response.ok) {
76
- return { data: _response.body, rawResponse: _response.rawResponse };
77
- }
78
- if (_response.error.reason === "status-code") {
79
- switch (_response.error.statusCode) {
80
- case 400:
81
- throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
82
- case 401:
83
- throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
84
- case 403:
85
- throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
86
- case 404:
87
- throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
88
- case 429:
89
- throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
90
- default:
91
- throw new errors.ManagementError({
92
- statusCode: _response.error.statusCode,
93
- body: _response.error.body,
94
- rawResponse: _response.rawResponse,
95
- });
45
+ const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
46
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
47
+ const { statuses, event_types: eventTypes, date_from: dateFrom, date_to: dateTo, from: from_, take = 50, } = request;
48
+ const _queryParams = {
49
+ statuses,
50
+ event_types: eventTypes,
51
+ date_from: dateFrom,
52
+ date_to: dateTo,
53
+ from: from_,
54
+ take,
55
+ };
56
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
57
+ let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
58
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
59
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, `event-streams/${core.url.encodePathParam(id)}/deliveries`),
60
+ method: "GET",
61
+ headers: _headers,
62
+ queryString: core.url
63
+ .queryBuilder()
64
+ .addMany(_queryParams)
65
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
66
+ .build(),
67
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
68
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
69
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
70
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
71
+ logging: this._options.logging,
72
+ });
73
+ if (_response.ok) {
74
+ return {
75
+ data: _response.body,
76
+ rawResponse: _response.rawResponse,
77
+ };
96
78
  }
97
- }
98
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/event-streams/{id}/deliveries");
79
+ if (_response.error.reason === "status-code") {
80
+ switch (_response.error.statusCode) {
81
+ case 400:
82
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
83
+ case 401:
84
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
85
+ case 403:
86
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
87
+ case 404:
88
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
89
+ case 429:
90
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
91
+ default:
92
+ throw new errors.ManagementError({
93
+ statusCode: _response.error.statusCode,
94
+ body: _response.error.body,
95
+ rawResponse: _response.rawResponse,
96
+ });
97
+ }
98
+ }
99
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/event-streams/{id}/deliveries");
100
+ }));
101
+ const dataWithRawResponse = yield list(request).withRawResponse();
102
+ return new core.Page({
103
+ response: dataWithRawResponse.data,
104
+ rawResponse: dataWithRawResponse.rawResponse,
105
+ hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.next) != null && !(typeof (response === null || response === void 0 ? void 0 : response.next) === "string" && (response === null || response === void 0 ? void 0 : response.next) === ""),
106
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.deliveries) !== null && _a !== void 0 ? _a : []; },
107
+ loadPage: (response) => {
108
+ return list(core.setObjectProperty(request, "from", response === null || response === void 0 ? void 0 : response.next));
109
+ },
110
+ });
99
111
  });
100
112
  }
101
113
  /**
@@ -22,6 +22,7 @@ export declare class ExecutionsClient {
22
22
  *
23
23
  * @example
24
24
  * await client.flows.executions.list("flow_id", {
25
+ * include_totals: true,
25
26
  * from: "from",
26
27
  * take: 1
27
28
  * })
@@ -31,6 +31,7 @@ export class ExecutionsClient {
31
31
  *
32
32
  * @example
33
33
  * await client.flows.executions.list("flow_id", {
34
+ * include_totals: true,
34
35
  * from: "from",
35
36
  * take: 1
36
37
  * })
@@ -39,8 +40,9 @@ export class ExecutionsClient {
39
40
  return __awaiter(this, arguments, void 0, function* (flow_id, request = {}, requestOptions) {
40
41
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
41
42
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
42
- const { from: from_, take = 50 } = request;
43
+ const { include_totals: includeTotals = true, from: from_, take = 50 } = request;
43
44
  const _queryParams = {
45
+ include_totals: includeTotals,
44
46
  from: from_,
45
47
  take,
46
48
  };
@@ -35,6 +35,7 @@ export declare class GroupsClient {
35
35
  * search: "search",
36
36
  * fields: "fields",
37
37
  * include_fields: true,
38
+ * include_totals: true,
38
39
  * from: "from",
39
40
  * take: 1
40
41
  * })
@@ -48,6 +48,7 @@ export class GroupsClient {
48
48
  * search: "search",
49
49
  * fields: "fields",
50
50
  * include_fields: true,
51
+ * include_totals: true,
51
52
  * from: "from",
52
53
  * take: 1
53
54
  * })
@@ -56,7 +57,7 @@ export class GroupsClient {
56
57
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
57
58
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
58
59
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
59
- const { connection_id: connectionId, name, external_id: externalId, search, fields, include_fields: includeFields, from: from_, take = 50, } = request;
60
+ const { connection_id: connectionId, name, external_id: externalId, search, fields, include_fields: includeFields, include_totals: includeTotals = true, from: from_, take = 50, } = request;
60
61
  const _queryParams = {
61
62
  connection_id: connectionId,
62
63
  name,
@@ -64,6 +65,7 @@ export class GroupsClient {
64
65
  search,
65
66
  fields,
66
67
  include_fields: includeFields,
68
+ include_totals: includeTotals,
67
69
  from: from_,
68
70
  take,
69
71
  };
@@ -1,4 +1,5 @@
1
1
  export * as actions from "./actions/index.mjs";
2
+ export * as agents from "./agents/index.mjs";
2
3
  export * as anomaly from "./anomaly/index.mjs";
3
4
  export * as attackProtection from "./attackProtection/index.mjs";
4
5
  export * as branding from "./branding/index.mjs";
@@ -1,4 +1,5 @@
1
1
  export * as actions from "./actions/index.mjs";
2
+ export * as agents from "./agents/index.mjs";
2
3
  export * as anomaly from "./anomaly/index.mjs";
3
4
  export * as attackProtection from "./attackProtection/index.mjs";
4
5
  export * as branding from "./branding/index.mjs";
@@ -3,6 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
3
3
  import * as core from "../../../../core/index.mjs";
4
4
  import * as Management from "../../../index.mjs";
5
5
  import { ClientGrantsClient } from "../resources/clientGrants/client/Client.mjs";
6
+ import { ClientsClient } from "../resources/clients/client/Client.mjs";
6
7
  import { ConnectionsClient } from "../resources/connections/client/Client.mjs";
7
8
  import { DiscoveryDomainsClient } from "../resources/discoveryDomains/client/Client.mjs";
8
9
  import { EnabledConnectionsClient } from "../resources/enabledConnections/client/Client.mjs";
@@ -18,6 +19,7 @@ export declare namespace OrganizationsClient {
18
19
  export declare class OrganizationsClient {
19
20
  protected readonly _options: NormalizedClientOptionsWithAuth<OrganizationsClient.Options>;
20
21
  protected _clientGrants: ClientGrantsClient | undefined;
22
+ protected _clients: ClientsClient | undefined;
21
23
  protected _connections: ConnectionsClient | undefined;
22
24
  protected _discoveryDomains: DiscoveryDomainsClient | undefined;
23
25
  protected _enabledConnections: EnabledConnectionsClient | undefined;
@@ -27,6 +29,7 @@ export declare class OrganizationsClient {
27
29
  protected _roles: RolesClient | undefined;
28
30
  constructor(options: OrganizationsClient.Options);
29
31
  get clientGrants(): ClientGrantsClient;
32
+ get clients(): ClientsClient;
30
33
  get connections(): ConnectionsClient;
31
34
  get discoveryDomains(): DiscoveryDomainsClient;
32
35
  get enabledConnections(): EnabledConnectionsClient;
@@ -63,9 +66,11 @@ export declare class OrganizationsClient {
63
66
  *
64
67
  * @example
65
68
  * await client.organizations.list({
69
+ * include_totals: true,
66
70
  * from: "from",
67
71
  * take: 1,
68
- * sort: "sort"
72
+ * sort: "sort",
73
+ * include_client_association_for: "include_client_association_for"
69
74
  * })
70
75
  */
71
76
  list(request?: Management.ListOrganizationsRequestParameters, requestOptions?: OrganizationsClient.RequestOptions): Promise<core.Page<Management.Organization, Management.ListOrganizationsPaginatedResponseContent>>;
@@ -16,6 +16,7 @@ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCode
16
16
  import * as errors from "../../../../errors/index.mjs";
17
17
  import * as Management from "../../../index.mjs";
18
18
  import { ClientGrantsClient } from "../resources/clientGrants/client/Client.mjs";
19
+ import { ClientsClient } from "../resources/clients/client/Client.mjs";
19
20
  import { ConnectionsClient } from "../resources/connections/client/Client.mjs";
20
21
  import { DiscoveryDomainsClient } from "../resources/discoveryDomains/client/Client.mjs";
21
22
  import { EnabledConnectionsClient } from "../resources/enabledConnections/client/Client.mjs";
@@ -31,6 +32,10 @@ export class OrganizationsClient {
31
32
  var _a;
32
33
  return ((_a = this._clientGrants) !== null && _a !== void 0 ? _a : (this._clientGrants = new ClientGrantsClient(this._options)));
33
34
  }
35
+ get clients() {
36
+ var _a;
37
+ return ((_a = this._clients) !== null && _a !== void 0 ? _a : (this._clients = new ClientsClient(this._options)));
38
+ }
34
39
  get connections() {
35
40
  var _a;
36
41
  return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new ConnectionsClient(this._options)));
@@ -88,20 +93,24 @@ export class OrganizationsClient {
88
93
  *
89
94
  * @example
90
95
  * await client.organizations.list({
96
+ * include_totals: true,
91
97
  * from: "from",
92
98
  * take: 1,
93
- * sort: "sort"
99
+ * sort: "sort",
100
+ * include_client_association_for: "include_client_association_for"
94
101
  * })
95
102
  */
96
103
  list() {
97
104
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
98
105
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
99
106
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
100
- const { from: from_, take = 50, sort } = request;
107
+ const { include_totals: includeTotals = true, from: from_, take = 50, sort, include_client_association_for: includeClientAssociationFor, } = request;
101
108
  const _queryParams = {
109
+ include_totals: includeTotals,
102
110
  from: from_,
103
111
  take,
104
112
  sort,
113
+ include_client_association_for: includeClientAssociationFor,
105
114
  };
106
115
  const _authRequest = yield this._options.authProvider.getAuthRequest();
107
116
  let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -0,0 +1,119 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
+ import * as core from "../../../../../../core/index.mjs";
4
+ import * as Management from "../../../../../index.mjs";
5
+ export declare namespace ClientsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ClientsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ClientsClient.Options>;
12
+ constructor(options: ClientsClient.Options);
13
+ /**
14
+ * List all clients associated with an organization, using checkpoint pagination.
15
+ * <ul>
16
+ * <li>
17
+ * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.
18
+ * </li>
19
+ * </ul>
20
+ *
21
+ * @param {string} id - ID of the organization.
22
+ * @param {Management.ListOrganizationClientsRequestParameters} request
23
+ * @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
24
+ *
25
+ * @throws {@link Management.BadRequestError}
26
+ * @throws {@link Management.UnauthorizedError}
27
+ * @throws {@link Management.ForbiddenError}
28
+ * @throws {@link Management.NotFoundError}
29
+ * @throws {@link Management.TooManyRequestsError}
30
+ *
31
+ * @example
32
+ * await client.organizations.clients.list("id", {
33
+ * from: "from",
34
+ * take: 1
35
+ * })
36
+ */
37
+ list(id: string, request?: Management.ListOrganizationClientsRequestParameters, requestOptions?: ClientsClient.RequestOptions): Promise<core.Page<Management.OrganizationClient, Management.ListOrganizationClientsResponseContent>>;
38
+ /**
39
+ * Associate one or more clients with an organization.
40
+ *
41
+ * @param {string} id - ID of the organization.
42
+ * @param {Management.CreateOrganizationClientsRequestContent} request
43
+ * @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
44
+ *
45
+ * @throws {@link Management.BadRequestError}
46
+ * @throws {@link Management.UnauthorizedError}
47
+ * @throws {@link Management.ForbiddenError}
48
+ * @throws {@link Management.NotFoundError}
49
+ * @throws {@link Management.ConflictError}
50
+ * @throws {@link Management.TooManyRequestsError}
51
+ *
52
+ * @example
53
+ * await client.organizations.clients.create("id", {
54
+ * clients: [{
55
+ * client_id: "client_id",
56
+ * use_for_member_access: true
57
+ * }]
58
+ * })
59
+ */
60
+ create(id: string, request: Management.CreateOrganizationClientsRequestContent, requestOptions?: ClientsClient.RequestOptions): core.HttpResponsePromise<Management.CreateOrganizationClientsResponseContent>;
61
+ private __create;
62
+ /**
63
+ * Remove one or more client associations from an organization.
64
+ *
65
+ * @param {string} id - ID of the organization.
66
+ * @param {Management.DeleteOrganizationClientsRequestContent} request
67
+ * @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
69
+ * @throws {@link Management.BadRequestError}
70
+ * @throws {@link Management.UnauthorizedError}
71
+ * @throws {@link Management.ForbiddenError}
72
+ * @throws {@link Management.NotFoundError}
73
+ * @throws {@link Management.TooManyRequestsError}
74
+ *
75
+ * @example
76
+ * await client.organizations.clients.delete("id", {
77
+ * clients: ["clients"]
78
+ * })
79
+ */
80
+ delete(id: string, request: Management.DeleteOrganizationClientsRequestContent, requestOptions?: ClientsClient.RequestOptions): core.HttpResponsePromise<void>;
81
+ private __delete;
82
+ /**
83
+ * Get a specific client association for an organization.
84
+ *
85
+ * @param {string} id - ID of the organization.
86
+ * @param {string} client_id - ID of the client association to retrieve.
87
+ * @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
88
+ *
89
+ * @throws {@link Management.BadRequestError}
90
+ * @throws {@link Management.UnauthorizedError}
91
+ * @throws {@link Management.ForbiddenError}
92
+ * @throws {@link Management.NotFoundError}
93
+ * @throws {@link Management.TooManyRequestsError}
94
+ *
95
+ * @example
96
+ * await client.organizations.clients.get("id", "client_id")
97
+ */
98
+ get(id: string, client_id: string, requestOptions?: ClientsClient.RequestOptions): core.HttpResponsePromise<Management.GetOrganizationClientResponseContent>;
99
+ private __get;
100
+ /**
101
+ * Update an organization client association.
102
+ *
103
+ * @param {string} id - ID of the organization.
104
+ * @param {string} client_id - ID of the client association to update.
105
+ * @param {Management.UpdateOrganizationClientRequestContent} request
106
+ * @param {ClientsClient.RequestOptions} requestOptions - Request-specific configuration.
107
+ *
108
+ * @throws {@link Management.BadRequestError}
109
+ * @throws {@link Management.UnauthorizedError}
110
+ * @throws {@link Management.ForbiddenError}
111
+ * @throws {@link Management.NotFoundError}
112
+ * @throws {@link Management.TooManyRequestsError}
113
+ *
114
+ * @example
115
+ * await client.organizations.clients.update("id", "client_id")
116
+ */
117
+ update(id: string, client_id: string, request?: Management.UpdateOrganizationClientRequestContent, requestOptions?: ClientsClient.RequestOptions): core.HttpResponsePromise<Management.UpdateOrganizationClientResponseContent>;
118
+ private __update;
119
+ }