@ionite/server 0.0.24-beta.20260907.3 → 0.0.24-beta.20260915.2
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.
- package/dist/index.d.ts +15 -11
- package/dist/index.js +4 -13217
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -384,7 +384,7 @@ declare class InMemoryCustomerStore<TExtended = Record<string, never>> implement
|
|
|
384
384
|
delete(id: string): Promise<number>;
|
|
385
385
|
list(options?: ListOptions3): Promise<ListResult3<BaseCustomer<TExtended>>>;
|
|
386
386
|
}
|
|
387
|
-
import { AccessAssignmentStore as AccessAssignmentStore2, AccessCatalogStore as AccessCatalogStore2, BaseUser as BaseUser2, CodeCatalog, CustomerStore as CustomerStore2, IamDeltaEmitter, IamDeltaMode, Logger as Logger4, ScimUser, UserStore, Workload as Workload2, WorkloadIdentityStore } from "@ionite/core";
|
|
387
|
+
import { AccessAssignmentStore as AccessAssignmentStore2, AccessCatalogStore as AccessCatalogStore2, BaseCustomer as BaseCustomer2, BaseUser as BaseUser2, BaseWorkloadIdentity, CodeCatalog, CustomerStore as CustomerStore2, IamDeltaEmitter, IamDeltaMode, Logger as Logger4, ScimCustomer, ScimUser, ScimWorkload, UserStore, Workload as Workload2, WorkloadIdentityStore } from "@ionite/core";
|
|
388
388
|
type FetchLike = (input: string, init?: RequestInit) => Promise<Response>;
|
|
389
389
|
/** RemoteConfig-derived destination descriptor for IAM delta egress. */
|
|
390
390
|
type IamDeltaConfig = {
|
|
@@ -408,6 +408,10 @@ type IamDeltaDeps = {
|
|
|
408
408
|
codeCatalog?: CodeCatalog;
|
|
409
409
|
/** Optional app mapper shared with the inbound IAM Users read surface. */
|
|
410
410
|
mapUserToScim?: (stored: BaseUser2) => ScimUser | Promise<ScimUser>;
|
|
411
|
+
/** Optional app mapper shared with the inbound IAM Customers read surface. */
|
|
412
|
+
mapCustomerToScim?: (stored: BaseCustomer2) => ScimCustomer | Promise<ScimCustomer>;
|
|
413
|
+
/** Optional app mapper shared with the inbound IAM Workloads read surface. */
|
|
414
|
+
mapWorkloadToScim?: (stored: BaseWorkloadIdentity) => ScimWorkload | Promise<ScimWorkload>;
|
|
411
415
|
/** Injectable fetch (defaults to global fetch); enables testing the patch path in-process. */
|
|
412
416
|
fetchImpl?: FetchLike;
|
|
413
417
|
};
|
|
@@ -518,13 +522,13 @@ declare const ION_CAPABILITY_CATALOG: readonly [{
|
|
|
518
522
|
readonly requires: "AccessAssignmentStore + AccessCatalogStore";
|
|
519
523
|
readonly incapableReason: "OAA projection is configured by RemoteConfig but no access/catalog store capability is wired by the application.";
|
|
520
524
|
}];
|
|
521
|
-
import { BaseCustomer as
|
|
525
|
+
import { BaseCustomer as BaseCustomer3, MagicLink, MagicLinkStore } from "@ionite/core";
|
|
522
526
|
/**
|
|
523
527
|
* In-memory implementation of MagicLinkStore from @ionite/core.
|
|
524
528
|
*/
|
|
525
529
|
declare class InMemoryMagicLinkStore<TExtended = Record<string, never>> implements MagicLinkStore<TExtended> {
|
|
526
530
|
private magicLinks;
|
|
527
|
-
create(token: string, customer:
|
|
531
|
+
create(token: string, customer: BaseCustomer3, expiresAt: Date): Promise<void>;
|
|
528
532
|
get(token: string): Promise<MagicLink<TExtended> | null>;
|
|
529
533
|
getAndDelete(token: string): Promise<MagicLink<TExtended> | null>;
|
|
530
534
|
delete(token: string): Promise<void>;
|
|
@@ -851,7 +855,7 @@ declare function closeAllVaultSockets(): void;
|
|
|
851
855
|
*
|
|
852
856
|
* Keep this synchronized with packages/server/package.json via publish.ts.
|
|
853
857
|
*/
|
|
854
|
-
declare const ION_SDK_VERSION = "0.0.24-beta.
|
|
858
|
+
declare const ION_SDK_VERSION = "0.0.24-beta.20260915.2";
|
|
855
859
|
import { Workload as CoreWorkload, FrameworkWorkloadConfig, Ionite as Ionite5, JWTAssertionClaims, Logger as Logger7, TokenValidationResult, TrustedIdp, WorkloadConfigMap, WorkloadGetToken, WorkloadIdentityStore as WorkloadIdentityStore2, WorkloadIncomingOutgoing, WorkloadTokenResponse, WorkloadTokenStore } from "@ionite/core";
|
|
856
860
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
857
861
|
/**
|
|
@@ -1114,7 +1118,7 @@ declare function revokeWorkloadToken(token: string, ion: Ionite5): Promise<void>
|
|
|
1114
1118
|
* Framework-agnostic request handler for the Workload module (token, validate, jwks, refresh routes).
|
|
1115
1119
|
*/
|
|
1116
1120
|
declare function workloadHandler(request: Request, ion: Ionite5): Promise<Response>;
|
|
1117
|
-
import { BaseWorkloadIdentity, ListOptions as ListOptions5, ListResult as ListResult5, WorkloadIdentityStore as WorkloadIdentityStore3 } from "@ionite/core";
|
|
1121
|
+
import { BaseWorkloadIdentity as BaseWorkloadIdentity2, ListOptions as ListOptions5, ListResult as ListResult5, WorkloadIdentityStore as WorkloadIdentityStore3 } from "@ionite/core";
|
|
1118
1122
|
/**
|
|
1119
1123
|
* In-memory {@link WorkloadIdentityStore} implementation using Maps. Suitable for development and
|
|
1120
1124
|
* testing; use a durable store (e.g. Redis/SQL) in production.
|
|
@@ -1123,12 +1127,12 @@ declare class InMemoryWorkloadIdentityStore<TExtended = Record<string, never>> i
|
|
|
1123
1127
|
private identities;
|
|
1124
1128
|
private clientIdIndex;
|
|
1125
1129
|
private externalIdIndex;
|
|
1126
|
-
get(id: string): Promise<
|
|
1127
|
-
lookup(identity:
|
|
1128
|
-
getByExternalId(externalId: string): Promise<
|
|
1129
|
-
upsert(identity:
|
|
1130
|
+
get(id: string): Promise<BaseWorkloadIdentity2<TExtended> | undefined>;
|
|
1131
|
+
lookup(identity: BaseWorkloadIdentity2<TExtended>): Promise<BaseWorkloadIdentity2<TExtended> | undefined>;
|
|
1132
|
+
getByExternalId(externalId: string): Promise<BaseWorkloadIdentity2<TExtended> | undefined>;
|
|
1133
|
+
upsert(identity: BaseWorkloadIdentity2<TExtended>): Promise<BaseWorkloadIdentity2<TExtended>>;
|
|
1130
1134
|
delete(id: string): Promise<number>;
|
|
1131
|
-
list(options?: ListOptions5): Promise<ListResult5<
|
|
1135
|
+
list(options?: ListOptions5): Promise<ListResult5<BaseWorkloadIdentity2<TExtended>>>;
|
|
1132
1136
|
}
|
|
1133
1137
|
import { CachedWorkloadToken, WorkloadTokenStore as WorkloadTokenStore2 } from "@ionite/core";
|
|
1134
1138
|
/**
|
|
@@ -1171,4 +1175,4 @@ type IoniteConfig<C extends FrameworkConfigInput = FrameworkConfigInput> = C & {
|
|
|
1171
1175
|
onConfigLoadError?: RemoteConfigRetryHook;
|
|
1172
1176
|
};
|
|
1173
1177
|
declare function ionite<const C extends FrameworkConfigInput = FrameworkConfigInput>(source: ConfigSource9, config: IoniteConfig<C> | FrameworkConfigInput): Ionite6;
|
|
1174
|
-
export {
|
|
1178
|
+
export { AccessCheckReason, AccessCheckResult, AfterLoginContext, AfterLoginHook, AfterLogoutContext, AfterLogoutHook, AssignmentPolicyError, AwsConfigSourceOptions, AzureConfigSourceOptions, BeforeLoginContext, BeforeLoginHook, BeforeLogoutContext, BeforeLogoutHook, CapabilityDescriptor, CapabilityKey2 as CapabilityKey, CatalogAdjacencyCache, CatalogView, ConfigFromSourceOptions, CreateTenantIonHandlerOptions, CreateTenantIonResolverOptions, CreateTenantRequest2 as CreateTenantRequest, EnvConfigOptions, EnvironmentType, FrameworkOtelConfig, FrameworkStores3 as FrameworkStores, GcpConfigSourceOptions, HttpPollingHooks, ION_CAPABILITY_CATALOG, ION_CAPABILITY_CATALOG_VERSION, ION_READY_DEFAULT_TIMEOUT_MS, ION_SDK_VERSION, IamAssignmentPolicy, IamDeltaConfig, IamDeltaDeps, InMemoryAccessAssignmentStore, InMemoryAccessCatalogStore, InMemoryAccessIndex, InMemoryCustomerStore, InMemoryMagicLinkStore, InMemoryResourceStore, InMemorySessionStore, InMemoryTenantStore, InMemoryUserStore, InMemoryWorkloadIdentityStore, InMemoryWorkloadTokenStore, IoniteConfig, IoniteError, IoniteErrorOptions, LfvSecretsSource, MirrorSecretsOptions, MirroredConfigOptions, MirroredConfigSource, Otel, OtelConfig, OtelLevels, OtelLogLevel, OtelLogRecord, OtelMetricsSignalConfig, OtelOAuthClientCredentialsConfig, OtelProviderType, OtelSignalConfig, ReconcileStores, RedirectContext, RedirectPolicy, RedirectResult, RedirectRule, RedirectRuleContext, RedirectVerdict, ReferencedDefinitions, ResolveTenantFromRequestOptions, ScimOutboundClient, ScimOutboundClientOptions, ScimOutboundOutcome, ScimOutboundReceiptCallbacks, ScimOutboundResource, SecretsMirror, SessionDiscoveryOptions, SessionReadCacheOptions, SessionResponse, SubjectScope, SubjectType3 as SubjectType, TenantIonResolver, TenantIonUrls, TenantManager, TenantManagerOptions, TenantMirror, TenantMirrorHooks, TenantMirrorOptions, TenantResolutionContext, TenantResponse, TenantStatus, TenantValidators2 as TenantValidators, TenantWebhookPayload, UpdateTenantRequest2 as UpdateTenantRequest, UrlMap, VAULT_MIN_POLLING_TTL_MS, VaultConfigInvalidPayloadError, VaultConfigSourceOptions, VaultConfigWaitingForSecretError, VaultSubscribeNotSupportedError, VerifyUserOptions, allowHosts, allowOrigins, allowRelativePaths, allowSameOrigin, awsConfig, azureConfig, blockDangerousUrls, callback, captureRedirect, ciam, closeAllVaultSockets, collectReferencedDefinitions, configFromSource, configLocatorFromEnvValues, configSourceFromEnvValues, configSourceFromLocator, createManagedIamDelta, createSessionReadCache, createTenantIonHandler, createTenantIonResolver, defaultRedirectPolicies, deriveIonUrls, devInMemoryStores, discoverSessionRecords, discoverSessions, enforceEndpointAuthz, envConfig, escapeScimFilterValue, expandRoot, gcpConfig, generateULID, getCustomer, getUser, getWorkload, getWorkloadToken, has, hasAll2 as hasAll, hasAllScope, hasAny2 as hasAny, hasAnyScope, hasGroup2 as hasGroup, hasPermission2 as hasPermission, hasRole2 as hasRole, hasScope, iam, initiateLogin, ionite, isRedirectAllowed, isVaultConfigInvalidPayloadError, isVaultConfigWaitingForSecretError, lfvVault, listGenerator, listSsoClientIdsFromCookies, mirrorSecrets, mirroredConfig, reconcileSubjectAccess, resolveAfterRedirect, resolveCapturedRedirect, resolveDefaultRoute, resolveRedirect, resolveTenantFromRequest, revokeWorkloadToken, rewriteRequestForDefaultTenantApi, rewriteRequestForDefaultTenantUi, rewriteRequestForTenantPath, rewriteRequestPath, routeRequest, sameOriginRedirectRules, secretConfigSource, sendTenantWebhook, setVaultWebSocketCommandTimeout, sso, subscribeSecretPathWithHttpPolling, tenantManager, tenantMirror, validateWorkloadToken, vault, vaultConfig, vaultSocketDiagnostics, verifyUser, withSetCookies, workload, workloadHandler };
|