@triveria/wallet 0.0.327 → 0.0.329

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 +188 -12
  2. package/api.js +300 -11
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -662,10 +662,44 @@ export interface EbsiConfiguration {
662
662
  export interface EbsiSpecificWalletData {
663
663
  'requiredDid'?: string;
664
664
  'isOnboarded': boolean;
665
+ /**
666
+ * The wallet is an EBSI legal entity identified by a did:ebsi. Needed before the wallet is onboarded.
667
+ */
668
+ 'legalEntity'?: boolean;
665
669
  'attributeId'?: string;
666
670
  'proxyUrl'?: string;
667
671
  'configuration': EbsiConfiguration;
668
672
  }
673
+ export interface EnrollmentInitPayload {
674
+ 'wallet': WalletCreatePayload;
675
+ /**
676
+ * Seconds until the enrollment expires; the deployment\'s default (7 days) when unset, at most its maximum (30 days).
677
+ */
678
+ 'expiresIn'?: number;
679
+ }
680
+ export interface EnrollmentInitResponse {
681
+ /**
682
+ * The one-time enrollment state. Hand it to the user who enrolls; it is not shown again.
683
+ */
684
+ 'state': string;
685
+ /**
686
+ * Identifies the enrollment for listing and revoking.
687
+ */
688
+ 'enrollmentId': string;
689
+ 'tenantId': string;
690
+ 'expiresAt': string;
691
+ }
692
+ export interface EnrollmentListItem {
693
+ 'enrollmentId': string;
694
+ 'walletName': string;
695
+ 'issuerProxyUrl'?: string;
696
+ /**
697
+ * The owner id of the Tenant Owner who created it.
698
+ */
699
+ 'createdBy': string;
700
+ 'createdAt': string;
701
+ 'expiresAt': string;
702
+ }
669
703
  /**
670
704
  * Prepares to accredit legal entity\'s DID
671
705
  */
@@ -1144,6 +1178,19 @@ export declare const SystemImpactStatusEnum: {
1144
1178
  readonly Critical: "critical";
1145
1179
  };
1146
1180
  export type SystemImpactStatusEnum = typeof SystemImpactStatusEnum[keyof typeof SystemImpactStatusEnum];
1181
+ /**
1182
+ * The part of the wallet config that belongs to the wallet\'s tenant. A wallet joins a tenant only by enrollment, and only a Tenant Owner of that tenant changes this block, through PATCH /wallets/{wallet_id}. It is ignored on wallet create and, for anyone else, on wallet patch.
1183
+ */
1184
+ export interface TenantConfig {
1185
+ /**
1186
+ * The tenant the wallet belongs to. It never changes.
1187
+ */
1188
+ 'tenantId'?: string;
1189
+ /**
1190
+ * The issuer proxy the wallet\'s clients use: an absolute URL, https when the deployment runs with production=true. An empty string clears it. Not declared as format uri, which rejects the empty string; the wallet validates any other value and answers 400 when it is not such a URL.
1191
+ */
1192
+ 'issuerProxyUrl'?: string;
1193
+ }
1147
1194
  /**
1148
1195
  * A transaction_data object (OpenID4VP 1.0 §5.1). Type-specific fields are kept as given.
1149
1196
  */
@@ -1387,10 +1434,6 @@ export interface WalletConfig {
1387
1434
  */
1388
1435
  'oidcRevision'?: OidcRevision;
1389
1436
  'trustFramework': TrustFrameworkType;
1390
- /**
1391
- * Defines if the specific wallet is a legal entity
1392
- */
1393
- 'legalEntity'?: boolean;
1394
1437
  'EBSI'?: EbsiSpecificWalletData;
1395
1438
  'EUDI'?: EudiConfiguration;
1396
1439
  'IDTL'?: IdtlConfiguration;
@@ -1400,6 +1443,7 @@ export interface WalletConfig {
1400
1443
  * Expiration time in seconds for credential status lists. Used only if the wallet is a credential issuer
1401
1444
  */
1402
1445
  'statusListExpiration'?: number;
1446
+ 'tenant'?: TenantConfig;
1403
1447
  }
1404
1448
  /**
1405
1449
  * Payload to create a wallet
@@ -1427,6 +1471,10 @@ export interface WalletListItem {
1427
1471
  'walletId': string;
1428
1472
  'name': string;
1429
1473
  'capabilities': Array<WalletCapability>;
1474
+ /**
1475
+ * The owner of the wallet. Set only when listing the wallets of a tenant.
1476
+ */
1477
+ 'ownerId'?: string;
1430
1478
  }
1431
1479
  export interface WalletNotification {
1432
1480
  /**
@@ -2073,6 +2121,37 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2073
2121
  * @throws {RequiredError}
2074
2122
  */
2075
2123
  pdfCredentialTwinUpload: (credentialId: string, walletId: string, pdf?: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2124
+ /**
2125
+ * Creates a wallet for the caller from a pending enrollment, in the tenant. A state can be used once. A caller whose token names another tenant is refused.
2126
+ * @param {string} tenantId
2127
+ * @param {string} state The enrollment state from TenantEnrollmentInit.
2128
+ * @param {*} [options] Override http request option.
2129
+ * @throws {RequiredError}
2130
+ */
2131
+ tenantEnrollmentEnroll: (tenantId: string, state: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2132
+ /**
2133
+ * Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored. The state is returned only here: the wallet keeps only its hash, which is the enrollment id.
2134
+ * @param {string} tenantId
2135
+ * @param {EnrollmentInitPayload} enrollmentInitPayload
2136
+ * @param {*} [options] Override http request option.
2137
+ * @throws {RequiredError}
2138
+ */
2139
+ tenantEnrollmentInit: (tenantId: string, enrollmentInitPayload: EnrollmentInitPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2140
+ /**
2141
+ * Lists the tenant\'s pending enrollments, oldest first. Only a Tenant Owner of the tenant may.
2142
+ * @param {string} tenantId
2143
+ * @param {*} [options] Override http request option.
2144
+ * @throws {RequiredError}
2145
+ */
2146
+ tenantEnrollmentList: (tenantId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2147
+ /**
2148
+ * Revokes a pending enrollment, so that its state no longer creates a wallet.
2149
+ * @param {string} tenantId
2150
+ * @param {string} enrollmentId
2151
+ * @param {*} [options] Override http request option.
2152
+ * @throws {RequiredError}
2153
+ */
2154
+ tenantEnrollmentRevoke: (tenantId: string, enrollmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2076
2155
  /**
2077
2156
  * Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing the appropriate accreditation credential to their DID.
2078
2157
  * @param {string} walletId
@@ -2239,10 +2318,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2239
2318
  * Provides list of wallets owned by the authenticated client, sorted by wallet name in byte order (Unicode code point order of the UTF-8 name, so upper case sorts before lower case). Wallets with the same name are in the order they were created.
2240
2319
  * @param {string} [ownerId]
2241
2320
  * @param {string} [searchName] Wallet name to search using \&quot;begins-with\&quot; filter
2321
+ * @param {string} [tenantId] Lists the wallets of every owner in this tenant instead, each with its ownerId. Only a Tenant Owner of the tenant may set it, and not together with ownerId.
2242
2322
  * @param {*} [options] Override http request option.
2243
2323
  * @throws {RequiredError}
2244
2324
  */
2245
- walletList: (ownerId?: string, searchName?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2325
+ walletList: (ownerId?: string, searchName?: string, tenantId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2246
2326
  /**
2247
2327
  * Gets a specific notification by state
2248
2328
  * @param {string} walletId Wallet ID
@@ -2275,7 +2355,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2275
2355
  */
2276
2356
  walletNotifications: (walletId: string, eventType?: string, state?: string, lastEventID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2277
2357
  /**
2278
- * Update wallet metadata and configuration.
2358
+ * Update wallet metadata and configuration. The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them. A Tenant Owner of the wallet\'s tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.
2279
2359
  * @param {string} walletId
2280
2360
  * @param {WalletPatchPayload} [walletPatchPayload]
2281
2361
  * @param {*} [options] Override http request option.
@@ -2755,6 +2835,37 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2755
2835
  * @throws {RequiredError}
2756
2836
  */
2757
2837
  pdfCredentialTwinUpload(credentialId: string, walletId: string, pdf?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2838
+ /**
2839
+ * Creates a wallet for the caller from a pending enrollment, in the tenant. A state can be used once. A caller whose token names another tenant is refused.
2840
+ * @param {string} tenantId
2841
+ * @param {string} state The enrollment state from TenantEnrollmentInit.
2842
+ * @param {*} [options] Override http request option.
2843
+ * @throws {RequiredError}
2844
+ */
2845
+ tenantEnrollmentEnroll(tenantId: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdObject>>;
2846
+ /**
2847
+ * Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored. The state is returned only here: the wallet keeps only its hash, which is the enrollment id.
2848
+ * @param {string} tenantId
2849
+ * @param {EnrollmentInitPayload} enrollmentInitPayload
2850
+ * @param {*} [options] Override http request option.
2851
+ * @throws {RequiredError}
2852
+ */
2853
+ tenantEnrollmentInit(tenantId: string, enrollmentInitPayload: EnrollmentInitPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnrollmentInitResponse>>;
2854
+ /**
2855
+ * Lists the tenant\'s pending enrollments, oldest first. Only a Tenant Owner of the tenant may.
2856
+ * @param {string} tenantId
2857
+ * @param {*} [options] Override http request option.
2858
+ * @throws {RequiredError}
2859
+ */
2860
+ tenantEnrollmentList(tenantId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EnrollmentListItem>>>;
2861
+ /**
2862
+ * Revokes a pending enrollment, so that its state no longer creates a wallet.
2863
+ * @param {string} tenantId
2864
+ * @param {string} enrollmentId
2865
+ * @param {*} [options] Override http request option.
2866
+ * @throws {RequiredError}
2867
+ */
2868
+ tenantEnrollmentRevoke(tenantId: string, enrollmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2758
2869
  /**
2759
2870
  * Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing the appropriate accreditation credential to their DID.
2760
2871
  * @param {string} walletId
@@ -2923,10 +3034,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2923
3034
  * Provides list of wallets owned by the authenticated client, sorted by wallet name in byte order (Unicode code point order of the UTF-8 name, so upper case sorts before lower case). Wallets with the same name are in the order they were created.
2924
3035
  * @param {string} [ownerId]
2925
3036
  * @param {string} [searchName] Wallet name to search using \&quot;begins-with\&quot; filter
3037
+ * @param {string} [tenantId] Lists the wallets of every owner in this tenant instead, each with its ownerId. Only a Tenant Owner of the tenant may set it, and not together with ownerId.
2926
3038
  * @param {*} [options] Override http request option.
2927
3039
  * @throws {RequiredError}
2928
3040
  */
2929
- walletList(ownerId?: string, searchName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WalletListItem>>>;
3041
+ walletList(ownerId?: string, searchName?: string, tenantId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WalletListItem>>>;
2930
3042
  /**
2931
3043
  * Gets a specific notification by state
2932
3044
  * @param {string} walletId Wallet ID
@@ -2959,7 +3071,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2959
3071
  */
2960
3072
  walletNotifications(walletId: string, eventType?: string, state?: string, lastEventID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
2961
3073
  /**
2962
- * Update wallet metadata and configuration.
3074
+ * Update wallet metadata and configuration. The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them. A Tenant Owner of the wallet\'s tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.
2963
3075
  * @param {string} walletId
2964
3076
  * @param {WalletPatchPayload} [walletPatchPayload]
2965
3077
  * @param {*} [options] Override http request option.
@@ -3439,6 +3551,37 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3439
3551
  * @throws {RequiredError}
3440
3552
  */
3441
3553
  pdfCredentialTwinUpload(credentialId: string, walletId: string, pdf?: File, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3554
+ /**
3555
+ * Creates a wallet for the caller from a pending enrollment, in the tenant. A state can be used once. A caller whose token names another tenant is refused.
3556
+ * @param {string} tenantId
3557
+ * @param {string} state The enrollment state from TenantEnrollmentInit.
3558
+ * @param {*} [options] Override http request option.
3559
+ * @throws {RequiredError}
3560
+ */
3561
+ tenantEnrollmentEnroll(tenantId: string, state: string, options?: RawAxiosRequestConfig): AxiosPromise<WalletIdObject>;
3562
+ /**
3563
+ * Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored. The state is returned only here: the wallet keeps only its hash, which is the enrollment id.
3564
+ * @param {string} tenantId
3565
+ * @param {EnrollmentInitPayload} enrollmentInitPayload
3566
+ * @param {*} [options] Override http request option.
3567
+ * @throws {RequiredError}
3568
+ */
3569
+ tenantEnrollmentInit(tenantId: string, enrollmentInitPayload: EnrollmentInitPayload, options?: RawAxiosRequestConfig): AxiosPromise<EnrollmentInitResponse>;
3570
+ /**
3571
+ * Lists the tenant\'s pending enrollments, oldest first. Only a Tenant Owner of the tenant may.
3572
+ * @param {string} tenantId
3573
+ * @param {*} [options] Override http request option.
3574
+ * @throws {RequiredError}
3575
+ */
3576
+ tenantEnrollmentList(tenantId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EnrollmentListItem>>;
3577
+ /**
3578
+ * Revokes a pending enrollment, so that its state no longer creates a wallet.
3579
+ * @param {string} tenantId
3580
+ * @param {string} enrollmentId
3581
+ * @param {*} [options] Override http request option.
3582
+ * @throws {RequiredError}
3583
+ */
3584
+ tenantEnrollmentRevoke(tenantId: string, enrollmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3442
3585
  /**
3443
3586
  * Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing the appropriate accreditation credential to their DID.
3444
3587
  * @param {string} walletId
@@ -3607,10 +3750,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3607
3750
  * Provides list of wallets owned by the authenticated client, sorted by wallet name in byte order (Unicode code point order of the UTF-8 name, so upper case sorts before lower case). Wallets with the same name are in the order they were created.
3608
3751
  * @param {string} [ownerId]
3609
3752
  * @param {string} [searchName] Wallet name to search using \&quot;begins-with\&quot; filter
3753
+ * @param {string} [tenantId] Lists the wallets of every owner in this tenant instead, each with its ownerId. Only a Tenant Owner of the tenant may set it, and not together with ownerId.
3610
3754
  * @param {*} [options] Override http request option.
3611
3755
  * @throws {RequiredError}
3612
3756
  */
3613
- walletList(ownerId?: string, searchName?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<WalletListItem>>;
3757
+ walletList(ownerId?: string, searchName?: string, tenantId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<WalletListItem>>;
3614
3758
  /**
3615
3759
  * Gets a specific notification by state
3616
3760
  * @param {string} walletId Wallet ID
@@ -3643,7 +3787,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3643
3787
  */
3644
3788
  walletNotifications(walletId: string, eventType?: string, state?: string, lastEventID?: string, options?: RawAxiosRequestConfig): AxiosPromise<File>;
3645
3789
  /**
3646
- * Update wallet metadata and configuration.
3790
+ * Update wallet metadata and configuration. The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them. A Tenant Owner of the wallet\'s tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.
3647
3791
  * @param {string} walletId
3648
3792
  * @param {WalletPatchPayload} [walletPatchPayload]
3649
3793
  * @param {*} [options] Override http request option.
@@ -4123,6 +4267,37 @@ export declare class DefaultApi extends BaseAPI {
4123
4267
  * @throws {RequiredError}
4124
4268
  */
4125
4269
  pdfCredentialTwinUpload(credentialId: string, walletId: string, pdf?: File, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
4270
+ /**
4271
+ * Creates a wallet for the caller from a pending enrollment, in the tenant. A state can be used once. A caller whose token names another tenant is refused.
4272
+ * @param {string} tenantId
4273
+ * @param {string} state The enrollment state from TenantEnrollmentInit.
4274
+ * @param {*} [options] Override http request option.
4275
+ * @throws {RequiredError}
4276
+ */
4277
+ tenantEnrollmentEnroll(tenantId: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdObject, any, {}>>;
4278
+ /**
4279
+ * Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored. The state is returned only here: the wallet keeps only its hash, which is the enrollment id.
4280
+ * @param {string} tenantId
4281
+ * @param {EnrollmentInitPayload} enrollmentInitPayload
4282
+ * @param {*} [options] Override http request option.
4283
+ * @throws {RequiredError}
4284
+ */
4285
+ tenantEnrollmentInit(tenantId: string, enrollmentInitPayload: EnrollmentInitPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EnrollmentInitResponse, any, {}>>;
4286
+ /**
4287
+ * Lists the tenant\'s pending enrollments, oldest first. Only a Tenant Owner of the tenant may.
4288
+ * @param {string} tenantId
4289
+ * @param {*} [options] Override http request option.
4290
+ * @throws {RequiredError}
4291
+ */
4292
+ tenantEnrollmentList(tenantId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EnrollmentListItem[], any, {}>>;
4293
+ /**
4294
+ * Revokes a pending enrollment, so that its state no longer creates a wallet.
4295
+ * @param {string} tenantId
4296
+ * @param {string} enrollmentId
4297
+ * @param {*} [options] Override http request option.
4298
+ * @throws {RequiredError}
4299
+ */
4300
+ tenantEnrollmentRevoke(tenantId: string, enrollmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
4126
4301
  /**
4127
4302
  * Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing the appropriate accreditation credential to their DID.
4128
4303
  * @param {string} walletId
@@ -4291,10 +4466,11 @@ export declare class DefaultApi extends BaseAPI {
4291
4466
  * Provides list of wallets owned by the authenticated client, sorted by wallet name in byte order (Unicode code point order of the UTF-8 name, so upper case sorts before lower case). Wallets with the same name are in the order they were created.
4292
4467
  * @param {string} [ownerId]
4293
4468
  * @param {string} [searchName] Wallet name to search using \&quot;begins-with\&quot; filter
4469
+ * @param {string} [tenantId] Lists the wallets of every owner in this tenant instead, each with its ownerId. Only a Tenant Owner of the tenant may set it, and not together with ownerId.
4294
4470
  * @param {*} [options] Override http request option.
4295
4471
  * @throws {RequiredError}
4296
4472
  */
4297
- walletList(ownerId?: string, searchName?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletListItem[], any, {}>>;
4473
+ walletList(ownerId?: string, searchName?: string, tenantId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletListItem[], any, {}>>;
4298
4474
  /**
4299
4475
  * Gets a specific notification by state
4300
4476
  * @param {string} walletId Wallet ID
@@ -4327,7 +4503,7 @@ export declare class DefaultApi extends BaseAPI {
4327
4503
  */
4328
4504
  walletNotifications(walletId: string, eventType?: string, state?: string, lastEventID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
4329
4505
  /**
4330
- * Update wallet metadata and configuration.
4506
+ * Update wallet metadata and configuration. The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them. A Tenant Owner of the wallet\'s tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.
4331
4507
  * @param {string} walletId
4332
4508
  * @param {WalletPatchPayload} [walletPatchPayload]
4333
4509
  * @param {*} [options] Override http request option.
package/api.js CHANGED
@@ -1692,6 +1692,147 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1692
1692
  options: localVarRequestOptions,
1693
1693
  };
1694
1694
  }),
1695
+ /**
1696
+ * Creates a wallet for the caller from a pending enrollment, in the tenant. A state can be used once. A caller whose token names another tenant is refused.
1697
+ * @param {string} tenantId
1698
+ * @param {string} state The enrollment state from TenantEnrollmentInit.
1699
+ * @param {*} [options] Override http request option.
1700
+ * @throws {RequiredError}
1701
+ */
1702
+ tenantEnrollmentEnroll: (tenantId_1, state_1, ...args_1) => __awaiter(this, [tenantId_1, state_1, ...args_1], void 0, function* (tenantId, state, options = {}) {
1703
+ // verify required parameter 'tenantId' is not null or undefined
1704
+ (0, common_1.assertParamExists)('tenantEnrollmentEnroll', 'tenantId', tenantId);
1705
+ // verify required parameter 'state' is not null or undefined
1706
+ (0, common_1.assertParamExists)('tenantEnrollmentEnroll', 'state', state);
1707
+ const localVarPath = `/tenant/{tenant_id}/enrollment/{state}`
1708
+ .replace('{tenant_id}', encodeURIComponent(String(tenantId)))
1709
+ .replace('{state}', encodeURIComponent(String(state)));
1710
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1711
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1712
+ let baseOptions;
1713
+ if (configuration) {
1714
+ baseOptions = configuration.baseOptions;
1715
+ }
1716
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1717
+ const localVarHeaderParameter = {};
1718
+ const localVarQueryParameter = {};
1719
+ // authentication accessToken required
1720
+ // http bearer authentication required
1721
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1722
+ localVarHeaderParameter['Accept'] = 'application/json';
1723
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1724
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1725
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1726
+ return {
1727
+ url: (0, common_1.toPathString)(localVarUrlObj),
1728
+ options: localVarRequestOptions,
1729
+ };
1730
+ }),
1731
+ /**
1732
+ * Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored. The state is returned only here: the wallet keeps only its hash, which is the enrollment id.
1733
+ * @param {string} tenantId
1734
+ * @param {EnrollmentInitPayload} enrollmentInitPayload
1735
+ * @param {*} [options] Override http request option.
1736
+ * @throws {RequiredError}
1737
+ */
1738
+ tenantEnrollmentInit: (tenantId_1, enrollmentInitPayload_1, ...args_1) => __awaiter(this, [tenantId_1, enrollmentInitPayload_1, ...args_1], void 0, function* (tenantId, enrollmentInitPayload, options = {}) {
1739
+ // verify required parameter 'tenantId' is not null or undefined
1740
+ (0, common_1.assertParamExists)('tenantEnrollmentInit', 'tenantId', tenantId);
1741
+ // verify required parameter 'enrollmentInitPayload' is not null or undefined
1742
+ (0, common_1.assertParamExists)('tenantEnrollmentInit', 'enrollmentInitPayload', enrollmentInitPayload);
1743
+ const localVarPath = `/tenant/{tenant_id}/enrollment/init`
1744
+ .replace('{tenant_id}', encodeURIComponent(String(tenantId)));
1745
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1746
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1747
+ let baseOptions;
1748
+ if (configuration) {
1749
+ baseOptions = configuration.baseOptions;
1750
+ }
1751
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1752
+ const localVarHeaderParameter = {};
1753
+ const localVarQueryParameter = {};
1754
+ // authentication accessToken required
1755
+ // http bearer authentication required
1756
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1757
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1758
+ localVarHeaderParameter['Accept'] = 'application/json';
1759
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1760
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1761
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1762
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(enrollmentInitPayload, localVarRequestOptions, configuration);
1763
+ return {
1764
+ url: (0, common_1.toPathString)(localVarUrlObj),
1765
+ options: localVarRequestOptions,
1766
+ };
1767
+ }),
1768
+ /**
1769
+ * Lists the tenant\'s pending enrollments, oldest first. Only a Tenant Owner of the tenant may.
1770
+ * @param {string} tenantId
1771
+ * @param {*} [options] Override http request option.
1772
+ * @throws {RequiredError}
1773
+ */
1774
+ tenantEnrollmentList: (tenantId_1, ...args_1) => __awaiter(this, [tenantId_1, ...args_1], void 0, function* (tenantId, options = {}) {
1775
+ // verify required parameter 'tenantId' is not null or undefined
1776
+ (0, common_1.assertParamExists)('tenantEnrollmentList', 'tenantId', tenantId);
1777
+ const localVarPath = `/tenant/{tenant_id}/enrollments`
1778
+ .replace('{tenant_id}', encodeURIComponent(String(tenantId)));
1779
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1780
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1781
+ let baseOptions;
1782
+ if (configuration) {
1783
+ baseOptions = configuration.baseOptions;
1784
+ }
1785
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1786
+ const localVarHeaderParameter = {};
1787
+ const localVarQueryParameter = {};
1788
+ // authentication accessToken required
1789
+ // http bearer authentication required
1790
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1791
+ localVarHeaderParameter['Accept'] = 'application/json';
1792
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1793
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1794
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1795
+ return {
1796
+ url: (0, common_1.toPathString)(localVarUrlObj),
1797
+ options: localVarRequestOptions,
1798
+ };
1799
+ }),
1800
+ /**
1801
+ * Revokes a pending enrollment, so that its state no longer creates a wallet.
1802
+ * @param {string} tenantId
1803
+ * @param {string} enrollmentId
1804
+ * @param {*} [options] Override http request option.
1805
+ * @throws {RequiredError}
1806
+ */
1807
+ tenantEnrollmentRevoke: (tenantId_1, enrollmentId_1, ...args_1) => __awaiter(this, [tenantId_1, enrollmentId_1, ...args_1], void 0, function* (tenantId, enrollmentId, options = {}) {
1808
+ // verify required parameter 'tenantId' is not null or undefined
1809
+ (0, common_1.assertParamExists)('tenantEnrollmentRevoke', 'tenantId', tenantId);
1810
+ // verify required parameter 'enrollmentId' is not null or undefined
1811
+ (0, common_1.assertParamExists)('tenantEnrollmentRevoke', 'enrollmentId', enrollmentId);
1812
+ const localVarPath = `/tenant/{tenant_id}/enrollments/{enrollment_id}`
1813
+ .replace('{tenant_id}', encodeURIComponent(String(tenantId)))
1814
+ .replace('{enrollment_id}', encodeURIComponent(String(enrollmentId)));
1815
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1816
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1817
+ let baseOptions;
1818
+ if (configuration) {
1819
+ baseOptions = configuration.baseOptions;
1820
+ }
1821
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1822
+ const localVarHeaderParameter = {};
1823
+ const localVarQueryParameter = {};
1824
+ // authentication accessToken required
1825
+ // http bearer authentication required
1826
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1827
+ localVarHeaderParameter['Accept'] = 'application/json';
1828
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1829
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1830
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1831
+ return {
1832
+ url: (0, common_1.toPathString)(localVarUrlObj),
1833
+ options: localVarRequestOptions,
1834
+ };
1835
+ }),
1695
1836
  /**
1696
1837
  * Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing the appropriate accreditation credential to their DID.
1697
1838
  * @param {string} walletId
@@ -2455,10 +2596,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2455
2596
  * Provides list of wallets owned by the authenticated client, sorted by wallet name in byte order (Unicode code point order of the UTF-8 name, so upper case sorts before lower case). Wallets with the same name are in the order they were created.
2456
2597
  * @param {string} [ownerId]
2457
2598
  * @param {string} [searchName] Wallet name to search using \&quot;begins-with\&quot; filter
2599
+ * @param {string} [tenantId] Lists the wallets of every owner in this tenant instead, each with its ownerId. Only a Tenant Owner of the tenant may set it, and not together with ownerId.
2458
2600
  * @param {*} [options] Override http request option.
2459
2601
  * @throws {RequiredError}
2460
2602
  */
2461
- walletList: (ownerId_1, searchName_1, ...args_1) => __awaiter(this, [ownerId_1, searchName_1, ...args_1], void 0, function* (ownerId, searchName, options = {}) {
2603
+ walletList: (ownerId_1, searchName_1, tenantId_1, ...args_1) => __awaiter(this, [ownerId_1, searchName_1, tenantId_1, ...args_1], void 0, function* (ownerId, searchName, tenantId, options = {}) {
2462
2604
  const localVarPath = `/wallets`;
2463
2605
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2464
2606
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2478,6 +2620,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2478
2620
  if (searchName !== undefined) {
2479
2621
  localVarQueryParameter['searchName'] = searchName;
2480
2622
  }
2623
+ if (tenantId !== undefined) {
2624
+ localVarQueryParameter['tenantId'] = tenantId;
2625
+ }
2481
2626
  localVarHeaderParameter['Accept'] = 'application/json';
2482
2627
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2483
2628
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -2624,7 +2769,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2624
2769
  };
2625
2770
  }),
2626
2771
  /**
2627
- * Update wallet metadata and configuration.
2772
+ * Update wallet metadata and configuration. The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them. A Tenant Owner of the wallet\'s tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.
2628
2773
  * @param {string} walletId
2629
2774
  * @param {WalletPatchPayload} [walletPatchPayload]
2630
2775
  * @param {*} [options] Override http request option.
@@ -4018,6 +4163,69 @@ const DefaultApiFp = function (configuration) {
4018
4163
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4019
4164
  });
4020
4165
  },
4166
+ /**
4167
+ * Creates a wallet for the caller from a pending enrollment, in the tenant. A state can be used once. A caller whose token names another tenant is refused.
4168
+ * @param {string} tenantId
4169
+ * @param {string} state The enrollment state from TenantEnrollmentInit.
4170
+ * @param {*} [options] Override http request option.
4171
+ * @throws {RequiredError}
4172
+ */
4173
+ tenantEnrollmentEnroll(tenantId, state, options) {
4174
+ return __awaiter(this, void 0, void 0, function* () {
4175
+ var _a, _b, _c;
4176
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tenantEnrollmentEnroll(tenantId, state, options);
4177
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4178
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tenantEnrollmentEnroll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4179
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4180
+ });
4181
+ },
4182
+ /**
4183
+ * Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored. The state is returned only here: the wallet keeps only its hash, which is the enrollment id.
4184
+ * @param {string} tenantId
4185
+ * @param {EnrollmentInitPayload} enrollmentInitPayload
4186
+ * @param {*} [options] Override http request option.
4187
+ * @throws {RequiredError}
4188
+ */
4189
+ tenantEnrollmentInit(tenantId, enrollmentInitPayload, options) {
4190
+ return __awaiter(this, void 0, void 0, function* () {
4191
+ var _a, _b, _c;
4192
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tenantEnrollmentInit(tenantId, enrollmentInitPayload, options);
4193
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4194
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tenantEnrollmentInit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4195
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4196
+ });
4197
+ },
4198
+ /**
4199
+ * Lists the tenant\'s pending enrollments, oldest first. Only a Tenant Owner of the tenant may.
4200
+ * @param {string} tenantId
4201
+ * @param {*} [options] Override http request option.
4202
+ * @throws {RequiredError}
4203
+ */
4204
+ tenantEnrollmentList(tenantId, options) {
4205
+ return __awaiter(this, void 0, void 0, function* () {
4206
+ var _a, _b, _c;
4207
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tenantEnrollmentList(tenantId, options);
4208
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4209
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tenantEnrollmentList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4210
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4211
+ });
4212
+ },
4213
+ /**
4214
+ * Revokes a pending enrollment, so that its state no longer creates a wallet.
4215
+ * @param {string} tenantId
4216
+ * @param {string} enrollmentId
4217
+ * @param {*} [options] Override http request option.
4218
+ * @throws {RequiredError}
4219
+ */
4220
+ tenantEnrollmentRevoke(tenantId, enrollmentId, options) {
4221
+ return __awaiter(this, void 0, void 0, function* () {
4222
+ var _a, _b, _c;
4223
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tenantEnrollmentRevoke(tenantId, enrollmentId, options);
4224
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4225
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tenantEnrollmentRevoke']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4226
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4227
+ });
4228
+ },
4021
4229
  /**
4022
4230
  * Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing the appropriate accreditation credential to their DID.
4023
4231
  * @param {string} walletId
@@ -4352,13 +4560,14 @@ const DefaultApiFp = function (configuration) {
4352
4560
  * Provides list of wallets owned by the authenticated client, sorted by wallet name in byte order (Unicode code point order of the UTF-8 name, so upper case sorts before lower case). Wallets with the same name are in the order they were created.
4353
4561
  * @param {string} [ownerId]
4354
4562
  * @param {string} [searchName] Wallet name to search using \&quot;begins-with\&quot; filter
4563
+ * @param {string} [tenantId] Lists the wallets of every owner in this tenant instead, each with its ownerId. Only a Tenant Owner of the tenant may set it, and not together with ownerId.
4355
4564
  * @param {*} [options] Override http request option.
4356
4565
  * @throws {RequiredError}
4357
4566
  */
4358
- walletList(ownerId, searchName, options) {
4567
+ walletList(ownerId, searchName, tenantId, options) {
4359
4568
  return __awaiter(this, void 0, void 0, function* () {
4360
4569
  var _a, _b, _c;
4361
- const localVarAxiosArgs = yield localVarAxiosParamCreator.walletList(ownerId, searchName, options);
4570
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletList(ownerId, searchName, tenantId, options);
4362
4571
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4363
4572
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4364
4573
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4420,7 +4629,7 @@ const DefaultApiFp = function (configuration) {
4420
4629
  });
4421
4630
  },
4422
4631
  /**
4423
- * Update wallet metadata and configuration.
4632
+ * Update wallet metadata and configuration. The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them. A Tenant Owner of the wallet\'s tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.
4424
4633
  * @param {string} walletId
4425
4634
  * @param {WalletPatchPayload} [walletPatchPayload]
4426
4635
  * @param {*} [options] Override http request option.
@@ -5142,6 +5351,45 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
5142
5351
  pdfCredentialTwinUpload(credentialId, walletId, pdf, options) {
5143
5352
  return localVarFp.pdfCredentialTwinUpload(credentialId, walletId, pdf, options).then((request) => request(axios, basePath));
5144
5353
  },
5354
+ /**
5355
+ * Creates a wallet for the caller from a pending enrollment, in the tenant. A state can be used once. A caller whose token names another tenant is refused.
5356
+ * @param {string} tenantId
5357
+ * @param {string} state The enrollment state from TenantEnrollmentInit.
5358
+ * @param {*} [options] Override http request option.
5359
+ * @throws {RequiredError}
5360
+ */
5361
+ tenantEnrollmentEnroll(tenantId, state, options) {
5362
+ return localVarFp.tenantEnrollmentEnroll(tenantId, state, options).then((request) => request(axios, basePath));
5363
+ },
5364
+ /**
5365
+ * Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored. The state is returned only here: the wallet keeps only its hash, which is the enrollment id.
5366
+ * @param {string} tenantId
5367
+ * @param {EnrollmentInitPayload} enrollmentInitPayload
5368
+ * @param {*} [options] Override http request option.
5369
+ * @throws {RequiredError}
5370
+ */
5371
+ tenantEnrollmentInit(tenantId, enrollmentInitPayload, options) {
5372
+ return localVarFp.tenantEnrollmentInit(tenantId, enrollmentInitPayload, options).then((request) => request(axios, basePath));
5373
+ },
5374
+ /**
5375
+ * Lists the tenant\'s pending enrollments, oldest first. Only a Tenant Owner of the tenant may.
5376
+ * @param {string} tenantId
5377
+ * @param {*} [options] Override http request option.
5378
+ * @throws {RequiredError}
5379
+ */
5380
+ tenantEnrollmentList(tenantId, options) {
5381
+ return localVarFp.tenantEnrollmentList(tenantId, options).then((request) => request(axios, basePath));
5382
+ },
5383
+ /**
5384
+ * Revokes a pending enrollment, so that its state no longer creates a wallet.
5385
+ * @param {string} tenantId
5386
+ * @param {string} enrollmentId
5387
+ * @param {*} [options] Override http request option.
5388
+ * @throws {RequiredError}
5389
+ */
5390
+ tenantEnrollmentRevoke(tenantId, enrollmentId, options) {
5391
+ return localVarFp.tenantEnrollmentRevoke(tenantId, enrollmentId, options).then((request) => request(axios, basePath));
5392
+ },
5145
5393
  /**
5146
5394
  * Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing the appropriate accreditation credential to their DID.
5147
5395
  * @param {string} walletId
@@ -5350,11 +5598,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
5350
5598
  * Provides list of wallets owned by the authenticated client, sorted by wallet name in byte order (Unicode code point order of the UTF-8 name, so upper case sorts before lower case). Wallets with the same name are in the order they were created.
5351
5599
  * @param {string} [ownerId]
5352
5600
  * @param {string} [searchName] Wallet name to search using \&quot;begins-with\&quot; filter
5601
+ * @param {string} [tenantId] Lists the wallets of every owner in this tenant instead, each with its ownerId. Only a Tenant Owner of the tenant may set it, and not together with ownerId.
5353
5602
  * @param {*} [options] Override http request option.
5354
5603
  * @throws {RequiredError}
5355
5604
  */
5356
- walletList(ownerId, searchName, options) {
5357
- return localVarFp.walletList(ownerId, searchName, options).then((request) => request(axios, basePath));
5605
+ walletList(ownerId, searchName, tenantId, options) {
5606
+ return localVarFp.walletList(ownerId, searchName, tenantId, options).then((request) => request(axios, basePath));
5358
5607
  },
5359
5608
  /**
5360
5609
  * Gets a specific notification by state
@@ -5394,7 +5643,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
5394
5643
  return localVarFp.walletNotifications(walletId, eventType, state, lastEventID, options).then((request) => request(axios, basePath));
5395
5644
  },
5396
5645
  /**
5397
- * Update wallet metadata and configuration.
5646
+ * Update wallet metadata and configuration. The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them. A Tenant Owner of the wallet\'s tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.
5398
5647
  * @param {string} walletId
5399
5648
  * @param {WalletPatchPayload} [walletPatchPayload]
5400
5649
  * @param {*} [options] Override http request option.
@@ -5988,6 +6237,45 @@ class DefaultApi extends base_1.BaseAPI {
5988
6237
  pdfCredentialTwinUpload(credentialId, walletId, pdf, options) {
5989
6238
  return (0, exports.DefaultApiFp)(this.configuration).pdfCredentialTwinUpload(credentialId, walletId, pdf, options).then((request) => request(this.axios, this.basePath));
5990
6239
  }
6240
+ /**
6241
+ * Creates a wallet for the caller from a pending enrollment, in the tenant. A state can be used once. A caller whose token names another tenant is refused.
6242
+ * @param {string} tenantId
6243
+ * @param {string} state The enrollment state from TenantEnrollmentInit.
6244
+ * @param {*} [options] Override http request option.
6245
+ * @throws {RequiredError}
6246
+ */
6247
+ tenantEnrollmentEnroll(tenantId, state, options) {
6248
+ return (0, exports.DefaultApiFp)(this.configuration).tenantEnrollmentEnroll(tenantId, state, options).then((request) => request(this.axios, this.basePath));
6249
+ }
6250
+ /**
6251
+ * Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored. The state is returned only here: the wallet keeps only its hash, which is the enrollment id.
6252
+ * @param {string} tenantId
6253
+ * @param {EnrollmentInitPayload} enrollmentInitPayload
6254
+ * @param {*} [options] Override http request option.
6255
+ * @throws {RequiredError}
6256
+ */
6257
+ tenantEnrollmentInit(tenantId, enrollmentInitPayload, options) {
6258
+ return (0, exports.DefaultApiFp)(this.configuration).tenantEnrollmentInit(tenantId, enrollmentInitPayload, options).then((request) => request(this.axios, this.basePath));
6259
+ }
6260
+ /**
6261
+ * Lists the tenant\'s pending enrollments, oldest first. Only a Tenant Owner of the tenant may.
6262
+ * @param {string} tenantId
6263
+ * @param {*} [options] Override http request option.
6264
+ * @throws {RequiredError}
6265
+ */
6266
+ tenantEnrollmentList(tenantId, options) {
6267
+ return (0, exports.DefaultApiFp)(this.configuration).tenantEnrollmentList(tenantId, options).then((request) => request(this.axios, this.basePath));
6268
+ }
6269
+ /**
6270
+ * Revokes a pending enrollment, so that its state no longer creates a wallet.
6271
+ * @param {string} tenantId
6272
+ * @param {string} enrollmentId
6273
+ * @param {*} [options] Override http request option.
6274
+ * @throws {RequiredError}
6275
+ */
6276
+ tenantEnrollmentRevoke(tenantId, enrollmentId, options) {
6277
+ return (0, exports.DefaultApiFp)(this.configuration).tenantEnrollmentRevoke(tenantId, enrollmentId, options).then((request) => request(this.axios, this.basePath));
6278
+ }
5991
6279
  /**
5992
6280
  * Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing the appropriate accreditation credential to their DID.
5993
6281
  * @param {string} walletId
@@ -6196,11 +6484,12 @@ class DefaultApi extends base_1.BaseAPI {
6196
6484
  * Provides list of wallets owned by the authenticated client, sorted by wallet name in byte order (Unicode code point order of the UTF-8 name, so upper case sorts before lower case). Wallets with the same name are in the order they were created.
6197
6485
  * @param {string} [ownerId]
6198
6486
  * @param {string} [searchName] Wallet name to search using \&quot;begins-with\&quot; filter
6487
+ * @param {string} [tenantId] Lists the wallets of every owner in this tenant instead, each with its ownerId. Only a Tenant Owner of the tenant may set it, and not together with ownerId.
6199
6488
  * @param {*} [options] Override http request option.
6200
6489
  * @throws {RequiredError}
6201
6490
  */
6202
- walletList(ownerId, searchName, options) {
6203
- return (0, exports.DefaultApiFp)(this.configuration).walletList(ownerId, searchName, options).then((request) => request(this.axios, this.basePath));
6491
+ walletList(ownerId, searchName, tenantId, options) {
6492
+ return (0, exports.DefaultApiFp)(this.configuration).walletList(ownerId, searchName, tenantId, options).then((request) => request(this.axios, this.basePath));
6204
6493
  }
6205
6494
  /**
6206
6495
  * Gets a specific notification by state
@@ -6240,7 +6529,7 @@ class DefaultApi extends base_1.BaseAPI {
6240
6529
  return (0, exports.DefaultApiFp)(this.configuration).walletNotifications(walletId, eventType, state, lastEventID, options).then((request) => request(this.axios, this.basePath));
6241
6530
  }
6242
6531
  /**
6243
- * Update wallet metadata and configuration.
6532
+ * Update wallet metadata and configuration. The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them. A Tenant Owner of the wallet\'s tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.
6244
6533
  * @param {string} walletId
6245
6534
  * @param {WalletPatchPayload} [walletPatchPayload]
6246
6535
  * @param {*} [options] Override http request option.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.327",
4
+ "version": "0.0.329",
5
5
  "description": "",
6
6
  "repository": {
7
7
  "type": "git",