Skip to content

Added Support for Limit M2M #1100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 29, 2025
Merged
26 changes: 16 additions & 10 deletions src/management/__generated/managers/organizations-manager.ts
Original file line number Diff line number Diff line change
@@ -488,7 +488,7 @@ export class OrganizationsManager extends BaseAPI {
}

/**
* Get a specific organization by name
* Retrieve details about a single Organization specified by name.
*
* Get organization by name
*
@@ -627,19 +627,25 @@ export class OrganizationsManager extends BaseAPI {
}

/**
* List available organizations. This endpoint supports two types of pagination:
* - Offset pagination
* - Checkpoint pagination
* Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations.
*
* This endpoint supports two types of pagination:
* <ul>
* <li>Offset pagination</li>
* <li>Checkpoint pagination</li>
* </ul>
*
* Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.
*
* <h2>Checkpoint Pagination</h2>
*
* To search by checkpoint, use the following parameters:
* - from: Optional id from which to start selection.
* - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
* <ul>
* <li><code>from</code>: Optional id from which to start selection.</li>
* <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li>
* </ul>
*
* Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.
* <b>Note</b>: The first time you call this endpoint using checkpoint pagination, 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 pages are remaining.
*
* Get organizations
*
@@ -697,7 +703,7 @@ export class OrganizationsManager extends BaseAPI {
}

/**
* Get a specific organization
* Retrieve details about a single Organization specified by ID.
*
* Get organization
*
@@ -757,7 +763,7 @@ export class OrganizationsManager extends BaseAPI {
}

/**
* Modify an organization
* Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata.
*
* Modify an Organization
*
@@ -950,7 +956,7 @@ export class OrganizationsManager extends BaseAPI {
}

/**
* Create an organization
* Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review <a href="https://auth0.com/docs/manage-users/organizations/create-first-organization">Create Your First Organization</a>.
*
* Create an Organization
*
2 changes: 1 addition & 1 deletion src/management/__generated/managers/users-manager.ts
Original file line number Diff line number Diff line change
@@ -689,7 +689,7 @@ export class UsersManager extends BaseAPI {
}

/**
* This endpoint will retrieve all organizations that the specified user is a member of.
* Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>.
*
* List user's organizations
*
Loading

Unchanged files with check annotations Beta

actions.getAll().catch((err) => {
expect(err).toBeDefined();
done();

Check warning on line 105 in test/management/actions.test.ts

GitHub Actions / Build and Test (20.3)

Avoid calling back inside of a promise

Check warning on line 105 in test/management/actions.test.ts

GitHub Actions / Build and Test (18.17)

Avoid calling back inside of a promise
});
});
data[0].all_changes_deployed
);
done();

Check warning on line 153 in test/management/actions.test.ts

GitHub Actions / Build and Test (20.3)

Avoid calling back inside of a promise

Check warning on line 153 in test/management/actions.test.ts

GitHub Actions / Build and Test (18.17)

Avoid calling back inside of a promise
});
});
it('should perform a GET request', (done) => {
actions.getAll().then(() => {
expect(request.isDone()).toBe(true);
done();

Check warning on line 160 in test/management/actions.test.ts

GitHub Actions / Build and Test (20.3)

Avoid calling back inside of a promise

Check warning on line 160 in test/management/actions.test.ts

GitHub Actions / Build and Test (18.17)

Avoid calling back inside of a promise
});
});
actions.getAll().then(() => {
expect(request.isDone()).toBe(true);
done();

Check warning on line 174 in test/management/actions.test.ts

GitHub Actions / Build and Test (20.3)

Avoid calling back inside of a promise

Check warning on line 174 in test/management/actions.test.ts

GitHub Actions / Build and Test (18.17)

Avoid calling back inside of a promise
});
});
actions.getAll(params).then(() => {
expect(request.isDone()).toBe(true);
done();

Check warning on line 190 in test/management/actions.test.ts

GitHub Actions / Build and Test (20.3)

Avoid calling back inside of a promise

Check warning on line 190 in test/management/actions.test.ts

GitHub Actions / Build and Test (18.17)

Avoid calling back inside of a promise
});
});
});
actions.get({ id: data.id as string }).then(() => {
expect(request.isDone()).toBe(true);
done();

Check warning on line 230 in test/management/actions.test.ts

GitHub Actions / Build and Test (20.3)

Avoid calling back inside of a promise

Check warning on line 230 in test/management/actions.test.ts

GitHub Actions / Build and Test (18.17)

Avoid calling back inside of a promise
});
});
actions.get({ id: data.id as string }).catch((err) => {
expect(err).toBeDefined();
done();

Check warning on line 242 in test/management/actions.test.ts

GitHub Actions / Build and Test (20.3)

Avoid calling back inside of a promise

Check warning on line 242 in test/management/actions.test.ts

GitHub Actions / Build and Test (18.17)

Avoid calling back inside of a promise
});
});
expect(credentials.data.integration?.id).toBe(data.integration?.id);
expect(credentials.data.all_changes_deployed).toBe(data.all_changes_deployed);
done();

Check warning on line 274 in test/management/actions.test.ts

GitHub Actions / Build and Test (20.3)

Avoid calling back inside of a promise

Check warning on line 274 in test/management/actions.test.ts

GitHub Actions / Build and Test (18.17)

Avoid calling back inside of a promise
});
});
if (config.isCollectionFormatMulti) {
value = requestParameters[key];
} else {
value = requestParameters[key].join(COLLECTION_FORMATS[config.collectionFormat!]);

Check warning on line 279 in src/lib/runtime.ts

GitHub Actions / Build and Test (20.3)

Forbidden non-null assertion

Check warning on line 279 in src/lib/runtime.ts

GitHub Actions / Build and Test (18.17)

Forbidden non-null assertion
}
} else {
if (requestParameters[key] !== undefined) {