@idunion/tl-sdk 0.0.62 → 0.0.64

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 (3) hide show
  1. package/api.d.ts +20 -8
  2. package/api.js +8 -8
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -200,6 +200,10 @@ export interface Tl {
200
200
  * Contact email address for the Trust List owner. Only returned by the authenticated owner-facing TlGet endpoint, not exposed in public directory responses.
201
201
  */
202
202
  'email'?: string;
203
+ /**
204
+ * Name of the organization operating the Trust List.
205
+ */
206
+ 'organization'?: string;
203
207
  }
204
208
  export interface TlList {
205
209
  'items'?: Array<Tl>;
@@ -230,6 +234,10 @@ export interface TlPayload {
230
234
  * Contact email address for the Trust List owner.
231
235
  */
232
236
  'email'?: string;
237
+ /**
238
+ * Name of the organization operating the Trust List.
239
+ */
240
+ 'organization'?: string;
233
241
  }
234
242
  /**
235
243
  * Trust List meta info
@@ -251,6 +259,10 @@ export interface TlPublicInfo {
251
259
  * Contact email address for the Trust List owner.
252
260
  */
253
261
  'email'?: string;
262
+ /**
263
+ * Name of the organization operating the Trust List.
264
+ */
265
+ 'organization'?: string;
254
266
  }
255
267
  export interface TlPublicInfoList {
256
268
  'items'?: Array<TlPublicInfo>;
@@ -503,11 +515,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
503
515
  tlrGet: (tlId: string, tlrId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
504
516
  /**
505
517
  * Searches for Trust List Records across all Trust Lists by organization name. No authentication is required. Used by public-facing directory or search features to find entities registered under a given organization name.
506
- * @param {string} orgName
518
+ * @param {string} [orgName]
507
519
  * @param {*} [options] Override http request option.
508
520
  * @throws {RequiredError}
509
521
  */
510
- tlrSearch: (orgName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
522
+ tlrSearch: (orgName?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
511
523
  /**
512
524
  * Returns the full chain of Trust List Records from the root trust anchor down to the specified record. Each element in the array represents one step in the chain of trust, showing which entities issued or accredited the next. Used to visualize and verify the complete trust path for a given organization.
513
525
  * @param {string} tlId Trust List Identifier
@@ -680,11 +692,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
680
692
  tlrGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tlr>>;
681
693
  /**
682
694
  * Searches for Trust List Records across all Trust Lists by organization name. No authentication is required. Used by public-facing directory or search features to find entities registered under a given organization name.
683
- * @param {string} orgName
695
+ * @param {string} [orgName]
684
696
  * @param {*} [options] Override http request option.
685
697
  * @throws {RequiredError}
686
698
  */
687
- tlrSearch(orgName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlrList>>;
699
+ tlrSearch(orgName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlrList>>;
688
700
  /**
689
701
  * Returns the full chain of Trust List Records from the root trust anchor down to the specified record. Each element in the array represents one step in the chain of trust, showing which entities issued or accredited the next. Used to visualize and verify the complete trust path for a given organization.
690
702
  * @param {string} tlId Trust List Identifier
@@ -857,11 +869,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
857
869
  tlrGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): AxiosPromise<Tlr>;
858
870
  /**
859
871
  * Searches for Trust List Records across all Trust Lists by organization name. No authentication is required. Used by public-facing directory or search features to find entities registered under a given organization name.
860
- * @param {string} orgName
872
+ * @param {string} [orgName]
861
873
  * @param {*} [options] Override http request option.
862
874
  * @throws {RequiredError}
863
875
  */
864
- tlrSearch(orgName: string, options?: RawAxiosRequestConfig): AxiosPromise<TlrList>;
876
+ tlrSearch(orgName?: string, options?: RawAxiosRequestConfig): AxiosPromise<TlrList>;
865
877
  /**
866
878
  * Returns the full chain of Trust List Records from the root trust anchor down to the specified record. Each element in the array represents one step in the chain of trust, showing which entities issued or accredited the next. Used to visualize and verify the complete trust path for a given organization.
867
879
  * @param {string} tlId Trust List Identifier
@@ -1034,11 +1046,11 @@ export declare class DefaultApi extends BaseAPI {
1034
1046
  tlrGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tlr, any>>;
1035
1047
  /**
1036
1048
  * Searches for Trust List Records across all Trust Lists by organization name. No authentication is required. Used by public-facing directory or search features to find entities registered under a given organization name.
1037
- * @param {string} orgName
1049
+ * @param {string} [orgName]
1038
1050
  * @param {*} [options] Override http request option.
1039
1051
  * @throws {RequiredError}
1040
1052
  */
1041
- tlrSearch(orgName: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlrList, any>>;
1053
+ tlrSearch(orgName?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlrList, any>>;
1042
1054
  /**
1043
1055
  * Returns the full chain of Trust List Records from the root trust anchor down to the specified record. Each element in the array represents one step in the chain of trust, showing which entities issued or accredited the next. Used to visualize and verify the complete trust path for a given organization.
1044
1056
  * @param {string} tlId Trust List Identifier
package/api.js CHANGED
@@ -680,15 +680,12 @@ const DefaultApiAxiosParamCreator = function (configuration) {
680
680
  }),
681
681
  /**
682
682
  * Searches for Trust List Records across all Trust Lists by organization name. No authentication is required. Used by public-facing directory or search features to find entities registered under a given organization name.
683
- * @param {string} orgName
683
+ * @param {string} [orgName]
684
684
  * @param {*} [options] Override http request option.
685
685
  * @throws {RequiredError}
686
686
  */
687
687
  tlrSearch: (orgName_1, ...args_1) => __awaiter(this, [orgName_1, ...args_1], void 0, function* (orgName, options = {}) {
688
- // verify required parameter 'orgName' is not null or undefined
689
- (0, common_1.assertParamExists)('tlrSearch', 'orgName', orgName);
690
- const localVarPath = `/tlrs/{org_name}`
691
- .replace(`{${"org_name"}}`, encodeURIComponent(String(orgName)));
688
+ const localVarPath = `/tlrs`;
692
689
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
693
690
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
694
691
  let baseOptions;
@@ -698,6 +695,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
698
695
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
699
696
  const localVarHeaderParameter = {};
700
697
  const localVarQueryParameter = {};
698
+ if (orgName !== undefined) {
699
+ localVarQueryParameter['org_name'] = orgName;
700
+ }
701
701
  localVarHeaderParameter['Accept'] = 'application/json';
702
702
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
703
703
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1116,7 +1116,7 @@ const DefaultApiFp = function (configuration) {
1116
1116
  },
1117
1117
  /**
1118
1118
  * Searches for Trust List Records across all Trust Lists by organization name. No authentication is required. Used by public-facing directory or search features to find entities registered under a given organization name.
1119
- * @param {string} orgName
1119
+ * @param {string} [orgName]
1120
1120
  * @param {*} [options] Override http request option.
1121
1121
  * @throws {RequiredError}
1122
1122
  */
@@ -1367,7 +1367,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1367
1367
  },
1368
1368
  /**
1369
1369
  * Searches for Trust List Records across all Trust Lists by organization name. No authentication is required. Used by public-facing directory or search features to find entities registered under a given organization name.
1370
- * @param {string} orgName
1370
+ * @param {string} [orgName]
1371
1371
  * @param {*} [options] Override http request option.
1372
1372
  * @throws {RequiredError}
1373
1373
  */
@@ -1592,7 +1592,7 @@ class DefaultApi extends base_1.BaseAPI {
1592
1592
  }
1593
1593
  /**
1594
1594
  * Searches for Trust List Records across all Trust Lists by organization name. No authentication is required. Used by public-facing directory or search features to find entities registered under a given organization name.
1595
- * @param {string} orgName
1595
+ * @param {string} [orgName]
1596
1596
  * @param {*} [options] Override http request option.
1597
1597
  * @throws {RequiredError}
1598
1598
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idunion/tl-sdk",
3
3
  "private": false,
4
- "version": "0.0.62",
4
+ "version": "0.0.64",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {