@hookdeck/outpost-sdk 0.1.1 → 0.2.0

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 (44) hide show
  1. package/bin/mcp-server.js +21 -18
  2. package/bin/mcp-server.js.map +9 -9
  3. package/dist/commonjs/funcs/publishEvent.js +2 -1
  4. package/dist/commonjs/funcs/publishEvent.js.map +1 -1
  5. package/dist/commonjs/funcs/tenantsUpsert.js +1 -1
  6. package/dist/commonjs/funcs/tenantsUpsert.js.map +1 -1
  7. package/dist/commonjs/lib/config.d.ts +3 -3
  8. package/dist/commonjs/lib/config.js +3 -3
  9. package/dist/commonjs/lib/config.js.map +1 -1
  10. package/dist/commonjs/mcp-server/cli/start/impl.js +4 -4
  11. package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
  12. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  13. package/dist/commonjs/mcp-server/server.js +1 -1
  14. package/dist/commonjs/models/components/publishrequest.d.ts +12 -7
  15. package/dist/commonjs/models/components/publishrequest.d.ts.map +1 -1
  16. package/dist/commonjs/models/components/publishrequest.js +8 -6
  17. package/dist/commonjs/models/components/publishrequest.js.map +1 -1
  18. package/dist/esm/funcs/publishEvent.js +2 -1
  19. package/dist/esm/funcs/publishEvent.js.map +1 -1
  20. package/dist/esm/funcs/tenantsUpsert.js +1 -1
  21. package/dist/esm/funcs/tenantsUpsert.js.map +1 -1
  22. package/dist/esm/lib/config.d.ts +3 -3
  23. package/dist/esm/lib/config.js +3 -3
  24. package/dist/esm/lib/config.js.map +1 -1
  25. package/dist/esm/mcp-server/cli/start/impl.js +4 -4
  26. package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
  27. package/dist/esm/mcp-server/mcp-server.js +1 -1
  28. package/dist/esm/mcp-server/server.js +1 -1
  29. package/dist/esm/models/components/publishrequest.d.ts +12 -7
  30. package/dist/esm/models/components/publishrequest.d.ts.map +1 -1
  31. package/dist/esm/models/components/publishrequest.js +8 -6
  32. package/dist/esm/models/components/publishrequest.js.map +1 -1
  33. package/docs/sdks/destinations/README.md +10 -14
  34. package/docs/sdks/publish/README.md +2 -2
  35. package/docs/sdks/schemas/README.md +2 -2
  36. package/jsr.json +1 -1
  37. package/package.json +6 -1
  38. package/src/funcs/publishEvent.ts +2 -1
  39. package/src/funcs/tenantsUpsert.ts +1 -1
  40. package/src/lib/config.ts +3 -3
  41. package/src/mcp-server/cli/start/impl.ts +4 -4
  42. package/src/mcp-server/mcp-server.ts +1 -1
  43. package/src/mcp-server/server.ts +1 -1
  44. package/src/models/components/publishrequest.ts +20 -13
package/bin/mcp-server.js CHANGED
@@ -34190,9 +34190,9 @@ var init_config = __esm(() => {
34190
34190
  SDK_METADATA = {
34191
34191
  language: "typescript",
34192
34192
  openapiDocVersion: "0.0.1",
34193
- sdkVersion: "0.1.1",
34194
- genVersion: "2.598.22",
34195
- userAgent: "speakeasy-sdk/typescript 0.1.1 2.598.22 0.0.1 @hookdeck/outpost-sdk"
34193
+ sdkVersion: "0.2.0",
34194
+ genVersion: "2.605.0",
34195
+ userAgent: "speakeasy-sdk/typescript 0.2.0 2.605.0 0.0.1 @hookdeck/outpost-sdk"
34196
34196
  };
34197
34197
  });
34198
34198
 
@@ -36762,10 +36762,11 @@ var init_publishrequest = __esm(() => {
36762
36762
  init_lib();
36763
36763
  init_primitives();
36764
36764
  PublishRequest$inboundSchema = objectType({
36765
- tenant_id: stringType(),
36765
+ id: stringType().optional(),
36766
+ tenant_id: stringType().optional(),
36766
36767
  destination_id: stringType().optional(),
36767
- topic: stringType(),
36768
- eligible_for_retry: booleanType(),
36768
+ topic: stringType().optional(),
36769
+ eligible_for_retry: booleanType().optional(),
36769
36770
  metadata: recordType(stringType()).optional(),
36770
36771
  data: recordType(anyType())
36771
36772
  }).transform((v2) => {
@@ -36776,10 +36777,11 @@ var init_publishrequest = __esm(() => {
36776
36777
  });
36777
36778
  });
36778
36779
  PublishRequest$outboundSchema = objectType({
36779
- tenantId: stringType(),
36780
+ id: stringType().optional(),
36781
+ tenantId: stringType().optional(),
36780
36782
  destinationId: stringType().optional(),
36781
- topic: stringType(),
36782
- eligibleForRetry: booleanType(),
36783
+ topic: stringType().optional(),
36784
+ eligibleForRetry: booleanType().optional(),
36783
36785
  metadata: recordType(stringType()).optional(),
36784
36786
  data: recordType(anyType())
36785
36787
  }).transform((v2) => {
@@ -40254,6 +40256,7 @@ async function $do15(client, request, options) {
40254
40256
  "404",
40255
40257
  "407",
40256
40258
  "408",
40259
+ "409",
40257
40260
  "413",
40258
40261
  "414",
40259
40262
  "415",
@@ -40284,7 +40287,7 @@ async function $do15(client, request, options) {
40284
40287
  const responseFields = {
40285
40288
  HttpMeta: { Response: response, Request: req }
40286
40289
  };
40287
- const [result] = await match(nil(202, voidType()), jsonErr(404, NotFoundError$inboundSchema), jsonErr([403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([400, 401, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
40290
+ const [result] = await match(nil(202, voidType()), jsonErr(404, NotFoundError$inboundSchema), jsonErr([403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([400, 401, 409, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
40288
40291
  if (!result.ok) {
40289
40292
  return [result, { status: "complete", request: req, response }];
40290
40293
  }
@@ -41439,7 +41442,7 @@ async function $do24(client, request, options) {
41439
41442
  const responseFields = {
41440
41443
  HttpMeta: { Response: response, Request: req }
41441
41444
  };
41442
- const [result] = await match(json(200, Tenant$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41445
+ const [result] = await match(json([200, 201], Tenant$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41443
41446
  if (!result.ok) {
41444
41447
  return [result, { status: "complete", request: req, response }];
41445
41448
  }
@@ -41731,7 +41734,7 @@ Returns a list of available event topics configured in the Outpost instance.`,
41731
41734
  function createMCPServer(deps) {
41732
41735
  const server = new McpServer({
41733
41736
  name: "Outpost",
41734
- version: "0.1.1"
41737
+ version: "0.2.0"
41735
41738
  });
41736
41739
  const client = new OutpostCore({
41737
41740
  security: deps.security,
@@ -41835,8 +41838,8 @@ async function startStdio(flags) {
41835
41838
  allowedTools: flags.tool,
41836
41839
  scopes: flags.scope,
41837
41840
  security: {
41838
- adminApiKey: flags["admin-api-key"],
41839
- tenantJwt: flags["tenant-jwt"]
41841
+ adminApiKey: flags["admin-api-key"] ?? "",
41842
+ tenantJwt: flags["tenant-jwt"] ?? ""
41840
41843
  },
41841
41844
  tenantId: flags["tenant-id"],
41842
41845
  serverURL: flags["server-url"],
@@ -41858,8 +41861,8 @@ async function startSSE(flags) {
41858
41861
  allowedTools: flags.tool,
41859
41862
  scopes: flags.scope,
41860
41863
  security: {
41861
- adminApiKey: flags["admin-api-key"],
41862
- tenantJwt: flags["tenant-jwt"]
41864
+ adminApiKey: flags["admin-api-key"] ?? "",
41865
+ tenantJwt: flags["tenant-jwt"] ?? ""
41863
41866
  },
41864
41867
  tenantId: flags["tenant-id"],
41865
41868
  serverURL: flags["server-url"],
@@ -43019,7 +43022,7 @@ var routes = an({
43019
43022
  var app = He(routes, {
43020
43023
  name: "mcp",
43021
43024
  versionInfo: {
43022
- currentVersion: "0.1.1"
43025
+ currentVersion: "0.2.0"
43023
43026
  }
43024
43027
  });
43025
43028
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -43027,5 +43030,5 @@ export {
43027
43030
  app
43028
43031
  };
43029
43032
 
43030
- //# debugId=DFF13AA8296A266964756E2164756E21
43033
+ //# debugId=EB779BEE8A1141C064756E2164756E21
43031
43034
  //# sourceMappingURL=mcp-server.js.map