auth0 5.2.0 → 5.3.1

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 (165) hide show
  1. package/LICENSE +1 -1
  2. package/dist/cjs/management/Client.d.ts +3 -0
  3. package/dist/cjs/management/Client.js +59 -54
  4. package/dist/cjs/management/api/errors/PreconditionFailedError.d.ts +5 -0
  5. package/dist/cjs/management/api/errors/PreconditionFailedError.js +54 -0
  6. package/dist/cjs/management/api/errors/index.d.ts +1 -0
  7. package/dist/cjs/management/api/errors/index.js +1 -0
  8. package/dist/cjs/management/api/requests/requests.d.ts +212 -134
  9. package/dist/cjs/management/api/requests/requests.js +0 -108
  10. package/dist/cjs/management/api/resources/actions/client/Client.d.ts +3 -0
  11. package/dist/cjs/management/api/resources/actions/client/Client.js +9 -4
  12. package/dist/cjs/management/api/resources/actions/resources/index.d.ts +1 -0
  13. package/dist/cjs/management/api/resources/actions/resources/index.js +2 -1
  14. package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.d.ts +149 -0
  15. package/dist/cjs/management/api/resources/actions/resources/modules/client/Client.js +569 -0
  16. package/dist/cjs/management/api/resources/actions/resources/modules/client/index.d.ts +1 -0
  17. package/dist/cjs/management/api/resources/actions/resources/modules/client/index.js +2 -0
  18. package/dist/cjs/management/api/resources/actions/resources/modules/index.d.ts +2 -0
  19. package/dist/cjs/management/api/resources/actions/resources/modules/index.js +18 -0
  20. package/dist/cjs/management/api/resources/actions/resources/modules/resources/index.d.ts +1 -0
  21. package/dist/cjs/management/api/resources/actions/resources/modules/resources/index.js +37 -0
  22. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.d.ts +69 -0
  23. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/Client.js +275 -0
  24. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/index.d.ts +1 -0
  25. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/client/index.js +2 -0
  26. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/index.d.ts +1 -0
  27. package/dist/cjs/management/api/resources/actions/resources/modules/resources/versions/index.js +17 -0
  28. package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.d.ts +2 -2
  29. package/dist/cjs/management/api/resources/actions/resources/versions/client/Client.js +1 -1
  30. package/dist/cjs/management/api/resources/clientGrants/client/Client.d.ts +17 -0
  31. package/dist/cjs/management/api/resources/clientGrants/client/Client.js +61 -0
  32. package/dist/cjs/management/api/resources/connections/client/Client.d.ts +7 -3
  33. package/dist/cjs/management/api/resources/connections/client/Client.js +9 -5
  34. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.ts +18 -0
  35. package/dist/cjs/management/api/resources/connections/resources/directoryProvisioning/client/Client.js +80 -0
  36. package/dist/cjs/management/api/resources/deviceCredentials/client/Client.d.ts +1 -0
  37. package/dist/cjs/management/api/resources/deviceCredentials/client/Client.js +2 -1
  38. package/dist/cjs/management/api/resources/eventStreams/client/Client.d.ts +1 -2
  39. package/dist/cjs/management/api/resources/eventStreams/client/Client.js +59 -50
  40. package/dist/cjs/management/api/resources/flows/client/Client.d.ts +2 -2
  41. package/dist/cjs/management/api/resources/flows/client/Client.js +1 -1
  42. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +4 -4
  43. package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +2 -2
  44. package/dist/cjs/management/api/resources/groups/client/Client.d.ts +56 -0
  45. package/dist/cjs/management/api/resources/groups/client/Client.js +224 -0
  46. package/dist/cjs/management/api/resources/groups/client/index.d.ts +1 -0
  47. package/dist/cjs/management/api/resources/groups/client/index.js +2 -0
  48. package/dist/cjs/management/api/resources/groups/index.d.ts +2 -0
  49. package/dist/cjs/management/api/resources/groups/index.js +18 -0
  50. package/dist/cjs/management/api/resources/groups/resources/index.d.ts +1 -0
  51. package/dist/cjs/management/api/resources/groups/resources/index.js +37 -0
  52. package/dist/cjs/management/api/resources/groups/resources/members/client/Client.d.ts +34 -0
  53. package/dist/cjs/management/api/resources/groups/resources/members/client/Client.js +148 -0
  54. package/dist/cjs/management/api/resources/groups/resources/members/client/index.d.ts +1 -0
  55. package/dist/cjs/management/api/resources/groups/resources/members/client/index.js +2 -0
  56. package/dist/cjs/management/api/resources/groups/resources/members/index.d.ts +1 -0
  57. package/dist/cjs/management/api/resources/groups/resources/members/index.js +17 -0
  58. package/dist/cjs/management/api/resources/index.d.ts +1 -0
  59. package/dist/cjs/management/api/resources/index.js +2 -1
  60. package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.ts +20 -1
  61. package/dist/cjs/management/api/resources/organizations/resources/discoveryDomains/client/Client.js +66 -1
  62. package/dist/cjs/management/api/resources/prompts/resources/rendering/client/Client.d.ts +1 -1
  63. package/dist/cjs/management/api/resources/refreshTokens/client/Client.d.ts +18 -0
  64. package/dist/cjs/management/api/resources/refreshTokens/client/Client.js +67 -0
  65. package/dist/cjs/management/api/resources/roles/client/Client.d.ts +1 -0
  66. package/dist/cjs/management/api/resources/roles/client/Client.js +3 -0
  67. package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.d.ts +2 -1
  68. package/dist/cjs/management/api/resources/tokenExchangeProfiles/client/Client.js +3 -2
  69. package/dist/cjs/management/api/resources/users/client/Client.d.ts +3 -0
  70. package/dist/cjs/management/api/resources/users/client/Client.js +23 -18
  71. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.d.ts +34 -0
  72. package/dist/cjs/management/api/resources/users/resources/groups/client/Client.js +148 -0
  73. package/dist/cjs/management/api/resources/users/resources/groups/client/index.d.ts +1 -0
  74. package/dist/cjs/management/api/resources/users/resources/groups/client/index.js +2 -0
  75. package/dist/cjs/management/api/resources/users/resources/groups/index.d.ts +1 -0
  76. package/dist/cjs/management/api/resources/users/resources/groups/index.js +17 -0
  77. package/dist/cjs/management/api/resources/users/resources/index.d.ts +1 -0
  78. package/dist/cjs/management/api/resources/users/resources/index.js +2 -1
  79. package/dist/cjs/management/api/types/types.d.ts +5277 -1396
  80. package/dist/cjs/management/api/types/types.js +2143 -442
  81. package/dist/cjs/management/version.d.ts +1 -1
  82. package/dist/cjs/management/version.js +1 -1
  83. package/dist/esm/management/Client.d.mts +3 -0
  84. package/dist/esm/management/Client.mjs +5 -0
  85. package/dist/esm/management/api/errors/PreconditionFailedError.d.mts +5 -0
  86. package/dist/esm/management/api/errors/PreconditionFailedError.mjs +17 -0
  87. package/dist/esm/management/api/errors/index.d.mts +1 -0
  88. package/dist/esm/management/api/errors/index.mjs +1 -0
  89. package/dist/esm/management/api/requests/requests.d.mts +212 -134
  90. package/dist/esm/management/api/requests/requests.mjs +1 -107
  91. package/dist/esm/management/api/resources/actions/client/Client.d.mts +3 -0
  92. package/dist/esm/management/api/resources/actions/client/Client.mjs +5 -0
  93. package/dist/esm/management/api/resources/actions/resources/index.d.mts +1 -0
  94. package/dist/esm/management/api/resources/actions/resources/index.mjs +1 -0
  95. package/dist/esm/management/api/resources/actions/resources/modules/client/Client.d.mts +149 -0
  96. package/dist/esm/management/api/resources/actions/resources/modules/client/Client.mjs +532 -0
  97. package/dist/esm/management/api/resources/actions/resources/modules/client/index.d.mts +1 -0
  98. package/dist/esm/management/api/resources/actions/resources/modules/client/index.mjs +1 -0
  99. package/dist/esm/management/api/resources/actions/resources/modules/index.d.mts +2 -0
  100. package/dist/esm/management/api/resources/actions/resources/modules/index.mjs +2 -0
  101. package/dist/esm/management/api/resources/actions/resources/modules/resources/index.d.mts +1 -0
  102. package/dist/esm/management/api/resources/actions/resources/modules/resources/index.mjs +1 -0
  103. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.d.mts +69 -0
  104. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/Client.mjs +238 -0
  105. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/index.d.mts +1 -0
  106. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/client/index.mjs +1 -0
  107. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/index.d.mts +1 -0
  108. package/dist/esm/management/api/resources/actions/resources/modules/resources/versions/index.mjs +1 -0
  109. package/dist/esm/management/api/resources/actions/resources/versions/client/Client.d.mts +2 -2
  110. package/dist/esm/management/api/resources/actions/resources/versions/client/Client.mjs +1 -1
  111. package/dist/esm/management/api/resources/clientGrants/client/Client.d.mts +17 -0
  112. package/dist/esm/management/api/resources/clientGrants/client/Client.mjs +61 -0
  113. package/dist/esm/management/api/resources/connections/client/Client.d.mts +7 -3
  114. package/dist/esm/management/api/resources/connections/client/Client.mjs +9 -5
  115. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.d.mts +18 -0
  116. package/dist/esm/management/api/resources/connections/resources/directoryProvisioning/client/Client.mjs +80 -0
  117. package/dist/esm/management/api/resources/deviceCredentials/client/Client.d.mts +1 -0
  118. package/dist/esm/management/api/resources/deviceCredentials/client/Client.mjs +2 -1
  119. package/dist/esm/management/api/resources/eventStreams/client/Client.d.mts +1 -2
  120. package/dist/esm/management/api/resources/eventStreams/client/Client.mjs +59 -50
  121. package/dist/esm/management/api/resources/flows/client/Client.d.mts +2 -2
  122. package/dist/esm/management/api/resources/flows/client/Client.mjs +1 -1
  123. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +4 -4
  124. package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +2 -2
  125. package/dist/esm/management/api/resources/groups/client/Client.d.mts +56 -0
  126. package/dist/esm/management/api/resources/groups/client/Client.mjs +187 -0
  127. package/dist/esm/management/api/resources/groups/client/index.d.mts +1 -0
  128. package/dist/esm/management/api/resources/groups/client/index.mjs +1 -0
  129. package/dist/esm/management/api/resources/groups/index.d.mts +2 -0
  130. package/dist/esm/management/api/resources/groups/index.mjs +2 -0
  131. package/dist/esm/management/api/resources/groups/resources/index.d.mts +1 -0
  132. package/dist/esm/management/api/resources/groups/resources/index.mjs +1 -0
  133. package/dist/esm/management/api/resources/groups/resources/members/client/Client.d.mts +34 -0
  134. package/dist/esm/management/api/resources/groups/resources/members/client/Client.mjs +111 -0
  135. package/dist/esm/management/api/resources/groups/resources/members/client/index.d.mts +1 -0
  136. package/dist/esm/management/api/resources/groups/resources/members/client/index.mjs +1 -0
  137. package/dist/esm/management/api/resources/groups/resources/members/index.d.mts +1 -0
  138. package/dist/esm/management/api/resources/groups/resources/members/index.mjs +1 -0
  139. package/dist/esm/management/api/resources/index.d.mts +1 -0
  140. package/dist/esm/management/api/resources/index.mjs +1 -0
  141. package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.d.mts +20 -1
  142. package/dist/esm/management/api/resources/organizations/resources/discoveryDomains/client/Client.mjs +66 -1
  143. package/dist/esm/management/api/resources/prompts/resources/rendering/client/Client.d.mts +1 -1
  144. package/dist/esm/management/api/resources/refreshTokens/client/Client.d.mts +18 -0
  145. package/dist/esm/management/api/resources/refreshTokens/client/Client.mjs +67 -0
  146. package/dist/esm/management/api/resources/roles/client/Client.d.mts +1 -0
  147. package/dist/esm/management/api/resources/roles/client/Client.mjs +3 -0
  148. package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.d.mts +2 -1
  149. package/dist/esm/management/api/resources/tokenExchangeProfiles/client/Client.mjs +3 -2
  150. package/dist/esm/management/api/resources/users/client/Client.d.mts +3 -0
  151. package/dist/esm/management/api/resources/users/client/Client.mjs +5 -0
  152. package/dist/esm/management/api/resources/users/resources/groups/client/Client.d.mts +34 -0
  153. package/dist/esm/management/api/resources/users/resources/groups/client/Client.mjs +111 -0
  154. package/dist/esm/management/api/resources/users/resources/groups/client/index.d.mts +1 -0
  155. package/dist/esm/management/api/resources/users/resources/groups/client/index.mjs +1 -0
  156. package/dist/esm/management/api/resources/users/resources/groups/index.d.mts +1 -0
  157. package/dist/esm/management/api/resources/users/resources/groups/index.mjs +1 -0
  158. package/dist/esm/management/api/resources/users/resources/index.d.mts +1 -0
  159. package/dist/esm/management/api/resources/users/resources/index.mjs +1 -0
  160. package/dist/esm/management/api/types/types.d.mts +5277 -1396
  161. package/dist/esm/management/api/types/types.mjs +2133 -438
  162. package/dist/esm/management/version.d.mts +1 -1
  163. package/dist/esm/management/version.mjs +1 -1
  164. package/package.json +1 -1
  165. package/reference.md +1572 -185
@@ -44,58 +44,67 @@ export class EventStreamsClient {
44
44
  * take: 1
45
45
  * })
46
46
  */
47
- list(request = {}, requestOptions) {
48
- return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
49
- }
50
- __list() {
47
+ list() {
51
48
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
52
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
53
- const { from: from_, take = 50 } = request;
54
- const _queryParams = {};
55
- if (from_ !== undefined) {
56
- _queryParams["from"] = from_;
57
- }
58
- if (take !== undefined) {
59
- _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
60
- }
61
- const _authRequest = yield this._options.authProvider.getAuthRequest();
62
- let _headers = mergeHeaders(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
63
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
64
- url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ManagementEnvironment.Default, "event-streams"),
65
- method: "GET",
66
- headers: _headers,
67
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
68
- timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
69
- maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
70
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
71
- fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
72
- logging: this._options.logging,
73
- });
74
- if (_response.ok) {
75
- return {
76
- data: _response.body,
77
- rawResponse: _response.rawResponse,
78
- };
79
- }
80
- if (_response.error.reason === "status-code") {
81
- switch (_response.error.statusCode) {
82
- case 400:
83
- throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
84
- case 401:
85
- throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
86
- case 403:
87
- throw new Management.ForbiddenError(_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
- });
49
+ const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
50
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
51
+ const { from: from_, take = 50 } = request;
52
+ const _queryParams = {};
53
+ if (from_ !== undefined) {
54
+ _queryParams["from"] = from_;
96
55
  }
97
- }
98
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/event-streams");
56
+ if (take !== undefined) {
57
+ _queryParams["take"] = (_a = take === null || take === void 0 ? void 0 : take.toString()) !== null && _a !== void 0 ? _a : null;
58
+ }
59
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
60
+ let _headers = mergeHeaders(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
61
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
62
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ManagementEnvironment.Default, "event-streams"),
63
+ method: "GET",
64
+ headers: _headers,
65
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
66
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
67
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
68
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
69
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
70
+ logging: this._options.logging,
71
+ });
72
+ if (_response.ok) {
73
+ return {
74
+ data: _response.body,
75
+ rawResponse: _response.rawResponse,
76
+ };
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 429:
87
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
88
+ default:
89
+ throw new errors.ManagementError({
90
+ statusCode: _response.error.statusCode,
91
+ body: _response.error.body,
92
+ rawResponse: _response.rawResponse,
93
+ });
94
+ }
95
+ }
96
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/event-streams");
97
+ }));
98
+ const dataWithRawResponse = yield list(request).withRawResponse();
99
+ return new core.Page({
100
+ response: dataWithRawResponse.data,
101
+ rawResponse: dataWithRawResponse.rawResponse,
102
+ 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) === ""),
103
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.eventStreams) !== null && _a !== void 0 ? _a : []; },
104
+ loadPage: (response) => {
105
+ return list(core.setObjectProperty(request, "from", response === null || response === void 0 ? void 0 : response.next));
106
+ },
107
+ });
99
108
  });
100
109
  }
101
110
  /**
@@ -17,7 +17,7 @@ export declare class FlowsClient {
17
17
  get executions(): ExecutionsClient;
18
18
  get vault(): VaultClient;
19
19
  /**
20
- * @param {Management.FlowsListRequest} request
20
+ * @param {Management.ListFlowsRequestParameters} request
21
21
  * @param {FlowsClient.RequestOptions} requestOptions - Request-specific configuration.
22
22
  *
23
23
  * @throws {@link Management.BadRequestError}
@@ -33,7 +33,7 @@ export declare class FlowsClient {
33
33
  * synchronous: true
34
34
  * })
35
35
  */
36
- list(request?: Management.FlowsListRequest, requestOptions?: FlowsClient.RequestOptions): Promise<core.Page<Management.FlowSummary, Management.ListFlowsOffsetPaginatedResponseContent>>;
36
+ list(request?: Management.ListFlowsRequestParameters, requestOptions?: FlowsClient.RequestOptions): Promise<core.Page<Management.FlowSummary, Management.ListFlowsOffsetPaginatedResponseContent>>;
37
37
  /**
38
38
  * @param {Management.CreateFlowRequestContent} request
39
39
  * @param {FlowsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -30,7 +30,7 @@ export class FlowsClient {
30
30
  return ((_a = this._vault) !== null && _a !== void 0 ? _a : (this._vault = new VaultClient(this._options)));
31
31
  }
32
32
  /**
33
- * @param {Management.FlowsListRequest} request
33
+ * @param {Management.ListFlowsRequestParameters} request
34
34
  * @param {FlowsClient.RequestOptions} requestOptions - Request-specific configuration.
35
35
  *
36
36
  * @throws {@link Management.BadRequestError}
@@ -12,7 +12,7 @@ export declare class ExecutionsClient {
12
12
  constructor(options: ExecutionsClient.Options);
13
13
  /**
14
14
  * @param {string} flow_id - Flow id
15
- * @param {Management.ExecutionsListRequest} request
15
+ * @param {Management.ListFlowExecutionsRequestParameters} request
16
16
  * @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
17
17
  *
18
18
  * @throws {@link Management.BadRequestError}
@@ -26,11 +26,11 @@ export declare class ExecutionsClient {
26
26
  * take: 1
27
27
  * })
28
28
  */
29
- list(flow_id: string, request?: Management.ExecutionsListRequest, requestOptions?: ExecutionsClient.RequestOptions): Promise<core.Page<Management.FlowExecutionSummary, Management.ListFlowExecutionsPaginatedResponseContent>>;
29
+ list(flow_id: string, request?: Management.ListFlowExecutionsRequestParameters, requestOptions?: ExecutionsClient.RequestOptions): Promise<core.Page<Management.FlowExecutionSummary, Management.ListFlowExecutionsPaginatedResponseContent>>;
30
30
  /**
31
31
  * @param {string} flow_id - Flow id
32
32
  * @param {string} execution_id - Flow execution id
33
- * @param {Management.ExecutionsGetRequest} request
33
+ * @param {Management.GetFlowExecutionRequestParameters} request
34
34
  * @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
35
35
  *
36
36
  * @throws {@link Management.BadRequestError}
@@ -41,7 +41,7 @@ export declare class ExecutionsClient {
41
41
  * @example
42
42
  * await client.flows.executions.get("flow_id", "execution_id")
43
43
  */
44
- get(flow_id: string, execution_id: string, request?: Management.ExecutionsGetRequest, requestOptions?: ExecutionsClient.RequestOptions): core.HttpResponsePromise<Management.GetFlowExecutionResponseContent>;
44
+ get(flow_id: string, execution_id: string, request?: Management.GetFlowExecutionRequestParameters, requestOptions?: ExecutionsClient.RequestOptions): core.HttpResponsePromise<Management.GetFlowExecutionResponseContent>;
45
45
  private __get;
46
46
  /**
47
47
  * @param {string} flow_id - Flows id
@@ -21,7 +21,7 @@ export class ExecutionsClient {
21
21
  }
22
22
  /**
23
23
  * @param {string} flow_id - Flow id
24
- * @param {Management.ExecutionsListRequest} request
24
+ * @param {Management.ListFlowExecutionsRequestParameters} request
25
25
  * @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
27
27
  * @throws {@link Management.BadRequestError}
@@ -101,7 +101,7 @@ export class ExecutionsClient {
101
101
  /**
102
102
  * @param {string} flow_id - Flow id
103
103
  * @param {string} execution_id - Flow execution id
104
- * @param {Management.ExecutionsGetRequest} request
104
+ * @param {Management.GetFlowExecutionRequestParameters} request
105
105
  * @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
106
106
  *
107
107
  * @throws {@link Management.BadRequestError}
@@ -0,0 +1,56 @@
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
+ import { MembersClient } from "../resources/members/client/Client.mjs";
6
+ export declare namespace GroupsClient {
7
+ type Options = BaseClientOptions;
8
+ interface RequestOptions extends BaseRequestOptions {
9
+ }
10
+ }
11
+ export declare class GroupsClient {
12
+ protected readonly _options: NormalizedClientOptionsWithAuth<GroupsClient.Options>;
13
+ protected _members: MembersClient | undefined;
14
+ constructor(options: GroupsClient.Options);
15
+ get members(): MembersClient;
16
+ /**
17
+ * List all groups in your tenant.
18
+ *
19
+ * @param {Management.ListGroupsRequestParameters} request
20
+ * @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
21
+ *
22
+ * @throws {@link Management.BadRequestError}
23
+ * @throws {@link Management.UnauthorizedError}
24
+ * @throws {@link Management.ForbiddenError}
25
+ * @throws {@link Management.TooManyRequestsError}
26
+ *
27
+ * @example
28
+ * await client.groups.list({
29
+ * connection_id: "connection_id",
30
+ * name: "name",
31
+ * external_id: "external_id",
32
+ * fields: "fields",
33
+ * include_fields: true,
34
+ * from: "from",
35
+ * take: 1
36
+ * })
37
+ */
38
+ list(request?: Management.ListGroupsRequestParameters, requestOptions?: GroupsClient.RequestOptions): Promise<core.Page<Management.Group, Management.ListGroupsPaginatedResponseContent>>;
39
+ /**
40
+ * Retrieve a group by its ID.
41
+ *
42
+ * @param {string} id - Unique identifier for the group (service-generated).
43
+ * @param {GroupsClient.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.TooManyRequestsError}
50
+ *
51
+ * @example
52
+ * await client.groups.get("id")
53
+ */
54
+ get(id: string, requestOptions?: GroupsClient.RequestOptions): core.HttpResponsePromise<Management.GetGroupResponseContent>;
55
+ private __get;
56
+ }
@@ -0,0 +1,187 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
12
+ import * as core from "../../../../core/index.mjs";
13
+ import { mergeHeaders } from "../../../../core/headers.mjs";
14
+ import * as environments from "../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
16
+ import * as errors from "../../../../errors/index.mjs";
17
+ import * as Management from "../../../index.mjs";
18
+ import { MembersClient } from "../resources/members/client/Client.mjs";
19
+ export class GroupsClient {
20
+ constructor(options) {
21
+ this._options = normalizeClientOptionsWithAuth(options);
22
+ }
23
+ get members() {
24
+ var _a;
25
+ return ((_a = this._members) !== null && _a !== void 0 ? _a : (this._members = new MembersClient(this._options)));
26
+ }
27
+ /**
28
+ * List all groups in your tenant.
29
+ *
30
+ * @param {Management.ListGroupsRequestParameters} request
31
+ * @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
32
+ *
33
+ * @throws {@link Management.BadRequestError}
34
+ * @throws {@link Management.UnauthorizedError}
35
+ * @throws {@link Management.ForbiddenError}
36
+ * @throws {@link Management.TooManyRequestsError}
37
+ *
38
+ * @example
39
+ * await client.groups.list({
40
+ * connection_id: "connection_id",
41
+ * name: "name",
42
+ * external_id: "external_id",
43
+ * fields: "fields",
44
+ * include_fields: true,
45
+ * from: "from",
46
+ * take: 1
47
+ * })
48
+ */
49
+ list() {
50
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
51
+ const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
52
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
53
+ const { connection_id: connectionId, name, external_id: externalId, fields, include_fields: includeFields, from: from_, take = 50, } = request;
54
+ const _queryParams = {};
55
+ if (connectionId !== undefined) {
56
+ _queryParams["connection_id"] = connectionId;
57
+ }
58
+ if (name !== undefined) {
59
+ _queryParams["name"] = name;
60
+ }
61
+ if (externalId !== undefined) {
62
+ _queryParams["external_id"] = externalId;
63
+ }
64
+ if (fields !== undefined) {
65
+ _queryParams["fields"] = fields;
66
+ }
67
+ if (includeFields !== undefined) {
68
+ _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
69
+ }
70
+ if (from_ !== undefined) {
71
+ _queryParams["from"] = from_;
72
+ }
73
+ if (take !== undefined) {
74
+ _queryParams["take"] = (_b = take === null || take === void 0 ? void 0 : take.toString()) !== null && _b !== void 0 ? _b : null;
75
+ }
76
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
77
+ let _headers = mergeHeaders(_authRequest.headers, (_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
78
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
79
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ManagementEnvironment.Default, "groups"),
80
+ method: "GET",
81
+ headers: _headers,
82
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
83
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
84
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
85
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
86
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
87
+ logging: this._options.logging,
88
+ });
89
+ if (_response.ok) {
90
+ return {
91
+ data: _response.body,
92
+ rawResponse: _response.rawResponse,
93
+ };
94
+ }
95
+ if (_response.error.reason === "status-code") {
96
+ switch (_response.error.statusCode) {
97
+ case 400:
98
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
99
+ case 401:
100
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
101
+ case 403:
102
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
103
+ case 429:
104
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
105
+ default:
106
+ throw new errors.ManagementError({
107
+ statusCode: _response.error.statusCode,
108
+ body: _response.error.body,
109
+ rawResponse: _response.rawResponse,
110
+ });
111
+ }
112
+ }
113
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/groups");
114
+ }));
115
+ const dataWithRawResponse = yield list(request).withRawResponse();
116
+ return new core.Page({
117
+ response: dataWithRawResponse.data,
118
+ rawResponse: dataWithRawResponse.rawResponse,
119
+ 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) === ""),
120
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.groups) !== null && _a !== void 0 ? _a : []; },
121
+ loadPage: (response) => {
122
+ return list(core.setObjectProperty(request, "from", response === null || response === void 0 ? void 0 : response.next));
123
+ },
124
+ });
125
+ });
126
+ }
127
+ /**
128
+ * Retrieve a group by its ID.
129
+ *
130
+ * @param {string} id - Unique identifier for the group (service-generated).
131
+ * @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
132
+ *
133
+ * @throws {@link Management.BadRequestError}
134
+ * @throws {@link Management.UnauthorizedError}
135
+ * @throws {@link Management.ForbiddenError}
136
+ * @throws {@link Management.NotFoundError}
137
+ * @throws {@link Management.TooManyRequestsError}
138
+ *
139
+ * @example
140
+ * await client.groups.get("id")
141
+ */
142
+ get(id, requestOptions) {
143
+ return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
144
+ }
145
+ __get(id, requestOptions) {
146
+ return __awaiter(this, void 0, void 0, function* () {
147
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
148
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
149
+ 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);
150
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
151
+ 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, `groups/${core.url.encodePathParam(id)}`),
152
+ method: "GET",
153
+ headers: _headers,
154
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
155
+ 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,
156
+ 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,
157
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
158
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
159
+ logging: this._options.logging,
160
+ });
161
+ if (_response.ok) {
162
+ return { data: _response.body, rawResponse: _response.rawResponse };
163
+ }
164
+ if (_response.error.reason === "status-code") {
165
+ switch (_response.error.statusCode) {
166
+ case 400:
167
+ throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
168
+ case 401:
169
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
170
+ case 403:
171
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
172
+ case 404:
173
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
174
+ case 429:
175
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
176
+ default:
177
+ throw new errors.ManagementError({
178
+ statusCode: _response.error.statusCode,
179
+ body: _response.error.body,
180
+ rawResponse: _response.rawResponse,
181
+ });
182
+ }
183
+ }
184
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/groups/{id}");
185
+ });
186
+ }
187
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
@@ -0,0 +1 @@
1
+ export * as members from "./members/index.mjs";
@@ -0,0 +1 @@
1
+ export * as members from "./members/index.mjs";
@@ -0,0 +1,34 @@
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 MembersClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class MembersClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<MembersClient.Options>;
12
+ constructor(options: MembersClient.Options);
13
+ /**
14
+ * List all users that are a member of this group.
15
+ *
16
+ * @param {string} id - Unique identifier for the group (service-generated).
17
+ * @param {Management.GetGroupMembersRequestParameters} request
18
+ * @param {MembersClient.RequestOptions} requestOptions - Request-specific configuration.
19
+ *
20
+ * @throws {@link Management.BadRequestError}
21
+ * @throws {@link Management.UnauthorizedError}
22
+ * @throws {@link Management.ForbiddenError}
23
+ * @throws {@link Management.TooManyRequestsError}
24
+ *
25
+ * @example
26
+ * await client.groups.members.get("id", {
27
+ * fields: "fields",
28
+ * include_fields: true,
29
+ * from: "from",
30
+ * take: 1
31
+ * })
32
+ */
33
+ get(id: string, request?: Management.GetGroupMembersRequestParameters, requestOptions?: MembersClient.RequestOptions): Promise<core.Page<Management.GroupMember, Management.GetGroupMembersResponseContent>>;
34
+ }
@@ -0,0 +1,111 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
12
+ import * as core from "../../../../../../core/index.mjs";
13
+ import { mergeHeaders } from "../../../../../../core/headers.mjs";
14
+ import * as environments from "../../../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
16
+ import * as errors from "../../../../../../errors/index.mjs";
17
+ import * as Management from "../../../../../index.mjs";
18
+ export class MembersClient {
19
+ constructor(options) {
20
+ this._options = normalizeClientOptionsWithAuth(options);
21
+ }
22
+ /**
23
+ * List all users that are a member of this group.
24
+ *
25
+ * @param {string} id - Unique identifier for the group (service-generated).
26
+ * @param {Management.GetGroupMembersRequestParameters} request
27
+ * @param {MembersClient.RequestOptions} requestOptions - Request-specific configuration.
28
+ *
29
+ * @throws {@link Management.BadRequestError}
30
+ * @throws {@link Management.UnauthorizedError}
31
+ * @throws {@link Management.ForbiddenError}
32
+ * @throws {@link Management.TooManyRequestsError}
33
+ *
34
+ * @example
35
+ * await client.groups.members.get("id", {
36
+ * fields: "fields",
37
+ * include_fields: true,
38
+ * from: "from",
39
+ * take: 1
40
+ * })
41
+ */
42
+ get(id_1) {
43
+ return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
44
+ const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
45
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
46
+ const { fields, include_fields: includeFields, from: from_, take = 50 } = request;
47
+ const _queryParams = {};
48
+ if (fields !== undefined) {
49
+ _queryParams["fields"] = fields;
50
+ }
51
+ if (includeFields !== undefined) {
52
+ _queryParams["include_fields"] = (_a = includeFields === null || includeFields === void 0 ? void 0 : includeFields.toString()) !== null && _a !== void 0 ? _a : null;
53
+ }
54
+ if (from_ !== undefined) {
55
+ _queryParams["from"] = from_;
56
+ }
57
+ if (take !== undefined) {
58
+ _queryParams["take"] = (_b = take === null || take === void 0 ? void 0 : take.toString()) !== null && _b !== void 0 ? _b : null;
59
+ }
60
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
61
+ let _headers = mergeHeaders(_authRequest.headers, (_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
62
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
63
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ManagementEnvironment.Default, `groups/${core.url.encodePathParam(id)}/members`),
64
+ method: "GET",
65
+ headers: _headers,
66
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
67
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
68
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
69
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
70
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
71
+ logging: this._options.logging,
72
+ });
73
+ if (_response.ok) {
74
+ return {
75
+ data: _response.body,
76
+ rawResponse: _response.rawResponse,
77
+ };
78
+ }
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 429:
88
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
89
+ default:
90
+ throw new errors.ManagementError({
91
+ statusCode: _response.error.statusCode,
92
+ body: _response.error.body,
93
+ rawResponse: _response.rawResponse,
94
+ });
95
+ }
96
+ }
97
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/groups/{id}/members");
98
+ }));
99
+ const dataWithRawResponse = yield list(request).withRawResponse();
100
+ return new core.Page({
101
+ response: dataWithRawResponse.data,
102
+ rawResponse: dataWithRawResponse.rawResponse,
103
+ 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) === ""),
104
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.members) !== null && _a !== void 0 ? _a : []; },
105
+ loadPage: (response) => {
106
+ return list(core.setObjectProperty(request, "from", response === null || response === void 0 ? void 0 : response.next));
107
+ },
108
+ });
109
+ });
110
+ }
111
+ }
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -14,6 +14,7 @@ export * as eventStreams from "./eventStreams/index.mjs";
14
14
  export * from "./eventStreams/types/index.mjs";
15
15
  export * as flows from "./flows/index.mjs";
16
16
  export * as forms from "./forms/index.mjs";
17
+ export * as groups from "./groups/index.mjs";
17
18
  export * as guardian from "./guardian/index.mjs";
18
19
  export * as hooks from "./hooks/index.mjs";
19
20
  export * as jobs from "./jobs/index.mjs";