@squidcloud/client 1.0.75 → 1.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/common/src/ai-assistant.context.d.ts +12 -12
  2. package/dist/common/src/ai-assistant.schemas.d.ts +1 -1
  3. package/dist/common/src/ai-assistant.types.d.ts +2 -2
  4. package/dist/common/src/api-call.context.d.ts +13 -13
  5. package/dist/common/src/api.types.d.ts +4 -4
  6. package/dist/common/src/application.schemas.d.ts +1 -1
  7. package/dist/common/src/application.types.d.ts +184 -184
  8. package/dist/common/src/backend-function.schemas.d.ts +1 -1
  9. package/dist/common/src/backend-function.types.d.ts +1 -1
  10. package/dist/common/src/backend-run.types.d.ts +2 -2
  11. package/dist/common/src/bundle-api.types.d.ts +36 -36
  12. package/dist/common/src/bundle-data.types.d.ts +4 -4
  13. package/dist/common/src/communication.types.d.ts +12 -12
  14. package/dist/common/src/context.types.d.ts +40 -40
  15. package/dist/common/src/distributed-lock.context.d.ts +5 -5
  16. package/dist/common/src/document.types.d.ts +22 -22
  17. package/dist/common/src/graphql.context.d.ts +7 -7
  18. package/dist/common/src/graphql.types.d.ts +9 -9
  19. package/dist/common/src/heartbeat.types.d.ts +1 -1
  20. package/dist/common/src/http-status.enum.d.ts +50 -50
  21. package/dist/common/src/index.d.ts +54 -54
  22. package/dist/common/src/integrations/ai_assistant.types.d.ts +30 -30
  23. package/dist/common/src/integrations/api.types.d.ts +80 -80
  24. package/dist/common/src/integrations/auth.types.d.ts +39 -39
  25. package/dist/common/src/integrations/database.types.d.ts +236 -236
  26. package/dist/common/src/integrations/index.d.ts +101 -101
  27. package/dist/common/src/integrations/observability.types.d.ts +22 -22
  28. package/dist/common/src/logger.types.d.ts +21 -21
  29. package/dist/common/src/metrics.types.d.ts +1 -1
  30. package/dist/common/src/mutation.context.d.ts +14 -14
  31. package/dist/common/src/mutation.schemas.d.ts +1 -1
  32. package/dist/common/src/mutation.types.d.ts +53 -53
  33. package/dist/common/src/named-query.context.d.ts +4 -4
  34. package/dist/common/src/named-query.schemas.d.ts +1 -1
  35. package/dist/common/src/named-query.types.d.ts +1 -1
  36. package/dist/common/src/query/index.d.ts +2 -2
  37. package/dist/common/src/query/query-context.d.ts +42 -42
  38. package/dist/common/src/query/simple-query-builder.d.ts +117 -117
  39. package/dist/common/src/query.schemas.d.ts +3 -3
  40. package/dist/common/src/query.types.d.ts +57 -57
  41. package/dist/common/src/regions.d.ts +1 -1
  42. package/dist/common/src/schema/schema.types.d.ts +54 -54
  43. package/dist/common/src/secret.schemas.d.ts +1 -1
  44. package/dist/common/src/secret.types.d.ts +8 -8
  45. package/dist/common/src/security.types.d.ts +1 -1
  46. package/dist/common/src/socket.schemas.d.ts +1 -1
  47. package/dist/common/src/socket.types.d.ts +1 -1
  48. package/dist/common/src/time-units.d.ts +1 -1
  49. package/dist/common/src/trigger.types.d.ts +1 -1
  50. package/dist/common/src/types.d.ts +8 -8
  51. package/dist/common/src/utils/array.d.ts +1 -1
  52. package/dist/common/src/utils/assert.d.ts +1 -1
  53. package/dist/common/src/utils/error.d.ts +4 -4
  54. package/dist/common/src/utils/http.d.ts +2 -2
  55. package/dist/common/src/utils/id.d.ts +2 -2
  56. package/dist/common/src/utils/lock.manager.d.ts +14 -14
  57. package/dist/common/src/utils/nullish.d.ts +1 -1
  58. package/dist/common/src/utils/object.d.ts +6 -6
  59. package/dist/common/src/utils/serialization.d.ts +6 -6
  60. package/dist/common/src/utils/transforms.d.ts +18 -18
  61. package/dist/common/src/utils/url.d.ts +1 -1
  62. package/dist/common/src/utils/validation.d.ts +30 -30
  63. package/dist/common/src/webhook-response.d.ts +1 -1
  64. package/dist/index.js +1 -1
  65. package/dist/node_modules/json-schema-typed/draft-2020-12.d.ts +1239 -1239
  66. package/dist/typescript-client/src/ai-assistant-client.d.ts +167 -167
  67. package/dist/typescript-client/src/ai-client.factory.d.ts +11 -11
  68. package/dist/typescript-client/src/api.manager.d.ts +15 -15
  69. package/dist/typescript-client/src/auth.manager.d.ts +23 -23
  70. package/dist/typescript-client/src/backend-function.manager.d.ts +13 -13
  71. package/dist/typescript-client/src/client-id.service.d.ts +25 -25
  72. package/dist/typescript-client/src/collection-reference.d.ts +81 -81
  73. package/dist/typescript-client/src/collection-reference.factory.d.ts +16 -16
  74. package/dist/typescript-client/src/connection-details.d.ts +23 -23
  75. package/dist/typescript-client/src/data.manager.d.ts +172 -172
  76. package/dist/typescript-client/src/destruct.manager.d.ts +12 -12
  77. package/dist/typescript-client/src/distributed-lock.manager.d.ts +19 -19
  78. package/dist/typescript-client/src/document-identity.service.d.ts +12 -12
  79. package/dist/typescript-client/src/document-reference.d.ts +134 -134
  80. package/dist/typescript-client/src/document-reference.factory.d.ts +9 -9
  81. package/dist/typescript-client/src/document-store.d.ts +11 -11
  82. package/dist/typescript-client/src/graphql-client.d.ts +12 -12
  83. package/dist/typescript-client/src/graphql-client.factory.d.ts +9 -9
  84. package/dist/typescript-client/src/index.d.ts +8 -8
  85. package/dist/typescript-client/src/mutation/mutation-sender.d.ts +10 -10
  86. package/dist/typescript-client/src/named-query.manager.d.ts +12 -12
  87. package/dist/typescript-client/src/query/join-query-builder.factory.d.ts +72 -72
  88. package/dist/typescript-client/src/query/query-builder.factory.d.ts +89 -89
  89. package/dist/typescript-client/src/query/query-subscription.manager.d.ts +135 -135
  90. package/dist/typescript-client/src/query/query.types.d.ts +14 -14
  91. package/dist/typescript-client/src/rpc.manager.d.ts +28 -28
  92. package/dist/typescript-client/src/socket.manager.d.ts +32 -32
  93. package/dist/typescript-client/src/squid.d.ts +218 -218
  94. package/dist/typescript-client/src/state/action.applier.d.ts +7 -7
  95. package/dist/typescript-client/src/state/actions.d.ts +29 -29
  96. package/dist/typescript-client/src/state/path_trie.d.ts +27 -27
  97. package/dist/typescript-client/src/state/state.service.d.ts +22 -22
  98. package/dist/typescript-client/src/state/state.service.spec.d.ts +1 -1
  99. package/dist/typescript-client/src/testing/setup-tests.d.ts +1 -1
  100. package/dist/typescript-client/src/types.d.ts +2 -2
  101. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
- export declare function unchanged(any: any): any;
2
- export declare function booleanToInt(boolean: boolean): number;
3
- export declare function intToBoolean(int: number): boolean;
4
- export declare function stringToNumber(string: string): number;
5
- export declare function numberToString(number: number): string;
6
- export declare function bufferToString(buffer: ArrayBuffer): string;
7
- export declare function stringToBuffer(string: string): ArrayBuffer;
8
- export declare function stringToJSON(string: string): JSON;
9
- export declare function JSONToString(json: JSON): string;
10
- export declare function moneyStringToNumber(money: string): number;
11
- export declare function daysPastEpochToDate(days: number): Date;
12
- export declare function msToDate(ms: number): Date;
13
- export declare function isoStringToDate(string: string): Date;
14
- export declare function base64ToString(string: string): string;
15
- export declare function base64ToBinary(string: string): string;
16
- export declare function kafkaConnectStringToInterval(string: string): Record<string, number>;
17
- export declare function msPastMidnightToTimeString(ms: number): string;
18
- export declare function dateToTimeString(date: Date): string;
1
+ export declare function unchanged(any: any): any;
2
+ export declare function booleanToInt(boolean: boolean): number;
3
+ export declare function intToBoolean(int: number): boolean;
4
+ export declare function stringToNumber(string: string): number;
5
+ export declare function numberToString(number: number): string;
6
+ export declare function bufferToString(buffer: ArrayBuffer): string;
7
+ export declare function stringToBuffer(string: string): ArrayBuffer;
8
+ export declare function stringToJSON(string: string): JSON;
9
+ export declare function JSONToString(json: JSON): string;
10
+ export declare function moneyStringToNumber(money: string): number;
11
+ export declare function daysPastEpochToDate(days: number): Date;
12
+ export declare function msToDate(ms: number): Date;
13
+ export declare function isoStringToDate(string: string): Date;
14
+ export declare function base64ToString(string: string): string;
15
+ export declare function base64ToBinary(string: string): string;
16
+ export declare function kafkaConnectStringToInterval(string: string): Record<string, number>;
17
+ export declare function msPastMidnightToTimeString(ms: number): string;
18
+ export declare function dateToTimeString(date: Date): string;
@@ -1 +1 @@
1
- export declare function appendQueryParams(url: string, queryParams: Record<string, any>): string;
1
+ export declare function appendQueryParams(url: string, queryParams: Record<string, any>): string;
@@ -1,30 +1,30 @@
1
- /**
2
- * This file contains general validators for the different objects being received from the client. The parameters are
3
- * usually of type 'any' to make sure there are no assumptions that the object has the correct type.
4
- * Also, this file should avoid importing from other files that are not for validation to avoid circular deps.
5
- */
6
- import { OpenIdProvider } from '../application.types';
7
- import { HttpStatus } from '../http-status.enum';
8
- export type StatusCode = HttpStatus.BAD_REQUEST | HttpStatus.NOT_FOUND | HttpStatus.FORBIDDEN | HttpStatus.UNAUTHORIZED | HttpStatus.CONFLICT;
9
- export declare class ValidationError extends Error {
10
- readonly statusCode: StatusCode;
11
- readonly details?: any;
12
- constructor(error: string, statusCode: StatusCode, details?: Record<string, any>);
13
- }
14
- export declare function validateFieldSort(fieldSort: any): void;
15
- export declare function validateOpenIdProvider(openIdProvider: OpenIdProvider | undefined): OpenIdProvider;
16
- export declare function validateOpenIdProviderType(providerType: any): void;
17
- export declare function validateMutations(mutations: any): void;
18
- export declare function validateQueryLimit(limit: any): void;
19
- /** Returns true if the value is not an empty string (undefined/null are considered empty). */
20
- export declare function isNotEmpty(value: string | undefined | null): value is string;
21
- /**
22
- * All type names returned by 'typeof' supported by JavaScript:
23
- * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof}.
24
- * and a few other supported types.
25
- */
26
- export type JavascriptTypeName = 'undefined' | 'object' | 'boolean' | 'number' | 'bigint' | 'string' | 'symbol' | 'function';
27
- /** Returns true if 'typeof' of the 'value' is 'type' or 'type[]'. */
28
- export declare function isRightType(value: unknown, type: JavascriptTypeName): boolean;
29
- /** Returns true if 'obj' has only keys listed in the 'keys'. Object can't be an array. */
30
- export declare function hasOnlyKeys(obj: object, keys: string[]): boolean;
1
+ /**
2
+ * This file contains general validators for the different objects being received from the client. The parameters are
3
+ * usually of type 'any' to make sure there are no assumptions that the object has the correct type.
4
+ * Also, this file should avoid importing from other files that are not for validation to avoid circular deps.
5
+ */
6
+ import { OpenIdProvider } from '../application.types';
7
+ import { HttpStatus } from '../http-status.enum';
8
+ export type StatusCode = HttpStatus.BAD_REQUEST | HttpStatus.NOT_FOUND | HttpStatus.FORBIDDEN | HttpStatus.UNAUTHORIZED | HttpStatus.CONFLICT;
9
+ export declare class ValidationError extends Error {
10
+ readonly statusCode: StatusCode;
11
+ readonly details?: any;
12
+ constructor(error: string, statusCode: StatusCode, details?: Record<string, any>);
13
+ }
14
+ export declare function validateFieldSort(fieldSort: any): void;
15
+ export declare function validateOpenIdProvider(openIdProvider: OpenIdProvider | undefined): OpenIdProvider;
16
+ export declare function validateOpenIdProviderType(providerType: any): void;
17
+ export declare function validateMutations(mutations: any): void;
18
+ export declare function validateQueryLimit(limit: any): void;
19
+ /** Returns true if the value is not an empty string (undefined/null are considered empty). */
20
+ export declare function isNotEmpty(value: string | undefined | null): value is string;
21
+ /**
22
+ * All type names returned by 'typeof' supported by JavaScript:
23
+ * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof}.
24
+ * and a few other supported types.
25
+ */
26
+ export type JavascriptTypeName = 'undefined' | 'object' | 'boolean' | 'number' | 'bigint' | 'string' | 'symbol' | 'function';
27
+ /** Returns true if 'typeof' of the 'value' is 'type' or 'type[]'. */
28
+ export declare function isRightType(value: unknown, type: JavascriptTypeName): boolean;
29
+ /** Returns true if 'obj' has only keys listed in the 'keys'. Object can't be an array. */
30
+ export declare function hasOnlyKeys(obj: object, keys: string[]): boolean;
@@ -1 +1 @@
1
- export {};
1
+ export {};