@hookdeck/outpost-sdk 0.9.2 → 0.10.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.
- package/bin/mcp-server.js +65 -33
- package/bin/mcp-server.js.map +18 -18
- package/dist/commonjs/funcs/attemptsList.d.ts +2 -0
- package/dist/commonjs/funcs/attemptsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/attemptsList.js +3 -1
- package/dist/commonjs/funcs/attemptsList.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.d.ts +2 -0
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +4 -1
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/publishEvent.d.ts +2 -0
- package/dist/commonjs/funcs/publishEvent.d.ts.map +1 -1
- package/dist/commonjs/funcs/publishEvent.js +3 -1
- package/dist/commonjs/funcs/publishEvent.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.d.ts +2 -0
- package/dist/commonjs/funcs/tenantsGetPortalUrl.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.js +3 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.d.ts +2 -0
- package/dist/commonjs/funcs/tenantsGetToken.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.js +3 -1
- package/dist/commonjs/funcs/tenantsGetToken.js.map +1 -1
- package/dist/commonjs/funcs/tenantsList.d.ts +2 -0
- package/dist/commonjs/funcs/tenantsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/tenantsList.js +3 -1
- package/dist/commonjs/funcs/tenantsList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/encodings.d.ts +1 -0
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +27 -5
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts +1 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +19 -8
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js.map +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/schemasGetDestinationType.d.ts +1 -0
- package/dist/commonjs/mcp-server/tools/schemasGetDestinationType.d.ts.map +1 -1
- package/dist/commonjs/models/components/destinationschemafield.d.ts +26 -0
- package/dist/commonjs/models/components/destinationschemafield.d.ts.map +1 -1
- package/dist/commonjs/models/components/destinationschemafield.js +25 -1
- package/dist/commonjs/models/components/destinationschemafield.js.map +1 -1
- package/dist/commonjs/models/components/event.d.ts +5 -2
- package/dist/commonjs/models/components/event.d.ts.map +1 -1
- package/dist/commonjs/models/components/event.js +4 -4
- package/dist/commonjs/models/components/event.js.map +1 -1
- package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts +1 -0
- package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getdestinationtypeschema.js +1 -0
- package/dist/commonjs/models/operations/getdestinationtypeschema.js.map +1 -1
- package/dist/commonjs/models/operations/listattempts.d.ts +6 -6
- package/dist/commonjs/models/operations/listattempts.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listattempts.js +9 -9
- package/dist/commonjs/models/operations/listattempts.js.map +1 -1
- package/dist/commonjs/models/operations/listevents.d.ts +17 -0
- package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listevents.js +17 -1
- package/dist/commonjs/models/operations/listevents.js.map +1 -1
- package/dist/esm/funcs/attemptsList.d.ts +2 -0
- package/dist/esm/funcs/attemptsList.d.ts.map +1 -1
- package/dist/esm/funcs/attemptsList.js +3 -1
- package/dist/esm/funcs/attemptsList.js.map +1 -1
- package/dist/esm/funcs/eventsList.d.ts +2 -0
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +4 -1
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/publishEvent.d.ts +2 -0
- package/dist/esm/funcs/publishEvent.d.ts.map +1 -1
- package/dist/esm/funcs/publishEvent.js +3 -1
- package/dist/esm/funcs/publishEvent.js.map +1 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.d.ts +2 -0
- package/dist/esm/funcs/tenantsGetPortalUrl.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.js +3 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/esm/funcs/tenantsGetToken.d.ts +2 -0
- package/dist/esm/funcs/tenantsGetToken.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsGetToken.js +3 -1
- package/dist/esm/funcs/tenantsGetToken.js.map +1 -1
- package/dist/esm/funcs/tenantsList.d.ts +2 -0
- package/dist/esm/funcs/tenantsList.d.ts.map +1 -1
- package/dist/esm/funcs/tenantsList.js +3 -1
- package/dist/esm/funcs/tenantsList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/encodings.d.ts +1 -0
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +26 -5
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/lib/security.d.ts +1 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +19 -8
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/mcp-server.js.map +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/schemasGetDestinationType.d.ts +1 -0
- package/dist/esm/mcp-server/tools/schemasGetDestinationType.d.ts.map +1 -1
- package/dist/esm/models/components/destinationschemafield.d.ts +26 -0
- package/dist/esm/models/components/destinationschemafield.d.ts.map +1 -1
- package/dist/esm/models/components/destinationschemafield.js +22 -0
- package/dist/esm/models/components/destinationschemafield.js.map +1 -1
- package/dist/esm/models/components/event.d.ts +5 -2
- package/dist/esm/models/components/event.d.ts.map +1 -1
- package/dist/esm/models/components/event.js +4 -4
- package/dist/esm/models/components/event.js.map +1 -1
- package/dist/esm/models/operations/getdestinationtypeschema.d.ts +1 -0
- package/dist/esm/models/operations/getdestinationtypeschema.d.ts.map +1 -1
- package/dist/esm/models/operations/getdestinationtypeschema.js +1 -0
- package/dist/esm/models/operations/getdestinationtypeschema.js.map +1 -1
- package/dist/esm/models/operations/listattempts.d.ts +6 -6
- package/dist/esm/models/operations/listattempts.d.ts.map +1 -1
- package/dist/esm/models/operations/listattempts.js +6 -6
- package/dist/esm/models/operations/listattempts.js.map +1 -1
- package/dist/esm/models/operations/listevents.d.ts +17 -0
- package/dist/esm/models/operations/listevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listevents.js +14 -0
- package/dist/esm/models/operations/listevents.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/attemptsList.ts +3 -1
- package/src/funcs/eventsList.ts +4 -1
- package/src/funcs/publishEvent.ts +3 -1
- package/src/funcs/tenantsGetPortalUrl.ts +3 -1
- package/src/funcs/tenantsGetToken.ts +3 -1
- package/src/funcs/tenantsList.ts +3 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +32 -4
- package/src/lib/security.ts +14 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/destinationschemafield.ts +55 -0
- package/src/models/components/event.ts +9 -6
- package/src/models/operations/getdestinationtypeschema.ts +1 -0
- package/src/models/operations/listattempts.ts +17 -13
- package/src/models/operations/listevents.ts +47 -0
|
@@ -15,6 +15,10 @@ export type ListEventsId = string | Array<string>;
|
|
|
15
15
|
* If not provided with API key auth, returns events from all tenants.
|
|
16
16
|
*/
|
|
17
17
|
export type ListEventsTenantId = string | Array<string>;
|
|
18
|
+
/**
|
|
19
|
+
* Filter events by matched destination ID(s). Returns events that were routed to the specified destination(s). Use bracket notation for multiple values (e.g., `destination_id[0]=d1&destination_id[1]=d2`).
|
|
20
|
+
*/
|
|
21
|
+
export type ListEventsDestinationId = string | Array<string>;
|
|
18
22
|
/**
|
|
19
23
|
* Filter events by topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`).
|
|
20
24
|
*/
|
|
@@ -53,6 +57,10 @@ export type ListEventsRequest = {
|
|
|
53
57
|
* If not provided with API key auth, returns events from all tenants.
|
|
54
58
|
*/
|
|
55
59
|
tenantId?: string | Array<string> | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Filter events by matched destination ID(s). Returns events that were routed to the specified destination(s). Use bracket notation for multiple values (e.g., `destination_id[0]=d1&destination_id[1]=d2`).
|
|
62
|
+
*/
|
|
63
|
+
destinationId?: string | Array<string> | undefined;
|
|
56
64
|
/**
|
|
57
65
|
* Filter events by topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`).
|
|
58
66
|
*/
|
|
@@ -114,6 +122,14 @@ export declare const ListEventsTenantId$outboundSchema: z.ZodType<ListEventsTena
|
|
|
114
122
|
export declare function listEventsTenantIdToJSON(listEventsTenantId: ListEventsTenantId): string;
|
|
115
123
|
export declare function listEventsTenantIdFromJSON(jsonString: string): SafeParseResult<ListEventsTenantId, SDKValidationError>;
|
|
116
124
|
/** @internal */
|
|
125
|
+
export declare const ListEventsDestinationId$inboundSchema: z.ZodType<ListEventsDestinationId, z.ZodTypeDef, unknown>;
|
|
126
|
+
/** @internal */
|
|
127
|
+
export type ListEventsDestinationId$Outbound = string | Array<string>;
|
|
128
|
+
/** @internal */
|
|
129
|
+
export declare const ListEventsDestinationId$outboundSchema: z.ZodType<ListEventsDestinationId$Outbound, z.ZodTypeDef, ListEventsDestinationId>;
|
|
130
|
+
export declare function listEventsDestinationIdToJSON(listEventsDestinationId: ListEventsDestinationId): string;
|
|
131
|
+
export declare function listEventsDestinationIdFromJSON(jsonString: string): SafeParseResult<ListEventsDestinationId, SDKValidationError>;
|
|
132
|
+
/** @internal */
|
|
117
133
|
export declare const ListEventsTopic$inboundSchema: z.ZodType<ListEventsTopic, z.ZodTypeDef, unknown>;
|
|
118
134
|
/** @internal */
|
|
119
135
|
export type ListEventsTopic$Outbound = string | Array<string>;
|
|
@@ -135,6 +151,7 @@ export declare const ListEventsRequest$inboundSchema: z.ZodType<ListEventsReques
|
|
|
135
151
|
export type ListEventsRequest$Outbound = {
|
|
136
152
|
id?: string | Array<string> | undefined;
|
|
137
153
|
tenant_id?: string | Array<string> | undefined;
|
|
154
|
+
destination_id?: string | Array<string> | undefined;
|
|
138
155
|
topic?: string | Array<string> | undefined;
|
|
139
156
|
"time[gte]"?: string | undefined;
|
|
140
157
|
"time[lte]"?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listevents.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/listevents.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,MA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AAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CACqC,CAAC;AAC/C,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAE9D,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAC6B,CAAC;AAE/C,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AACD,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD;AAED,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,iBAAiB,CACS,CAAC;AACpC,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,aAAa,CAC5D,OAAO,iBAAiB,CACS,CAAC;AAEpC,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CACvD,OAAO,aAAa,CACS,CAAC;AAChC,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,aAAa,CACxD,OAAO,aAAa,CACS,CAAC;AAEhC,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"listevents.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/listevents.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,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AC;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAyBjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AACD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD;AAED,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,EAAE,UAAU,CAAC,6BAA6B,CAAC;CAClD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAOlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AACD,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -39,6 +39,16 @@ export function listEventsTenantIdFromJSON(jsonString) {
|
|
|
39
39
|
return safeParse(jsonString, (x) => ListEventsTenantId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListEventsTenantId' from JSON`);
|
|
40
40
|
}
|
|
41
41
|
/** @internal */
|
|
42
|
+
export const ListEventsDestinationId$inboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const ListEventsDestinationId$outboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
45
|
+
export function listEventsDestinationIdToJSON(listEventsDestinationId) {
|
|
46
|
+
return JSON.stringify(ListEventsDestinationId$outboundSchema.parse(listEventsDestinationId));
|
|
47
|
+
}
|
|
48
|
+
export function listEventsDestinationIdFromJSON(jsonString) {
|
|
49
|
+
return safeParse(jsonString, (x) => ListEventsDestinationId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListEventsDestinationId' from JSON`);
|
|
50
|
+
}
|
|
51
|
+
/** @internal */
|
|
42
52
|
export const ListEventsTopic$inboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
43
53
|
/** @internal */
|
|
44
54
|
export const ListEventsTopic$outboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
@@ -60,6 +70,7 @@ export const ListEventsDir$outboundSchema = ListEventsDir$inboundSchema;
|
|
|
60
70
|
export const ListEventsRequest$inboundSchema = z.object({
|
|
61
71
|
id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
62
72
|
tenant_id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
73
|
+
destination_id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
63
74
|
topic: z.union([z.string(), z.array(z.string())]).optional(),
|
|
64
75
|
"time[gte]": z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
65
76
|
.optional(),
|
|
@@ -77,6 +88,7 @@ export const ListEventsRequest$inboundSchema = z.object({
|
|
|
77
88
|
}).transform((v) => {
|
|
78
89
|
return remap$(v, {
|
|
79
90
|
"tenant_id": "tenantId",
|
|
91
|
+
"destination_id": "destinationId",
|
|
80
92
|
"time[gte]": "timeGte",
|
|
81
93
|
"time[lte]": "timeLte",
|
|
82
94
|
"time[gt]": "timeGt",
|
|
@@ -88,6 +100,7 @@ export const ListEventsRequest$inboundSchema = z.object({
|
|
|
88
100
|
export const ListEventsRequest$outboundSchema = z.object({
|
|
89
101
|
id: z.union([z.string(), z.array(z.string())]).optional(),
|
|
90
102
|
tenantId: z.union([z.string(), z.array(z.string())]).optional(),
|
|
103
|
+
destinationId: z.union([z.string(), z.array(z.string())]).optional(),
|
|
91
104
|
topic: z.union([z.string(), z.array(z.string())]).optional(),
|
|
92
105
|
timeGte: z.date().transform(v => v.toISOString()).optional(),
|
|
93
106
|
timeLte: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -101,6 +114,7 @@ export const ListEventsRequest$outboundSchema = z.object({
|
|
|
101
114
|
}).transform((v) => {
|
|
102
115
|
return remap$(v, {
|
|
103
116
|
tenantId: "tenant_id",
|
|
117
|
+
destinationId: "destination_id",
|
|
104
118
|
timeGte: "time[gte]",
|
|
105
119
|
timeLte: "time[lte]",
|
|
106
120
|
timeGt: "time[gt]",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listevents.js","sourceRoot":"","sources":["../../../../src/models/operations/listevents.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"listevents.js","sourceRoot":"","sources":["../../../../src/models/operations/listevents.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AA2BrD;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,MAAM;CACJ,CAAC;AAMX;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG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
package/package.json
CHANGED
|
@@ -40,6 +40,8 @@ import {
|
|
|
40
40
|
*
|
|
41
41
|
* When authenticated with a Tenant JWT, returns only attempts belonging to that tenant.
|
|
42
42
|
* When authenticated with Admin API Key, returns attempts across all tenants. Use `tenant_id` query parameter to filter by tenant.
|
|
43
|
+
*
|
|
44
|
+
* If set, this operation will use {@link Security.apiKey} from the global security.
|
|
43
45
|
*/
|
|
44
46
|
export function attemptsList(
|
|
45
47
|
client: OutpostCore,
|
|
@@ -132,7 +134,7 @@ async function $do(
|
|
|
132
134
|
|
|
133
135
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
134
136
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
135
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
137
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
136
138
|
|
|
137
139
|
const context = {
|
|
138
140
|
options: client._options,
|
package/src/funcs/eventsList.ts
CHANGED
|
@@ -40,6 +40,8 @@ import {
|
|
|
40
40
|
*
|
|
41
41
|
* When authenticated with a Tenant JWT, returns only events belonging to that tenant.
|
|
42
42
|
* When authenticated with Admin API Key, returns events across all tenants. Use `tenant_id` query parameter to filter by tenant.
|
|
43
|
+
*
|
|
44
|
+
* If set, this operation will use {@link Security.apiKey} from the global security.
|
|
43
45
|
*/
|
|
44
46
|
export function eventsList(
|
|
45
47
|
client: OutpostCore,
|
|
@@ -109,6 +111,7 @@ async function $do(
|
|
|
109
111
|
const path = pathToFunc("/events")();
|
|
110
112
|
|
|
111
113
|
const query = encodeFormQuery({
|
|
114
|
+
"destination_id": payload.destination_id,
|
|
112
115
|
"dir": payload.dir,
|
|
113
116
|
"id": payload.id,
|
|
114
117
|
"limit": payload.limit,
|
|
@@ -129,7 +132,7 @@ async function $do(
|
|
|
129
132
|
|
|
130
133
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
131
134
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
132
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
135
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
133
136
|
|
|
134
137
|
const context = {
|
|
135
138
|
options: client._options,
|
|
@@ -30,6 +30,8 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Publishes an event to the specified topic, potentially routed to a specific destination. Requires Admin API Key.
|
|
33
|
+
*
|
|
34
|
+
* If set, this operation will use {@link Security.apiKey} from the global security.
|
|
33
35
|
*/
|
|
34
36
|
export function publishEvent(
|
|
35
37
|
client: OutpostCore,
|
|
@@ -107,7 +109,7 @@ async function $do(
|
|
|
107
109
|
|
|
108
110
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
109
111
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
110
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
112
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
111
113
|
|
|
112
114
|
const context = {
|
|
113
115
|
options: client._options,
|
|
@@ -31,6 +31,8 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Returns a redirect URL containing a JWT to authenticate the user with the portal. Requires Admin API Key.
|
|
34
|
+
*
|
|
35
|
+
* If set, this operation will use {@link Security.apiKey} from the global security.
|
|
34
36
|
*/
|
|
35
37
|
export function tenantsGetPortalUrl(
|
|
36
38
|
client: OutpostCore,
|
|
@@ -119,7 +121,7 @@ async function $do(
|
|
|
119
121
|
|
|
120
122
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
121
123
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
122
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
124
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
123
125
|
|
|
124
126
|
const context = {
|
|
125
127
|
options: client._options,
|
|
@@ -31,6 +31,8 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Returns a JWT token scoped to the tenant for safe browser API calls. Requires Admin API Key.
|
|
34
|
+
*
|
|
35
|
+
* If set, this operation will use {@link Security.apiKey} from the global security.
|
|
34
36
|
*/
|
|
35
37
|
export function tenantsGetToken(
|
|
36
38
|
client: OutpostCore,
|
|
@@ -111,7 +113,7 @@ async function $do(
|
|
|
111
113
|
|
|
112
114
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
113
115
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
114
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
116
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
115
117
|
|
|
116
118
|
const context = {
|
|
117
119
|
options: client._options,
|
package/src/funcs/tenantsList.ts
CHANGED
|
@@ -42,6 +42,8 @@ import {
|
|
|
42
42
|
* If RediSearch is not available, this endpoint returns `501 Not Implemented`.
|
|
43
43
|
*
|
|
44
44
|
* When authenticated with a Tenant JWT, returns only the authenticated tenant. Pagination is not used in this case.
|
|
45
|
+
*
|
|
46
|
+
* If set, this operation will use {@link Security.apiKey} from the global security.
|
|
45
47
|
*/
|
|
46
48
|
export function tenantsList(
|
|
47
49
|
client: OutpostCore,
|
|
@@ -128,7 +130,7 @@ async function $do(
|
|
|
128
130
|
|
|
129
131
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
130
132
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
131
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
133
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
132
134
|
|
|
133
135
|
const context = {
|
|
134
136
|
options: client._options,
|
package/src/lib/config.ts
CHANGED
|
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "0.0.1",
|
|
68
|
-
sdkVersion: "0.
|
|
69
|
-
genVersion: "2.
|
|
68
|
+
sdkVersion: "0.10.0",
|
|
69
|
+
genVersion: "2.879.11",
|
|
70
70
|
userAgent:
|
|
71
|
-
"speakeasy-sdk/typescript 0.
|
|
71
|
+
"speakeasy-sdk/typescript 0.10.0 2.879.11 0.0.1 @hookdeck/outpost-sdk",
|
|
72
72
|
} as const;
|
package/src/lib/encodings.ts
CHANGED
|
@@ -479,6 +479,23 @@ export const encodeSpaceDelimitedQuery = queryEncoder(encodeSpaceDelimited);
|
|
|
479
479
|
export const encodePipeDelimitedQuery = queryEncoder(encodePipeDelimited);
|
|
480
480
|
export const encodeDeepObjectQuery = queryEncoder(encodeDeepObject);
|
|
481
481
|
|
|
482
|
+
function isBlobLike(val: unknown): val is Blob {
|
|
483
|
+
if (val instanceof Blob) {
|
|
484
|
+
return true;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) {
|
|
488
|
+
return false;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
const tag = val[Symbol.toStringTag];
|
|
492
|
+
if (tag !== "Blob" && tag !== "File") {
|
|
493
|
+
return false;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
return "stream" in val && typeof val.stream === "function";
|
|
497
|
+
}
|
|
498
|
+
|
|
482
499
|
export function appendForm(
|
|
483
500
|
fd: FormData,
|
|
484
501
|
key: string,
|
|
@@ -487,11 +504,22 @@ export function appendForm(
|
|
|
487
504
|
): void {
|
|
488
505
|
if (value == null) {
|
|
489
506
|
return;
|
|
490
|
-
} else if (value
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
507
|
+
} else if (isBlobLike(value)) {
|
|
508
|
+
if (fileName) {
|
|
509
|
+
fd.append(key, value as Blob, fileName);
|
|
510
|
+
} else {
|
|
511
|
+
fd.append(key, value as Blob);
|
|
512
|
+
}
|
|
494
513
|
} else {
|
|
495
514
|
fd.append(key, String(value));
|
|
496
515
|
}
|
|
497
516
|
}
|
|
517
|
+
|
|
518
|
+
export async function normalizeBlob(
|
|
519
|
+
value: Pick<Blob, "arrayBuffer" | "type">,
|
|
520
|
+
): Promise<Blob> {
|
|
521
|
+
if (value instanceof Blob) {
|
|
522
|
+
return value;
|
|
523
|
+
}
|
|
524
|
+
return new Blob([await value.arrayBuffer()], { type: value.type });
|
|
525
|
+
}
|
package/src/lib/security.ts
CHANGED
|
@@ -239,8 +239,9 @@ function applyBearer(
|
|
|
239
239
|
|
|
240
240
|
export function resolveGlobalSecurity(
|
|
241
241
|
security: Partial<components.Security> | null | undefined,
|
|
242
|
+
allowedFields?: number[],
|
|
242
243
|
): SecurityState | null {
|
|
243
|
-
|
|
244
|
+
let inputs: SecurityInput[][] = [
|
|
244
245
|
[
|
|
245
246
|
{
|
|
246
247
|
fieldName: "Authorization",
|
|
@@ -248,7 +249,18 @@ export function resolveGlobalSecurity(
|
|
|
248
249
|
value: security?.apiKey,
|
|
249
250
|
},
|
|
250
251
|
],
|
|
251
|
-
|
|
252
|
+
];
|
|
253
|
+
|
|
254
|
+
if (allowedFields) {
|
|
255
|
+
inputs = allowedFields.map((i) => {
|
|
256
|
+
if (i < 0 || i >= inputs.length) {
|
|
257
|
+
throw new RangeError(`invalid allowedFields index ${i}`);
|
|
258
|
+
}
|
|
259
|
+
return inputs[i]!;
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
return resolveSecurity(...inputs);
|
|
252
264
|
}
|
|
253
265
|
|
|
254
266
|
export async function extractSecurity<
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -12,10 +12,20 @@ export const TypeEnum = {
|
|
|
12
12
|
Text: "text",
|
|
13
13
|
Checkbox: "checkbox",
|
|
14
14
|
KeyValueMap: "key_value_map",
|
|
15
|
+
Select: "select",
|
|
15
16
|
} as const;
|
|
16
17
|
export type TypeEnum = ClosedEnum<typeof TypeEnum>;
|
|
17
18
|
|
|
19
|
+
export type Option = {
|
|
20
|
+
label: string;
|
|
21
|
+
value: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
18
24
|
export type DestinationSchemaField = {
|
|
25
|
+
/**
|
|
26
|
+
* The config key used to store and retrieve the field value. Matches the key in the destination's config or credentials object.
|
|
27
|
+
*/
|
|
28
|
+
key: string;
|
|
19
29
|
type: TypeEnum;
|
|
20
30
|
label?: string | undefined;
|
|
21
31
|
description?: string | undefined;
|
|
@@ -40,6 +50,10 @@ export type DestinationSchemaField = {
|
|
|
40
50
|
* Regex pattern for validation (compatible with HTML5 pattern attribute).
|
|
41
51
|
*/
|
|
42
52
|
pattern?: string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Available options for select fields.
|
|
55
|
+
*/
|
|
56
|
+
options?: Array<Option> | undefined;
|
|
43
57
|
};
|
|
44
58
|
|
|
45
59
|
/** @internal */
|
|
@@ -49,12 +63,48 @@ export const TypeEnum$inboundSchema: z.ZodNativeEnum<typeof TypeEnum> = z
|
|
|
49
63
|
export const TypeEnum$outboundSchema: z.ZodNativeEnum<typeof TypeEnum> =
|
|
50
64
|
TypeEnum$inboundSchema;
|
|
51
65
|
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const Option$inboundSchema: z.ZodType<Option, z.ZodTypeDef, unknown> = z
|
|
68
|
+
.object({
|
|
69
|
+
label: z.string(),
|
|
70
|
+
value: z.string(),
|
|
71
|
+
});
|
|
72
|
+
/** @internal */
|
|
73
|
+
export type Option$Outbound = {
|
|
74
|
+
label: string;
|
|
75
|
+
value: string;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const Option$outboundSchema: z.ZodType<
|
|
80
|
+
Option$Outbound,
|
|
81
|
+
z.ZodTypeDef,
|
|
82
|
+
Option
|
|
83
|
+
> = z.object({
|
|
84
|
+
label: z.string(),
|
|
85
|
+
value: z.string(),
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
export function optionToJSON(option: Option): string {
|
|
89
|
+
return JSON.stringify(Option$outboundSchema.parse(option));
|
|
90
|
+
}
|
|
91
|
+
export function optionFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<Option, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => Option$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'Option' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
52
101
|
/** @internal */
|
|
53
102
|
export const DestinationSchemaField$inboundSchema: z.ZodType<
|
|
54
103
|
DestinationSchemaField,
|
|
55
104
|
z.ZodTypeDef,
|
|
56
105
|
unknown
|
|
57
106
|
> = z.object({
|
|
107
|
+
key: z.string(),
|
|
58
108
|
type: TypeEnum$inboundSchema,
|
|
59
109
|
label: z.string().optional(),
|
|
60
110
|
description: z.string().optional(),
|
|
@@ -64,9 +114,11 @@ export const DestinationSchemaField$inboundSchema: z.ZodType<
|
|
|
64
114
|
minlength: z.number().int().optional(),
|
|
65
115
|
maxlength: z.number().int().optional(),
|
|
66
116
|
pattern: z.string().optional(),
|
|
117
|
+
options: z.array(z.lazy(() => Option$inboundSchema)).optional(),
|
|
67
118
|
});
|
|
68
119
|
/** @internal */
|
|
69
120
|
export type DestinationSchemaField$Outbound = {
|
|
121
|
+
key: string;
|
|
70
122
|
type: string;
|
|
71
123
|
label?: string | undefined;
|
|
72
124
|
description?: string | undefined;
|
|
@@ -76,6 +128,7 @@ export type DestinationSchemaField$Outbound = {
|
|
|
76
128
|
minlength?: number | undefined;
|
|
77
129
|
maxlength?: number | undefined;
|
|
78
130
|
pattern?: string | undefined;
|
|
131
|
+
options?: Array<Option$Outbound> | undefined;
|
|
79
132
|
};
|
|
80
133
|
|
|
81
134
|
/** @internal */
|
|
@@ -84,6 +137,7 @@ export const DestinationSchemaField$outboundSchema: z.ZodType<
|
|
|
84
137
|
z.ZodTypeDef,
|
|
85
138
|
DestinationSchemaField
|
|
86
139
|
> = z.object({
|
|
140
|
+
key: z.string(),
|
|
87
141
|
type: TypeEnum$outboundSchema,
|
|
88
142
|
label: z.string().optional(),
|
|
89
143
|
description: z.string().optional(),
|
|
@@ -93,6 +147,7 @@ export const DestinationSchemaField$outboundSchema: z.ZodType<
|
|
|
93
147
|
minlength: z.number().int().optional(),
|
|
94
148
|
maxlength: z.number().int().optional(),
|
|
95
149
|
pattern: z.string().optional(),
|
|
150
|
+
options: z.array(z.lazy(() => Option$outboundSchema)).optional(),
|
|
96
151
|
});
|
|
97
152
|
|
|
98
153
|
export function destinationSchemaFieldToJSON(
|
|
@@ -14,7 +14,10 @@ export type Event = {
|
|
|
14
14
|
* The tenant this event belongs to.
|
|
15
15
|
*/
|
|
16
16
|
tenantId?: string | undefined;
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
|
+
* The destination IDs that this event was routed to based on topic and filter matching.
|
|
19
|
+
*/
|
|
20
|
+
matchedDestinationIds?: Array<string> | undefined;
|
|
18
21
|
topic?: string | undefined;
|
|
19
22
|
/**
|
|
20
23
|
* Time the event was received/processed.
|
|
@@ -35,7 +38,7 @@ export const Event$inboundSchema: z.ZodType<Event, z.ZodTypeDef, unknown> = z
|
|
|
35
38
|
.object({
|
|
36
39
|
id: z.string().optional(),
|
|
37
40
|
tenant_id: z.string().optional(),
|
|
38
|
-
|
|
41
|
+
matched_destination_ids: z.array(z.string()).optional(),
|
|
39
42
|
topic: z.string().optional(),
|
|
40
43
|
time: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
41
44
|
.optional(),
|
|
@@ -44,14 +47,14 @@ export const Event$inboundSchema: z.ZodType<Event, z.ZodTypeDef, unknown> = z
|
|
|
44
47
|
}).transform((v) => {
|
|
45
48
|
return remap$(v, {
|
|
46
49
|
"tenant_id": "tenantId",
|
|
47
|
-
"
|
|
50
|
+
"matched_destination_ids": "matchedDestinationIds",
|
|
48
51
|
});
|
|
49
52
|
});
|
|
50
53
|
/** @internal */
|
|
51
54
|
export type Event$Outbound = {
|
|
52
55
|
id?: string | undefined;
|
|
53
56
|
tenant_id?: string | undefined;
|
|
54
|
-
|
|
57
|
+
matched_destination_ids?: Array<string> | undefined;
|
|
55
58
|
topic?: string | undefined;
|
|
56
59
|
time?: string | undefined;
|
|
57
60
|
metadata?: { [k: string]: string } | null | undefined;
|
|
@@ -66,7 +69,7 @@ export const Event$outboundSchema: z.ZodType<
|
|
|
66
69
|
> = z.object({
|
|
67
70
|
id: z.string().optional(),
|
|
68
71
|
tenantId: z.string().optional(),
|
|
69
|
-
|
|
72
|
+
matchedDestinationIds: z.array(z.string()).optional(),
|
|
70
73
|
topic: z.string().optional(),
|
|
71
74
|
time: z.date().transform(v => v.toISOString()).optional(),
|
|
72
75
|
metadata: z.nullable(z.record(z.string())).optional(),
|
|
@@ -74,7 +77,7 @@ export const Event$outboundSchema: z.ZodType<
|
|
|
74
77
|
}).transform((v) => {
|
|
75
78
|
return remap$(v, {
|
|
76
79
|
tenantId: "tenant_id",
|
|
77
|
-
|
|
80
|
+
matchedDestinationIds: "matched_destination_ids",
|
|
78
81
|
});
|
|
79
82
|
});
|
|
80
83
|
|
|
@@ -27,7 +27,7 @@ export type ListAttemptsEventId = string | Array<string>;
|
|
|
27
27
|
/**
|
|
28
28
|
* Filter attempts by destination ID(s). Use bracket notation for multiple values (e.g., `destination_id[0]=d1&destination_id[1]=d2`).
|
|
29
29
|
*/
|
|
30
|
-
export type
|
|
30
|
+
export type ListAttemptsDestinationId = string | Array<string>;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Filter attempts by status.
|
|
@@ -224,31 +224,35 @@ export function listAttemptsEventIdFromJSON(
|
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
/** @internal */
|
|
227
|
-
export const
|
|
228
|
-
|
|
227
|
+
export const ListAttemptsDestinationId$inboundSchema: z.ZodType<
|
|
228
|
+
ListAttemptsDestinationId,
|
|
229
229
|
z.ZodTypeDef,
|
|
230
230
|
unknown
|
|
231
231
|
> = z.union([z.string(), z.array(z.string())]);
|
|
232
232
|
/** @internal */
|
|
233
|
-
export type
|
|
233
|
+
export type ListAttemptsDestinationId$Outbound = string | Array<string>;
|
|
234
234
|
|
|
235
235
|
/** @internal */
|
|
236
|
-
export const
|
|
237
|
-
|
|
236
|
+
export const ListAttemptsDestinationId$outboundSchema: z.ZodType<
|
|
237
|
+
ListAttemptsDestinationId$Outbound,
|
|
238
238
|
z.ZodTypeDef,
|
|
239
|
-
|
|
239
|
+
ListAttemptsDestinationId
|
|
240
240
|
> = z.union([z.string(), z.array(z.string())]);
|
|
241
241
|
|
|
242
|
-
export function
|
|
243
|
-
|
|
242
|
+
export function listAttemptsDestinationIdToJSON(
|
|
243
|
+
listAttemptsDestinationId: ListAttemptsDestinationId,
|
|
244
|
+
): string {
|
|
245
|
+
return JSON.stringify(
|
|
246
|
+
ListAttemptsDestinationId$outboundSchema.parse(listAttemptsDestinationId),
|
|
247
|
+
);
|
|
244
248
|
}
|
|
245
|
-
export function
|
|
249
|
+
export function listAttemptsDestinationIdFromJSON(
|
|
246
250
|
jsonString: string,
|
|
247
|
-
): SafeParseResult<
|
|
251
|
+
): SafeParseResult<ListAttemptsDestinationId, SDKValidationError> {
|
|
248
252
|
return safeParse(
|
|
249
253
|
jsonString,
|
|
250
|
-
(x) =>
|
|
251
|
-
`Failed to parse '
|
|
254
|
+
(x) => ListAttemptsDestinationId$inboundSchema.parse(JSON.parse(x)),
|
|
255
|
+
`Failed to parse 'ListAttemptsDestinationId' from JSON`,
|
|
252
256
|
);
|
|
253
257
|
}
|
|
254
258
|
|