@superblocksteam/sdk-api 2.0.141-next.0 → 2.0.141-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.
- package/dist/integrations/postgres/client.d.ts +0 -7
- package/dist/integrations/postgres/client.d.ts.map +1 -1
- package/dist/integrations/slack/types.d.ts +2 -2
- package/dist/integrations/slack/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/integrations/postgres/client.ts +1 -1
- package/src/integrations/slack/types.ts +2 -2
|
@@ -4,17 +4,10 @@
|
|
|
4
4
|
* Uses the proto-generated Plugin type from @superblocksteam/types
|
|
5
5
|
* for type-safe request building.
|
|
6
6
|
*/
|
|
7
|
-
import type { PartialMessage } from "@bufbuild/protobuf";
|
|
8
7
|
import type { z } from "zod";
|
|
9
|
-
import type { Plugin as PostgresPlugin } from "@superblocksteam/types/dist/src/plugins/postgresql/v1/plugin_pb";
|
|
10
8
|
import type { QueryExecutor, TraceMetadata } from "../registry.js";
|
|
11
9
|
import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
|
|
12
10
|
import type { PostgresClient } from "./types.js";
|
|
13
|
-
/**
|
|
14
|
-
* PostgreSQL request type derived from proto definition.
|
|
15
|
-
* Using PartialMessage allows optional fields.
|
|
16
|
-
*/
|
|
17
|
-
export type PostgresRequest = PartialMessage<PostgresPlugin>;
|
|
18
11
|
/**
|
|
19
12
|
* Internal implementation of PostgresClient.
|
|
20
13
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/integrations/postgres/client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/integrations/postgres/client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAM7B,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAOjD;;;;;;GAMG;AACH,qBAAa,kBACX,YAAW,cAAc,EAAE,qBAAqB;IAEhD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IAEnC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAgB;gBAEjC,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAE,aAAa;IAOlE;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,YAAY;IASd,KAAK,CAAC,CAAC,EACX,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;IA8CT,OAAO,CACX,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,OAAO,EAAE,EAClB,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;CAuBjC"}
|
|
@@ -52,7 +52,7 @@ export declare const SlackSuccessEnvelopeSchema: z.ZodObject<{
|
|
|
52
52
|
* The `ok` field belongs to the Slack envelope and is injected by the SDK.
|
|
53
53
|
*/
|
|
54
54
|
type SlackSuccessSchemaHasExplicitOkKey<TSchema extends z.AnyZodObject> = TSchema extends z.ZodObject<infer TShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown> ? "ok" extends keyof TShape ? true : false : false;
|
|
55
|
-
|
|
55
|
+
type SlackSuccessSchema<TSchema extends z.AnyZodObject> = SlackSuccessSchemaHasExplicitOkKey<TSchema> extends true ? never : TSchema;
|
|
56
56
|
/**
|
|
57
57
|
* Schema configuration for Slack API requests.
|
|
58
58
|
*
|
|
@@ -63,7 +63,7 @@ export interface SlackApiRequestSchema<TBody, TResponseSchema extends z.AnyZodOb
|
|
|
63
63
|
response: SlackSuccessSchema<TResponseSchema>;
|
|
64
64
|
}
|
|
65
65
|
/** Slack success response shape with injected discriminant. */
|
|
66
|
-
|
|
66
|
+
type SlackSuccessResponse<T extends Record<string, unknown>> = T & {
|
|
67
67
|
readonly ok: true;
|
|
68
68
|
};
|
|
69
69
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/integrations/slack/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEzE;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAK3B,CAAC;AAEH,uEAAuE;AACvE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAElE;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B;;;;;;EAErC,CAAC;AAEH;;;;GAIG;AACH,KAAK,kCAAkC,CAAC,OAAO,SAAS,CAAC,CAAC,YAAY,IACpE,OAAO,SAAS,CAAC,CAAC,SAAS,CACzB,MAAM,MAAM,EACZ,CAAC,CAAC,gBAAgB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,EACP,OAAO,CACR,GACG,IAAI,SAAS,MAAM,MAAM,GACvB,IAAI,GACJ,KAAK,GACP,KAAK,CAAC;AAEZ,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/integ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nB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACvD,oBAAoB,CAAC,CAAC,CAAC,GACvB,kBAAkB,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,WAAW,WAAY,SAAQ,qBAAqB;IACxD;;;;;;;;;;;;;;;;OAgBG;IACH,UAAU,CAAC,KAAK,EAAE,eAAe,SAAS,CAAC,CAAC,YAAY,EACtD,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAAC,EACjC,MAAM,EAAE,qBAAqB,CAAC,KAAK,EAAE,eAAe,CAAC,EACrD,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CACtD"}
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@ import type { PostgresClient } from "./types.js";
|
|
|
20
20
|
* PostgreSQL request type derived from proto definition.
|
|
21
21
|
* Using PartialMessage allows optional fields.
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
type PostgresRequest = PartialMessage<PostgresPlugin>;
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Internal implementation of PostgresClient.
|
|
@@ -56,7 +56,7 @@ type SlackSuccessSchemaHasExplicitOkKey<TSchema extends z.AnyZodObject> =
|
|
|
56
56
|
: false
|
|
57
57
|
: false;
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
type SlackSuccessSchema<TSchema extends z.AnyZodObject> =
|
|
60
60
|
SlackSuccessSchemaHasExplicitOkKey<TSchema> extends true ? never : TSchema;
|
|
61
61
|
|
|
62
62
|
/**
|
|
@@ -73,7 +73,7 @@ export interface SlackApiRequestSchema<
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/** Slack success response shape with injected discriminant. */
|
|
76
|
-
|
|
76
|
+
type SlackSuccessResponse<T extends Record<string, unknown>> = T & {
|
|
77
77
|
readonly ok: true;
|
|
78
78
|
};
|
|
79
79
|
|