@superblocksteam/sdk-api 2.0.105 → 2.0.106-next.1

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 (182) hide show
  1. package/README.md +439 -89
  2. package/dist/api/definition.d.ts +11 -6
  3. package/dist/api/definition.d.ts.map +1 -1
  4. package/dist/api/definition.js +19 -12
  5. package/dist/api/definition.js.map +1 -1
  6. package/dist/api/definition.test.js +39 -15
  7. package/dist/api/definition.test.js.map +1 -1
  8. package/dist/errors.d.ts +1 -1
  9. package/dist/errors.js +1 -1
  10. package/dist/index.d.ts +10 -11
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +9 -5
  13. package/dist/index.js.map +1 -1
  14. package/dist/integrations/base/index.d.ts +2 -1
  15. package/dist/integrations/base/index.d.ts.map +1 -1
  16. package/dist/integrations/base/index.js +1 -0
  17. package/dist/integrations/base/index.js.map +1 -1
  18. package/dist/integrations/base/rest-api-client-base.d.ts +48 -0
  19. package/dist/integrations/base/rest-api-client-base.d.ts.map +1 -0
  20. package/dist/integrations/base/rest-api-client-base.js +98 -0
  21. package/dist/integrations/base/rest-api-client-base.js.map +1 -0
  22. package/dist/integrations/base/rest-api-integration-client.d.ts +10 -20
  23. package/dist/integrations/base/rest-api-integration-client.d.ts.map +1 -1
  24. package/dist/integrations/base/rest-api-integration-client.js +10 -65
  25. package/dist/integrations/base/rest-api-integration-client.js.map +1 -1
  26. package/dist/integrations/box/types.d.ts +1 -1
  27. package/dist/integrations/declarations.d.ts +5 -73
  28. package/dist/integrations/declarations.d.ts.map +1 -1
  29. package/dist/integrations/declarations.js +5 -68
  30. package/dist/integrations/declarations.js.map +1 -1
  31. package/dist/integrations/documentation.test.js +0 -2
  32. package/dist/integrations/documentation.test.js.map +1 -1
  33. package/dist/integrations/googledrive/types.d.ts +1 -1
  34. package/dist/integrations/index.d.ts +1 -11
  35. package/dist/integrations/index.d.ts.map +1 -1
  36. package/dist/integrations/index.js +1 -7
  37. package/dist/integrations/index.js.map +1 -1
  38. package/dist/integrations/registry.d.ts +1 -11
  39. package/dist/integrations/registry.d.ts.map +1 -1
  40. package/dist/integrations/registry.js +0 -29
  41. package/dist/integrations/registry.js.map +1 -1
  42. package/dist/integrations/slack/client.d.ts +13 -9
  43. package/dist/integrations/slack/client.d.ts.map +1 -1
  44. package/dist/integrations/slack/client.js +60 -8
  45. package/dist/integrations/slack/client.js.map +1 -1
  46. package/dist/integrations/slack/client.test.d.ts +11 -0
  47. package/dist/integrations/slack/client.test.d.ts.map +1 -0
  48. package/dist/integrations/slack/client.test.js +368 -0
  49. package/dist/integrations/slack/client.test.js.map +1 -0
  50. package/dist/integrations/slack/index.d.ts +2 -1
  51. package/dist/integrations/slack/index.d.ts.map +1 -1
  52. package/dist/integrations/slack/index.js +1 -0
  53. package/dist/integrations/slack/index.js.map +1 -1
  54. package/dist/integrations/slack/types.d.ts +127 -28
  55. package/dist/integrations/slack/types.d.ts.map +1 -1
  56. package/dist/integrations/slack/types.js +27 -1
  57. package/dist/integrations/slack/types.js.map +1 -1
  58. package/dist/integrations/snowflake/client.d.ts +2 -2
  59. package/dist/integrations/snowflake/client.js +2 -2
  60. package/dist/runtime/context.d.ts +1 -1
  61. package/dist/runtime/executor.d.ts +2 -2
  62. package/dist/types.d.ts +15 -6
  63. package/dist/types.d.ts.map +1 -1
  64. package/package.json +2 -2
  65. package/src/api/definition.test.ts +40 -15
  66. package/src/api/definition.ts +19 -12
  67. package/src/errors.ts +1 -1
  68. package/src/index.ts +13 -33
  69. package/src/integrations/asana/README.md +12 -12
  70. package/src/integrations/base/index.ts +2 -1
  71. package/src/integrations/base/rest-api-client-base.ts +134 -0
  72. package/src/integrations/base/rest-api-integration-client.ts +12 -89
  73. package/src/integrations/bitbucket/README.md +19 -19
  74. package/src/integrations/box/README.md +24 -24
  75. package/src/integrations/box/types.ts +1 -1
  76. package/src/integrations/circleci/README.md +18 -18
  77. package/src/integrations/declarations.ts +5 -105
  78. package/src/integrations/documentation.test.ts +0 -2
  79. package/src/integrations/googledrive/README.md +25 -22
  80. package/src/integrations/googledrive/types.ts +1 -1
  81. package/src/integrations/graphql/README.md +2 -2
  82. package/src/integrations/groq/README.md +8 -8
  83. package/src/integrations/index.ts +0 -51
  84. package/src/integrations/mongodb/README.md +65 -12
  85. package/src/integrations/perplexity/README.md +39 -48
  86. package/src/integrations/registry.ts +1 -39
  87. package/src/integrations/salesforce/README.md +11 -9
  88. package/src/integrations/slack/README.md +62 -19
  89. package/src/integrations/slack/client.test.ts +553 -0
  90. package/src/integrations/slack/client.ts +92 -12
  91. package/src/integrations/slack/index.ts +6 -1
  92. package/src/integrations/slack/types.ts +142 -29
  93. package/src/integrations/snowflake/client.ts +2 -2
  94. package/src/integrations/zoom/README.md +15 -15
  95. package/src/runtime/context.ts +1 -1
  96. package/src/runtime/executor.ts +2 -2
  97. package/src/types.ts +15 -6
  98. package/dist/integrations/couchbase/client.d.ts +0 -36
  99. package/dist/integrations/couchbase/client.d.ts.map +0 -1
  100. package/dist/integrations/couchbase/client.js +0 -148
  101. package/dist/integrations/couchbase/client.js.map +0 -1
  102. package/dist/integrations/couchbase/index.d.ts +0 -8
  103. package/dist/integrations/couchbase/index.d.ts.map +0 -1
  104. package/dist/integrations/couchbase/index.js +0 -7
  105. package/dist/integrations/couchbase/index.js.map +0 -1
  106. package/dist/integrations/couchbase/types.d.ts +0 -100
  107. package/dist/integrations/couchbase/types.d.ts.map +0 -1
  108. package/dist/integrations/couchbase/types.js +0 -5
  109. package/dist/integrations/couchbase/types.js.map +0 -1
  110. package/dist/integrations/kafka/client.d.ts +0 -25
  111. package/dist/integrations/kafka/client.d.ts.map +0 -1
  112. package/dist/integrations/kafka/client.js +0 -124
  113. package/dist/integrations/kafka/client.js.map +0 -1
  114. package/dist/integrations/kafka/index.d.ts +0 -8
  115. package/dist/integrations/kafka/index.d.ts.map +0 -1
  116. package/dist/integrations/kafka/index.js +0 -7
  117. package/dist/integrations/kafka/index.js.map +0 -1
  118. package/dist/integrations/kafka/types.d.ts +0 -113
  119. package/dist/integrations/kafka/types.d.ts.map +0 -1
  120. package/dist/integrations/kafka/types.js +0 -5
  121. package/dist/integrations/kafka/types.js.map +0 -1
  122. package/dist/integrations/kinesis/client.d.ts +0 -31
  123. package/dist/integrations/kinesis/client.d.ts.map +0 -1
  124. package/dist/integrations/kinesis/client.js +0 -101
  125. package/dist/integrations/kinesis/client.js.map +0 -1
  126. package/dist/integrations/kinesis/index.d.ts +0 -8
  127. package/dist/integrations/kinesis/index.d.ts.map +0 -1
  128. package/dist/integrations/kinesis/index.js +0 -7
  129. package/dist/integrations/kinesis/index.js.map +0 -1
  130. package/dist/integrations/kinesis/types.d.ts +0 -97
  131. package/dist/integrations/kinesis/types.d.ts.map +0 -1
  132. package/dist/integrations/kinesis/types.js +0 -7
  133. package/dist/integrations/kinesis/types.js.map +0 -1
  134. package/dist/integrations/python/client.d.ts +0 -42
  135. package/dist/integrations/python/client.d.ts.map +0 -1
  136. package/dist/integrations/python/client.js +0 -89
  137. package/dist/integrations/python/client.js.map +0 -1
  138. package/dist/integrations/python/client.test.d.ts +0 -5
  139. package/dist/integrations/python/client.test.d.ts.map +0 -1
  140. package/dist/integrations/python/client.test.js +0 -214
  141. package/dist/integrations/python/client.test.js.map +0 -1
  142. package/dist/integrations/python/index.d.ts +0 -6
  143. package/dist/integrations/python/index.d.ts.map +0 -1
  144. package/dist/integrations/python/index.js +0 -5
  145. package/dist/integrations/python/index.js.map +0 -1
  146. package/dist/integrations/python/types.d.ts +0 -85
  147. package/dist/integrations/python/types.d.ts.map +0 -1
  148. package/dist/integrations/python/types.js +0 -5
  149. package/dist/integrations/python/types.js.map +0 -1
  150. package/dist/integrations/redis/client.d.ts +0 -43
  151. package/dist/integrations/redis/client.d.ts.map +0 -1
  152. package/dist/integrations/redis/client.js +0 -142
  153. package/dist/integrations/redis/client.js.map +0 -1
  154. package/dist/integrations/redis/index.d.ts +0 -8
  155. package/dist/integrations/redis/index.d.ts.map +0 -1
  156. package/dist/integrations/redis/index.js +0 -7
  157. package/dist/integrations/redis/index.js.map +0 -1
  158. package/dist/integrations/redis/types.d.ts +0 -137
  159. package/dist/integrations/redis/types.d.ts.map +0 -1
  160. package/dist/integrations/redis/types.js +0 -5
  161. package/dist/integrations/redis/types.js.map +0 -1
  162. package/src/integrations/couchbase/README.md +0 -138
  163. package/src/integrations/couchbase/client.ts +0 -225
  164. package/src/integrations/couchbase/index.ts +0 -8
  165. package/src/integrations/couchbase/types.ts +0 -126
  166. package/src/integrations/kafka/README.md +0 -144
  167. package/src/integrations/kafka/client.ts +0 -216
  168. package/src/integrations/kafka/index.ts +0 -14
  169. package/src/integrations/kafka/types.ts +0 -128
  170. package/src/integrations/kinesis/README.md +0 -153
  171. package/src/integrations/kinesis/client.ts +0 -146
  172. package/src/integrations/kinesis/index.ts +0 -14
  173. package/src/integrations/kinesis/types.ts +0 -114
  174. package/src/integrations/python/README.md +0 -566
  175. package/src/integrations/python/client.test.ts +0 -341
  176. package/src/integrations/python/client.ts +0 -136
  177. package/src/integrations/python/index.ts +0 -6
  178. package/src/integrations/python/types.ts +0 -92
  179. package/src/integrations/redis/README.md +0 -200
  180. package/src/integrations/redis/client.ts +0 -208
  181. package/src/integrations/redis/index.ts +0 -8
  182. package/src/integrations/redis/types.ts +0 -167
@@ -1,100 +0,0 @@
1
- /**
2
- * Couchbase client types.
3
- */
4
- import type { z } from "zod";
5
- import type { BaseIntegrationClient } from "../../types.js";
6
- import type { TraceMetadata } from "../registry.js";
7
- /**
8
- * Parameters for identifying a Couchbase document location.
9
- *
10
- * All Couchbase operations require a bucket name. Key-value operations
11
- * (insert, get, remove) additionally require a scope and collection.
12
- */
13
- export interface CouchbaseIdentifier {
14
- /** The bucket name (required for all operations) */
15
- bucket: string;
16
- /** The scope name */
17
- scope: string;
18
- /** The collection name */
19
- collection: string;
20
- }
21
- /**
22
- * Couchbase client for document and query operations.
23
- *
24
- * Provides methods for SQL++ queries, document insertion, retrieval,
25
- * and removal in Couchbase buckets.
26
- *
27
- * @example
28
- * ```typescript
29
- * // Declare in api(): integrations: { cb: couchbase(INTEGRATION_ID) }
30
- * // In run(), access via ctx.integrations.cb
31
- *
32
- * // Run a SQL++ query
33
- * const users = await ctx.integrations.cb.query(
34
- * 'my-bucket',
35
- * 'SELECT * FROM bucket WHERE status = "active"',
36
- * UserSchema,
37
- * );
38
- *
39
- * // Insert a document
40
- * await ctx.integrations.cb.insert('user::123', { name: 'Alice' }, {
41
- * bucket: 'my-bucket',
42
- * scope: '_default',
43
- * collection: '_default',
44
- * });
45
- *
46
- * // Get a document
47
- * const doc = await ctx.integrations.cb.get('user::123', DocSchema, {
48
- * bucket: 'my-bucket',
49
- * scope: '_default',
50
- * collection: '_default',
51
- * });
52
- *
53
- * // Remove a document
54
- * await ctx.integrations.cb.remove('user::123', {
55
- * bucket: 'my-bucket',
56
- * scope: '_default',
57
- * collection: '_default',
58
- * });
59
- * ```
60
- */
61
- export interface CouchbaseClient extends BaseIntegrationClient {
62
- /**
63
- * Execute a SQL++ query against Couchbase.
64
- *
65
- * @param bucket - The bucket name to query against
66
- * @param sql - The SQL++ query string (with optional $1, $2 placeholders when parameterized)
67
- * @param schema - Zod schema for validating result rows
68
- * @param params - Optional array of parameter values for server-side binding
69
- * @returns Array of validated result rows
70
- */
71
- query<T>(bucket: string, sql: string, schema: z.ZodSchema<T>, params?: unknown[], metadata?: TraceMetadata): Promise<T[]>;
72
- /**
73
- * Insert a document into a collection.
74
- *
75
- * @param key - The document key
76
- * @param value - The document value (will be JSON-serialized)
77
- * @param identifier - The bucket, scope, and collection to insert into
78
- * @param metadata - Optional trace metadata for diagnostics
79
- */
80
- insert(key: string, value: unknown, identifier: CouchbaseIdentifier, metadata?: TraceMetadata): Promise<void>;
81
- /**
82
- * Get a document by key from a collection.
83
- *
84
- * @param key - The document key
85
- * @param schema - Zod schema for validating the result
86
- * @param identifier - The bucket, scope, and collection to get from
87
- * @param metadata - Optional trace metadata for diagnostics
88
- * @returns The validated document
89
- */
90
- get<T>(key: string, schema: z.ZodSchema<T>, identifier: CouchbaseIdentifier, metadata?: TraceMetadata): Promise<T>;
91
- /**
92
- * Remove a document by key from a collection.
93
- *
94
- * @param key - The document key
95
- * @param identifier - The bucket, scope, and collection to remove from
96
- * @param metadata - Optional trace metadata for diagnostics
97
- */
98
- remove(key: string, identifier: CouchbaseIdentifier, metadata?: TraceMetadata): Promise<void>;
99
- }
100
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/integrations/couchbase/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,WAAW,eAAgB,SAAQ,qBAAqB;IAC5D;;;;;;;;OAQG;IACH,KAAK,CAAC,CAAC,EACL,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EACtB,MAAM,CAAC,EAAE,OAAO,EAAE,EAClB,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IAEhB;;;;;;;OAOG;IACH,MAAM,CACJ,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,EACd,UAAU,EAAE,mBAAmB,EAC/B,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;;;OAQG;IACH,GAAG,CAAC,CAAC,EACH,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EACtB,UAAU,EAAE,mBAAmB,EAC/B,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,CAAC,CAAC,CAAC;IAEd;;;;;;OAMG;IACH,MAAM,CACJ,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,mBAAmB,EAC/B,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Couchbase client types.
3
- */
4
- export {};
5
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/integrations/couchbase/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1,25 +0,0 @@
1
- /**
2
- * Kafka client implementation.
3
- *
4
- * Constructs request objects matching the expected backend format.
5
- */
6
- import type { z } from "zod";
7
- import type { QueryExecutor, TraceMetadata } from "../registry.js";
8
- import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
9
- import type { KafkaClient, KafkaConsumeParams, KafkaProduceParams } from "./types.js";
10
- /**
11
- * Internal implementation of KafkaClient.
12
- */
13
- export declare class KafkaClientImpl implements KafkaClient, IntegrationClientImpl {
14
- readonly config: IntegrationConfig;
15
- private readonly executeQuery;
16
- constructor(config: IntegrationConfig, executeQuery: QueryExecutor);
17
- get name(): string;
18
- get pluginId(): string;
19
- private buildConsumeRequest;
20
- private buildProduceRequest;
21
- private executeAndValidate;
22
- consume<T>(schema: z.ZodSchema<T>, params: KafkaConsumeParams, metadata?: TraceMetadata): Promise<T>;
23
- produce<T>(schema: z.ZodSchema<T>, params: KafkaProduceParams, metadata?: TraceMetadata): Promise<T>;
24
- }
25
- //# sourceMappingURL=client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/integrations/kafka/client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAgFpB;;GAEG;AACH,qBAAa,eAAgB,YAAW,WAAW,EAAE,qBAAqB;IACxE,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACnC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAgB;gBAEjC,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAE,aAAa;IAKlE,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,OAAO,CAAC,mBAAmB;IAuB3B,OAAO,CAAC,mBAAmB;YAqBb,kBAAkB;IAsC1B,OAAO,CAAC,CAAC,EACb,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EACtB,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,CAAC,CAAC;IAKP,OAAO,CAAC,CAAC,EACb,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EACtB,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,CAAC,CAAC;CAId"}
@@ -1,124 +0,0 @@
1
- /**
2
- * Kafka client implementation.
3
- *
4
- * Constructs request objects matching the expected backend format.
5
- */
6
- import { RestApiValidationError } from "../../errors.js";
7
- import { IntegrationError } from "../../runtime/errors.js";
8
- /**
9
- * Operation string values expected by the Kafka plugin.
10
- */
11
- const OPERATION = {
12
- CONSUME: "OPERATION_CONSUME",
13
- PRODUCE: "OPERATION_PRODUCE",
14
- };
15
- /**
16
- * Consume from string values.
17
- */
18
- const CONSUME_FROM = {
19
- BEGINNING: "FROM_BEGINNING",
20
- LATEST: "FROM_LATEST",
21
- SEEK: "FROM_SEEK",
22
- };
23
- /**
24
- * Acks string values.
25
- */
26
- const ACKS = {
27
- NONE: "ACKS_NONE",
28
- LEADER: "ACKS_LEADER",
29
- ALL: "ACKS_ALL",
30
- };
31
- /**
32
- * Compression string values.
33
- */
34
- const COMPRESSION = {
35
- GZIP: "COMPRESSION_GZIP",
36
- SNAPPY: "COMPRESSION_SNAPPY",
37
- LZ4: "COMPRESSION_LZ4",
38
- ZSTD: "COMPRESSION_ZSTD",
39
- };
40
- /**
41
- * Internal implementation of KafkaClient.
42
- */
43
- export class KafkaClientImpl {
44
- config;
45
- executeQuery;
46
- constructor(config, executeQuery) {
47
- this.config = config;
48
- this.executeQuery = executeQuery;
49
- }
50
- get name() {
51
- return this.config.name;
52
- }
53
- get pluginId() {
54
- return this.config.pluginId;
55
- }
56
- buildConsumeRequest(params) {
57
- const request = {
58
- operation: OPERATION.CONSUME,
59
- consume: {
60
- topic: params.topic,
61
- from: params.from ? CONSUME_FROM[params.from] : CONSUME_FROM.LATEST,
62
- groupId: params.groupId,
63
- clientId: params.clientId,
64
- readUncommitted: params.readUncommitted ?? false,
65
- },
66
- };
67
- if (params.seek && request.consume) {
68
- request.consume.seek = {
69
- topic: params.seek.topic,
70
- offset: String(params.seek.offset),
71
- partition: params.seek.partition,
72
- };
73
- }
74
- return request;
75
- }
76
- buildProduceRequest(params) {
77
- const request = {
78
- operation: OPERATION.PRODUCE,
79
- produce: {
80
- messages: params.messages,
81
- acks: params.acks ? ACKS[params.acks] : ACKS.ALL,
82
- clientId: params.clientId,
83
- timeout: params.timeout,
84
- compression: params.compression
85
- ? COMPRESSION[params.compression]
86
- : undefined,
87
- transactionId: params.transactionId,
88
- autoCreateTopic: params.autoCreateTopic ?? false,
89
- idempotent: params.idempotent ?? false,
90
- transaction: params.transaction ?? false,
91
- },
92
- };
93
- return request;
94
- }
95
- async executeAndValidate(request, schema, operation, metadata) {
96
- try {
97
- const result = await this.executeQuery(request, undefined, metadata);
98
- const parseResult = schema.safeParse(result);
99
- if (!parseResult.success) {
100
- throw new RestApiValidationError(`Result validation failed: ${parseResult.error.message}`, {
101
- zodError: parseResult.error,
102
- data: result,
103
- });
104
- }
105
- return parseResult.data;
106
- }
107
- catch (error) {
108
- if (error instanceof RestApiValidationError ||
109
- error instanceof IntegrationError) {
110
- throw error;
111
- }
112
- throw new IntegrationError(this.config.name, operation, error);
113
- }
114
- }
115
- async consume(schema, params, metadata) {
116
- const request = this.buildConsumeRequest(params);
117
- return this.executeAndValidate(request, schema, "consume", metadata);
118
- }
119
- async produce(schema, params, metadata) {
120
- const request = this.buildProduceRequest(params);
121
- return this.executeAndValidate(request, schema, "produce", metadata);
122
- }
123
- }
124
- //# sourceMappingURL=client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/integrations/kafka/client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAmD3D;;GAEG;AACH,MAAM,SAAS,GAAG;IAChB,OAAO,EAAE,mBAAmB;IAC5B,OAAO,EAAE,mBAAmB;CACpB,CAAC;AAEX;;GAEG;AACH,MAAM,YAAY,GAAG;IACnB,SAAS,EAAE,gBAAgB;IAC3B,MAAM,EAAE,aAAa;IACrB,IAAI,EAAE,WAAW;CACT,CAAC;AAEX;;GAEG;AACH,MAAM,IAAI,GAAG;IACX,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,GAAG,EAAE,UAAU;CACP,CAAC;AAEX;;GA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AW,CAAC,IAAI,CAAC;QAC1B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IACE,KAAK,YAAY,sBAAsB;gBACvC,KAAK,YAAY,gBAAgB,EACjC,CAAC;gBACD,MAAM,KAAK,CAAC;YACd,CAAC;YAED,MAAM,IAAI,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IAED,KAAK,CAAC,OAAO,CACX,MAAsB,EACtB,MAA0B,EAC1B,QAAwB;QAExB,MAAM,OAAO,GAAG,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACvE,CAAC;IAED,KAAK,CAAC,OAAO,CACX,MAAsB,EACtB,MAA0B,EAC1B,QAAwB;QAExB,MAAM,OAAO,GAAG,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACvE,CAAC;CACF"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Kafka integration client.
3
- *
4
- * @module
5
- */
6
- export type { KafkaClient, KafkaOperation, KafkaSeek, KafkaConsumeParams, KafkaProduceParams, } from "./types.js";
7
- export { KafkaClientImpl } from "./client.js";
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/kafka/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,YAAY,EACV,WAAW,EACX,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Kafka integration client.
3
- *
4
- * @module
5
- */
6
- export { KafkaClientImpl } from "./client.js";
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/kafka/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC"}
@@ -1,113 +0,0 @@
1
- /**
2
- * Kafka client types.
3
- */
4
- import type { z } from "zod";
5
- import type { BaseIntegrationClient } from "../../types.js";
6
- import type { TraceMetadata } from "../registry.js";
7
- /**
8
- * Kafka operation types.
9
- */
10
- export type KafkaOperation = "CONSUME" | "PRODUCE";
11
- /**
12
- * Seek position for consuming from a specific offset.
13
- */
14
- export interface KafkaSeek {
15
- /** Topic name */
16
- topic: string;
17
- /** Offset to start from */
18
- offset: number;
19
- /** Partition to consume from */
20
- partition: number;
21
- }
22
- /**
23
- * Parameters for Kafka consume operation.
24
- */
25
- export interface KafkaConsumeParams {
26
- /** Topic to consume from */
27
- topic: string;
28
- /** Where to start consuming from */
29
- from?: "BEGINNING" | "LATEST" | "SEEK";
30
- /** Consumer group ID */
31
- groupId?: string;
32
- /** Client ID */
33
- clientId?: string;
34
- /** Seek position for SEEK mode */
35
- seek?: KafkaSeek;
36
- /** Whether to read uncommitted messages */
37
- readUncommitted?: boolean;
38
- }
39
- /**
40
- * Parameters for Kafka produce operation.
41
- */
42
- export interface KafkaProduceParams {
43
- /** Messages to produce (JSON string) */
44
- messages: string;
45
- /** Acknowledgment level */
46
- acks?: "NONE" | "LEADER" | "ALL";
47
- /** Client ID */
48
- clientId?: string;
49
- /** Timeout in milliseconds */
50
- timeout?: number;
51
- /** Compression type */
52
- compression?: "GZIP" | "SNAPPY" | "LZ4" | "ZSTD";
53
- /** Transaction ID for transactional produce */
54
- transactionId?: string;
55
- /** Whether to auto-create topic */
56
- autoCreateTopic?: boolean;
57
- /** Whether to enable idempotent delivery */
58
- idempotent?: boolean;
59
- /** Whether to use transactions */
60
- transaction?: boolean;
61
- }
62
- /**
63
- * Kafka client for message streaming operations.
64
- *
65
- * Provides consume() and produce() methods for Kafka operations.
66
- *
67
- * @example
68
- * ```typescript
69
- * // Declare in api(): integrations: { kafka: kafka(INTEGRATION_ID) }
70
- * // In run(), access via ctx.integrations.kafka
71
- *
72
- * // Consume messages
73
- * const MessageSchema = z.array(z.object({
74
- * topic: z.string(),
75
- * partition: z.number(),
76
- * offset: z.number(),
77
- * value: z.unknown(),
78
- * }));
79
- *
80
- * const messages = await kafka.consume(MessageSchema, {
81
- * topic: 'my-topic',
82
- * from: 'LATEST',
83
- * groupId: 'my-consumer-group',
84
- * });
85
- *
86
- * // Produce messages
87
- * const result = await kafka.produce(z.any(), {
88
- * messages: JSON.stringify([
89
- * { topic: 'my-topic', value: { key: 'value' } }
90
- * ]),
91
- * });
92
- * ```
93
- */
94
- export interface KafkaClient extends BaseIntegrationClient {
95
- /**
96
- * Consume messages from Kafka.
97
- *
98
- * @param schema - Zod schema for validating the result
99
- * @param params - Consume parameters
100
- * @returns The validated result
101
- */
102
- consume<T>(schema: z.ZodSchema<T>, params: KafkaConsumeParams, metadata?: TraceMetadata): Promise<T>;
103
- /**
104
- * Produce messages to Kafka.
105
- *
106
- * @param schema - Zod schema for validating the result
107
- * @param params - Produce parameters
108
- * @param metadata - Optional trace metadata for diagnostics
109
- * @returns The validated result
110
- */
111
- produce<T>(schema: z.ZodSchema<T>, params: KafkaProduceParams, metadata?: TraceMetadata): Promise<T>;
112
- }
113
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/integrations/kafka/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,aA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;;;;;;;;;;;;GA+BG;AACH,MAAM,WAAW,WAAY,SAAQ,qBAAqB;IACxD;;;;;;OAMG;IACH,OAAO,CAAC,CAAC,EACP,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EACtB,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,CAAC,CAAC,CAAC;IAEd;;;;;;;OAOG;IACH,OAAO,CAAC,CAAC,EACP,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EACtB,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,CAAC,CAAC,CAAC;CACf"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Kafka client types.
3
- */
4
- export {};
5
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/integrations/kafka/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1,31 +0,0 @@
1
- /**
2
- * Kinesis client implementation.
3
- *
4
- * Uses the native Kinesis plugin type from @superblocksteam/types.
5
- * Supports PUT (write records) and GET (read records) operations.
6
- */
7
- import type { QueryExecutor, TraceMetadata } from "../registry.js";
8
- import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
9
- import type { KinesisClient, KinesisPutParams, KinesisGetParams } from "./types.js";
10
- /**
11
- * Internal implementation of KinesisClient.
12
- *
13
- * Sends requests matching the Kinesis plugin proto structure:
14
- * - `operationType`: PUT or GET
15
- * - `put`: PUT operation parameters
16
- * - `get`: GET operation parameters
17
- */
18
- export declare class KinesisClientImpl implements KinesisClient, IntegrationClientImpl {
19
- readonly config: IntegrationConfig;
20
- private readonly executeQuery;
21
- constructor(config: IntegrationConfig, executeQuery: QueryExecutor);
22
- get name(): string;
23
- get pluginId(): string;
24
- /**
25
- * Execute a request and wrap errors.
26
- */
27
- private exec;
28
- putRecord(params: KinesisPutParams, metadata?: TraceMetadata): Promise<unknown>;
29
- getRecords(params: KinesisGetParams, metadata?: TraceMetadata): Promise<unknown>;
30
- }
31
- //# sourceMappingURL=client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/integrations/kinesis/client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAUpB;;;;;;;GAOG;AACH,qBAAa,iBAAkB,YAAW,aAAa,EAAE,qBAAqB;IAC5E,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACnC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAgB;gBAEjC,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAE,aAAa;IAKlE,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;OAEG;YACW,IAAI;IAgBZ,SAAS,CACb,MAAM,EAAE,gBAAgB,EACxB,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,OAAO,CAAC;IA4Bb,UAAU,CACd,MAAM,EAAE,gBAAgB,EACxB,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,OAAO,CAAC;CA2CpB"}
@@ -1,101 +0,0 @@
1
- /**
2
- * Kinesis client implementation.
3
- *
4
- * Uses the native Kinesis plugin type from @superblocksteam/types.
5
- * Supports PUT (write records) and GET (read records) operations.
6
- */
7
- import { IntegrationError } from "../../runtime/errors.js";
8
- /**
9
- * Kinesis operation type enum values matching the proto.
10
- */
11
- const OPERATION_TYPE = {
12
- PUT: "OPERATION_TYPE_PUT",
13
- GET: "OPERATION_TYPE_GET",
14
- };
15
- /**
16
- * Internal implementation of KinesisClient.
17
- *
18
- * Sends requests matching the Kinesis plugin proto structure:
19
- * - `operationType`: PUT or GET
20
- * - `put`: PUT operation parameters
21
- * - `get`: GET operation parameters
22
- */
23
- export class KinesisClientImpl {
24
- config;
25
- executeQuery;
26
- constructor(config, executeQuery) {
27
- this.config = config;
28
- this.executeQuery = executeQuery;
29
- }
30
- get name() {
31
- return this.config.name;
32
- }
33
- get pluginId() {
34
- return this.config.pluginId;
35
- }
36
- /**
37
- * Execute a request and wrap errors.
38
- */
39
- async exec(request, operation, metadata) {
40
- try {
41
- return await this.executeQuery(request, undefined, metadata);
42
- }
43
- catch (error) {
44
- if (error instanceof IntegrationError) {
45
- throw error;
46
- }
47
- throw new IntegrationError(this.config.name, operation, error);
48
- }
49
- }
50
- async putRecord(params, metadata) {
51
- const put = {
52
- data: params.data,
53
- partitionKey: params.partitionKey,
54
- };
55
- if (params.streamIdentifierType) {
56
- put.streamIdentifierType = params.streamIdentifierType;
57
- }
58
- if (params.streamName) {
59
- put.streamName = params.streamName;
60
- }
61
- if (params.streamArn) {
62
- put.streamArn = params.streamArn;
63
- }
64
- return this.exec({
65
- operationType: OPERATION_TYPE.PUT,
66
- put,
67
- }, "putRecord", metadata);
68
- }
69
- async getRecords(params, metadata) {
70
- const get = {
71
- shardId: params.shardId,
72
- shardIteratorType: params.shardIteratorType,
73
- };
74
- if (params.limit !== undefined) {
75
- get.limit = params.limit;
76
- }
77
- if (params.pollingCooldownMs !== undefined) {
78
- get.pollingCooldownMs = params.pollingCooldownMs;
79
- }
80
- if (params.startingSequenceNumber) {
81
- get.startingSequenceNumber = params.startingSequenceNumber;
82
- }
83
- if (params.timestamp) {
84
- get.timestamp = params.timestamp;
85
- }
86
- if (params.streamIdentifierType) {
87
- get.streamIdentifierType = params.streamIdentifierType;
88
- }
89
- if (params.streamName) {
90
- get.streamName = params.streamName;
91
- }
92
- if (params.streamArn) {
93
- get.streamArn = params.streamArn;
94
- }
95
- return this.exec({
96
- operationType: OPERATION_TYPE.GET,
97
- get,
98
- }, "getRecords", metadata);
99
- }
100
- }
101
- //# sourceMappingURL=client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/integrations/kinesis/client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAS3D;;GAEG;AACH,MAAM,cAAc,GAAG;IACrB,GAAG,EAAE,oBAAoB;IACzB,GAAG,EAAE,oBAAoB;CACjB,CAAC;AAEX;;;;;;;GAOG;AACH,MAAM,OAAO,iBAAiB;IACnB,MAAM,CAAoB;IAClB,YAAY,CAAgB;IAE7C,YAAY,MAAyB,EAAE,YAA2B;QAChE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;IAC1B,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;IAC9B,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,IAAI,CAChB,OAAgC,EAChC,SAAiB,EACjB,QAAwB;QAExB,IAAI,CAAC;YACH,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;QAC/D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,YAAY,gBAAgB,EAAE,CAAC;gBACtC,MAAM,KAAK,CAAC;YACd,CAAC;YAED,MAAM,IAAI,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IAED,KAAK,CAAC,SAAS,CACb,MAAwB,EACxB,QAAwB;QAExB,MAAM,GAAG,GAA4B;YACnC,IA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AC,oBAAoB,GAAG,MAAM,CAAC,oBAAoB,CAAC;QACzD,CAAC;QAED,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;YACtB,GAAG,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QACrC,CAAC;QAED,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;YACrB,GAAG,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;QACnC,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CACd;YACE,aAAa,EAAE,cAAc,CAAC,GAAG;YACjC,GAAG;SACJ,EACD,YAAY,EACZ,QAAQ,CACT,CAAC;IACJ,CAAC;CACF"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Kinesis integration client.
3
- *
4
- * @module
5
- */
6
- export type { KinesisClient, KinesisPutParams, KinesisGetParams, KinesisStreamIdentifier, KinesisShardIteratorType, } from "./types.js";
7
- export { KinesisClientImpl } from "./client.js";
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/kinesis/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Kinesis integration client.
3
- *
4
- * @module
5
- */
6
- export { KinesisClientImpl } from "./client.js";
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/kinesis/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC"}