@stackone/utils 0.14.1 → 0.15.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.
@@ -118,6 +118,34 @@ declare const safeParseToDateTimeString: ({
118
118
  format?: string;
119
119
  }) => string | null;
120
120
  //#endregion
121
+ //#region src/shared/sourceTypes/types.d.ts
122
+ declare enum RequestSourceType {
123
+ DASHBOARD = "DASHBOARD",
124
+ ADMIN = "ADMIN",
125
+ OPS = "OPS",
126
+ PROJECT_API = "PROJECT_API",
127
+ DATA_SYNC = "DATA_SYNC",
128
+ BACKGROUND_WORKER = "BACKGROUND_WORKER",
129
+ ASYNC_CALLS_WORKER = "ASYNC_CALLS_WORKER",
130
+ STACKONE_WEBHOOK = "STACKONE_WEBHOOK",
131
+ SYNTHETIC_WEBHOOK = "SYNTHETIC_WEBHOOK",
132
+ API_TRIGGER_WEBHOOK = "API_TRIGGER_WEBHOOK",
133
+ NATIVE_WEBHOOK = "NATIVE_WEBHOOK",
134
+ TOKEN_REFRESH = "TOKEN_REFRESH",
135
+ VALIDATE_CREDENTIALS = "VALIDATE_CREDENTIALS",
136
+ META = "META",
137
+ MONITORING = "MONITORING",
138
+ EXTERNAL_TRIGGER = "EXTERNAL_TRIGGER",
139
+ API_SESSION = "API_SESSION",
140
+ NATIVE_WEBHOOK_SETUP_WORKER = "NATIVE_WEBHOOK_SETUP_WORKER",
141
+ COOKIE_SESSION = "COOKIE_SESSION",
142
+ MCP_TOOL = "MCP_TOOL",
143
+ UNKNOWN = "UNKNOWN",
144
+ }
145
+ //#endregion
146
+ //#region src/shared/sourceTypes/nonBackgroundLogs.d.ts
147
+ declare const NON_BACKGROUND_LOGS_SOURCE_TYPES: RequestSourceType[];
148
+ //#endregion
121
149
  //#region src/shared/timeouts.d.ts
122
150
  declare const delay: (ms: number) => Promise<unknown>;
123
151
  //#endregion
@@ -142,4 +170,4 @@ declare const getContentHash: (content: unknown) => string;
142
170
  declare const isValidUUID: (uuid: string) => boolean;
143
171
  declare const generateRequestId: (randomUUIDGenerator?: () => string) => string;
144
172
  //#endregion
145
- export { NormalizedKeyMap, 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 };
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 };