@squidcloud/client 1.0.162 → 1.0.164

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/cjs/index.js CHANGED
@@ -28017,7 +28017,6 @@ __webpack_require__.d(__webpack_exports__, {
28017
28017
  AiChatbotMutationContext: () => (/* reexport */ AiChatbotMutationContext),
28018
28018
  AiChatbotProfileReference: () => (/* reexport */ AiChatbotProfileReference),
28019
28019
  ApiCallContext: () => (/* reexport */ ApiCallContext),
28020
- ApiIntegrationTypes: () => (/* reexport */ ApiIntegrationTypes),
28021
28020
  AuthIntegrationTypes: () => (/* reexport */ AuthIntegrationTypes),
28022
28021
  BaseQueryBuilder: () => (/* reexport */ BaseQueryBuilder),
28023
28022
  Changes: () => (/* reexport */ Changes),
@@ -28036,9 +28035,8 @@ __webpack_require__.d(__webpack_exports__, {
28036
28035
  IntegrationSchemaType: () => (/* reexport */ IntegrationSchemaType),
28037
28036
  IntegrationType: () => (/* reexport */ IntegrationType),
28038
28037
  JoinQueryBuilder: () => (/* reexport */ JoinQueryBuilder),
28039
- MutationPublicContext: () => (/* reexport */ MutationPublicContext),
28038
+ MutationContext: () => (/* reexport */ MutationContext),
28040
28039
  NativeQueryContext: () => (/* reexport */ NativeQueryContext),
28041
- ObservabilityIntegrationTypes: () => (/* reexport */ ObservabilityIntegrationTypes),
28042
28040
  Pagination: () => (/* reexport */ Pagination),
28043
28041
  QueryBuilder: () => (/* reexport */ QueryBuilder),
28044
28042
  QueryContext: () => (/* reexport */ QueryContext),
@@ -28438,7 +28436,6 @@ var IntegrationType;
28438
28436
  IntegrationType["db2"] = "db2";
28439
28437
  IntegrationType["mariadb"] = "mariadb";
28440
28438
  IntegrationType["oracledb"] = "oracledb";
28441
- IntegrationType["pinot"] = "pinot";
28442
28439
  IntegrationType["redis"] = "redis";
28443
28440
  IntegrationType["xata"] = "xata";
28444
28441
  IntegrationType["azure_sql"] = "azure_sql";
@@ -28489,10 +28486,7 @@ const DatabaseIntegrationTypes = [
28489
28486
  IntegrationType.cockroach,
28490
28487
  IntegrationType.snowflake,
28491
28488
  IntegrationType.oracledb,
28492
- IntegrationType.pinot,
28493
28489
  ];
28494
- const ApiIntegrationTypes = [IntegrationType.api, IntegrationType.graphql];
28495
- const ObservabilityIntegrationTypes = [IntegrationType.datadog, IntegrationType.newrelic];
28496
28490
  const AuthIntegrationTypes = [
28497
28491
  IntegrationType.auth0,
28498
28492
  IntegrationType.jwt_rsa,
@@ -28525,7 +28519,7 @@ var lodash_default = /*#__PURE__*/__webpack_require__.n(lodash);
28525
28519
  ;// CONCATENATED MODULE: ../internal-common/src/public-types/mutation.public-context.ts
28526
28520
 
28527
28521
  /** The mutation context that will be provided to the security function. */
28528
- class MutationPublicContext {
28522
+ class MutationContext {
28529
28523
  /**
28530
28524
  * @internal
28531
28525
  */
@@ -48122,6 +48116,7 @@ const kotlinControllers = [
48122
48116
  'secret',
48123
48117
  'queue',
48124
48118
  'mutation',
48119
+ 'application',
48125
48120
  ];
48126
48121
  function getApplicationUrl(regionPrefix, appId, path) {
48127
48122
  const baseUrl = 'https://squid.cloud';
@@ -1,4 +1,4 @@
1
- import { MutationPublicContext } from './mutation.public-context';
1
+ import { MutationContext } from './mutation.public-context';
2
2
  import { ApiCallContext } from './api-call.public-context';
3
3
  import { QueryContext } from './query.public-context';
4
4
  import { AiChatbotActionType, DatabaseActionType, TopicActionType } from './bundle-data.public-types';
@@ -11,7 +11,7 @@ import { NativeQueryContext } from './native-query.public-context';
11
11
  import { DistributedLockContext } from './distributed-lock.public-context';
12
12
  import { GraphqlContext } from './graphql.public-context';
13
13
  import { AiChatbotChatContext, AiChatbotMutationContext } from './ai-chatbot.public-context';
14
- export type SecureDatabaseAction<T extends DatabaseActionType> = T extends 'all' ? () => boolean | Promise<boolean> : T extends 'read' ? ((context: QueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : ((context: MutationPublicContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
14
+ export type SecureDatabaseAction<T extends DatabaseActionType> = T extends 'all' ? () => boolean | Promise<boolean> : T extends 'read' ? ((context: QueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : ((context: MutationContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
15
15
  export type SecureTopicAction<T extends TopicActionType> = T extends 'all' ? () => boolean | Promise<boolean> : T extends 'read' ? ((context: TopicReadContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : ((context: TopicWriteContext<T>) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
16
16
  export type SecureApiAction = ((context: ApiCallContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
17
17
  export type SecureNativeQueryAction = ((context: NativeQueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
@@ -45,7 +45,6 @@ export declare enum IntegrationType {
45
45
  'db2' = "db2",
46
46
  'mariadb' = "mariadb",
47
47
  'oracledb' = "oracledb",
48
- 'pinot' = "pinot",
49
48
  'redis' = "redis",
50
49
  'xata' = "xata",
51
50
  'azure_sql' = "azure_sql",
@@ -30,9 +30,6 @@ export interface BigQueryConnectionSecretOptions {
30
30
  export interface OracleConnectionSecretOptions {
31
31
  password: string;
32
32
  }
33
- export interface PinotConnectionSecretOptions {
34
- password?: string;
35
- }
36
33
  export interface MssqlConnectionSecretOptions {
37
34
  password: string;
38
35
  }
@@ -61,13 +58,6 @@ export interface OracleConnectionOptions {
61
58
  database: string;
62
59
  connectionLimit?: number;
63
60
  }
64
- export interface PinotConnectionOptions {
65
- secrets: PinotConnectionSecretOptions;
66
- brokerUrl: string;
67
- controllerUrl: string;
68
- user?: string;
69
- connectionLimit?: number;
70
- }
71
61
  export interface MssqlConnectionOptions {
72
62
  secrets: MssqlConnectionSecretOptions;
73
63
  host: string;
@@ -104,7 +94,6 @@ export interface IntegrationDataSchema extends BaseIntegrationSchema {
104
94
  }
105
95
  export interface BaseDatabaseIntegrationConfig extends BaseIntegrationConfig {
106
96
  type: DatabaseIntegrationType;
107
- supportsExternalChanges: boolean;
108
97
  }
109
98
  export interface MySqlIntegrationConfiguration {
110
99
  connectionOptions: MySqlConnectionOptions;
@@ -115,9 +104,6 @@ export interface BigQueryIntegrationConfiguration {
115
104
  export interface OracleIntegrationConfiguration {
116
105
  connectionOptions: OracleConnectionOptions;
117
106
  }
118
- export interface PinotIntegrationConfiguration {
119
- connectionOptions: PinotConnectionOptions;
120
- }
121
107
  export interface MssqlIntegrationConfiguration {
122
108
  connectionOptions: MssqlConnectionOptions;
123
109
  }
@@ -142,10 +128,6 @@ export interface OracleIntegrationConfig extends BaseDatabaseIntegrationConfig {
142
128
  type: IntegrationType.oracledb;
143
129
  configuration: OracleIntegrationConfiguration;
144
130
  }
145
- export interface PinotIntegrationConfig extends BaseDatabaseIntegrationConfig {
146
- type: IntegrationType.pinot;
147
- configuration: PinotIntegrationConfiguration;
148
- }
149
131
  export interface MssqlIntegrationConfig extends BaseDatabaseIntegrationConfig {
150
132
  type: IntegrationType.mssql;
151
133
  configuration: MssqlIntegrationConfiguration;
@@ -159,7 +141,6 @@ export interface PostgresIntegrationConfig extends BasePostgresIntegration {
159
141
  }
160
142
  export interface CockroachIntegrationConfig extends BasePostgresIntegration {
161
143
  type: IntegrationType.cockroach;
162
- supportsExternalChanges: false;
163
144
  }
164
145
  export interface InternalIntegrationConfig extends BaseDatabaseIntegrationConfig {
165
146
  type: IntegrationType.built_in_db;
@@ -171,57 +152,7 @@ export interface MongoIntegrationConfig extends BaseDatabaseIntegrationConfig {
171
152
  export interface SnowflakeIntegrationConfig extends BaseDatabaseIntegrationConfig {
172
153
  type: IntegrationType.snowflake;
173
154
  configuration: SnowflakeIntegrationConfiguration;
174
- supportsExternalChanges: false;
175
- }
176
- interface TestMongoDataConnectionRequest {
177
- type: IntegrationType.mongo;
178
- configuration: {
179
- connectionOptions: MongoConnectionOptions;
180
- };
181
- }
182
- interface TestMysqlDataConnectionRequest {
183
- type: IntegrationType.mysql;
184
- configuration: {
185
- connectionOptions: MySqlConnectionOptions;
186
- };
187
- }
188
- interface TestBigQueryDataConnectionRequest {
189
- type: IntegrationType.bigquery;
190
- configuration: {
191
- connectionOptions: BigQueryConnectionOptions;
192
- };
193
- }
194
- interface TestOracleDataConnectionRequest {
195
- type: IntegrationType.oracledb;
196
- configuration: {
197
- connectionOptions: OracleConnectionOptions;
198
- };
199
- }
200
- interface TestMssqlDataConnectionRequest {
201
- type: IntegrationType.mssql;
202
- configuration: {
203
- connectionOptions: MssqlConnectionOptions;
204
- };
205
- }
206
- interface TestPostgresDataConnectionRequest {
207
- type: IntegrationType.postgres;
208
- configuration: {
209
- connectionOptions: PostgresConnectionOptions;
210
- };
211
- }
212
- interface TestSnowflakeDataConnectionRequest {
213
- type: IntegrationType.snowflake;
214
- configuration: {
215
- connectionOptions: SnowflakeConnectionOptions;
216
- };
217
- }
218
- interface TestCockroachDataConnectionRequest {
219
- type: IntegrationType.cockroach;
220
- configuration: {
221
- connectionOptions: PostgresConnectionOptions;
222
- };
223
155
  }
224
- export type TestDataConnectionRequest = TestMongoDataConnectionRequest | TestMysqlDataConnectionRequest | TestBigQueryDataConnectionRequest | TestOracleDataConnectionRequest | TestMssqlDataConnectionRequest | TestCockroachDataConnectionRequest | TestPostgresDataConnectionRequest | TestSnowflakeDataConnectionRequest;
225
156
  export interface CollectionReadiness {
226
157
  hasPermissions: boolean;
227
158
  grantPermissionsCommands: string[];
@@ -1,10 +1,10 @@
1
1
  import { AiChatbotIntegrationConfig } from './ai_chatbot.types';
2
- import { GraphQLIntegrationConfig, HttpApiIntegrationConfig, IntegrationApiSchema, IntegrationGraphQLSchema, TestGraphQLDataConnectionRequest } from './api.types';
2
+ import { GraphQLIntegrationConfig, HttpApiIntegrationConfig, IntegrationApiSchema, IntegrationGraphQLSchema } from './api.types';
3
3
  import { Auth0IntegrationConfig, CognitoIntegrationConfig, DescopeIntegrationConfig, JwtHmacIntegrationConfig, JwtRsaIntegrationConfig, OktaIntegrationConfig } from './auth.types';
4
- import { BaseDatabaseIntegrationConfig, BigQueryIntegrationConfig, CockroachIntegrationConfig, IntegrationDataSchema, InternalIntegrationConfig, MongoIntegrationConfig, MssqlIntegrationConfig, MySqlIntegrationConfig, OracleIntegrationConfig, PinotIntegrationConfig, PostgresIntegrationConfig, SnowflakeIntegrationConfig, TestDataConnectionRequest } from './database.types';
4
+ import { BaseDatabaseIntegrationConfig, BigQueryIntegrationConfig, CockroachIntegrationConfig, IntegrationDataSchema, InternalIntegrationConfig, MongoIntegrationConfig, MssqlIntegrationConfig, MySqlIntegrationConfig, OracleIntegrationConfig, PostgresIntegrationConfig, SnowflakeIntegrationConfig } from './database.types';
5
5
  import { DatadogIntegrationConfig, NewRelicIntegrationConfig } from './observability.types';
6
6
  import { IntegrationSchemaType, IntegrationType } from '../integration.public-types';
7
- import { BuiltInQueueIntegrationConfig, ConfluentIntegrationConfig, KafkaIntegrationConfig, TestConfluentConnectionRequest, TestKafkaConnectionRequest } from './queue-types';
7
+ import { BuiltInQueueIntegrationConfig, ConfluentIntegrationConfig, KafkaIntegrationConfig } from './queue-types';
8
8
  import { IntegrationId } from '../communication.public-types';
9
9
  export interface IntegrationConfigTypes {
10
10
  [IntegrationType.built_in_db]: InternalIntegrationConfig;
@@ -12,7 +12,6 @@ export interface IntegrationConfigTypes {
12
12
  [IntegrationType.mysql]: MySqlIntegrationConfig;
13
13
  [IntegrationType.bigquery]: BigQueryIntegrationConfig;
14
14
  [IntegrationType.oracledb]: OracleIntegrationConfig;
15
- [IntegrationType.pinot]: PinotIntegrationConfig;
16
15
  [IntegrationType.mssql]: MssqlIntegrationConfig;
17
16
  [IntegrationType.postgres]: PostgresIntegrationConfig;
18
17
  [IntegrationType.cockroach]: CockroachIntegrationConfig;
@@ -38,7 +37,6 @@ export interface IntegrationSchemaTypes {
38
37
  [IntegrationType.mysql]: IntegrationDataSchema;
39
38
  [IntegrationType.oracledb]: IntegrationDataSchema;
40
39
  [IntegrationType.bigquery]: IntegrationDataSchema;
41
- [IntegrationType.pinot]: IntegrationDataSchema;
42
40
  [IntegrationType.mssql]: IntegrationDataSchema;
43
41
  [IntegrationType.postgres]: IntegrationDataSchema;
44
42
  [IntegrationType.cockroach]: IntegrationDataSchema;
@@ -50,17 +48,11 @@ export type IntegrationTypeWithConfig = keyof IntegrationConfigTypes;
50
48
  export type IntegrationSchemaKeys = keyof IntegrationSchemaTypes;
51
49
  export type IntegrationConfig = IntegrationConfigTypes[IntegrationTypeWithConfig];
52
50
  export type IntegrationSchema = IntegrationSchemaTypes[IntegrationSchemaKeys];
53
- export declare const DatabaseIntegrationTypes: readonly [IntegrationType.built_in_db, IntegrationType.mongo, IntegrationType.mysql, IntegrationType.bigquery, IntegrationType.mssql, IntegrationType.postgres, IntegrationType.cockroach, IntegrationType.snowflake, IntegrationType.oracledb, IntegrationType.pinot];
51
+ export declare const DatabaseIntegrationTypes: readonly [IntegrationType.built_in_db, IntegrationType.mongo, IntegrationType.mysql, IntegrationType.bigquery, IntegrationType.mssql, IntegrationType.postgres, IntegrationType.cockroach, IntegrationType.snowflake, IntegrationType.oracledb];
54
52
  export type DatabaseIntegrationType = (typeof DatabaseIntegrationTypes)[number];
55
53
  export type DatabaseIntegrationConfig = IntegrationConfigTypes[DatabaseIntegrationType];
56
- export declare const ApiIntegrationTypes: readonly [IntegrationType.api, IntegrationType.graphql];
57
- export declare const ObservabilityIntegrationTypes: readonly [IntegrationType.datadog, IntegrationType.newrelic];
58
54
  export declare const AuthIntegrationTypes: readonly [IntegrationType.auth0, IntegrationType.jwt_rsa, IntegrationType.jwt_hmac, IntegrationType.cognito, IntegrationType.okta, IntegrationType.descope];
59
55
  export declare const QueueIntegrationTypes: readonly [IntegrationType.built_in_queue, IntegrationType.kafka, IntegrationType.confluent];
60
- export type ApiIntegrationType = (typeof ApiIntegrationTypes)[number];
61
- export type ApiIntegrationConfig = IntegrationConfigTypes[ApiIntegrationType];
62
- export type ObservabilityIntegrationType = (typeof ObservabilityIntegrationTypes)[number];
63
- export type ObservabilityIntegrationConfig = IntegrationConfigTypes[ObservabilityIntegrationType];
64
56
  export type AuthIntegrationType = (typeof AuthIntegrationTypes)[number];
65
57
  export type AuthIntegrationConfig = IntegrationConfigTypes[AuthIntegrationType];
66
58
  export declare function isDataIntegrationType(type: unknown): type is DatabaseIntegrationType;
@@ -70,10 +62,9 @@ export declare function isAuthIntegration(integration: unknown): integration is
70
62
  export interface BaseIntegrationConfig {
71
63
  id: IntegrationId;
72
64
  type: IntegrationTypeWithConfig;
73
- creationDate: Date;
74
- updateDate: Date;
65
+ creationDate?: Date;
66
+ updateDate?: Date;
75
67
  }
76
68
  export interface BaseIntegrationSchema {
77
69
  type: IntegrationSchemaType;
78
70
  }
79
- export type TestConnectionRequest = TestDataConnectionRequest | TestGraphQLDataConnectionRequest | TestKafkaConnectionRequest | TestConfluentConnectionRequest;
@@ -2,7 +2,7 @@ import { Paths } from './typescript.public-types';
2
2
  import { BeforeAndAfterDocs } from './document.public-types';
3
3
  import { Mutation, MutationType } from './mutation.public-types';
4
4
  /** The mutation context that will be provided to the security function. */
5
- export declare class MutationPublicContext<T = any> {
5
+ export declare class MutationContext<T = any> {
6
6
  readonly mutation: Mutation<T>;
7
7
  readonly beforeAndAfterDocs: BeforeAndAfterDocs<T>;
8
8
  readonly serverTimeStamp: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.162",
3
+ "version": "1.0.164",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/typescript-client/src/index.d.ts",