@squidcloud/client 1.0.245 → 1.0.246

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 (35) hide show
  1. package/dist/cjs/index.js +3 -3
  2. package/dist/internal-common/src/public-types/ai-chatbot.public-types.d.ts +2 -2
  3. package/dist/internal-common/src/public-types/api-client.public-types.d.ts +5 -0
  4. package/dist/typescript-client/src/ai-chatbot-client.d.ts +2 -2
  5. package/dist/typescript-client/src/api-client.d.ts +1 -1
  6. package/dist/typescript-client/src/index.d.ts +0 -1
  7. package/dist/typescript-client/src/public-types.d.ts +1 -1
  8. package/package.json +9 -8
  9. package/dist/internal-common/src/public-types-backend/ai-chatbot.public-context.d.ts +0 -8
  10. package/dist/internal-common/src/public-types-backend/api-call.public-context.d.ts +0 -25
  11. package/dist/internal-common/src/public-types-backend/bundle-api.public-types.d.ts +0 -102
  12. package/dist/internal-common/src/public-types-backend/distributed-lock.public-context.d.ts +0 -4
  13. package/dist/internal-common/src/public-types-backend/graphql.public-context.d.ts +0 -7
  14. package/dist/internal-common/src/public-types-backend/mutation.public-context.d.ts +0 -24
  15. package/dist/internal-common/src/public-types-backend/native-query.public-context.d.ts +0 -18
  16. package/dist/internal-common/src/public-types-backend/query.public-context.d.ts +0 -123
  17. package/dist/internal-common/src/public-types-backend/topic.public-context.d.ts +0 -10
  18. package/dist/internal-common/src/types/ai-assistant.types.d.ts +0 -1
  19. package/dist/internal-common/src/types/ai-chatbot.types.d.ts +0 -12
  20. package/dist/internal-common/src/types/backend-function.types.d.ts +0 -1
  21. package/dist/internal-common/src/types/communication.types.d.ts +0 -1
  22. package/dist/internal-common/src/types/document.types.d.ts +0 -1
  23. package/dist/internal-common/src/types/mutation.types.d.ts +0 -1
  24. package/dist/internal-common/src/types/query.types.d.ts +0 -10
  25. package/dist/internal-common/src/types/secret.types.d.ts +0 -2
  26. package/dist/internal-common/src/types/socket.types.d.ts +0 -1
  27. package/dist/internal-common/src/utils/array.d.ts +0 -1
  28. package/dist/internal-common/src/utils/global.utils.d.ts +0 -1
  29. package/dist/internal-common/src/utils/http.d.ts +0 -2
  30. package/dist/internal-common/src/utils/lock.manager.d.ts +0 -14
  31. package/dist/internal-common/src/utils/object.d.ts +0 -48
  32. package/dist/internal-common/src/utils/serialization.d.ts +0 -5
  33. package/dist/internal-common/src/utils/validation.d.ts +0 -20
  34. package/dist/internal-common/src/websocket.impl.d.ts +0 -26
  35. package/dist/typescript-client/src/public-types-deprecated.d.ts +0 -86
@@ -1,26 +0,0 @@
1
- interface Options {
2
- maxAttempts?: number;
3
- protocols?: string[];
4
- onmessage?: (event: any) => void;
5
- onopen?: (event: any) => void;
6
- onclose?: (event: any) => void;
7
- onerror?: (event: any) => void;
8
- onreconnect?: (event: any) => void;
9
- onmaximum?: (event: any) => void;
10
- timeoutMillis?: number;
11
- }
12
- export interface WebSocketWrapper {
13
- open: () => void;
14
- reconnect: (e: any) => void;
15
- json: (x: any) => void;
16
- send: (x: string) => void;
17
- close: (x?: number, y?: string) => void;
18
- connected: boolean;
19
- /**
20
- * Websocket is explicitly closed by calling socket.close().
21
- * Used to ignore errors after socket.closed() is called.
22
- */
23
- closeCalled: boolean;
24
- }
25
- export declare function createWebSocketWrapper(url: string, opts?: Options): WebSocketWrapper;
26
- export {};
@@ -1,86 +0,0 @@
1
- import { MutationContext as MutationContextDeprecated } from '../../internal-common/src/public-types-backend/mutation.public-context';
2
- import { AiChatbotMutationContext as AiChatbotMutationContextDeprecated } from '../../internal-common/src/public-types-backend/ai-chatbot.public-context';
3
- import { ApiCallContext as ApiCallContextDeprecated, ApiHeaders as ApiHeadersDeprecated, ApiOptions as ApiOptionsDeprecated, CallApiRequest as CallApiRequestDeprecated } from '../../internal-common/src/public-types-backend/api-call.public-context';
4
- import { DistributedLockContext as DistributedLockContextDeprecated } from '../../internal-common/src/public-types-backend/distributed-lock.public-context';
5
- import { GraphqlContext as GraphqlContextDeprecated } from '../../internal-common/src/public-types-backend/graphql.public-context';
6
- import { ContextConditions as ContextConditionsDeprecated, QueryContext as QueryContextDeprecated } from '../../internal-common/src/public-types-backend/query.public-context';
7
- import { TopicReadContext as TopicReadContextDeprecated, TopicWriteContext as TopicWriteContextDeprecated } from '../../internal-common/src/public-types-backend/topic.public-context';
8
- import { DocumentData } from '../../internal-common/src/public-types/document.public-types';
9
- import { Paths } from '../../internal-common/src/public-types/typescript.public-types';
10
- import { ActionMethodDecorator as ActionMethodDecoratorDeprecated, AiFunctionAction as AiFunctionActionDeprecated, ClientConnectionStateChangeAction as ClientConnectionStateChangeActionDeprecated, ExecutableAction as ExecutableActionDeprecated, LimitedAction as LimitedActionDeprecated, LimiterConfig as LimiterConfigDeprecated, LimiterOptions as LimiterOptionsDeprecated, LimiterScope as LimiterScopeDeprecated, QuotaLimitOptions as QuotaLimitOptionsDeprecated, QuotaRenewPeriod as QuotaRenewPeriodDeprecated, RateLimitOptions as RateLimitOptionsDeprecated, SchedulerAction as SchedulerActionDeprecated, SecureAiChatbotAction as SecureAiChatbotActionDeprecated, SecureApiAction as SecureApiActionDeprecated, SecureDatabaseAction as SecureDatabaseActionDeprecated, SecureDistributedLockAction as SecureDistributedLockActionDeprecated, SecureGraphQLAction as SecureGraphQLActionDeprecated, SecureNativeQueryAction as SecureNativeQueryActionDeprecated, SecureStorageAction as SecureStorageActionDeprecated, SecureTopicAction as SecureTopicActionDeprecated, SquidFile as SquidFileDeprecated, TriggerAction as TriggerActionDeprecated, TriggerRequest as TriggerRequestDeprecated, WebhookAction as WebhookActionDeprecated, WebhookRequest as WebhookRequestDeprecated, WebhookResponse as WebhookResponseDeprecated } from '../../internal-common/src/public-types-backend/bundle-api.public-types';
11
- import { AiChatbotActionType, DatabaseActionType, StorageActionType, TopicActionType } from '../../internal-common/src/public-types/bundle-data.public-types';
12
- /** @deprecated. Use import from @squidcloud/backend. */
13
- export type MutationContext<T = any> = MutationContextDeprecated<T>;
14
- /** @deprecated. Use import from @squidcloud/backend. */
15
- export type AiChatbotMutationContext = AiChatbotMutationContextDeprecated;
16
- /** @deprecated. Use import from @squidcloud/backend. */
17
- export type ApiHeaders = ApiHeadersDeprecated;
18
- /** @deprecated. Use import from @squidcloud/backend. */
19
- export type ApiCallContext = ApiCallContextDeprecated;
20
- /** @deprecated. Use import from @squidcloud/backend. */
21
- export type ApiOptions = ApiOptionsDeprecated;
22
- /** @deprecated. Use import from @squidcloud/backend. */
23
- export type CallApiRequest<BodyType = any> = CallApiRequestDeprecated<BodyType>;
24
- /** @deprecated. Use import from @squidcloud/backend. */
25
- export type DistributedLockContext = DistributedLockContextDeprecated;
26
- /** @deprecated. Use import from @squidcloud/backend. */
27
- export type GraphqlContext = GraphqlContextDeprecated;
28
- /** @deprecated. Use import from @squidcloud/backend. */
29
- export type QueryContext<T extends DocumentData = any> = QueryContextDeprecated<T>;
30
- /** @deprecated. Use import from @squidcloud/backend. */
31
- export type ContextConditions<Doc extends DocumentData = any, F extends Paths<Doc> = Paths<Doc>> = ContextConditionsDeprecated<Doc, F>;
32
- /** @deprecated. Use import from @squidcloud/backend. */
33
- export type TopicReadContext = TopicReadContextDeprecated;
34
- /** @deprecated. Use import from @squidcloud/backend. */
35
- export type TopicWriteContext<T> = TopicWriteContextDeprecated<T>;
36
- /** @deprecated. Use import from @squidcloud/backend. */
37
- export type SecureDatabaseAction<T extends DatabaseActionType> = SecureDatabaseActionDeprecated<T>;
38
- /** @deprecated. Use import from @squidcloud/backend. */
39
- export type SecureStorageAction<T extends StorageActionType> = SecureStorageActionDeprecated<T>;
40
- /** @deprecated. Use import from @squidcloud/backend. */
41
- export type SecureTopicAction<T extends TopicActionType> = SecureTopicActionDeprecated<T>;
42
- /** @deprecated. Use import from @squidcloud/backend. */
43
- export type SecureApiAction = SecureApiActionDeprecated;
44
- export type SecureDistributedLockAction = SecureDistributedLockActionDeprecated;
45
- /** @deprecated. Use import from @squidcloud/backend. */
46
- export type SecureGraphQLAction = SecureGraphQLActionDeprecated;
47
- /** @deprecated. Use import from @squidcloud/backend. */
48
- export type SecureNativeQueryAction = SecureNativeQueryActionDeprecated;
49
- /** @deprecated. Use import from @squidcloud/backend. */
50
- export type SecureAiChatbotAction<T extends AiChatbotActionType> = SecureAiChatbotActionDeprecated<T>;
51
- /** @deprecated. Use import from @squidcloud/backend. */
52
- export type ClientConnectionStateChangeAction = ClientConnectionStateChangeActionDeprecated;
53
- /** @deprecated. Use import from @squidcloud/backend. */
54
- export type ExecutableAction = ExecutableActionDeprecated;
55
- /** @deprecated. Use import from @squidcloud/backend. */
56
- export type AiFunctionAction<T extends Record<string, any> = any> = AiFunctionActionDeprecated<T>;
57
- /** @deprecated. Use import from @squidcloud/backend. */
58
- export type TriggerAction = TriggerActionDeprecated;
59
- /** @deprecated. Use import from @squidcloud/backend. */
60
- export type TriggerRequest<T extends DocumentData = any> = TriggerRequestDeprecated<T>;
61
- /** @deprecated. Use import from @squidcloud/backend. */
62
- export type SchedulerAction = SchedulerActionDeprecated;
63
- /** @deprecated. Use import from @squidcloud/backend. */
64
- export type LimitedAction = LimitedActionDeprecated;
65
- /** @deprecated. Use import from @squidcloud/backend. */
66
- export type LimiterScope = LimiterScopeDeprecated;
67
- /** @deprecated. Use import from @squidcloud/backend. */
68
- export type QuotaRenewPeriod = QuotaRenewPeriodDeprecated;
69
- /** @deprecated. Use import from @squidcloud/backend. */
70
- export type RateLimitOptions = RateLimitOptionsDeprecated;
71
- /** @deprecated. Use import from @squidcloud/backend. */
72
- export type QuotaLimitOptions = QuotaLimitOptionsDeprecated;
73
- /** @deprecated. Use import from @squidcloud/backend. */
74
- export type LimiterOptions = LimiterOptionsDeprecated;
75
- /** @deprecated. Use import from @squidcloud/backend. */
76
- export type LimiterConfig = LimiterConfigDeprecated;
77
- /** @deprecated. Use import from @squidcloud/backend. */
78
- export type WebhookAction = WebhookActionDeprecated;
79
- /** @deprecated. Use import from @squidcloud/backend. */
80
- export type WebhookRequest<T = any> = WebhookRequestDeprecated<T>;
81
- /** @deprecated. Use import from @squidcloud/backend. */
82
- export type WebhookResponse = WebhookResponseDeprecated;
83
- /** @deprecated. Use import from @squidcloud/backend. */
84
- export type SquidFile = SquidFileDeprecated;
85
- /** @deprecated. Use import from @squidcloud/backend. */
86
- export type ActionMethodDecorator<U> = ActionMethodDecoratorDeprecated<U>;