@squidcloud/client 1.0.61 → 1.0.62

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 (100) hide show
  1. package/dist/common/src/ai-assistant.context.d.ts +11 -0
  2. package/dist/common/src/ai-assistant.schemas.d.ts +210 -210
  3. package/dist/common/src/ai-assistant.types.d.ts +81 -76
  4. package/dist/common/src/api-call.context.d.ts +12 -12
  5. package/dist/common/src/api.types.d.ts +24 -24
  6. package/dist/common/src/application.schemas.d.ts +1060 -1060
  7. package/dist/common/src/application.types.d.ts +224 -224
  8. package/dist/common/src/auth.types.d.ts +4 -4
  9. package/dist/common/src/backend-function.schemas.d.ts +3 -3
  10. package/dist/common/src/backend-function.types.d.ts +7 -7
  11. package/dist/common/src/backend-run.types.d.ts +53 -53
  12. package/dist/common/src/bundle-api.types.d.ts +68 -66
  13. package/dist/common/src/bundle-data.types.d.ts +59 -52
  14. package/dist/common/src/communication.types.d.ts +4 -4
  15. package/dist/common/src/context.types.d.ts +32 -32
  16. package/dist/common/src/distributed-lock.context.d.ts +5 -5
  17. package/dist/common/src/document.types.d.ts +37 -37
  18. package/dist/common/src/graphql.context.d.ts +6 -6
  19. package/dist/common/src/graphql.types.d.ts +11 -11
  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 +22 -22
  25. package/dist/common/src/integrations/database.types.d.ts +236 -236
  26. package/dist/common/src/integrations/index.d.ts +97 -97
  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 +58 -58
  30. package/dist/common/src/mutation.context.d.ts +10 -10
  31. package/dist/common/src/mutation.schemas.d.ts +5 -5
  32. package/dist/common/src/mutation.types.d.ts +72 -72
  33. package/dist/common/src/named-query.context.d.ts +4 -4
  34. package/dist/common/src/named-query.schemas.d.ts +3 -3
  35. package/dist/common/src/named-query.types.d.ts +9 -9
  36. package/dist/common/src/query/index.d.ts +2 -2
  37. package/dist/common/src/query/query-context.d.ts +37 -37
  38. package/dist/common/src/query/simple-query-builder.d.ts +137 -137
  39. package/dist/common/src/query.schemas.d.ts +5 -5
  40. package/dist/common/src/query.types.d.ts +118 -118
  41. package/dist/common/src/regions.d.ts +22 -22
  42. package/dist/common/src/schema/schema.types.d.ts +54 -54
  43. package/dist/common/src/secret.schemas.d.ts +6 -6
  44. package/dist/common/src/secret.types.d.ts +49 -37
  45. package/dist/common/src/security.types.d.ts +3 -3
  46. package/dist/common/src/socket.schemas.d.ts +3 -3
  47. package/dist/common/src/socket.types.d.ts +108 -108
  48. package/dist/common/src/time-units.d.ts +5 -5
  49. package/dist/common/src/trigger.types.d.ts +15 -15
  50. package/dist/common/src/types.d.ts +15 -15
  51. package/dist/common/src/utils/array.d.ts +8 -8
  52. package/dist/common/src/utils/assert.d.ts +8 -8
  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 +7 -7
  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 +66 -66
  67. package/dist/typescript-client/src/ai-client.factory.d.ts +13 -13
  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 +24 -24
  72. package/dist/typescript-client/src/collection-reference.d.ts +81 -65
  73. package/dist/typescript-client/src/collection-reference.factory.d.ts +16 -16
  74. package/dist/typescript-client/src/data.manager.d.ts +172 -172
  75. package/dist/typescript-client/src/destruct.manager.d.ts +12 -12
  76. package/dist/typescript-client/src/distributed-lock.manager.d.ts +19 -19
  77. package/dist/typescript-client/src/document-identity.service.d.ts +12 -12
  78. package/dist/typescript-client/src/document-reference.d.ts +134 -134
  79. package/dist/typescript-client/src/document-reference.factory.d.ts +9 -9
  80. package/dist/typescript-client/src/document-store.d.ts +11 -11
  81. package/dist/typescript-client/src/graphql-client.d.ts +12 -12
  82. package/dist/typescript-client/src/graphql-client.factory.d.ts +9 -9
  83. package/dist/typescript-client/src/index.d.ts +8 -8
  84. package/dist/typescript-client/src/mutation/mutation-sender.d.ts +12 -12
  85. package/dist/typescript-client/src/named-query.manager.d.ts +14 -14
  86. package/dist/typescript-client/src/query/join-query-builder.factory.d.ts +72 -72
  87. package/dist/typescript-client/src/query/query-builder.factory.d.ts +83 -83
  88. package/dist/typescript-client/src/query/query-subscription.manager.d.ts +64 -64
  89. package/dist/typescript-client/src/query/query.types.d.ts +14 -14
  90. package/dist/typescript-client/src/rpc.manager.d.ts +28 -28
  91. package/dist/typescript-client/src/socket.manager.d.ts +32 -32
  92. package/dist/typescript-client/src/squid.d.ts +188 -188
  93. package/dist/typescript-client/src/state/action.applier.d.ts +7 -7
  94. package/dist/typescript-client/src/state/actions.d.ts +29 -29
  95. package/dist/typescript-client/src/state/path_trie.d.ts +27 -27
  96. package/dist/typescript-client/src/state/state.service.d.ts +22 -22
  97. package/dist/typescript-client/src/state/state.service.spec.d.ts +1 -1
  98. package/dist/typescript-client/src/testing/setup-tests.d.ts +1 -1
  99. package/dist/typescript-client/src/types.d.ts +2 -2
  100. package/package.json +1 -1
@@ -0,0 +1,11 @@
1
+ import { AiAssistantMutationType, AiAssistantResourceType } from './ai-assistant.types';
2
+ export declare class AiAssistantChatContext {
3
+ readonly prompt: string;
4
+ readonly profileId: string;
5
+ }
6
+ export declare class AiAssistantMutationContext {
7
+ readonly type: AiAssistantMutationType;
8
+ readonly resource: AiAssistantResourceType;
9
+ readonly profileId: string;
10
+ readonly payload: any;
11
+ }
@@ -1,210 +1,210 @@
1
- export declare const AiAssistantChatRequestSchema: {
2
- type: string;
3
- properties: {
4
- profileId: {
5
- type: string;
6
- };
7
- integrationId: {
8
- type: string;
9
- };
10
- clientId: {
11
- type: string;
12
- };
13
- clientRequestId: {
14
- type: string;
15
- };
16
- prompt: {
17
- type: string;
18
- };
19
- };
20
- required: string[];
21
- };
22
- export declare const AiAssistantMutateRequestSchema: {
23
- type: string;
24
- properties: {
25
- profileId: {
26
- type: string;
27
- };
28
- integrationId: {
29
- type: string;
30
- };
31
- action: {
32
- type: string;
33
- enum: string[];
34
- };
35
- type: {
36
- type: string;
37
- enum: string[];
38
- };
39
- };
40
- required: string[];
41
- oneOf: ({
42
- properties: {
43
- action: {
44
- const: string;
45
- };
46
- type: {
47
- const: string;
48
- };
49
- payload: {
50
- type: string;
51
- properties: {
52
- modelName: {
53
- type: string;
54
- enum: string[];
55
- };
56
- strictContext: {
57
- type: string;
58
- };
59
- id?: undefined;
60
- instruction?: undefined;
61
- title?: undefined;
62
- context?: undefined;
63
- };
64
- required: string[];
65
- };
66
- };
67
- } | {
68
- properties: {
69
- action: {
70
- const: string;
71
- };
72
- type: {
73
- const: string;
74
- };
75
- payload: {
76
- type: string;
77
- properties: {
78
- id: {
79
- type: string;
80
- };
81
- instruction: {
82
- type: string;
83
- };
84
- modelName?: undefined;
85
- strictContext?: undefined;
86
- title?: undefined;
87
- context?: undefined;
88
- };
89
- required: string[];
90
- };
91
- };
92
- } | {
93
- properties: {
94
- action: {
95
- const: string;
96
- };
97
- type: {
98
- const: string;
99
- };
100
- payload: {
101
- type: string;
102
- properties: {
103
- id: {
104
- type: string;
105
- };
106
- title: {
107
- type: string;
108
- };
109
- context: {
110
- type: string;
111
- };
112
- modelName?: undefined;
113
- strictContext?: undefined;
114
- instruction?: undefined;
115
- };
116
- required: string[];
117
- };
118
- };
119
- } | {
120
- properties: {
121
- action: {
122
- const: string;
123
- };
124
- type: {
125
- const: string;
126
- };
127
- payload: {
128
- type: string;
129
- properties: {
130
- modelName: {
131
- type: string;
132
- enum: string[];
133
- };
134
- strictContext: {
135
- type: string;
136
- };
137
- id?: undefined;
138
- instruction?: undefined;
139
- title?: undefined;
140
- context?: undefined;
141
- };
142
- required?: undefined;
143
- };
144
- };
145
- } | {
146
- properties: {
147
- action: {
148
- const: string;
149
- };
150
- type: {
151
- const: string;
152
- };
153
- payload: {
154
- type: string;
155
- properties: {
156
- id: {
157
- type: string;
158
- };
159
- title: {
160
- type: string;
161
- };
162
- context: {
163
- type: string;
164
- };
165
- modelName?: undefined;
166
- strictContext?: undefined;
167
- instruction?: undefined;
168
- };
169
- required?: undefined;
170
- };
171
- };
172
- } | {
173
- properties: {
174
- action: {
175
- const: string;
176
- };
177
- type: {
178
- const: string;
179
- };
180
- payload: {
181
- type: string;
182
- properties: {
183
- id: {
184
- type: string;
185
- };
186
- modelName?: undefined;
187
- strictContext?: undefined;
188
- instruction?: undefined;
189
- title?: undefined;
190
- context?: undefined;
191
- };
192
- required: string[];
193
- };
194
- };
195
- } | {
196
- properties: {
197
- action: {
198
- const: string;
199
- };
200
- type: {
201
- const: string;
202
- };
203
- payload: {
204
- type: string;
205
- properties?: undefined;
206
- required?: undefined;
207
- };
208
- };
209
- })[];
210
- };
1
+ export declare const AiAssistantChatRequestSchema: {
2
+ type: string;
3
+ properties: {
4
+ profileId: {
5
+ type: string;
6
+ };
7
+ integrationId: {
8
+ type: string;
9
+ };
10
+ clientId: {
11
+ type: string;
12
+ };
13
+ clientRequestId: {
14
+ type: string;
15
+ };
16
+ prompt: {
17
+ type: string;
18
+ };
19
+ };
20
+ required: string[];
21
+ };
22
+ export declare const AiAssistantMutateRequestSchema: {
23
+ type: string;
24
+ properties: {
25
+ profileId: {
26
+ type: string;
27
+ };
28
+ integrationId: {
29
+ type: string;
30
+ };
31
+ type: {
32
+ type: string;
33
+ enum: string[];
34
+ };
35
+ resource: {
36
+ type: string;
37
+ enum: string[];
38
+ };
39
+ };
40
+ required: string[];
41
+ oneOf: ({
42
+ properties: {
43
+ type: {
44
+ const: string;
45
+ };
46
+ resource: {
47
+ const: string;
48
+ };
49
+ payload: {
50
+ type: string;
51
+ properties: {
52
+ modelName: {
53
+ type: string;
54
+ enum: string[];
55
+ };
56
+ strictContext: {
57
+ type: string;
58
+ };
59
+ id?: undefined;
60
+ instruction?: undefined;
61
+ title?: undefined;
62
+ context?: undefined;
63
+ };
64
+ required: string[];
65
+ };
66
+ };
67
+ } | {
68
+ properties: {
69
+ type: {
70
+ const: string;
71
+ };
72
+ resource: {
73
+ const: string;
74
+ };
75
+ payload: {
76
+ type: string;
77
+ properties: {
78
+ id: {
79
+ type: string;
80
+ };
81
+ instruction: {
82
+ type: string;
83
+ };
84
+ modelName?: undefined;
85
+ strictContext?: undefined;
86
+ title?: undefined;
87
+ context?: undefined;
88
+ };
89
+ required: string[];
90
+ };
91
+ };
92
+ } | {
93
+ properties: {
94
+ type: {
95
+ const: string;
96
+ };
97
+ resource: {
98
+ const: string;
99
+ };
100
+ payload: {
101
+ type: string;
102
+ properties: {
103
+ id: {
104
+ type: string;
105
+ };
106
+ title: {
107
+ type: string;
108
+ };
109
+ context: {
110
+ type: string;
111
+ };
112
+ modelName?: undefined;
113
+ strictContext?: undefined;
114
+ instruction?: undefined;
115
+ };
116
+ required: string[];
117
+ };
118
+ };
119
+ } | {
120
+ properties: {
121
+ type: {
122
+ const: string;
123
+ };
124
+ resource: {
125
+ const: string;
126
+ };
127
+ payload: {
128
+ type: string;
129
+ properties: {
130
+ modelName: {
131
+ type: string;
132
+ enum: string[];
133
+ };
134
+ strictContext: {
135
+ type: string;
136
+ };
137
+ id?: undefined;
138
+ instruction?: undefined;
139
+ title?: undefined;
140
+ context?: undefined;
141
+ };
142
+ required?: undefined;
143
+ };
144
+ };
145
+ } | {
146
+ properties: {
147
+ type: {
148
+ const: string;
149
+ };
150
+ resource: {
151
+ const: string;
152
+ };
153
+ payload: {
154
+ type: string;
155
+ properties: {
156
+ id: {
157
+ type: string;
158
+ };
159
+ title: {
160
+ type: string;
161
+ };
162
+ context: {
163
+ type: string;
164
+ };
165
+ modelName?: undefined;
166
+ strictContext?: undefined;
167
+ instruction?: undefined;
168
+ };
169
+ required?: undefined;
170
+ };
171
+ };
172
+ } | {
173
+ properties: {
174
+ type: {
175
+ const: string;
176
+ };
177
+ resource: {
178
+ const: string;
179
+ };
180
+ payload: {
181
+ type: string;
182
+ properties: {
183
+ id: {
184
+ type: string;
185
+ };
186
+ modelName?: undefined;
187
+ strictContext?: undefined;
188
+ instruction?: undefined;
189
+ title?: undefined;
190
+ context?: undefined;
191
+ };
192
+ required: string[];
193
+ };
194
+ };
195
+ } | {
196
+ properties: {
197
+ type: {
198
+ const: string;
199
+ };
200
+ resource: {
201
+ const: string;
202
+ };
203
+ payload: {
204
+ type: string;
205
+ properties?: undefined;
206
+ required?: undefined;
207
+ };
208
+ };
209
+ })[];
210
+ };
@@ -1,76 +1,81 @@
1
- import { ClientId, ClientRequestId, IntegrationId } from './communication.types';
2
- export type OpenAiModelName = 'gpt-3.5-turbo' | 'gpt-4';
3
- export interface BaseAiAssistantRequest {
4
- profileId: string;
5
- integrationId: IntegrationId;
6
- }
7
- export interface AiAssistantChatRequest extends BaseAiAssistantRequest {
8
- clientId: ClientId;
9
- clientRequestId: ClientRequestId;
10
- prompt: string;
11
- }
12
- export interface BaseAiAssistantMutateRequest extends BaseAiAssistantRequest {
13
- action: AiAssistantMutationType;
14
- type: AiAssistantRequestType;
15
- }
16
- export interface AiAssistantInsertProfileRequest extends BaseAiAssistantMutateRequest {
17
- action: 'insert';
18
- type: 'profile';
19
- payload: {
20
- modelName: OpenAiModelName;
21
- strictContext: boolean;
22
- };
23
- }
24
- export interface AiAssistantInsertInstructionRequest extends BaseAiAssistantMutateRequest {
25
- action: 'insert';
26
- type: 'instruction';
27
- payload: {
28
- id: string;
29
- instruction: string;
30
- };
31
- }
32
- export interface AiAssistantInsertContextRequest extends BaseAiAssistantMutateRequest {
33
- action: 'insert';
34
- type: 'context';
35
- payload: {
36
- id: string;
37
- title: string;
38
- context: string;
39
- };
40
- }
41
- export interface AiAssistantUpdateProfileRequest extends BaseAiAssistantMutateRequest {
42
- action: 'update';
43
- type: 'profile';
44
- payload: {
45
- modelName?: OpenAiModelName;
46
- strictContext?: boolean;
47
- };
48
- }
49
- export interface AiAssistantUpdateInstructionRequest extends BaseAiAssistantMutateRequest {
50
- action: 'update';
51
- type: 'instruction';
52
- payload: {
53
- id: string;
54
- instruction: string;
55
- };
56
- }
57
- export interface AiAssistantUpdateContextRequest extends BaseAiAssistantMutateRequest {
58
- action: 'update';
59
- type: 'context';
60
- payload: {
61
- id: string;
62
- title?: string;
63
- context?: string;
64
- };
65
- }
66
- export interface AiAssistantDeleteRequest extends BaseAiAssistantMutateRequest {
67
- action: 'delete';
68
- payload: {
69
- id?: string;
70
- };
71
- }
72
- export type AiAssistantInsertRequest = AiAssistantInsertProfileRequest | AiAssistantInsertInstructionRequest | AiAssistantInsertContextRequest;
73
- export type AiAssistantUpdateRequest = AiAssistantUpdateProfileRequest | AiAssistantUpdateInstructionRequest | AiAssistantUpdateContextRequest;
74
- export type AiAssistantMutateRequest = AiAssistantInsertRequest | AiAssistantUpdateRequest | AiAssistantDeleteRequest;
75
- export type AiAssistantRequestType = 'instruction' | 'context' | 'profile';
76
- export type AiAssistantMutationType = 'insert' | 'update' | 'delete';
1
+ import { ClientId, ClientRequestId, IntegrationId } from './communication.types';
2
+ export type OpenAiModelName = 'gpt-3.5-turbo' | 'gpt-4';
3
+ type ModelDataType = {
4
+ tokens: number;
5
+ };
6
+ export declare const OpenAiModelData: Record<OpenAiModelName, ModelDataType>;
7
+ export interface BaseAiAssistantRequest {
8
+ profileId: string;
9
+ integrationId: IntegrationId;
10
+ }
11
+ export interface AiAssistantChatRequest extends BaseAiAssistantRequest {
12
+ clientId: ClientId;
13
+ clientRequestId: ClientRequestId;
14
+ prompt: string;
15
+ }
16
+ export interface BaseAiAssistantMutateRequest extends BaseAiAssistantRequest {
17
+ type: AiAssistantMutationType;
18
+ resource: AiAssistantResourceType;
19
+ }
20
+ export interface AiAssistantInsertProfileRequest extends BaseAiAssistantMutateRequest {
21
+ type: 'insert';
22
+ resource: 'profile';
23
+ payload: {
24
+ modelName: OpenAiModelName;
25
+ strictContext: boolean;
26
+ };
27
+ }
28
+ export interface AiAssistantInsertInstructionRequest extends BaseAiAssistantMutateRequest {
29
+ type: 'insert';
30
+ resource: 'instruction';
31
+ payload: {
32
+ id: string;
33
+ instruction: string;
34
+ };
35
+ }
36
+ export interface AiAssistantInsertContextRequest extends BaseAiAssistantMutateRequest {
37
+ type: 'insert';
38
+ resource: 'context';
39
+ payload: {
40
+ id: string;
41
+ title: string;
42
+ context: string;
43
+ };
44
+ }
45
+ export interface AiAssistantUpdateProfileRequest extends BaseAiAssistantMutateRequest {
46
+ type: 'update';
47
+ resource: 'profile';
48
+ payload: {
49
+ modelName?: OpenAiModelName;
50
+ strictContext?: boolean;
51
+ };
52
+ }
53
+ export interface AiAssistantUpdateInstructionRequest extends BaseAiAssistantMutateRequest {
54
+ type: 'update';
55
+ resource: 'instruction';
56
+ payload: {
57
+ id: string;
58
+ instruction: string;
59
+ };
60
+ }
61
+ export interface AiAssistantUpdateContextRequest extends BaseAiAssistantMutateRequest {
62
+ type: 'update';
63
+ resource: 'context';
64
+ payload: {
65
+ id: string;
66
+ title?: string;
67
+ context?: string;
68
+ };
69
+ }
70
+ export interface AiAssistantDeleteRequest extends BaseAiAssistantMutateRequest {
71
+ type: 'delete';
72
+ payload: {
73
+ id?: string;
74
+ };
75
+ }
76
+ export type AiAssistantInsertRequest = AiAssistantInsertProfileRequest | AiAssistantInsertInstructionRequest | AiAssistantInsertContextRequest;
77
+ export type AiAssistantUpdateRequest = AiAssistantUpdateProfileRequest | AiAssistantUpdateInstructionRequest | AiAssistantUpdateContextRequest;
78
+ export type AiAssistantMutateRequest = AiAssistantInsertRequest | AiAssistantUpdateRequest | AiAssistantDeleteRequest;
79
+ export type AiAssistantResourceType = 'instruction' | 'context' | 'profile';
80
+ export type AiAssistantMutationType = 'insert' | 'update' | 'delete';
81
+ export {};
@@ -1,12 +1,12 @@
1
- import { ApiHeaders } from './api.types';
2
- import { ApiEndpointId, HttpMethod } from './integrations';
3
- export declare class ApiCallContext {
4
- readonly endpointId: ApiEndpointId;
5
- readonly url: string;
6
- readonly method: HttpMethod;
7
- readonly headers: ApiHeaders;
8
- readonly body: Record<string, any>;
9
- readonly queryParams: Record<string, string | number | boolean>;
10
- readonly pathParams: Record<string, string>;
11
- readonly serverUrlOverride: string | undefined;
12
- }
1
+ import { ApiHeaders } from './api.types';
2
+ import { ApiEndpointId, HttpMethod } from './integrations';
3
+ export declare class ApiCallContext {
4
+ readonly endpointId: ApiEndpointId;
5
+ readonly url: string;
6
+ readonly method: HttpMethod;
7
+ readonly headers: ApiHeaders;
8
+ readonly body: Record<string, any>;
9
+ readonly queryParams: Record<string, string | number | boolean>;
10
+ readonly pathParams: Record<string, string>;
11
+ readonly serverUrlOverride: string | undefined;
12
+ }
@@ -1,24 +1,24 @@
1
- import { ClientId, ClientRequestId, IntegrationId } from './communication.types';
2
- import { ApiEndpointId, HttpMethod } from './integrations';
3
- export type ApiHeaders = Record<string, string | number | boolean>;
4
- export type ApiQueryParams = Record<string, string | number | boolean>;
5
- export interface CallApiRequest {
6
- integrationId: IntegrationId;
7
- clientId: ClientId;
8
- clientRequestId: ClientRequestId;
9
- endpointId: ApiEndpointId;
10
- serverUrlOverride?: string;
11
- request: Record<string, any>;
12
- }
13
- export interface ExtractedApiParams {
14
- headers: ApiHeaders;
15
- queryParams: ApiQueryParams;
16
- body: Record<string, any>;
17
- pathParams: Record<string, string>;
18
- }
19
- export interface SecureApiRequest extends ExtractedApiParams {
20
- endpointId: ApiEndpointId;
21
- url: string;
22
- method: HttpMethod;
23
- serverUrlOverride: string | undefined;
24
- }
1
+ import { ClientId, ClientRequestId, IntegrationId } from './communication.types';
2
+ import { ApiEndpointId, HttpMethod } from './integrations';
3
+ export type ApiHeaders = Record<string, string | number | boolean>;
4
+ export type ApiQueryParams = Record<string, string | number | boolean>;
5
+ export interface CallApiRequest {
6
+ integrationId: IntegrationId;
7
+ clientId: ClientId;
8
+ clientRequestId: ClientRequestId;
9
+ endpointId: ApiEndpointId;
10
+ serverUrlOverride?: string;
11
+ request: Record<string, any>;
12
+ }
13
+ export interface ExtractedApiParams {
14
+ headers: ApiHeaders;
15
+ queryParams: ApiQueryParams;
16
+ body: Record<string, any>;
17
+ pathParams: Record<string, string>;
18
+ }
19
+ export interface SecureApiRequest extends ExtractedApiParams {
20
+ endpointId: ApiEndpointId;
21
+ url: string;
22
+ method: HttpMethod;
23
+ serverUrlOverride: string | undefined;
24
+ }