Skip to content

Commit

Permalink
v2.0.29
Browse files Browse the repository at this point in the history
  • Loading branch information
NamSor SAS committed Jan 28, 2024
1 parent 253e193 commit c710dac
Show file tree
Hide file tree
Showing 262 changed files with 13,438 additions and 2,724 deletions.
58 changes: 41 additions & 17 deletions README.md

Large diffs are not rendered by default.

5,796 changes: 3,762 additions & 2,034 deletions api/openapi.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'com.namsor'
version = '2.0.27'
version = '2.0.29'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "com.namsor",
name := "namsor-sdk2",
version := "2.0.27",
version := "2.0.29",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
1 change: 1 addition & 0 deletions docs/APIKeyOut.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
|**disabled** | **Boolean** | The API Key is temporarily or permanently disabled. | [optional] |
|**explainable** | **Boolean** | The API Key supports the AI explainability option (may require a specific license). | [optional] |
|**ipAddress** | **String** | | [optional] |
|**communityEngageOption** | [**CommunityEngageOptionOut**](CommunityEngageOptionOut.md) | | [optional] |



26 changes: 13 additions & 13 deletions docs/AdminApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ All URIs are relative to *https://v2.namsor.com/NamSorAPIv2*

| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**anonymize**](AdminApi.md#anonymize) | **GET** /api2/json/anonymize/{source}/{anonymized}/{token} | Activate/deactivate anonymization for a source. |
| [**anonymize1**](AdminApi.md#anonymize1) | **GET** /api2/json/anonymize/{source}/{anonymized} | Activate/deactivate anonymization for a source. |
| [**anonymize**](AdminApi.md#anonymize) | **GET** /api2/json/anonymize/{source}/{anonymized} | Activate/deactivate anonymization for a source. |
| [**anonymize1**](AdminApi.md#anonymize1) | **GET** /api2/json/anonymize/{source}/{anonymized}/{token} | Activate/deactivate anonymization for a source. |
| [**apiKeyInfo**](AdminApi.md#apiKeyInfo) | **GET** /api2/json/apiKeyInfo | Read API Key info. |
| [**apiStatus**](AdminApi.md#apiStatus) | **GET** /api2/json/apiStatus | Prints the current status of the classifiers. A classifier name in apiStatus corresponds to a service name in apiServices. |
| [**apiUsage**](AdminApi.md#apiUsage) | **GET** /api2/json/apiUsage | Print current API usage. |
Expand All @@ -22,7 +22,7 @@ All URIs are relative to *https://v2.namsor.com/NamSorAPIv2*

<a id="anonymize"></a>
# **anonymize**
> APIKeyOut anonymize(source, anonymized, token)
> anonymize(source, anonymized)
Activate/deactivate anonymization for a source.

Expand Down Expand Up @@ -50,10 +50,8 @@ public class Example {
AdminApi apiInstance = new AdminApi(defaultClient);
String source = "source_example"; // String |
Boolean anonymized = true; // Boolean |
String token = "token_example"; // String |
try {
APIKeyOut result = apiInstance.anonymize(source, anonymized, token);
System.out.println(result);
apiInstance.anonymize(source, anonymized);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#anonymize");
System.err.println("Status code: " + e.getCode());
Expand All @@ -71,11 +69,10 @@ public class Example {
|------------- | ------------- | ------------- | -------------|
| **source** | **String**| | |
| **anonymized** | **Boolean**| | |
| **token** | **String**| | |

### Return type

[**APIKeyOut**](APIKeyOut.md)
null (empty response body)

### Authorization

Expand All @@ -84,7 +81,7 @@ public class Example {
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json
- **Accept**: Not defined

### HTTP response details
| Status code | Description | Response headers |
Expand All @@ -94,7 +91,7 @@ public class Example {

<a id="anonymize1"></a>
# **anonymize1**
> anonymize1(source, anonymized)
> APIKeyOut anonymize1(source, anonymized, token)
Activate/deactivate anonymization for a source.

Expand Down Expand Up @@ -122,8 +119,10 @@ public class Example {
AdminApi apiInstance = new AdminApi(defaultClient);
String source = "source_example"; // String |
Boolean anonymized = true; // Boolean |
String token = "token_example"; // String |
try {
apiInstance.anonymize1(source, anonymized);
APIKeyOut result = apiInstance.anonymize1(source, anonymized, token);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#anonymize1");
System.err.println("Status code: " + e.getCode());
Expand All @@ -141,10 +140,11 @@ public class Example {
|------------- | ------------- | ------------- | -------------|
| **source** | **String**| | |
| **anonymized** | **Boolean**| | |
| **token** | **String**| | |

### Return type

null (empty response body)
[**APIKeyOut**](APIKeyOut.md)

### Authorization

Expand All @@ -153,7 +153,7 @@ null (empty response body)
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined
- **Accept**: application/json

### HTTP response details
| Status code | Description | Response headers |
Expand Down
13 changes: 13 additions & 0 deletions docs/BatchCommunityEngageFullOut.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


# BatchCommunityEngageFullOut


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**engagementCandidates** | [**List&lt;CommunityEngageOut&gt;**](CommunityEngageOut.md) | Classified community engagement candidates | [optional] |



13 changes: 13 additions & 0 deletions docs/BatchCommunityEngageOut.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


# BatchCommunityEngageOut


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**engagementCandidates** | [**List&lt;CommunityEngageOut&gt;**](CommunityEngageOut.md) | Classified community engagement candidates | [optional] |



13 changes: 13 additions & 0 deletions docs/BatchFirstLastNameGeoOut.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


# BatchFirstLastNameGeoOut


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**personalNames** | [**List&lt;FirstLastNameGeoOut&gt;**](FirstLastNameGeoOut.md) | Classified names | [optional] |



14 changes: 14 additions & 0 deletions docs/BatchPersonalNameDiasporaedOut.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# BatchPersonalNameDiasporaedOut

Represents the output of inferring the LIKELY ethnicity from a personal name, given an country of residence.

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**personalNames** | [**List&lt;PersonalNameDiasporaedOut&gt;**](PersonalNameDiasporaedOut.md) | Classified diaspora names | [optional] |



14 changes: 14 additions & 0 deletions docs/BatchPersonalNameOriginedOut.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# BatchPersonalNameOriginedOut

Represents the output of inferring the LIKELY origin from a list of personal names.

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**personalNames** | [**List&lt;PersonalNameOriginedOut&gt;**](PersonalNameOriginedOut.md) | Classified origined names | [optional] |



14 changes: 14 additions & 0 deletions docs/BatchPersonalNameUSRaceEthnicityOut.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# BatchPersonalNameUSRaceEthnicityOut

Represents the output of inferring the LIKELY US race/ethnicity from a list of personal names.

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**personalNames** | [**List&lt;PersonalNameUSRaceEthnicityOut&gt;**](PersonalNameUSRaceEthnicityOut.md) | Classified origined names | [optional] |



16 changes: 16 additions & 0 deletions docs/CommunityEngageOptionOut.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@


# CommunityEngageOptionOut


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**genderFilter** | **List&lt;String&gt;** | The gender filter (null to allow all) | [optional] |
|**ethnicityFilter** | **List&lt;String&gt;** | The ethnicity filter (null to allow all) | [optional] |
|**countryOutFilter** | **List&lt;String&gt;** | The output country filter (null to allow all) | [optional] |
|**usRaceEthnicityFilter** | **List&lt;String&gt;** | The output US race/ethnicity filter (null to allow all) | [optional] |



22 changes: 22 additions & 0 deletions docs/CommunityEngageOut.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@


# CommunityEngageOut

Represent multiple classifications for community engagement (gender, country, origin, diaspora)

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**id** | **String** | | [optional] |
|**personalNameDiasporaedOut** | [**PersonalNameDiasporaedOut**](PersonalNameDiasporaedOut.md) | | [optional] |
|**personalNameOriginedOut** | [**PersonalNameOriginedOut**](PersonalNameOriginedOut.md) | | [optional] |
|**country** | [**PersonalNameGeoOut**](PersonalNameGeoOut.md) | | [optional] |
|**gender** | [**PersonalNameGenderedOut**](PersonalNameGenderedOut.md) | | [optional] |
|**personalNameUSRaceEthnicityOut** | [**PersonalNameUSRaceEthnicityOut**](PersonalNameUSRaceEthnicityOut.md) | | [optional] |
|**prime** | **Boolean** | | [optional] |
|**scoped** | **Boolean** | | [optional] |
|**script** | **String** | | [optional] |



2 changes: 1 addition & 1 deletion docs/FirstLastNameDiasporaedOut.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Represents the output of inferring the LIKELY ethnicity from a personal name, gi
|**probabilityCalibrated** | **Double** | The calibrated probability for ethnicity to have been guessed correctly. -1 &#x3D; still calibrating. | [optional] |
|**probabilityAltCalibrated** | **Double** | The calibrated probability for ethnicity OR ethnicityAlt to have been guessed correctly. -1 &#x3D; still calibrating. | [optional] |
|**religionStats** | [**List&lt;ReligionStatOut&gt;**](ReligionStatOut.md) | Geographic religious statistics, assuming ethnicity is correctly predicted. | [optional] |
|**religionStatsAlt** | [**List&lt;ReligionStatOut&gt;**](ReligionStatOut.md) | Geographic religious statistics, assuming ethnicity OR best alternative is correctly predicted. | [optional] |
|**religionStatsAlt** | [**List&lt;ReligionStatOut&gt;**](ReligionStatOut.md) | Geographic religious statistics, for country best alternative. | [optional] |



29 changes: 29 additions & 0 deletions docs/FirstLastNameGeoOut.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@


# FirstLastNameGeoOut

Represents the output of inferring the LIKELY country of Origin from a personal name.

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**script** | **String** | | [optional] |
|**id** | **String** | | [optional] |
|**explanation** | **String** | | [optional] |
|**firstName** | **String** | The first name (also known as given name) | [optional] |
|**lastName** | **String** | The last name (also known as family name, or surname) | [optional] |
|**score** | **Double** | Higher score is better, but score is not normalized. Use calibratedProbability if available. | [optional] |
|**country** | **String** | Most likely country | [optional] |
|**countryAlt** | **String** | Second best alternative : country | [optional] |
|**region** | **String** | Most likely region (based on country ISO2 code) | [optional] |
|**topRegion** | **String** | Most likely top region (based on country ISO2 code) | [optional] |
|**subRegion** | **String** | Most likely sub region (based on country ISO2 code) | [optional] |
|**countriesTop** | **List&lt;String&gt;** | List countries (top 10) | [optional] |
|**probabilityCalibrated** | **Double** | The calibrated probability for country to have been guessed correctly. -1 &#x3D; still calibrating. | [optional] |
|**probabilityAltCalibrated** | **Double** | The calibrated probability for country OR countryAlt to have been guessed correctly. -1 &#x3D; still calibrating. | [optional] |
|**religionStats** | [**List&lt;ReligionStatOut&gt;**](ReligionStatOut.md) | Geographic religious statistics, assuming country is correctly predicted. | [optional] |
|**religionStatsAlt** | [**List&lt;ReligionStatOut&gt;**](ReligionStatOut.md) | Geographic religious statistics, for country best alternative. | [optional] |



2 changes: 1 addition & 1 deletion docs/FirstLastNameOriginedOut.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Represents the output of inferring the LIKELY country of Origin from a personal
|**probabilityCalibrated** | **Double** | The calibrated probability for countryOrigin to have been guessed correctly. -1 &#x3D; still calibrating. | [optional] |
|**probabilityAltCalibrated** | **Double** | The calibrated probability for countryOrigin OR countryOriginAlt to have been guessed correctly. -1 &#x3D; still calibrating. | [optional] |
|**religionStats** | [**List&lt;ReligionStatOut&gt;**](ReligionStatOut.md) | Geographic religious statistics, assuming country of origin is correctly predicted. | [optional] |
|**religionStatsAlt** | [**List&lt;ReligionStatOut&gt;**](ReligionStatOut.md) | Geographic religious statistics, assuming country of origin OR best alternative is correctly predicted. | [optional] |
|**religionStatsAlt** | [**List&lt;ReligionStatOut&gt;**](ReligionStatOut.md) | Geographic religious statistics, for origin best alternative. | [optional] |



20 changes: 10 additions & 10 deletions docs/JapaneseApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ All URIs are relative to *https://v2.namsor.com/NamSorAPIv2*
| [**genderJapaneseNamePinyin**](JapaneseApi.md#genderJapaneseNamePinyin) | **GET** /api2/json/genderJapaneseName/{japaneseSurname}/{japaneseGivenName} | Infer the likely gender of a Japanese name in LATIN (Pinyin). |
| [**genderJapaneseNamePinyinBatch**](JapaneseApi.md#genderJapaneseNamePinyinBatch) | **POST** /api2/json/genderJapaneseNameBatch | Infer the likely gender of up to 100 Japanese names in LATIN (Pinyin). |
| [**japaneseNameGenderKanjiCandidatesBatch**](JapaneseApi.md#japaneseNameGenderKanjiCandidatesBatch) | **POST** /api2/json/japaneseNameGenderKanjiCandidatesBatch | Identify japanese name candidates in KANJI, based on the romanized name (firstName &#x3D; japaneseGivenName; lastName&#x3D;japaneseSurname) with KNOWN gender, ex. Yamamoto Sanae |
| [**japaneseNameKanjiCandidates**](JapaneseApi.md#japaneseNameKanjiCandidates) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae |
| [**japaneseNameKanjiCandidates1**](JapaneseApi.md#japaneseNameKanjiCandidates1) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{knownGender} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. |
| [**japaneseNameKanjiCandidates**](JapaneseApi.md#japaneseNameKanjiCandidates) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{knownGender} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. |
| [**japaneseNameKanjiCandidates1**](JapaneseApi.md#japaneseNameKanjiCandidates1) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae |
| [**japaneseNameKanjiCandidatesBatch**](JapaneseApi.md#japaneseNameKanjiCandidatesBatch) | **POST** /api2/json/japaneseNameKanjiCandidatesBatch | Identify japanese name candidates in KANJI, based on the romanized name (firstName &#x3D; japaneseGivenName; lastName&#x3D;japaneseSurname), ex. Yamamoto Sanae |
| [**japaneseNameLatinCandidates**](JapaneseApi.md#japaneseNameLatinCandidates) | **GET** /api2/json/japaneseNameLatinCandidates/{japaneseSurnameKanji}/{japaneseGivenNameKanji} | Romanize japanese name, based on the name in Kanji. |
| [**japaneseNameLatinCandidatesBatch**](JapaneseApi.md#japaneseNameLatinCandidatesBatch) | **POST** /api2/json/japaneseNameLatinCandidatesBatch | Romanize japanese names, based on the name in KANJI |
Expand Down Expand Up @@ -373,9 +373,9 @@ public class Example {

<a id="japaneseNameKanjiCandidates"></a>
# **japaneseNameKanjiCandidates**
> NameMatchCandidatesOut japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin)
> NameMatchCandidatesOut japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender)
Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae
Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender.

### Example
```java
Expand All @@ -401,8 +401,9 @@ public class Example {
JapaneseApi apiInstance = new JapaneseApi(defaultClient);
String japaneseSurnameLatin = "japaneseSurnameLatin_example"; // String |
String japaneseGivenNameLatin = "japaneseGivenNameLatin_example"; // String |
String knownGender = "knownGender_example"; // String |
try {
NameMatchCandidatesOut result = apiInstance.japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin);
NameMatchCandidatesOut result = apiInstance.japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JapaneseApi#japaneseNameKanjiCandidates");
Expand All @@ -421,6 +422,7 @@ public class Example {
|------------- | ------------- | ------------- | -------------|
| **japaneseSurnameLatin** | **String**| | |
| **japaneseGivenNameLatin** | **String**| | |
| **knownGender** | **String**| | |

### Return type

Expand All @@ -444,9 +446,9 @@ public class Example {

<a id="japaneseNameKanjiCandidates1"></a>
# **japaneseNameKanjiCandidates1**
> NameMatchCandidatesOut japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender)
> NameMatchCandidatesOut japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin)
Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender.
Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae

### Example
```java
Expand All @@ -472,9 +474,8 @@ public class Example {
JapaneseApi apiInstance = new JapaneseApi(defaultClient);
String japaneseSurnameLatin = "japaneseSurnameLatin_example"; // String |
String japaneseGivenNameLatin = "japaneseGivenNameLatin_example"; // String |
String knownGender = "knownGender_example"; // String |
try {
NameMatchCandidatesOut result = apiInstance.japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender);
NameMatchCandidatesOut result = apiInstance.japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JapaneseApi#japaneseNameKanjiCandidates1");
Expand All @@ -493,7 +494,6 @@ public class Example {
|------------- | ------------- | ------------- | -------------|
| **japaneseSurnameLatin** | **String**| | |
| **japaneseGivenNameLatin** | **String**| | |
| **knownGender** | **String**| | |

### Return type

Expand Down
Loading

0 comments on commit c710dac

Please sign in to comment.