@stackone/utils 0.15.2 → 0.16.1
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/edge/index.d.mts +29 -1
- package/dist/edge/index.mjs +7 -5
- package/dist/node/index.cjs +7 -5
- package/dist/node/index.d.cts +29 -1
- package/dist/node/index.d.mts +29 -1
- package/dist/node/index.mjs +8 -6
- package/package.json +7 -2
package/dist/edge/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Saml20 } from "saml";
|
|
1
2
|
import { ZodType, z } from "zod/v4";
|
|
2
3
|
|
|
3
4
|
//#region src/shared/base64.d.ts
|
|
@@ -118,6 +119,33 @@ declare const safeParseToDateTimeString: ({
|
|
|
118
119
|
format?: string;
|
|
119
120
|
}) => string | null;
|
|
120
121
|
//#endregion
|
|
122
|
+
//#region src/shared/saml.d.ts
|
|
123
|
+
declare const generateSamlAssertion: ({
|
|
124
|
+
cert,
|
|
125
|
+
key,
|
|
126
|
+
issuer,
|
|
127
|
+
lifetime,
|
|
128
|
+
clientId,
|
|
129
|
+
nameId,
|
|
130
|
+
tokenEndpoint,
|
|
131
|
+
audience,
|
|
132
|
+
nameIdentifierFormat,
|
|
133
|
+
createSamlFn,
|
|
134
|
+
sleepFn
|
|
135
|
+
}: {
|
|
136
|
+
cert?: Buffer;
|
|
137
|
+
key: string;
|
|
138
|
+
issuer?: string;
|
|
139
|
+
lifetime?: number;
|
|
140
|
+
clientId: string;
|
|
141
|
+
nameId?: string;
|
|
142
|
+
tokenEndpoint?: string;
|
|
143
|
+
audience?: string;
|
|
144
|
+
nameIdentifierFormat?: string;
|
|
145
|
+
createSamlFn?: typeof Saml20.create;
|
|
146
|
+
sleepFn?: (ms: number) => Promise<void>;
|
|
147
|
+
}) => Promise<string>;
|
|
148
|
+
//#endregion
|
|
121
149
|
//#region src/shared/sourceTypes/types.d.ts
|
|
122
150
|
declare enum RequestSourceType {
|
|
123
151
|
DASHBOARD = "DASHBOARD",
|
|
@@ -170,4 +198,4 @@ declare const getContentHash: (content: unknown) => string;
|
|
|
170
198
|
declare const isValidUUID: (uuid: string) => boolean;
|
|
171
199
|
declare const generateRequestId: (randomUUIDGenerator?: () => string) => string;
|
|
172
200
|
//#endregion
|
|
173
|
-
export { NON_BACKGROUND_LOGS_SOURCE_TYPES, NormalizedKeyMap, RequestSourceType, ZodType, calculateNextAnniversary, calculateYearsElapsed, dateHasPassed, decodeFromBase64, deepCopy, delay, encodeToBase64, exponentialBackoffInMS, generateRequestId, getContentHash, getCountryAlpha2CodeByAlpha2Code, getCountryAlpha2CodeByAlpha3Code, getCountryAlpha2CodeByCitizenship, getCountryAlpha2CodeByCountryCode, getCountryAlpha2CodeByCountryName, getCountryAlpha3CodeByAlpha2Code, getCountryAlpha3CodeByAlpha3Code, getCountryAlpha3CodeByCountryCode, getCountryAlpha3CodeByCountryName, getCountryCodeByAlpha2Code, getCountryCodeByAlpha3Code, getCountryCodeByCountryCode, getCountryCodeByCountryName, getCountryNameByAlpha2Code, getCountryNameByAlpha3Code, getCountryNameByCountryCode, getCountryNameByCountryName, getCountrySubDivisionByAlpha2CodeAndName, getCountrySubDivisionCodeBySubDivisionName, getCountrySubDivisionNameBySubDivisionCode, getCountrySubDivisionsByAlpha2Code, getDocumentFileFormatFromExtension, isBoolean, isDate, isFunction, isFutureUnixTimestamp, isIpInRange, isIpInRanges, isMissing, isNumber, isObject, isString, isValidIp, isValidIpRange, isValidIpRanges, isValidUUID, notMissing, safeParseToBoolean, safeParseToDateTime, safeParseToDateTimeString, safeParseToNumber, safeParseToString, z, zStrictObject };
|
|
201
|
+
export { NON_BACKGROUND_LOGS_SOURCE_TYPES, NormalizedKeyMap, RequestSourceType, type ZodType, calculateNextAnniversary, calculateYearsElapsed, dateHasPassed, decodeFromBase64, deepCopy, delay, encodeToBase64, exponentialBackoffInMS, generateRequestId, generateSamlAssertion, getContentHash, getCountryAlpha2CodeByAlpha2Code, getCountryAlpha2CodeByAlpha3Code, getCountryAlpha2CodeByCitizenship, getCountryAlpha2CodeByCountryCode, getCountryAlpha2CodeByCountryName, getCountryAlpha3CodeByAlpha2Code, getCountryAlpha3CodeByAlpha3Code, getCountryAlpha3CodeByCountryCode, getCountryAlpha3CodeByCountryName, getCountryCodeByAlpha2Code, getCountryCodeByAlpha3Code, getCountryCodeByCountryCode, getCountryCodeByCountryName, getCountryNameByAlpha2Code, getCountryNameByAlpha3Code, getCountryNameByCountryCode, getCountryNameByCountryName, getCountrySubDivisionByAlpha2CodeAndName, getCountrySubDivisionCodeBySubDivisionName, getCountrySubDivisionNameBySubDivisionCode, getCountrySubDivisionsByAlpha2Code, getDocumentFileFormatFromExtension, isBoolean, isDate, isFunction, isFutureUnixTimestamp, isIpInRange, isIpInRanges, isMissing, isNumber, isObject, isString, isValidIp, isValidIpRange, isValidIpRanges, isValidUUID, notMissing, safeParseToBoolean, safeParseToDateTime, safeParseToDateTimeString, safeParseToNumber, safeParseToString, z, zStrictObject };
|