@ledgerhq/revault-api 1.52.0 → 1.53.0

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 (2) hide show
  1. package/lib/index.d.mts +102 -1
  2. package/package.json +1 -1
package/lib/index.d.mts CHANGED
@@ -1381,6 +1381,101 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
1381
1381
  } & RateLimitMetricsMeta;
1382
1382
  }>;
1383
1383
  }>>;
1384
+ getOidcConfig: _trpc_server.TRPCQueryProcedure<{
1385
+ input: {
1386
+ workspaceName: string;
1387
+ };
1388
+ output: {
1389
+ oidcConfig: {
1390
+ url: string;
1391
+ clientId: string;
1392
+ realm: string;
1393
+ } | null;
1394
+ };
1395
+ meta: {
1396
+ [x: string]: unknown;
1397
+ } & {
1398
+ openapi?: {
1399
+ enabled?: boolean;
1400
+ method: trpc_to_openapi.OpenApiMethod;
1401
+ path: `/${string}`;
1402
+ operationId?: string;
1403
+ summary?: string;
1404
+ description?: string;
1405
+ protect?: boolean;
1406
+ tags?: string[];
1407
+ contentTypes?: trpc_to_openapi.OpenApiContentType[];
1408
+ deprecated?: boolean;
1409
+ requestHeaders?: z.ZodObject;
1410
+ responseHeaders?: z.ZodObject;
1411
+ successDescription?: string;
1412
+ errorResponses?: number[] | Record<number, string>;
1413
+ };
1414
+ } & RateLimitMetricsMeta;
1415
+ }>;
1416
+ exchangeSsoCredentials: _trpc_server.TRPCMutationProcedure<{
1417
+ input: {
1418
+ accessToken: string;
1419
+ validityDurationSecs?: number | undefined;
1420
+ };
1421
+ output: {
1422
+ token: string;
1423
+ status: "LOGGED_IN";
1424
+ } | {
1425
+ status: "NOT_PAIRED";
1426
+ };
1427
+ meta: {
1428
+ [x: string]: unknown;
1429
+ } & {
1430
+ openapi?: {
1431
+ enabled?: boolean;
1432
+ method: trpc_to_openapi.OpenApiMethod;
1433
+ path: `/${string}`;
1434
+ operationId?: string;
1435
+ summary?: string;
1436
+ description?: string;
1437
+ protect?: boolean;
1438
+ tags?: string[];
1439
+ contentTypes?: trpc_to_openapi.OpenApiContentType[];
1440
+ deprecated?: boolean;
1441
+ requestHeaders?: z.ZodObject;
1442
+ responseHeaders?: z.ZodObject;
1443
+ successDescription?: string;
1444
+ errorResponses?: number[] | Record<number, string>;
1445
+ };
1446
+ } & RateLimitMetricsMeta;
1447
+ }>;
1448
+ pairDeviceToSsoUser: _trpc_server.TRPCMutationProcedure<{
1449
+ input: {
1450
+ accessToken: string;
1451
+ pubKey: string;
1452
+ authentication: string;
1453
+ validityDurationSecs?: number | undefined;
1454
+ };
1455
+ output: {
1456
+ token: string;
1457
+ };
1458
+ meta: {
1459
+ [x: string]: unknown;
1460
+ } & {
1461
+ openapi?: {
1462
+ enabled?: boolean;
1463
+ method: trpc_to_openapi.OpenApiMethod;
1464
+ path: `/${string}`;
1465
+ operationId?: string;
1466
+ summary?: string;
1467
+ description?: string;
1468
+ protect?: boolean;
1469
+ tags?: string[];
1470
+ contentTypes?: trpc_to_openapi.OpenApiContentType[];
1471
+ deprecated?: boolean;
1472
+ requestHeaders?: z.ZodObject;
1473
+ responseHeaders?: z.ZodObject;
1474
+ successDescription?: string;
1475
+ errorResponses?: number[] | Record<number, string>;
1476
+ };
1477
+ } & RateLimitMetricsMeta;
1478
+ }>;
1384
1479
  }>>;
1385
1480
  users: _trpc_server.TRPCBuiltRouter<{
1386
1481
  ctx: {
@@ -34367,6 +34462,12 @@ declare const zOidcConfig: z$1.ZodObject<{
34367
34462
  clientId: z$1.ZodString;
34368
34463
  realm: z$1.ZodString;
34369
34464
  }, z$1.core.$strip>;
34465
+ declare const zExchangeCredentialsResponse: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
34466
+ token: z$1.ZodString;
34467
+ status: z$1.ZodLiteral<"LOGGED_IN">;
34468
+ }, z$1.core.$strip>, z$1.ZodObject<{
34469
+ status: z$1.ZodLiteral<"NOT_PAIRED">;
34470
+ }, z$1.core.$strip>], "status">;
34370
34471
 
34371
34472
  declare const zPsdAuthChallengeData: z$1.ZodObject<{
34372
34473
  name: z$1.ZodString;
@@ -35398,4 +35499,4 @@ declare const emptyPage: <T>(paginationQuery: {
35398
35499
  declare const fetchAllPages: <T>(fetchPage: (page: number) => Promise<Paginated<T>>) => Promise<T[]>;
35399
35500
  declare const fetchAllCursorPages: <T>(fetchPage: (cursor: string | null) => Promise<CursorPaginated<T>>) => Promise<T[]>;
35400
35501
 
35401
- export { type AllowedActionsResponse, type AllowedResourcesResponse, type ApiChallenge, type AppRouter, AssetResponse, type AuthResponse, type CreateTradelinkOrgEntityInput as CreateTradelinkExchangeInput, type CursorPaginated, DEFAULT_PAGE_SIZE, type DeleteTradelinkExchangeInput, type DeviceClaim, type EntityResponse, type EntitySortBy, type HsmCertificate, type OnboardingFullState as OnboardingFullStateResponse, type OnboardingOpts, type OnboardingSeedChallenge, type OnboardingSeedFragment, type Paginated, type PledgeResponse, type PolicyResponse, type PolicySortBy, type PsdAuthChallengeData as PsdAuthChallengeResponse, type PsdChallenge, type PsdPairingData, type PsdPairingInputData, type PsdSignature, type PubKey, type ReviewStepWithUsers, type RootWorkspaceRuleResponse, type SortOrder, type TradelinkCustodianResponse, type TradelinkEntityResponse, type TradelinkNetworkBlueprintResponse, type TradelinkNetworkResponse, type TradelinkOrgEntityResponse, type TradelinkSettlementWithAccountAndExchangeInfoResponse, type TransactionWithMetaResponse, type UserRegistrationChallenge, type UserRegistrationChallengeResponse, type UserRegistrationCreateInput, type UserRegistrationDeviceData, type UserRegistrationResponse, type UserTaskResponse, type WorkspaceResponse, type WorkspaceRuleResponse, type WorkspaceRulesResponse, type WrappingKeyFragmentInput, type WrappingKeyProvisioningEphemeralPubKey, type WrappingKeyResponse, emptyPage, fetchAllCursorPages, fetchAllPages, paginate, serializePage, serializeUserTask, stableOrdering, zAllowedActionsResponse, zAllowedResourcesResponse, zApiUserCredentialsResponse, zAuthResponse, zCantonPreApprovalStateResponse, zCantonTransferProposalResponse, zCreateTradelinkNetworkBlueprintInput, zCreateTradelinkOrgEntityInput, zCursorPaginated, zCursorQuery, zDeleteTradelinkOrgEntityInput, zDeviceClaim, zEntityResponse, zEntitySortBy, zExportRequestsToCsvInput, zGovernableAction, zOidcConfig, zOnboardingFullState as zOnboardingFullStateResponse, zOnboardingId, zOnboardingOpts, zOnboardingSeedFragment, zPageQuery, zPaginated, zPledgeResponse, zPolicyResponse, zPolicySortBy, zPsdAuthChallengeData as zPsdAuthChallengeResponse, zPsdPairingData, zPsdPairingInputData, zPsdSignature, zPubKey, zReviewStepsArray, zRootWorkspaceRuleResponse, zSignedMessageResponse, zSortOrder, zTradelinkCustodianResponse, zTradelinkEntityResponse, zTradelinkNetworkBlueprintResponse, zTradelinkNetworkResponse, zTradelinkOrgEntityResponse, zTradelinkSettlementWithAccountAndExchangeInfoResponse, zTradelinkWhitelist, zTransactionWithMetaResponse, zUserRegistrationChallenge, zUserRegistrationChallengeResponse, zUserRegistrationCreateInput, zUserRegistrationDeviceData, zUserRegistrationResponse, zUserTaskResponse, zWorkspaceResponse, zWorkspaceRuleResponse, zWorkspaceRulesResponse, zWrappingKeyFragmentInput };
35502
+ export { type AllowedActionsResponse, type AllowedResourcesResponse, type ApiChallenge, type AppRouter, AssetResponse, type AuthResponse, type CreateTradelinkOrgEntityInput as CreateTradelinkExchangeInput, type CursorPaginated, DEFAULT_PAGE_SIZE, type DeleteTradelinkExchangeInput, type DeviceClaim, type EntityResponse, type EntitySortBy, type HsmCertificate, type OnboardingFullState as OnboardingFullStateResponse, type OnboardingOpts, type OnboardingSeedChallenge, type OnboardingSeedFragment, type Paginated, type PledgeResponse, type PolicyResponse, type PolicySortBy, type PsdAuthChallengeData as PsdAuthChallengeResponse, type PsdChallenge, type PsdPairingData, type PsdPairingInputData, type PsdSignature, type PubKey, type ReviewStepWithUsers, type RootWorkspaceRuleResponse, type SortOrder, type TradelinkCustodianResponse, type TradelinkEntityResponse, type TradelinkNetworkBlueprintResponse, type TradelinkNetworkResponse, type TradelinkOrgEntityResponse, type TradelinkSettlementWithAccountAndExchangeInfoResponse, type TransactionWithMetaResponse, type UserRegistrationChallenge, type UserRegistrationChallengeResponse, type UserRegistrationCreateInput, type UserRegistrationDeviceData, type UserRegistrationResponse, type UserTaskResponse, type WorkspaceResponse, type WorkspaceRuleResponse, type WorkspaceRulesResponse, type WrappingKeyFragmentInput, type WrappingKeyProvisioningEphemeralPubKey, type WrappingKeyResponse, emptyPage, fetchAllCursorPages, fetchAllPages, paginate, serializePage, serializeUserTask, stableOrdering, zAllowedActionsResponse, zAllowedResourcesResponse, zApiUserCredentialsResponse, zAuthResponse, zCantonPreApprovalStateResponse, zCantonTransferProposalResponse, zCreateTradelinkNetworkBlueprintInput, zCreateTradelinkOrgEntityInput, zCursorPaginated, zCursorQuery, zDeleteTradelinkOrgEntityInput, zDeviceClaim, zEntityResponse, zEntitySortBy, zExchangeCredentialsResponse, zExportRequestsToCsvInput, zGovernableAction, zOidcConfig, zOnboardingFullState as zOnboardingFullStateResponse, zOnboardingId, zOnboardingOpts, zOnboardingSeedFragment, zPageQuery, zPaginated, zPledgeResponse, zPolicyResponse, zPolicySortBy, zPsdAuthChallengeData as zPsdAuthChallengeResponse, zPsdPairingData, zPsdPairingInputData, zPsdSignature, zPubKey, zReviewStepsArray, zRootWorkspaceRuleResponse, zSignedMessageResponse, zSortOrder, zTradelinkCustodianResponse, zTradelinkEntityResponse, zTradelinkNetworkBlueprintResponse, zTradelinkNetworkResponse, zTradelinkOrgEntityResponse, zTradelinkSettlementWithAccountAndExchangeInfoResponse, zTradelinkWhitelist, zTransactionWithMetaResponse, zUserRegistrationChallenge, zUserRegistrationChallengeResponse, zUserRegistrationCreateInput, zUserRegistrationDeviceData, zUserRegistrationResponse, zUserTaskResponse, zWorkspaceResponse, zWorkspaceRuleResponse, zWorkspaceRulesResponse, zWrappingKeyFragmentInput };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/revault-api",
3
- "version": "1.52.0",
3
+ "version": "1.53.0",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "files": [