@elyx-code/project-logic-tree 0.0.6631 → 0.0.6633

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 CHANGED
@@ -1,6 +1,7 @@
1
1
  import { BinaryExpr } from 'sql-parser-cst';
2
2
  import { CloudProviders } from '@elyx-code/definitions';
3
3
  import { default as default_2 } from 'zod';
4
+ import { default as default_3 } from 'dayjs';
4
5
  import { DTOAction } from '@elyx-code/definitions';
5
6
  import { EventCallback } from '@elyx-code/common-ts-utils';
6
7
  import { EventCallbackArguments } from '@elyx-code/common-ts-utils';
@@ -208,6 +209,8 @@ export declare class ActionOutputMapState extends OutputMapState implements IAct
208
209
  toJSON(seenEntities?: Set<EntityId>): IActionOutputMap | IOutputMapReference;
209
210
  }
210
211
 
212
+ export declare function addAtIndex(list: unknown, index: unknown, value: unknown): any[];
213
+
211
214
  export declare const addBDBusinessDaysArgument: IValueDescriptorTransfer;
212
215
 
213
216
  export declare const addBDBusinessDaysDataType: IDataTypeTransfer;
@@ -237,6 +240,8 @@ export declare const addBDWeekendMaskDataType: IDataTypeTransfer;
237
240
 
238
241
  export declare const addBDWeekendMaskDefaultValue: ILiteralValueTransfer;
239
242
 
243
+ export declare function addBusinessDays(input: ISODateString, businessDays: number, weekendDays?: WeekdayISOString[], holidays?: ISODateString[]): ISODateString;
244
+
240
245
  export declare const addBusinessDaysOperation: IActionDescriptorTransfer;
241
246
 
242
247
  /**
@@ -257,6 +262,8 @@ export declare function addDisabledReasons(existingDisbledResons: CanvasEntityDi
257
262
  reasons: CanvasEntityDisabledReason[];
258
263
  };
259
264
 
265
+ export declare function addToDate(input: ISODateString, amount: number, unit: default_3.ManipulateType): ISODateString;
266
+
260
267
  export declare const addToDateAmountArg: IValueDescriptorTransfer;
261
268
 
262
269
  export declare const addToDateAmountDT: IDataTypeTransfer;
@@ -386,6 +393,10 @@ export declare const andConditionResultVoidDataType: IDataTypeTransfer;
386
393
 
387
394
  export declare const andConditionResultVoidDataTypeParentRef: IActionDescriptorReference;
388
395
 
396
+ export declare type AnyEncoding = UtfEncoding | BinEncoding;
397
+
398
+ export declare function appendToList(list: unknown, value: unknown): any[];
399
+
389
400
  export declare function applyNewScope(self: CallableEntityState, changeSet: ChangeSet | null): void;
390
401
 
391
402
  export declare class Area {
@@ -625,6 +636,8 @@ export declare const atlassianAuthExternalConnectionBuiltInBaseEntityIntegration
625
636
 
626
637
  export declare const audienceStringListDT: IDataTypeTransfer;
627
638
 
639
+ export declare function average(numsRaw: unknown[]): number;
640
+
628
641
  export declare type BaseActionImplementation = (...args: any[]) => any[] | Promise<any[]>;
629
642
 
630
643
  export declare abstract class BaseCanvasDraggableState {
@@ -675,6 +688,8 @@ export declare enum BaseValueDescriptorIds {
675
688
  SearchErrorOutputDescriptor = "search-error-output-descriptor-id"
676
689
  }
677
690
 
691
+ export declare type BinEncoding = 'hex' | 'base64' | 'base64url';
692
+
678
693
  export declare type BooleanAutogenerationOptions = IAutogenerationRandomBoolean;
679
694
 
680
695
  export declare const booleanIsFalseCondition: IActionDescriptorTransfer;
@@ -845,6 +860,21 @@ declare namespace breakStatementValidation {
845
860
  }
846
861
  export { breakStatementValidation }
847
862
 
863
+ /** Builds a compact JWT signed with HMAC (HS256/384/512). */
864
+ export declare function buildJwtHmac(payload: JwtPayload, secret: Bytes, { alg, includeIat, expiresInSeconds, notBeforeSeconds, issuer, subject, audience, jwtid, header, }?: BuildJwtHmacOptions): Promise<string>;
865
+
866
+ export declare interface BuildJwtHmacOptions {
867
+ alg?: JwtHeader['alg'];
868
+ includeIat?: boolean;
869
+ expiresInSeconds?: number;
870
+ notBeforeSeconds?: number;
871
+ issuer?: string;
872
+ subject?: string;
873
+ audience?: string | string[];
874
+ jwtid?: string;
875
+ header?: Partial<JwtHeader>;
876
+ }
877
+
848
878
  export declare const BUILT_IN_BASE_ENTITY_IDS: {
849
879
  "primitive-entity": {
850
880
  bytes: {
@@ -8068,12 +8098,42 @@ export declare const BUILT_IN_BASE_ENTITY_IDS: {
8068
8098
  id: string;
8069
8099
  dataType: {
8070
8100
  id: string;
8101
+ orString: {
8102
+ id: string;
8103
+ };
8104
+ orNumber: {
8105
+ id: string;
8106
+ };
8107
+ orBoolean: {
8108
+ id: string;
8109
+ };
8110
+ orNull: {
8111
+ id: string;
8112
+ };
8113
+ orDate: {
8114
+ id: string;
8115
+ };
8071
8116
  };
8072
8117
  };
8073
8118
  rightHand: {
8074
8119
  id: string;
8075
8120
  dataType: {
8076
8121
  id: string;
8122
+ orString: {
8123
+ id: string;
8124
+ };
8125
+ orNumber: {
8126
+ id: string;
8127
+ };
8128
+ orBoolean: {
8129
+ id: string;
8130
+ };
8131
+ orNull: {
8132
+ id: string;
8133
+ };
8134
+ orDate: {
8135
+ id: string;
8136
+ };
8077
8137
  };
8078
8138
  };
8079
8139
  };
@@ -8086,9 +8146,45 @@ export declare const BUILT_IN_BASE_ENTITY_IDS: {
8086
8146
  inputs: {
8087
8147
  leftHand: {
8088
8148
  id: string;
8149
+ dataType: {
8150
+ id: string;
8151
+ orString: {
8152
+ id: string;
8153
+ };
8154
+ orNumber: {
8155
+ id: string;
8156
+ };
8157
+ orBoolean: {
8158
+ id: string;
8159
+ };
8160
+ orNull: {
8161
+ id: string;
8162
+ };
8163
+ orDate: {
8164
+ id: string;
8165
+ };
8166
+ };
8089
8167
  };
8090
8168
  rightHand: {
8091
8169
  id: string;
8170
+ dataType: {
8171
+ id: string;
8172
+ orString: {
8173
+ id: string;
8174
+ };
8175
+ orNumber: {
8176
+ id: string;
8177
+ };
8178
+ orBoolean: {
8179
+ id: string;
8180
+ };
8181
+ orNull: {
8182
+ id: string;
8183
+ };
8184
+ orDate: {
8185
+ id: string;
8186
+ };
8187
+ };
8092
8188
  };
8093
8189
  };
8094
8190
  dataType: {
@@ -8543,6 +8639,21 @@ export declare const BUILT_IN_BASE_ENTITY_IDS: {
8543
8639
  id: string;
8544
8640
  dataType: {
8545
8641
  id: string;
8642
+ orString: {
8643
+ id: string;
8644
+ };
8645
+ orNumber: {
8646
+ id: string;
8647
+ };
8648
+ orBoolean: {
8649
+ id: string;
8650
+ };
8651
+ orNull: {
8652
+ id: string;
8653
+ };
8654
+ orDate: {
8655
+ id: string;
8656
+ };
8546
8657
  };
8547
8658
  };
8548
8659
  };
@@ -8619,6 +8730,21 @@ export declare const BUILT_IN_BASE_ENTITY_IDS: {
8619
8730
  id: string;
8620
8731
  dataType: {
8621
8732
  id: string;
8733
+ orString: {
8734
+ id: string;
8735
+ };
8736
+ orNumber: {
8737
+ id: string;
8738
+ };
8739
+ orBoolean: {
8740
+ id: string;
8741
+ };
8742
+ orNull: {
8743
+ id: string;
8744
+ };
8745
+ orDate: {
8746
+ id: string;
8747
+ };
8622
8748
  };
8623
8749
  };
8624
8750
  };
@@ -9115,7 +9241,7 @@ export declare type BuiltInSystemEntityState = PrimitiveEntityState | BuiltInBas
9115
9241
 
9116
9242
  export declare type BuiltInSystemEntityStateConstructor = typeof BuiltInBaseEntityState | typeof PrimitiveEntityState;
9117
9243
 
9118
- declare type Bytes = Uint8Array;
9244
+ export declare type Bytes = Uint8Array;
9119
9245
 
9120
9246
  export declare const bytesPrototype: IPrimitiveEntity;
9121
9247
 
@@ -9473,6 +9599,10 @@ export declare type ChildReference = IFunctionDeclarationReference | IInstalledP
9473
9599
 
9474
9600
  export declare const CHILDREN_TYPES: EntityType[];
9475
9601
 
9602
+ export declare function chunkList(list: unknown, size: unknown): any[][];
9603
+
9604
+ export declare function clamp(valRaw: unknown, minRaw: unknown, maxRaw: unknown): number;
9605
+
9476
9606
  export declare const clampError: IValueDescriptorTransfer;
9477
9607
 
9478
9608
  export declare const clampInputArg: IValueDescriptorTransfer;
@@ -9489,6 +9619,8 @@ export declare const clampMinDT: IDataTypeTransfer;
9489
9619
 
9490
9620
  export declare const clampResponseDT: IDataTypeTransfer;
9491
9621
 
9622
+ export declare function clampToRange(input: ISODateString, minISO: ISODateString, maxISO: ISODateString): ISODateString;
9623
+
9492
9624
  export declare const clampToRangeOperation: IActionDescriptorTransfer;
9493
9625
 
9494
9626
  export declare function cloneProject(project: ProjectState, { enrich, shallowErrors, }?: {
@@ -9570,17 +9702,59 @@ export declare const comparisonPrimitiveEqualOperationAArg: IValueDescriptorTran
9570
9702
 
9571
9703
  export declare const comparisonPrimitiveEqualOperationADT: IDataTypeTransfer;
9572
9704
 
9705
+ export declare const comparisonPrimitiveEqualOperationADTOrBooleanDataType: IDataTypeTransfer;
9706
+
9707
+ export declare const comparisonPrimitiveEqualOperationADTOrDateDataType: IDataTypeTransfer;
9708
+
9709
+ export declare const comparisonPrimitiveEqualOperationADTOrNullDataType: IDataTypeTransfer;
9710
+
9711
+ export declare const comparisonPrimitiveEqualOperationADTOrNumberDataType: IDataTypeTransfer;
9712
+
9713
+ export declare const comparisonPrimitiveEqualOperationADTOrStringDataType: IDataTypeTransfer;
9714
+
9573
9715
  export declare const comparisonPrimitiveEqualOperationBArg: IValueDescriptorTransfer;
9574
9716
 
9575
9717
  export declare const comparisonPrimitiveEqualOperationBDT: IDataTypeTransfer;
9576
9718
 
9719
+ export declare const comparisonPrimitiveEqualOperationBDTOrBooleanDataType: IDataTypeTransfer;
9720
+
9721
+ export declare const comparisonPrimitiveEqualOperationBDTOrDateDataType: IDataTypeTransfer;
9722
+
9723
+ export declare const comparisonPrimitiveEqualOperationBDTOrNullDataType: IDataTypeTransfer;
9724
+
9725
+ export declare const comparisonPrimitiveEqualOperationBDTOrNumberDataType: IDataTypeTransfer;
9726
+
9727
+ export declare const comparisonPrimitiveEqualOperationBDTOrStringDataType: IDataTypeTransfer;
9728
+
9577
9729
  export declare const comparisonPrimitiveEqualOperationResultVoidDT: IDataTypeTransfer;
9578
9730
 
9579
9731
  export declare const comparisonPrimitiveNotEqualOperation: IActionDescriptorTransfer;
9580
9732
 
9581
- export declare const comparisonPrimitiveNotEqualOperationLeftHandArgument: IValueDescriptorTransfer;
9733
+ export declare const comparisonPrimitiveNotEqualOperationADT: IDataTypeTransfer;
9734
+
9735
+ export declare const comparisonPrimitiveNotEqualOperationADTOrBooleanDataType: IDataTypeTransfer;
9736
+
9737
+ export declare const comparisonPrimitiveNotEqualOperationADTOrDateDataType: IDataTypeTransfer;
9738
+
9739
+ export declare const comparisonPrimitiveNotEqualOperationADTOrNullDataType: IDataTypeTransfer;
9740
+
9741
+ export declare const comparisonPrimitiveNotEqualOperationADTOrNumberDataType: IDataTypeTransfer;
9742
+
9743
+ export declare const comparisonPrimitiveNotEqualOperationADTOrStringDataType: IDataTypeTransfer;
9582
9744
 
9583
- export declare const comparisonPrimitiveNotEqualOperationLeftHandArgumentDataTypeParentRef: IValueDescriptorReference;
9745
+ export declare const comparisonPrimitiveNotEqualOperationBDT: IDataTypeTransfer;
9746
+
9747
+ export declare const comparisonPrimitiveNotEqualOperationBDTOrBooleanDataType: IDataTypeTransfer;
9748
+
9749
+ export declare const comparisonPrimitiveNotEqualOperationBDTOrDateDataType: IDataTypeTransfer;
9750
+
9751
+ export declare const comparisonPrimitiveNotEqualOperationBDTOrNullDataType: IDataTypeTransfer;
9752
+
9753
+ export declare const comparisonPrimitiveNotEqualOperationBDTOrNumberDataType: IDataTypeTransfer;
9754
+
9755
+ export declare const comparisonPrimitiveNotEqualOperationBDTOrStringDataType: IDataTypeTransfer;
9756
+
9757
+ export declare const comparisonPrimitiveNotEqualOperationLeftHandArgument: IValueDescriptorTransfer;
9584
9758
 
9585
9759
  export declare const comparisonPrimitiveNotEqualOperationLeftHandArgumentParentRef: IActionDescriptorReference;
9586
9760
 
@@ -9590,8 +9764,6 @@ export declare const comparisonPrimitiveNotEqualOperationResultVoidDataTypeParen
9590
9764
 
9591
9765
  export declare const comparisonPrimitiveNotEqualOperationRightHandArgument: IValueDescriptorTransfer;
9592
9766
 
9593
- export declare const comparisonPrimitiveNotEqualOperationRightHandArgumentDataTypeParentRef: IValueDescriptorReference;
9594
-
9595
9767
  export declare const comparisonPrimitiveNotEqualOperationRightHandArgumentParentRef: IActionDescriptorReference;
9596
9768
 
9597
9769
  export declare type CompatibleScope = ICompatibleSameBothLocalScope | ICompatibleSameBothGlobalScope | ICompatibleAInBScope | ICompatibleBInAScope;
@@ -9605,6 +9777,8 @@ export declare class CompiledLocalCodebaseInfrastructureResource extends Infrast
9605
9777
  resolveDeterministicResourceId(): string;
9606
9778
  }
9607
9779
 
9780
+ export declare function concatLists(base: unknown, ...others: unknown[]): any[];
9781
+
9608
9782
  export declare enum ConditionDependencyField {
9609
9783
  Parent = "parent"
9610
9784
  }
@@ -9758,6 +9932,9 @@ declare namespace conditionValidation {
9758
9932
  }
9759
9933
  export { conditionValidation }
9760
9934
 
9935
+ /** Constant-time equality for two byte arrays (equal length required). */
9936
+ export declare function constantTimeEqual(a: Bytes, b: Bytes): boolean;
9937
+
9761
9938
  export declare enum ContinueStatementDependencyField {
9762
9939
  Parent = "continue-statement-parent-field",
9763
9940
  DataTypeEntity = "continue-statement-data-type-entity-field",
@@ -9906,6 +10083,12 @@ declare namespace continueStatementValidation {
9906
10083
  }
9907
10084
  export { continueStatementValidation }
9908
10085
 
10086
+ /**
10087
+ * Convert between IANA time zones.
10088
+ * If keepLocalTime=true, preserves the wall-clock and reinterprets in the target zone.
10089
+ */
10090
+ export declare function convertTimezone(input: ISODateString, targetTz: string, keepLocalTime?: boolean): ISODateString;
10091
+
9909
10092
  export declare const convertTimezoneDateArg: IValueDescriptorTransfer;
9910
10093
 
9911
10094
  export declare const convertTimezoneDateDT: IDataTypeTransfer;
@@ -10776,6 +10959,29 @@ export declare const dateValueAutogenerationSchema: z_2.ZodUnion<[z_2.ZodObject<
10776
10959
  rangeEnd: null;
10777
10960
  }>]>;
10778
10961
 
10962
+ export declare const decodeBase64Url: (str: string) => Bytes;
10963
+
10964
+ export declare function decodeBuildJwtHmac(payload: JwtPayload, secret: string | Bytes, alg: 'HS256' | 'HS384' | 'HS512', includeIat: boolean, expiresInSec: number, notBeforeSec: number, issuer: string, subject: string, audience: string | string[], jwtid: string, header: Partial<JwtHeader>, secretEncoding: 'utf8' | 'hex' | 'base64' | 'base64url'): Promise<string>;
10965
+
10966
+ export declare function decodeHashEncode(alg: string, data: string, inputEncoding?: string, outputEncoding?: string): Promise<string>;
10967
+
10968
+ export declare function decodeHashPasswordPBKDF2(password: string, iterations: number, length: number, hashAlg: 'SHA-256' | 'SHA-512', salt: string | undefined, saltEncoding: 'utf8' | 'hex' | 'base64' | 'base64url' | undefined): Promise<string>;
10969
+
10970
+ export declare const decodeHex: (hex: string) => Bytes;
10971
+
10972
+ /** Decodes a JWT without verifying it — for inspection only. */
10973
+ export declare function decodeJwt(token: string): {
10974
+ header: JwtHeader | null;
10975
+ payload: JwtPayload | null;
10976
+ signature: Bytes;
10977
+ };
10978
+
10979
+ export declare function decodeJWTToString(token: string, signatureOutputEncoding?: AnyEncoding): {
10980
+ header: JwtHeader | null;
10981
+ payload: JwtPayload | null;
10982
+ signature: string;
10983
+ };
10984
+
10779
10985
  export declare const DEFAULT_BASE_EXTENSIONS_CONTEXT: IBaseExtensionsContext;
10780
10986
 
10781
10987
  export declare const DEFAULT_EXECUTION_INSTANCE_PARENT_CONTEXT: IExecutionInstanceParentContext;
@@ -11434,6 +11640,16 @@ declare namespace definitionEntityValidation {
11434
11640
  }
11435
11641
  export { definitionEntityValidation }
11436
11642
 
11643
+ export declare function deleteAtIndex(list: unknown, index: unknown): any[];
11644
+
11645
+ export declare function deleteFirstNItems(list: unknown): any[];
11646
+
11647
+ export declare function deleteKey(obj: unknown, key: unknown): Record<string, unknown>;
11648
+
11649
+ export declare function deleteLastNItems(list: unknown): any[];
11650
+
11651
+ export declare function deleteNestedKey(obj: unknown, path: unknown): Record<string, unknown>;
11652
+
11437
11653
  export declare const deletePersistedEntityMethod: IActionDescriptorTransfer;
11438
11654
 
11439
11655
  export declare const deletePersistedEntityMethodParentRef: IBuiltInBaseEntityReference;
@@ -11446,6 +11662,9 @@ export declare function deleteRootProject(where: {
11446
11662
  id: string;
11447
11663
  }): null;
11448
11664
 
11665
+ /** Derives a key with PBKDF2 (SHA-256/512). */
11666
+ export declare function deriveKeyPBKDF2(password: Bytes, salt: Bytes, { iterations, length, hashAlg }: PBKDF2Options): Promise<Bytes>;
11667
+
11449
11668
  export declare const diffADateArg: IValueDescriptorTransfer;
11450
11669
 
11451
11670
  export declare const diffADateDT: IDataTypeTransfer;
@@ -11460,6 +11679,8 @@ export declare const diffBDateArg: IValueDescriptorTransfer;
11460
11679
 
11461
11680
  export declare const diffBDateDT: IDataTypeTransfer;
11462
11681
 
11682
+ export declare function differenceBetweenDates(a: ISODateString, b: ISODateString, unit: default_3.ManipulateType, asFloat?: boolean): number;
11683
+
11463
11684
  export declare const differenceBetweenDatesError: IValueDescriptorTransfer;
11464
11685
 
11465
11686
  export declare const differenceBetweenDatesOperation: IActionDescriptorTransfer;
@@ -11659,6 +11880,20 @@ export declare function emitAsyncProjectSideEffects(changeSet: ChangeSet): Promi
11659
11880
 
11660
11881
  export declare function emitProjectSideEffects(changeSet: ChangeSet): ChangeSet;
11661
11882
 
11883
+ export declare const encodeBase64Url: (bytes: Bytes) => string;
11884
+
11885
+ export declare function encodeConstantTimeEqual(a: string, b: string, aEncoding: AnyEncoding, bEncoding: AnyEncoding): boolean;
11886
+
11887
+ export declare function encodeDeriveKeyPBKDF2(password: string, salt: string, iterations: number, length: number, hashAlg: 'SHA-256' | 'SHA-512', passwordEncoding: 'utf8' | 'hex' | 'base64' | 'base64url', saltEncoding: 'utf8' | 'hex' | 'base64' | 'base64url', outputEncoding: 'utf8' | 'hex' | 'base64' | 'base64url'): Promise<string>;
11888
+
11889
+ export declare const encodeHex: (bytes: Bytes) => string;
11890
+
11891
+ export declare function encodeHmacDecode(key: string, data: string, alg?: string, keyEncoding?: string, dataEncoding?: string, outputEncoding?: string): Promise<string>;
11892
+
11893
+ export declare function encodeVerifyJwtHmac(token: string, secret: string, alg: 'HS256' | 'HS384' | 'HS512', issuer: string, audience: string, maxAgeSeconds: number, clockSkewSeconds: number, secretEncoding: 'utf8' | 'hex' | 'base64' | 'base64url'): Promise<VerifyJwtHmacResult>;
11894
+
11895
+ export declare function endOf(input: ISODateString, unit: default_3.ManipulateType): ISODateString;
11896
+
11662
11897
  export declare const endOfDateArg: IValueDescriptorTransfer;
11663
11898
 
11664
11899
  export declare const endOfDateDT: IDataTypeTransfer;
@@ -13597,6 +13832,8 @@ export declare function flattenLoop(entity: ILoop | ILoopTransfer | ILoopShallow
13597
13832
  ignoreBuiltInBaseEntities?: boolean;
13598
13833
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
13599
13834
 
13835
+ export declare function flattenOneLevel(list: unknown): any[];
13836
+
13600
13837
  export declare function flattenOperation(entity: IOperation | IOperationTransfer | IOperationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13601
13838
  ignoreBuiltInBaseEntities?: boolean;
13602
13839
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
@@ -13662,6 +13899,8 @@ export declare const FORBIDDEN_KEYWORDS: string[];
13662
13899
 
13663
13900
  declare const FORBIDDEN_SQL_KEYWORDS: string[];
13664
13901
 
13902
+ export declare function formatDate(input: ISODateString, format: string): string;
13903
+
13665
13904
  export declare const formatDateDateArg: IValueDescriptorTransfer;
13666
13905
 
13667
13906
  export declare const formatDateDateDT: IDataTypeTransfer;
@@ -13678,6 +13917,9 @@ export declare const formatDateResponseDT: IDataTypeTransfer;
13678
13917
 
13679
13918
  export declare function freezeDownstreamEntitiesFromGiven(entity: UserManagedEntityState, changeSet: ChangeSet, seenEntities?: Set<string>, allBuiltInEntityIds?: string[]): void;
13680
13919
 
13920
+ /** Converts bytes into string using the given encoding. */
13921
+ export declare function fromBytes(bytes: Bytes, encoding?: AnyEncoding): string;
13922
+
13681
13923
  export declare function fromChangeSetToRecordChangeSet<TSelf extends {
13682
13924
  id: string;
13683
13925
  type: EntityType;
@@ -13690,6 +13932,8 @@ export declare function fromLiteralValueTypeToPrimitiveType(valueType: SearchLit
13690
13932
 
13691
13933
  declare function fromNameToTableDescription(tableName: string, project: ProjectState): ITable | null;
13692
13934
 
13935
+ export declare function fromNow(input: ISODateString, withoutSuffix?: boolean): string;
13936
+
13693
13937
  export declare const fromNowDateArgument: IValueDescriptorTransfer;
13694
13938
 
13695
13939
  export declare const fromNowDateArgumentParentRef: IActionDescriptorReference;
@@ -13720,6 +13964,8 @@ declare function fromSelectClauseToLiteralValueSelections(selectClause: SelectCl
13720
13964
 
13721
13965
  declare function fromSqlOperatorsExprToComparisonOperator(operator: SupportedOperators): WhereStatementOperator | 'not' | null;
13722
13966
 
13967
+ export declare function fromUnix(input: number): ISODateString;
13968
+
13723
13969
  export declare const fromUnixError: IValueDescriptorTransfer;
13724
13970
 
13725
13971
  export declare const fromUnixOperation: IActionDescriptorTransfer;
@@ -14117,6 +14363,8 @@ export declare const generateHexadecimalTokenOperationErrorParentRef: IActionDes
14117
14363
 
14118
14364
  export declare const generateHexadecimalTokenResponseDataType: IDataTypeTransfer;
14119
14365
 
14366
+ export declare function generateId(length: number, alphabet?: string): string;
14367
+
14120
14368
  export declare const generateIdentifierOperation: IActionDescriptorTransfer;
14121
14369
 
14122
14370
  export declare const generateIdentifierOperationAlphabetInput: IValueDescriptorTransfer;
@@ -14171,6 +14419,9 @@ export declare const generateRandomBase64OperationResponseDataType: IDataTypeTra
14171
14419
 
14172
14420
  export declare function generateRandomBoolean(_: IAutogenerationRandomBoolean): boolean;
14173
14421
 
14422
+ /** CSPRNG: Web Crypto getRandomValues or Node crypto.randomBytes. */
14423
+ export declare function generateRandomBytes(length: number): Bytes;
14424
+
14174
14425
  export declare function generateRandomDate(options: IAutogenerationRandomDate): Date;
14175
14426
 
14176
14427
  export declare function generateRandomDateAfter(options: IAutogenerationRandomDateFrom): Date;
@@ -15073,12 +15324,18 @@ export declare function getCommonChildren(entityA: CanvasEntityState, entityB: C
15073
15324
 
15074
15325
  export declare function getConnectionIdFromDefinitionEntity(entity: DefinitionEntityState | BuiltInBaseEntityState): string | null;
15075
15326
 
15327
+ export declare function getCurrentIanaTimeZone(): string;
15328
+
15076
15329
  export declare const getCurrentIanaTimezoneError: IValueDescriptorTransfer;
15077
15330
 
15078
15331
  export declare const getCurrentIanaTimezoneOperation: IActionDescriptorTransfer;
15079
15332
 
15080
15333
  export declare const getCurrentIanaTimezoneResponseDT: IDataTypeTransfer;
15081
15334
 
15335
+ export declare function getCurrentIanaTimeZoneSafe(): string | null;
15336
+
15337
+ export declare function getCurrentTimestamp(): ISODateString;
15338
+
15082
15339
  export declare const getCurrentTimestampError: IValueDescriptorTransfer;
15083
15340
 
15084
15341
  export declare const getCurrentTimestampOperation: IActionDescriptorTransfer;
@@ -15089,6 +15346,8 @@ export declare function getDatabaseEntities(project: ProjectState): DefinitionEn
15089
15346
 
15090
15347
  export declare function getDatabaseEntity(entity: DefinitionEntityState): DefinitionEntityState | null;
15091
15348
 
15349
+ export declare function getDate(input: ISODateString): number;
15350
+
15092
15351
  export declare const getDateDateArg: IValueDescriptorTransfer;
15093
15352
 
15094
15353
  export declare const getDateDateDT: IDataTypeTransfer;
@@ -15099,8 +15358,12 @@ export declare const getDateOperation: IActionDescriptorTransfer;
15099
15358
 
15100
15359
  export declare const getDateResponseDT: IDataTypeTransfer;
15101
15360
 
15361
+ export declare function getDayOfYear(input: ISODateString): number;
15362
+
15102
15363
  export declare const getDayOfYearOperation: IActionDescriptorTransfer;
15103
15364
 
15365
+ export declare function getDaysInMonth(input: ISODateString): number;
15366
+
15104
15367
  export declare const getDaysInMonthOperation: IActionDescriptorTransfer;
15105
15368
 
15106
15369
  export declare function getDeclaration(variable: VariableState): VariableDeclarationState;
@@ -17408,8 +17671,12 @@ export declare const getFilesTrashedInputDataTypeTransfer: IDataTypeTransfer;
17408
17671
 
17409
17672
  export declare const getFilesTrashedInputTransfer: IValueDescriptorTransfer;
17410
17673
 
17674
+ export declare function getFirst(list: unknown): any;
17675
+
17411
17676
  export declare function getFirstBaseEntityWithOwnBase(entity: DefinitionEntityState | BuiltInBaseEntityState, baseEntityName: BaseEntityNames): BuiltInBaseEntityState | null;
17412
17677
 
17678
+ export declare function getFirstN(list: unknown, n: unknown): any[];
17679
+
17413
17680
  export declare function getFirstNonLoopScopeOwner(entity: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState, _initialEntity?: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer | null): EntryPointEntityState | ProjectState | null;
17414
17681
 
17415
17682
  export declare function getFirstParentExecutableEntity(entity: EntityState): ExecutableEntityState | null;
@@ -17425,6 +17692,8 @@ export declare function getHeadIfPartOfDetachedBranch(entity: CanvasEntityState,
17425
17692
 
17426
17693
  export declare function getHighestScope(scopeOwnerA: EntityWithLogicScopeState, scopeOwnerB: EntityWithLogicScopeState, project: ProjectState): EntityWithLogicScopeState | null;
17427
17694
 
17695
+ export declare function getHour(input: ISODateString): number;
17696
+
17428
17697
  export declare const getHourDateArg: IValueDescriptorTransfer;
17429
17698
 
17430
17699
  export declare const getHourDateDT: IDataTypeTransfer;
@@ -17439,6 +17708,8 @@ export declare function getHTTPAPINameFromProjectId(projectId: string): string;
17439
17708
 
17440
17709
  export declare function getImplementedBuiltInEntity(entity: DefinitionEntityState): BuiltInBaseEntityState | null;
17441
17710
 
17711
+ export declare function getIndexItem(list: unknown, index: unknown): any;
17712
+
17442
17713
  export declare function getIntegrationIdFromDefinitionEntity(entity: DefinitionEntityState | BuiltInBaseEntityState): ExternalIntegrationNames | null;
17443
17714
 
17444
17715
  export declare function getIntegrationIdFromEntity(entity: DefinitionEntityState | BuiltInBaseEntityState | ActionDescriptorState | OperationState): ExternalIntegrationNames | null;
@@ -17464,6 +17735,8 @@ export declare const getIsoWdError: IValueDescriptorTransfer;
17464
17735
 
17465
17736
  export declare const getIsoWdResponseDT: IDataTypeTransfer;
17466
17737
 
17738
+ export declare function getIsoWeekday(input: ISODateString): IsoWeekday1Mon7Sun;
17739
+
17467
17740
  export declare const getIsoWeekdayOperation: IActionDescriptorTransfer;
17468
17741
 
17469
17742
  declare function getJoinOnSpecificationAsWhereStatementFromJoinExpr(joinClause: JoinExpr, scopeColumns: ColumnRef[], state: SearchStatementState, project: ProjectState, debug?: boolean): WhereStatement | null;
@@ -17472,6 +17745,12 @@ declare function getJoinTableFromJoinClause(joinClause: JoinExpr): string;
17472
17745
 
17473
17746
  declare function getJoinTypeFromJoinClause(joinClause: JoinExpr): AggregationStatementType;
17474
17747
 
17748
+ export declare function getLast(list: unknown): any;
17749
+
17750
+ export declare function getLastN(list: unknown, n: unknown): any[];
17751
+
17752
+ export declare function getLength(list: unknown): number;
17753
+
17475
17754
  declare function getLimitClauseFromSelectStatement(selectStatement: SelectStmt): LimitClause | null;
17476
17755
 
17477
17756
  export declare function getLinkedEntitiesFromArgumentDeclaration(argumentDeclaration: ArgumentDeclarationState): ValueReadingEntityState[];
@@ -17510,8 +17789,12 @@ declare function getMainSourceNameFromSelectStatement(selectStatement: SelectStm
17510
17789
  as: string;
17511
17790
  } | null;
17512
17791
 
17792
+ export declare function getMillisecond(input: ISODateString): number;
17793
+
17513
17794
  export declare const getMillisecondOperation: IActionDescriptorTransfer;
17514
17795
 
17796
+ export declare function getMinute(input: ISODateString): number;
17797
+
17515
17798
  export declare const getMinuteDateArg: IValueDescriptorTransfer;
17516
17799
 
17517
17800
  export declare const getMinuteDateDT: IDataTypeTransfer;
@@ -17522,6 +17805,8 @@ export declare const getMinuteOperation: IActionDescriptorTransfer;
17522
17805
 
17523
17806
  export declare const getMinuteResponseDT: IDataTypeTransfer;
17524
17807
 
17808
+ export declare function getMonth(input: ISODateString): number;
17809
+
17525
17810
  export declare const getMonthDateArg: IValueDescriptorTransfer;
17526
17811
 
17527
17812
  export declare const getMonthDateDT: IDataTypeTransfer;
@@ -17981,6 +18266,8 @@ export declare function getProject(where: {
17981
18266
 
17982
18267
  export declare function getPrototypeByType(type: EntityType): EntityStateConstructor | null;
17983
18268
 
18269
+ export declare function getQuarter(input: ISODateString): 1 | 2 | 3 | 4;
18270
+
17984
18271
  export declare const getQuarterDateArg: IValueDescriptorTransfer;
17985
18272
 
17986
18273
  export declare const getQuarterDateDT: IDataTypeTransfer;
@@ -17991,6 +18278,8 @@ export declare const getQuarterOperation: IActionDescriptorTransfer;
17991
18278
 
17992
18279
  export declare const getQuarterResponseDT: IDataTypeTransfer;
17993
18280
 
18281
+ export declare function getRandomBytes(size: number): Uint8Array;
18282
+
17994
18283
  declare function getRawLimitFromLimitClause(limitClause: LimitClause | null): number | null;
17995
18284
 
17996
18285
  declare function getRawOffetFromLimitClause(limitClause: LimitClause | null): number;
@@ -18059,6 +18348,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
18059
18348
  */
18060
18349
  export declare function getScopeOwner(entity: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState, _initialEntity?: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer | null): EntityWithLogicScopeState | ProjectState | null;
18061
18350
 
18351
+ export declare function getSecond(input: ISODateString): number;
18352
+
18062
18353
  export declare const getSecondDateArg: IValueDescriptorTransfer;
18063
18354
 
18064
18355
  export declare const getSecondDateDT: IDataTypeTransfer;
@@ -18153,6 +18444,9 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
18153
18444
  type: import("../../..").EntityType.ContinueStatement;
18154
18445
  }>, z_2.ZodRecord<z_2.ZodString, z_2.ZodAny>]>]>;
18155
18446
 
18447
+ export declare function getTimezoneOffset(timezone: string, // IANA tz or 'Local'
18448
+ atDate: ISODateString): number;
18449
+
18156
18450
  export declare const getTimezoneOffsetOperation: IActionDescriptorTransfer;
18157
18451
 
18158
18452
  /**
@@ -18534,6 +18828,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
18534
18828
  type: import("../../..").EntityType.VariableInstance;
18535
18829
  }>, z_2.ZodRecord<z_2.ZodString, z_2.ZodAny>]>]>;
18536
18830
 
18831
+ export declare function getWeekOfYear(input: ISODateString): number;
18832
+
18537
18833
  export declare const getWeekOfYearOperation: IActionDescriptorTransfer;
18538
18834
 
18539
18835
  declare function getWhereClauseFromSelectStatement(selectStatement: SelectStmt): WhereClause | null;
@@ -18550,6 +18846,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
18550
18846
 
18551
18847
  export declare function getWrites(entity: ValueWritingEntityState): ValueReadingEntityState[];
18552
18848
 
18849
+ export declare function getYear(input: ISODateString): number;
18850
+
18553
18851
  export declare const getYearDateArg: IValueDescriptorTransfer;
18554
18852
 
18555
18853
  export declare const getYearDateDT: IDataTypeTransfer;
@@ -19151,8 +19449,34 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
19151
19449
 
19152
19450
  export declare function handleValueAsTypeDelete(entity: EntityWithValueState, project: ProjectState, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
19153
19451
 
19452
+ /** Hashes data with SHA-256/384/512. */
19453
+ export declare function hash(alg: HashAlg, data: Bytes): Promise<Bytes>;
19454
+
19455
+ export declare type HashAlg = 'SHA-256' | 'SHA-384' | 'SHA-512';
19456
+
19154
19457
  export declare const hashAlgDefault: ILiteralValueTransfer;
19155
19458
 
19459
+ /**
19460
+ * Hashes a password and returns an envelope:
19461
+ * pbkdf2$<sha-256|sha-512>$<iterations>$<salt_b64url>$<dk_b64url>
19462
+ */
19463
+ export declare function hashPasswordPBKDF2(password: string, params?: HashPasswordPBKDF2Params): Promise<string>;
19464
+
19465
+ export declare interface HashPasswordPBKDF2Params extends Partial<PBKDF2Options> {
19466
+ saltBytes?: Bytes;
19467
+ }
19468
+
19469
+ export declare function hasKey(obj: unknown, key: unknown): boolean;
19470
+
19471
+ export declare function hasNestedKey(obj: unknown, path: unknown): boolean;
19472
+
19473
+ export declare function hexToken(): string;
19474
+
19475
+ /** HMAC over data with SHA-256/384/512. */
19476
+ export declare function hmac(alg: HmacAlg, key: Bytes, data: Bytes): Promise<Bytes>;
19477
+
19478
+ export declare type HmacAlg = HashAlg;
19479
+
19156
19480
  export declare const HTTP_OPERATIONS: {
19157
19481
  [key: string]: IActionDescriptorTransfer;
19158
19482
  };
@@ -19278,6 +19602,9 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
19278
19602
 
19279
19603
  export declare function httpStatusCodeValueValidation(self: ActionDescriptorState, value: LiteralValueType): IValueValidationResult<LiteralValueType, HTTPStatucCodeValidationErrorCodes>;
19280
19604
 
19605
+ /** Humanize the difference between two times, e.g., "in 5 minutes" or "2 hours". */
19606
+ export declare function humanizeDiff(a: ISODateString, b: ISODateString, withSuffix?: boolean): string;
19607
+
19281
19608
  export declare const humanizeDiffError: IValueDescriptorTransfer;
19282
19609
 
19283
19610
  export declare const humanizeDiffFirstArgument: IValueDescriptorTransfer;
@@ -20809,6 +21136,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
20809
21136
 
20810
21137
  export declare type IncompatibleScope = IIncompatibleParallelInProjectScope | IIncompatibleParallelInCommonParentScope | IIncompatibleAIsGlobalBIsNotScope | IIncompatibleBIsGlobalAIsNotScope;
20811
21138
 
21139
+ export declare function indexOf(list: unknown, value: unknown): number;
21140
+
20812
21141
  export declare function inferArgumentDeclarationDataType(entity: ArgumentDeclarationState, _changeSet?: ChangeSet | null): DataTypeState | null;
20813
21142
 
20814
21143
  export declare function inferBreakStatementDataType(entity: BreakStatementState, _changeSet?: ChangeSet | null): DataTypeState | null;
@@ -20825,6 +21154,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
20825
21154
 
20826
21155
  export declare function inferLoopDataType(entity: LoopState, _changeSet?: ChangeSet | null): DataTypeState | null;
20827
21156
 
21157
+ export declare function inferOperationDataType(entity: OperationState, _changeSet?: ChangeSet | null): DataTypeState | null;
21158
+
20828
21159
  export declare function inferOutputMapDataType(entity: OutputMapState, _changeSet?: ChangeSet | null): DataTypeState | null;
20829
21160
 
20830
21161
  export declare function inferPropertyDataType(entity: PropertyState, _changeSet?: ChangeSet | null): DataTypeState | null;
@@ -21755,6 +22086,12 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
21755
22086
  parent: EntryPointEntity | EntryPointEntityReference;
21756
22087
  }
21757
22088
 
22089
+ export declare function isAfter(a: ISODateString, b: ISODateString, unit?: default_3.OpUnitType): boolean;
22090
+
22091
+ export declare function isBefore(a: ISODateString, b: ISODateString, unit?: default_3.OpUnitType): boolean;
22092
+
22093
+ export declare function isBetween(target: ISODateString, start: ISODateString, end: ISODateString, unit?: default_3.OpUnitType, inclusivity?: '()' | '[]' | '[)' | '(]'): boolean;
22094
+
21758
22095
  export declare interface IScopeCompatibility {
21759
22096
  compatible: boolean;
21760
22097
  type: ScopeCompatibilityType;
@@ -21853,14 +22190,29 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
21853
22190
  to: string;
21854
22191
  }
21855
22192
 
22193
+ export declare function isLeapYearFn(input: ISODateString): boolean;
22194
+
22195
+ /** Dates are exchanged as ISO 8601 strings (e.g., "2025-10-17T12:34:56.789Z"). */
22196
+ export declare type ISODateString = string;
22197
+
22198
+ export declare type IsoWeekday1Mon7Sun = 1 | 2 | 3 | 4 | 5 | 6 | 7;
22199
+
21856
22200
  export declare function isPromise(obj: any): obj is Promise<any>;
21857
22201
 
22202
+ export declare function isSame(a: ISODateString, b: ISODateString, unit?: default_3.OpUnitType): boolean;
22203
+
22204
+ export declare function isSameOrAfter(a: ISODateString, b: ISODateString, unit?: default_3.OpUnitType): boolean;
22205
+
22206
+ export declare function isSameOrBefore(a: ISODateString, b: ISODateString, unit?: default_3.OpUnitType): boolean;
22207
+
21858
22208
  export declare interface IString extends IPrimitiveEntity {
21859
22209
  name: PrimitiveTypes.String;
21860
22210
  }
21861
22211
 
21862
22212
  export declare function isUUID(uuid: string): boolean;
21863
22213
 
22214
+ export declare function isValid(input: ISODateString | string): boolean;
22215
+
21864
22216
  declare interface ITable {
21865
22217
  entity: DefinitionEntityState;
21866
22218
  tableName: string;
@@ -22422,6 +22774,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
22422
22774
 
22423
22775
  export declare const jiraAuthExternalConnectionBuiltInBaseEntityIntegrationPropertyRef: IPropertyReference;
22424
22776
 
22777
+ export declare function joinLists(inputs: unknown[]): any[];
22778
+
22425
22779
  export declare function joinListWithLastSeparator(list: string[], separator: string, lastSeparator: string): string;
22426
22780
 
22427
22781
  export declare const joinStringsOperation: IActionDescriptorTransfer;
@@ -22633,12 +22987,30 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
22633
22987
 
22634
22988
  export declare const jwtDecodeTokenDT: IDataTypeTransfer;
22635
22989
 
22990
+ export declare interface JwtHeader {
22991
+ alg: 'HS256' | 'HS384' | 'HS512';
22992
+ typ?: 'JWT';
22993
+ kid?: string;
22994
+ [k: string]: unknown;
22995
+ }
22996
+
22636
22997
  export declare enum JwtOperations {
22637
22998
  BuildJwtHmac = "op-jwt-build-hmac",
22638
22999
  VerifyJwtHmac = "op-jwt-verify-hmac",
22639
23000
  DecodeJwt = "op-jwt-decode"
22640
23001
  }
22641
23002
 
23003
+ export declare interface JwtPayload {
23004
+ iss?: string;
23005
+ sub?: string;
23006
+ aud?: string | string[];
23007
+ exp?: number;
23008
+ nbf?: number;
23009
+ iat?: number;
23010
+ jti?: string;
23011
+ [k: string]: unknown;
23012
+ }
23013
+
22642
23014
  export declare const jwtVerifyHmacAlgArg: IValueDescriptorTransfer;
22643
23015
 
22644
23016
  export declare const jwtVerifyHmacAlgDefault: ILiteralValueTransfer;
@@ -22679,8 +23051,12 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
22679
23051
 
22680
23052
  export declare const jwtVerifyHmacTokenDT: IDataTypeTransfer;
22681
23053
 
23054
+ export declare function keyValueEquals(obj: unknown, key: unknown, expected: unknown): boolean;
23055
+
22682
23056
  export declare const keyValuePrototype: IPrimitiveEntity;
22683
23057
 
23058
+ export declare function lastIndexOf(list: unknown, value: unknown): number;
23059
+
22684
23060
  export declare const lengthDefault: ILiteralValueTransfer;
22685
23061
 
22686
23062
  export declare const LIST_OPERATIONS: {
@@ -22751,6 +23127,10 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
22751
23127
 
22752
23128
  export declare const listConcatOperationResponseDT: IDataTypeTransfer;
22753
23129
 
23130
+ export declare function listContains(listRaw: unknown, needle: unknown): boolean;
23131
+
23132
+ export declare function listContainsAll(listRaw: unknown, needlesRaw: unknown): boolean;
23133
+
22754
23134
  export declare const listContainsAllOperation: IActionDescriptorTransfer;
22755
23135
 
22756
23136
  export declare const listContainsAllOperationListArg: IValueDescriptorTransfer;
@@ -22783,6 +23163,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
22783
23163
 
22784
23164
  export declare const listContainsAllOperationResultVoidDT: IDataTypeTransfer;
22785
23165
 
23166
+ export declare function listContainsAny(listRaw: unknown, needlesRaw: unknown): boolean;
23167
+
22786
23168
  export declare const listContainsAnyOperation: IActionDescriptorTransfer;
22787
23169
 
22788
23170
  export declare const listContainsAnyOperationListArg: IValueDescriptorTransfer;
@@ -23733,8 +24115,12 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
23733
24115
 
23734
24116
  export declare function mapActionDescriptorToTypeItRepresents(entity: EntityState): EntityType;
23735
24117
 
24118
+ export declare function mapRange(vRaw: unknown, inMinRaw: unknown, inMaxRaw: unknown, outMinRaw: unknown, outMaxRaw: unknown): number;
24119
+
23736
24120
  export declare function mapRecord(record: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer> | undefined, entityIdMaps: Map<EntityId, EntityId>): Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
23737
24121
 
24122
+ export declare function maxOf(inputs: ISODateString[]): ISODateString;
24123
+
23738
24124
  export declare const maxOfDatesArg: IValueDescriptorTransfer;
23739
24125
 
23740
24126
  export declare const maxOfDatesDT: IDataTypeTransfer;
@@ -23745,6 +24131,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
23745
24131
 
23746
24132
  export declare const maxOfResponseDT: IDataTypeTransfer;
23747
24133
 
24134
+ export declare function median(numsRaw: unknown[]): number;
24135
+
23748
24136
  export declare function mergeArraysOfStringsWithoutDuplicates(arr1: string[], arr2: string[]): string[];
23749
24137
 
23750
24138
  /**
@@ -23762,6 +24150,13 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
23762
24150
 
23763
24151
  export declare function mergeListOfEntities(oldErrors: EntityState[], newErrors: EntityState[]): EntityState[];
23764
24152
 
24153
+ /**
24154
+ * MergeObjects: shallow, immutable merge with rightmost-precedence.
24155
+ * Accepts `null`/`undefined` and treats them as `{}`.
24156
+ * Throws if any non-null argument is not an object.
24157
+ */
24158
+ export declare function mergeObjects(...objs: unknown[]): Record<string, unknown>;
24159
+
23765
24160
  /**
23766
24161
  * Merges two property entities by aligning their attributes.
23767
24162
  * Always returns the first entity (self) with its attributes modified to match the second entity (sourceProperty).
@@ -23900,6 +24295,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
23900
24295
 
23901
24296
  export declare const microsoftAuthExternalConnectionBuiltInBaseEntityIntegrationPropertyRef: IPropertyReference;
23902
24297
 
24298
+ export declare function minOf(inputs: ISODateString[]): ISODateString;
24299
+
23903
24300
  export declare const minOfDatesArg: IValueDescriptorTransfer;
23904
24301
 
23905
24302
  export declare const minOfDatesDT: IDataTypeTransfer;
@@ -23916,6 +24313,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
23916
24313
 
23917
24314
  export declare const NESTED_PROPERTY_HEIGHT = 26;
23918
24315
 
24316
+ export declare function nestedKeyValueEquals(obj: unknown, path: unknown, expected: unknown): boolean;
24317
+
23919
24318
  declare class NestedSearchStatement implements ISearchNode {
23920
24319
  owner: SearchStatementState;
23921
24320
  statement: SearchStatementState | null;
@@ -23933,6 +24332,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
23933
24332
  toQuery(): string;
23934
24333
  }
23935
24334
 
24335
+ export declare function nextWeekday(input: ISODateString, targetIsoWeekday: IsoWeekday1Mon7Sun): ISODateString;
24336
+
23936
24337
  export declare const nextWeekdayBaseDateArg: IValueDescriptorTransfer;
23937
24338
 
23938
24339
  export declare const nextWeekdayBaseDateDT: IDataTypeTransfer;
@@ -23953,6 +24354,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
23953
24354
 
23954
24355
  export declare function noSpacesValueValidation(self: EntityWithValueState, value: LiteralValueType): IValueValidationResult<LiteralValueType, CommonStringValidationErrorCodes>;
23955
24356
 
24357
+ export declare function nthRoot(valRaw: unknown, nRaw: unknown): number;
24358
+
23956
24359
  export declare const nullPrototype: IPrimitiveEntity;
23957
24360
 
23958
24361
  export declare const NUMBER_OPERATIONS: {
@@ -24684,6 +25087,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
24684
25087
 
24685
25088
  export declare const objectDeleteNestedKeyOperationResponseDT: IDataTypeTransfer;
24686
25089
 
25090
+ /**
25091
+ * ObjectEntries: returns enumerable own [key, value] pairs of an object.
25092
+ */
25093
+ export declare function objectEntries(obj: unknown): [string, unknown][];
25094
+
24687
25095
  export declare const objectEntriesOperation: IActionDescriptorTransfer;
24688
25096
 
24689
25097
  export declare const objectEntriesOperationError: IValueDescriptorTransfer;
@@ -24744,6 +25152,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
24744
25152
 
24745
25153
  export declare const objectIsInstanceOfTypeOperationResultVoidDT: IDataTypeTransfer;
24746
25154
 
25155
+ /**
25156
+ * ObjectKeys: returns enumerable own property keys of an object.
25157
+ */
25158
+ export declare function objectKeys(obj: unknown): string[];
25159
+
24747
25160
  export declare const objectKeysOperation: IActionDescriptorTransfer;
24748
25161
 
24749
25162
  export declare const objectKeysOperationError: IValueDescriptorTransfer;
@@ -24758,6 +25171,20 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
24758
25171
 
24759
25172
  export declare const objectKeyValueEqualsOperationError: IValueDescriptorTransfer;
24760
25173
 
25174
+ export declare const objectKeyValueEqualsOperationExpectedValueArg: IValueDescriptorTransfer;
25175
+
25176
+ export declare const objectKeyValueEqualsOperationExpectedValueDT: IDataTypeTransfer;
25177
+
25178
+ export declare const objectKeyValueEqualsOperationExpectedValueDTOrBooleanDataType: IDataTypeTransfer;
25179
+
25180
+ export declare const objectKeyValueEqualsOperationExpectedValueDTOrDateDataType: IDataTypeTransfer;
25181
+
25182
+ export declare const objectKeyValueEqualsOperationExpectedValueDTOrNullDataType: IDataTypeTransfer;
25183
+
25184
+ export declare const objectKeyValueEqualsOperationExpectedValueDTOrNumberDataType: IDataTypeTransfer;
25185
+
25186
+ export declare const objectKeyValueEqualsOperationExpectedValueDTOrStringDataType: IDataTypeTransfer;
25187
+
24761
25188
  export declare const objectKeyValueEqualsOperationKeyArg: IValueDescriptorTransfer;
24762
25189
 
24763
25190
  export declare const objectKeyValueEqualsOperationKeyDT: IDataTypeTransfer;
@@ -24766,7 +25193,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
24766
25193
 
24767
25194
  export declare const objectKeyValueEqualsOperationObjDT: IDataTypeTransfer;
24768
25195
 
24769
- export declare const objectKeyValueEqualsOperationResultVoidDT: IDataTypeTransfer;
25196
+ export declare const objectKeyValueEqualsOperationResultBooleanDT: IDataTypeTransfer;
24770
25197
 
24771
25198
  export declare const objectMergeOperation: IActionDescriptorTransfer;
24772
25199
 
@@ -24786,6 +25213,20 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
24786
25213
 
24787
25214
  export declare const objectNestedKeyValueEqualsOperationError: IValueDescriptorTransfer;
24788
25215
 
25216
+ export declare const objectNestedKeyValueEqualsOperationExpectedValueArg: IValueDescriptorTransfer;
25217
+
25218
+ export declare const objectNestedKeyValueEqualsOperationExpectedValueDT: IDataTypeTransfer;
25219
+
25220
+ export declare const objectNestedKeyValueEqualsOperationExpectedValueDTOrBooleanDataType: IDataTypeTransfer;
25221
+
25222
+ export declare const objectNestedKeyValueEqualsOperationExpectedValueDTOrDateDataType: IDataTypeTransfer;
25223
+
25224
+ export declare const objectNestedKeyValueEqualsOperationExpectedValueDTOrNullDataType: IDataTypeTransfer;
25225
+
25226
+ export declare const objectNestedKeyValueEqualsOperationExpectedValueDTOrNumberDataType: IDataTypeTransfer;
25227
+
25228
+ export declare const objectNestedKeyValueEqualsOperationExpectedValueDTOrStringDataType: IDataTypeTransfer;
25229
+
24789
25230
  export declare const objectNestedKeyValueEqualsOperationKeyArg: IValueDescriptorTransfer;
24790
25231
 
24791
25232
  export declare const objectNestedKeyValueEqualsOperationKeyDT: IDataTypeTransfer;
@@ -24802,7 +25243,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
24802
25243
 
24803
25244
  export declare const objectNestedKeyValueEqualsOperationObjDT: IDataTypeTransfer;
24804
25245
 
24805
- export declare const objectNestedKeyValueEqualsOperationResultVoidDT: IDataTypeTransfer;
25246
+ export declare const objectNestedKeyValueEqualsOperationResultBooleanDT: IDataTypeTransfer;
24806
25247
 
24807
25248
  export declare enum ObjectOperations {
24808
25249
  Validate = "op-object-validate",
@@ -24860,6 +25301,11 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
24860
25301
 
24861
25302
  export declare const objectReadNestedKeyOperationResponseDT: IDataTypeTransfer;
24862
25303
 
25304
+ /**
25305
+ * ObjectValues: returns enumerable own property values of an object.
25306
+ */
25307
+ export declare function objectValues(obj: unknown): unknown[];
25308
+
24863
25309
  export declare const objectValuesOperation: IActionDescriptorTransfer;
24864
25310
 
24865
25311
  export declare const objectValuesOperationError: IValueDescriptorTransfer;
@@ -27973,6 +28419,10 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
27973
28419
  }
27974
28420
  export { outputMapValidation }
27975
28421
 
28422
+ export declare function padEndList(list: unknown, targetLen: unknown, padValue: unknown): any[];
28423
+
28424
+ export declare function padStartList(list: unknown, targetLen: unknown, padValue: unknown): any[];
28425
+
27976
28426
  export declare class ParallelExecutionOperation extends ActionDescriptorState {
27977
28427
  readonly id = ExecutionOperations.Parallel;
27978
28428
  readonly name = ExecutionOperations.Parallel;
@@ -28008,6 +28458,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
28008
28458
 
28009
28459
  export declare const PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION = "If an explicit 'parent' isn't given for a callable entity, the scope will be auto-calculated to match the parent scope of the caller entity.\nIf the entity that should be the parent of a callable entity is unclear, you can always skip the 'parent' property and the system will automatically calculate the parent based on the caller entity.";
28010
28460
 
28461
+ export declare function parseDate(input: string): ISODateString;
28462
+
28011
28463
  export declare const parseDateError: IValueDescriptorTransfer;
28012
28464
 
28013
28465
  export declare const parseDateInputArg: IValueDescriptorTransfer;
@@ -28126,6 +28578,14 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
28126
28578
 
28127
28579
  export declare const passwordVerifyPBKDF2ResponseDT: IDataTypeTransfer;
28128
28580
 
28581
+ export declare interface PBKDF2Options {
28582
+ iterations: number;
28583
+ length: number;
28584
+ hashAlg?: Extract<HashAlg, 'SHA-256' | 'SHA-512'>;
28585
+ }
28586
+
28587
+ export declare function percentageChange(oldRaw: unknown, newRaw: unknown): number;
28588
+
28129
28589
  export declare type PersistChangeSetEntityActionPayload = IRecordChangeSet<UserManagedElementShallowTransfer, UserManagedElementShallowTransfer> & {
28130
28590
  isNewBranchHead: boolean;
28131
28591
  branch: string;
@@ -28237,6 +28697,10 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
28237
28697
 
28238
28698
  export declare type PlayableEntityTypesUnion = PlayableEntity | PlayableEntityTransfer | PlayableEntityShallowTransfer | PlayableEntityGenerationTarget;
28239
28699
 
28700
+ export declare function prependToList(list: unknown, value: unknown): any[];
28701
+
28702
+ export declare function previousWeekday(input: ISODateString, targetIsoWeekday: IsoWeekday1Mon7Sun): ISODateString;
28703
+
28240
28704
  export declare const previousWeekdayOperation: IActionDescriptorTransfer;
28241
28705
 
28242
28706
  export declare const prevWeekdayBaseDateArg: IValueDescriptorTransfer;
@@ -28840,6 +29304,18 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
28840
29304
 
28841
29305
  export declare const pwdEncDefault: ILiteralValueTransfer;
28842
29306
 
29307
+ export declare function randomAlphaNumeric(length: number): string;
29308
+
29309
+ export declare function randomBase62(length: number): string;
29310
+
29311
+ export declare function randomBase64(byteLength: number): string;
29312
+
29313
+ export declare function randomFloat(): number;
29314
+
29315
+ export declare function randomHex(byteLength: number): string;
29316
+
29317
+ export declare function randomInt(min: number, max: number): number;
29318
+
28843
29319
  export declare const RANDOMNESS_OPERATIONS: {
28844
29320
  [key: string]: IActionDescriptorTransfer;
28845
29321
  };
@@ -28858,6 +29334,10 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
28858
29334
  GenerateHexadecimalToken = "op-generate-hexadecimal-token"
28859
29335
  }
28860
29336
 
29337
+ export declare function randomUint32(): number;
29338
+
29339
+ export declare function randomUUIDv4(): string;
29340
+
28861
29341
  export declare const READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY: IReadOnlyEntityPersistanceRepository;
28862
29342
 
28863
29343
  export declare const READABLE_ENTITY_TYPES: {
@@ -29019,6 +29499,10 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29019
29499
  };
29020
29500
  };
29021
29501
 
29502
+ export declare function readKey(obj: unknown, key: unknown): unknown;
29503
+
29504
+ export declare function readNestedKey(obj: unknown, path: unknown, defaultValue?: unknown): unknown;
29505
+
29022
29506
  export declare function readValueFromWritter(entity: ValueReadingEntityState, context: IValueResolutionContext, onlyDefault?: boolean): IDynamicValue | null;
29023
29507
 
29024
29508
  export declare function rebaseStack<T = any>(undoableStackValueIndex: number, history: T[], newItem: T): number;
@@ -29100,6 +29584,16 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29100
29584
  reasons: CanvasEntityDisabledReason[];
29101
29585
  };
29102
29586
 
29587
+ export declare function repeatList(list: unknown, count: unknown): any[];
29588
+
29589
+ export declare function replaceAll(list: unknown, valueToReplace: unknown, newValue: unknown): any[];
29590
+
29591
+ export declare function replaceAtIndex(list: unknown, index: unknown, value: unknown): any[];
29592
+
29593
+ export declare function replaceFirst(list: unknown, valueToReplace: unknown, newValue: unknown): any[];
29594
+
29595
+ export declare function replaceLast(list: unknown, valueToReplace: unknown, newValue: unknown): any[];
29596
+
29103
29597
  export declare const repliesActionRef: IActionDescriptorReference;
29104
29598
 
29105
29599
  export declare const repliesAutoPaginateInputDTParentRef: IValueDescriptorReference;
@@ -29507,10 +30001,22 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29507
30001
  }
29508
30002
  export { returnStatementValidation }
29509
30003
 
30004
+ export declare function reverseList(list: unknown): any[];
30005
+
30006
+ /** Round to nearest unit using midpoint between start and end of unit. */
30007
+ export declare function roundTo(input: ISODateString, unit: default_3.ManipulateType): ISODateString;
30008
+
29510
30009
  export declare const roundToDateArg: IValueDescriptorTransfer;
29511
30010
 
29512
30011
  export declare const roundToDateDT: IDataTypeTransfer;
29513
30012
 
30013
+ /**
30014
+ * Math operation helpers for implementations that are not directly a single
30015
+ * JS operator or one-liner. These encapsulate validation and edge cases so
30016
+ * the operation modules can remain thin.
30017
+ */
30018
+ export declare function roundToDecimals(xRaw: unknown, dRaw: unknown): number;
30019
+
29514
30020
  export declare const roundToError: IValueDescriptorTransfer;
29515
30021
 
29516
30022
  export declare const roundToOperation: IActionDescriptorTransfer;
@@ -30028,6 +30534,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30028
30534
  resolveDeterministicResourceId(): string;
30029
30535
  }
30030
30536
 
30537
+ export declare function setDate(input: ISODateString, date1to31: number): ISODateString;
30538
+
30031
30539
  export declare const setDateDateArg: IValueDescriptorTransfer;
30032
30540
 
30033
30541
  export declare const setDateDateDT: IDataTypeTransfer;
@@ -30042,6 +30550,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30042
30550
 
30043
30551
  export declare const setDateResponseDT: IDataTypeTransfer;
30044
30552
 
30553
+ export declare function setHour(input: ISODateString, hour0to23: number): ISODateString;
30554
+
30045
30555
  export declare const setHourDateArg: IValueDescriptorTransfer;
30046
30556
 
30047
30557
  export declare const setHourDateDT: IDataTypeTransfer;
@@ -30068,10 +30578,16 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30068
30578
 
30069
30579
  export declare const setIsoWdValueDT: IDataTypeTransfer;
30070
30580
 
30581
+ export declare function setIsoWeekday(input: ISODateString, isoWeekday1Mon7Sun: IsoWeekday1Mon7Sun): ISODateString;
30582
+
30071
30583
  export declare const setIsoWeekdayOperation: IActionDescriptorTransfer;
30072
30584
 
30585
+ export declare function setMillisecond(input: ISODateString, ms0to999: number): ISODateString;
30586
+
30073
30587
  export declare const setMillisecondOperation: IActionDescriptorTransfer;
30074
30588
 
30589
+ export declare function setMinute(input: ISODateString, minute0to59: number): ISODateString;
30590
+
30075
30591
  export declare const setMinuteDateArg: IValueDescriptorTransfer;
30076
30592
 
30077
30593
  export declare const setMinuteDateDT: IDataTypeTransfer;
@@ -30086,6 +30602,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30086
30602
 
30087
30603
  export declare const setMinuteResponseDT: IDataTypeTransfer;
30088
30604
 
30605
+ export declare function setMonth(input: ISODateString, month0to11: number): ISODateString;
30606
+
30089
30607
  export declare const setMonthDateArg: IValueDescriptorTransfer;
30090
30608
 
30091
30609
  export declare const setMonthDateDT: IDataTypeTransfer;
@@ -30112,6 +30630,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30112
30630
 
30113
30631
  export declare const setMsValueDT: IDataTypeTransfer;
30114
30632
 
30633
+ export declare function setQuarter(input: ISODateString, q: 1 | 2 | 3 | 4): ISODateString;
30634
+
30115
30635
  export declare const setQuarterDateArg: IValueDescriptorTransfer;
30116
30636
 
30117
30637
  export declare const setQuarterDateDT: IDataTypeTransfer;
@@ -30126,6 +30646,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30126
30646
 
30127
30647
  export declare const setQuarterValueDT: IDataTypeTransfer;
30128
30648
 
30649
+ export declare function setSecond(input: ISODateString, second0to59: number): ISODateString;
30650
+
30129
30651
  export declare const setSecondDateArg: IValueDescriptorTransfer;
30130
30652
 
30131
30653
  export declare const setSecondDateDT: IDataTypeTransfer;
@@ -30140,6 +30662,9 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30140
30662
 
30141
30663
  export declare const setSecondSecDT: IDataTypeTransfer;
30142
30664
 
30665
+ /** Set a fixed numeric offset (in minutes), e.g., +120 for UTC+2. */
30666
+ export declare function setUTCOffset(input: ISODateString, minutesOffset: number, keepLocalTime?: boolean): ISODateString;
30667
+
30143
30668
  export declare const setUtcOffsetDateArg: IValueDescriptorTransfer;
30144
30669
 
30145
30670
  export declare const setUtcOffsetDateDT: IDataTypeTransfer;
@@ -30160,6 +30685,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30160
30685
 
30161
30686
  export declare const setUtcOffsetResponseDT: IDataTypeTransfer;
30162
30687
 
30688
+ export declare function setYear(input: ISODateString, year: number): ISODateString;
30689
+
30163
30690
  export declare const setYearDateArg: IValueDescriptorTransfer;
30164
30691
 
30165
30692
  export declare const setYearDateDT: IDataTypeTransfer;
@@ -30238,6 +30765,10 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30238
30765
  abstract getShallowErrors(): EntityError[];
30239
30766
  }
30240
30767
 
30768
+ export declare function shortId(): string;
30769
+
30770
+ export declare function shuffleList(list: unknown): any[];
30771
+
30241
30772
  export declare const SLACK_CONVERSATION_TYPES: readonly ["public_channel", "private_channel", "im", "mpim"];
30242
30773
 
30243
30774
  export declare const slackAuthExternalConnectionBuiltInBaseEntity: IBuiltInBaseEntityTransfer;
@@ -30366,6 +30897,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30366
30897
 
30367
30898
  export declare const slackChannelsTypesInputTransfer: IValueDescriptorTransfer;
30368
30899
 
30900
+ export declare function sliceList(list: unknown, start?: unknown, end?: unknown): any[];
30901
+
30369
30902
  /** base64 */
30370
30903
  export declare const smartFetchBase64PropertyDataTypeTransfer: IDataTypeTransfer;
30371
30904
 
@@ -30411,10 +30944,14 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30411
30944
 
30412
30945
  export declare const smartFetchTitlePropertyTransfer: IPropertyTransfer;
30413
30946
 
30947
+ export declare function snapToStep(xRaw: unknown, stepRaw: unknown): number;
30948
+
30414
30949
  export declare function sortCallsBasedOnExecutionDependencies(calls: DraggableCallableEntityState[]): DraggableCallableEntityState[];
30415
30950
 
30416
30951
  export declare function sortChildrenEntitiesBasedOnExecutionDependencies(entity: CanvasEntityState): CanvasEntityState[];
30417
30952
 
30953
+ export declare function sortList(list: unknown): any[];
30954
+
30418
30955
  declare class SortStatement implements ISearchNode {
30419
30956
  owner: SearchStatementState;
30420
30957
  column: ColumnRef | null;
@@ -30430,6 +30967,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30430
30967
  Descending = "desc"
30431
30968
  }
30432
30969
 
30970
+ export declare function splitList(list: unknown, index: unknown): [any[], any[]];
30971
+
30433
30972
  export declare const splitStringAtAllSeparatorsOperation: IActionDescriptorTransfer;
30434
30973
 
30435
30974
  export declare const splitStringAtAllSeparatorsOperationError: IValueDescriptorTransfer;
@@ -30583,6 +31122,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30583
31122
  BooleanIsFalse = "condition-boolean-is-false"
30584
31123
  }
30585
31124
 
31125
+ export declare function startOf(input: ISODateString, unit: default_3.ManipulateType): ISODateString;
31126
+
30586
31127
  export declare const startOfDateArg: IValueDescriptorTransfer;
30587
31128
 
30588
31129
  export declare const startOfDateDT: IDataTypeTransfer;
@@ -31450,6 +31991,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
31450
31991
  rangeEnd: number;
31451
31992
  }>]>;
31452
31993
 
31994
+ export declare function subtractFromDate(input: ISODateString, amount: number, unit: default_3.ManipulateType): ISODateString;
31995
+
31453
31996
  export declare const subtractFromDateAmountArg: IValueDescriptorTransfer;
31454
31997
 
31455
31998
  export declare const subtractFromDateAmountDT: IDataTypeTransfer;
@@ -31503,6 +32046,9 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
31503
32046
 
31504
32047
  export declare type TestableEntityState = ExecutableEntityState;
31505
32048
 
32049
+ /** Converts string (or bytes) into Uint8Array using the given encoding. */
32050
+ export declare function toBytes(input: string | Bytes, encoding?: AnyEncoding): Bytes;
32051
+
31506
32052
  /**
31507
32053
  * First letter of each word is lowercase and the rest of the words, start in uppercase
31508
32054
  * someName
@@ -31530,8 +32076,12 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
31530
32076
 
31531
32077
  export declare const toIsoInputStringDTParentRef: IDataTypeReference;
31532
32078
 
32079
+ export declare function toISOOrThrow(input: unknown): string;
32080
+
31533
32081
  export declare const toIsoResponseDT: IDataTypeTransfer;
31534
32082
 
32083
+ export declare function toISOString(input: ISODateString): ISODateString;
32084
+
31535
32085
  export declare const toISOStringOperation: IActionDescriptorTransfer;
31536
32086
 
31537
32087
  /**
@@ -31551,6 +32101,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
31551
32101
  */
31552
32102
  export declare function toLowerCaseKebabCase(str: string): string;
31553
32103
 
32104
+ export declare function toNow(input: ISODateString, withoutSuffix?: boolean): string;
32105
+
31554
32106
  export declare const toNowDateArgument: IValueDescriptorTransfer;
31555
32107
 
31556
32108
  export declare const toNowDateDataType: IDataTypeTransfer;
@@ -31603,6 +32155,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
31603
32155
  */
31604
32156
  export declare function toSnakeCase(str: string): string;
31605
32157
 
32158
+ export declare function toUnix(input: ISODateString): number;
32159
+
31606
32160
  export declare const toUnixDateArg: IValueDescriptorTransfer;
31607
32161
 
31608
32162
  export declare const toUnixDateDT: IDataTypeTransfer;
@@ -31613,6 +32167,9 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
31613
32167
 
31614
32168
  export declare const toUnixResponseDT: IDataTypeTransfer;
31615
32169
 
32170
+ export declare function toUTC(input: ISODateString, timezone?: string, // optional IANA TZ, e.g., "America/New_York" or "Local"
32171
+ keepLocalTime?: boolean): ISODateString;
32172
+
31616
32173
  export declare const toUtcDateArg: IValueDescriptorTransfer;
31617
32174
 
31618
32175
  export declare const toUtcDateDT: IDataTypeTransfer;
@@ -31671,6 +32228,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
31671
32228
 
31672
32229
  export declare function unfreezeDownstreamEntitiesFromGiven(entity: UserManagedEntityState, changeSet: ChangeSet, seenEntities?: Set<string>, allBuiltInEntityIds?: string[]): void;
31673
32230
 
32231
+ export declare function uniqueList(list: unknown): any[];
32232
+
31674
32233
  declare type UnkownEntity = {
31675
32234
  id: string;
31676
32235
  type: EntityType;
@@ -31896,6 +32455,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
31896
32455
  baseMetaSync(data: Partial<IUserManagedGenericBase>, self: UserManagedEntityState, changeSet: ChangeSet | null): void;
31897
32456
  }
31898
32457
 
32458
+ export declare type UtfEncoding = 'utf8';
32459
+
31899
32460
  export declare type UUIDAutogenerationOptions = IAutogenerationUniqueUUID;
31900
32461
 
31901
32462
  export declare class UUIDModule extends BaseRegisteredExtension<IUUIDModule> implements IRegisteredExtension<IUUIDModule> {
@@ -33144,6 +33705,27 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
33144
33705
 
33145
33706
  export declare type VariableState = VariableDeclarationState | VariableInstanceState;
33146
33707
 
33708
+ /** Verifies a compact JWT with HMAC and validates common claims. */
33709
+ export declare function verifyJwtHmac(token: string, secret: Bytes, { alg, issuer, audience, maxAgeSeconds, clockSkewSeconds, }?: VerifyJwtHmacOptions): Promise<VerifyJwtHmacResult>;
33710
+
33711
+ export declare interface VerifyJwtHmacOptions {
33712
+ alg?: JwtHeader['alg'];
33713
+ issuer?: string;
33714
+ audience?: string;
33715
+ maxAgeSeconds?: number;
33716
+ clockSkewSeconds?: number;
33717
+ }
33718
+
33719
+ export declare interface VerifyJwtHmacResult {
33720
+ valid: boolean;
33721
+ header: JwtHeader | null;
33722
+ payload: JwtPayload | null;
33723
+ reason?: string;
33724
+ }
33725
+
33726
+ /** Verifies a password against the PBKDF2 envelope format above. */
33727
+ export declare function verifyPasswordPBKDF2(password: string, envelope: string): Promise<boolean>;
33728
+
33147
33729
  declare class VersionedState implements IVersionMetadata {
33148
33730
  version: EntityVersion;
33149
33731
  previousVersion: EntityVersion | null;
@@ -33188,6 +33770,16 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
33188
33770
 
33189
33771
  export declare const waitOperationRef: IActionDescriptorReference;
33190
33772
 
33773
+ /** Weekday: 0=Sunday..6=Saturday (dayjs), ISO weekday: 1=Monday..7=Sunday. */
33774
+ export declare type Weekday0Sun6Sat = 0 | 1 | 2 | 3 | 4 | 5 | 6;
33775
+
33776
+ /**
33777
+ * Add N business days. Weekends determined by weekendDays (ISO weekday strings).
33778
+ * - ISO weekday numbers: '1' (Mon) .. '7' (Sun). Default weekend: Sat/Sun → ['6','7'].
33779
+ * - Holidays are ISO date strings to skip as non-business days.
33780
+ */
33781
+ export declare type WeekdayISOString = '1' | '2' | '3' | '4' | '5' | '6' | '7';
33782
+
33191
33783
  declare class WhereStatement implements ISearchNode {
33192
33784
  owner: SearchStatementState;
33193
33785
  parent: WhereStatement | null;
@@ -33223,4 +33815,17 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
33223
33815
 
33224
33816
  declare function whereStatementOperatorToSQL(operator: WhereStatementOperator): 'LIKE' | 'NOT LIKE' | 'IS NOT' | 'BETWEEN' | 'IN' | WhereStatementOperator.BiggerThan | WhereStatementOperator.SmallerThan | WhereStatementOperator.BiggerThanOrEqualTo | WhereStatementOperator.SmallerThanOrEqualTo;
33225
33817
 
33818
+ export declare function writeKey(obj: unknown, key: unknown, value: unknown): Record<string, unknown>;
33819
+
33820
+ /**
33821
+ * Strict nested write (no auto-create).
33822
+ * Throws if parent chain is missing.
33823
+ */
33824
+ export declare function writeNestedKey(obj: unknown, path: unknown, value: unknown): Record<string, unknown>;
33825
+
33826
+ /**
33827
+ * Safe nested write (auto-create parents).
33828
+ */
33829
+ export declare function writeSafeNestedKeyRecursively(obj: unknown, path: unknown, value: unknown): Record<string, unknown>;
33830
+
33226
33831
  export { }