From b91b2cc0d7285c4caab4426f4ff9249857a4d796 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 13 Mar 2026 08:43:08 +0000 Subject: [PATCH] =?UTF-8?q?##=20Typescript=20SDK=20Changes:=20*=20`outpost?= =?UTF-8?q?.tenants.listTenants()`:=20=20`request`=20**Changed**=20(Breaki?= =?UTF-8?q?ng=20=E2=9A=A0=EF=B8=8F)=20*=20`outpost.events.list()`:=20=20`r?= =?UTF-8?q?equest`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`?= =?UTF-8?q?outpost.attempts.list()`:=20=20`request`=20**Changed**=20(Break?= =?UTF-8?q?ing=20=E2=9A=A0=EF=B8=8F)=20*=20`outpost.destinations.listAttem?= =?UTF-8?q?pts()`:=20=20`request`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .speakeasy/logs/changes/changes.html | 274 +---------- .speakeasy/logs/changes/changes.md | 164 +------ .speakeasy/logs/changes/new.openapi.yaml | 186 ++++--- .speakeasy/logs/changes/old.openapi.yaml | 462 ++++++++---------- .speakeasy/workflow.lock | 26 +- sdks/outpost-typescript/.speakeasy/gen.lock | 253 +++++----- sdks/outpost-typescript/.speakeasy/gen.yaml | 2 +- sdks/outpost-typescript/RELEASES.md | 12 +- .../createtenantdestinationrequest.md | 4 +- .../docs/models/operations/destinationid.md | 22 + .../models/operations/getattemptinclude.md | 2 +- .../models/operations/getattemptrequest.md | 8 +- .../gettenantdestinationattemptinclude.md | 2 +- .../gettenantdestinationattemptrequest.md | 12 +- .../models/operations/listattemptseventid.md | 22 + .../models/operations/listattemptsinclude.md | 2 +- .../models/operations/listattemptsrequest.md | 32 +- .../models/operations/listattemptstenantid.md | 25 + .../models/operations/listattemptstopic.md | 2 +- .../docs/models/operations/listeventsid.md | 22 + .../models/operations/listeventsrequest.md | 25 +- .../models/operations/listeventstenantid.md | 25 + .../docs/models/operations/listeventstopic.md | 2 +- .../listtenantdestinationattemptseventid.md | 22 + .../listtenantdestinationattemptsinclude.md | 2 +- .../listtenantdestinationattemptsrequest.md | 32 +- .../listtenantdestinationattemptstopic.md | 2 +- .../listtenantdestinationsrequest.md | 10 +- .../operations/listtenantdestinationstype.md | 2 +- .../docs/models/operations/listtenantsid.md | 22 + .../models/operations/listtenantsrequest.md | 13 +- .../docs/models/operations/topics.md | 2 +- .../updatetenantdestinationrequest.md | 4 +- .../models/operations/upserttenantrequest.md | 2 +- .../docs/sdks/attempts/README.md | 14 +- .../docs/sdks/destinations/README.md | 26 +- .../docs/sdks/tenants/README.md | 11 +- .../examples/package-lock.json | 2 +- sdks/outpost-typescript/jsr.json | 2 +- sdks/outpost-typescript/package-lock.json | 4 +- sdks/outpost-typescript/package.json | 2 +- .../src/funcs/attemptsList.ts | 2 + .../src/funcs/destinationsCreate.ts | 12 +- .../src/funcs/destinationsListAttempts.ts | 2 + .../src/funcs/destinationsUpdate.ts | 12 +- .../src/funcs/eventsList.ts | 3 + .../src/funcs/tenantsListTenants.ts | 25 +- .../src/funcs/tenantsUpsert.ts | 12 +- sdks/outpost-typescript/src/lib/config.ts | 6 +- .../src/mcp-server/mcp-server.ts | 2 +- .../src/mcp-server/server.ts | 2 +- .../mcp-server/tools/destinationsCreate.ts | 4 +- .../mcp-server/tools/destinationsUpdate.ts | 4 +- .../mcp-server/tools/tenantsListTenants.ts | 11 +- .../src/mcp-server/tools/tenantsUpsert.ts | 4 +- .../operations/createtenantdestination.ts | 8 +- .../src/models/operations/getattempt.ts | 4 +- .../operations/gettenantdestinationattempt.ts | 4 +- .../src/models/operations/listattempts.ts | 176 ++++++- .../src/models/operations/listevents.ts | 121 ++++- .../listtenantdestinationattempts.ts | 81 ++- .../operations/listtenantdestinations.ts | 8 +- .../src/models/operations/listtenants.ts | 41 ++ .../operations/updatetenantdestination.ts | 8 +- .../src/models/operations/upserttenant.ts | 8 +- .../src/sdk/destinations.ts | 8 +- sdks/outpost-typescript/src/sdk/tenants.ts | 14 +- 67 files changed, 1249 insertions(+), 1093 deletions(-) create mode 100644 sdks/outpost-typescript/docs/models/operations/destinationid.md create mode 100644 sdks/outpost-typescript/docs/models/operations/listattemptseventid.md create mode 100644 sdks/outpost-typescript/docs/models/operations/listattemptstenantid.md create mode 100644 sdks/outpost-typescript/docs/models/operations/listeventsid.md create mode 100644 sdks/outpost-typescript/docs/models/operations/listeventstenantid.md create mode 100644 sdks/outpost-typescript/docs/models/operations/listtenantdestinationattemptseventid.md create mode 100644 sdks/outpost-typescript/docs/models/operations/listtenantsid.md diff --git a/.speakeasy/logs/changes/changes.html b/.speakeasy/logs/changes/changes.html index b600849d0..5ce7eca1b 100644 --- a/.speakeasy/logs/changes/changes.html +++ b/.speakeasy/logs/changes/changes.html @@ -4,7 +4,7 @@ - SDK Changelog - python + SDK Changelog - typescript -

Python SDK Changes:

+

Typescript SDK Changes:

\ No newline at end of file diff --git a/.speakeasy/logs/changes/changes.md b/.speakeasy/logs/changes/changes.md index 41e8dd646..5cce8ce3e 100644 --- a/.speakeasy/logs/changes/changes.md +++ b/.speakeasy/logs/changes/changes.md @@ -1,142 +1,22 @@ -## Python SDK Changes: -* `outpost.attempts.list()`: `error` **Changed** (Breaking ⚠️) - - `` **Added** - - `status[422]` **Removed** (Breaking ⚠️) - - `status[500]` **Added** -* `outpost.destinations.list_attempts()`: - * `request.tenant_id` **Changed** (Breaking ⚠️) - * `error` **Changed** (Breaking ⚠️) - - `` **Added** - - `status[401]` **Added** - - `status[422]` **Removed** (Breaking ⚠️) - - `status[500]` **Added** -* `outpost.publish.event()`: `error` **Changed** (Breaking ⚠️) - - `` **Added** - - `status[400]` **Removed** (Breaking ⚠️) -* `outpost.destinations.get_attempt()`: - * `request.tenant_id` **Changed** (Breaking ⚠️) - * `error` **Changed** - - `` **Added** - - `status[401]` **Added** - - `status[500]` **Added** -* `outpost.tenants.list_tenants()`: - * `request` **Changed** (Breaking ⚠️) - - `created_at[gte]` **Removed** (Breaking ⚠️) - - `created_at[lte]` **Removed** (Breaking ⚠️) - - `dir` **Added** - - `direction` **Changed** (Breaking ⚠️) - - `next_cursor` **Removed** (Breaking ⚠️) - - `order_by` **Removed** (Breaking ⚠️) - - `prev_cursor` **Removed** (Breaking ⚠️) - - `prev` **Added** - * `error` **Changed** (Breaking ⚠️) - - `` **Added** - - `additional_properties` **Added** - - `error` **Removed** (Breaking ⚠️) - - `message` **Added** - - `status[500]` **Added** -* `outpost.tenants.upsert()`: - * `request` **Changed** (Breaking ⚠️) - - `metadata` **Added** - - `params` **Removed** (Breaking ⚠️) - - `tenant_id` **Changed** (Breaking ⚠️) - * `error` **Changed** - - `status[401]` **Added** - - `status[422]` **Added** - - `status[500]` **Added** -* `outpost.tenants.get()`: - * `request.tenant_id` **Changed** (Breaking ⚠️) - * `error` **Changed** - - `` **Added** - - `status[401]` **Added** - - `status[500]` **Added** -* `outpost.tenants.delete()`: - * `request.tenant_id` **Changed** (Breaking ⚠️) - * `error` **Changed** - - `` **Added** - - `status[401]` **Added** - - `status[500]` **Added** -* `outpost.tenants.get_portal_url()`: - * `request.tenant_id` **Changed** (Breaking ⚠️) - * `error` **Changed** - - `` **Added** - - `status[401]` **Added** - - `status[500]` **Added** -* `outpost.tenants.get_token()`: - * `request.tenant_id` **Changed** (Breaking ⚠️) - * `error` **Changed** - - `` **Added** - - `status[401]` **Added** - - `status[500]` **Added** -* `outpost.events.list()`: - * `response.models[].successful_at` **Removed** (Breaking ⚠️) - * `error` **Changed** (Breaking ⚠️) - - `` **Added** - - `status[422]` **Removed** (Breaking ⚠️) - - `status[500]` **Added** -* `outpost.events.get()`: - * `response.successful_at` **Removed** (Breaking ⚠️) - * `error` **Changed** - - `` **Added** - - `status[401]` **Added** - - `status[500]` **Added** -* `outpost.destinations.disable()`: - * `request.tenant_id` **Changed** (Breaking ⚠️) - * `error` **Changed** - - `` **Added** - - `status[401]` **Added** - - `status[500]` **Added** -* `outpost.destinations.enable()`: - * `request.tenant_id` **Changed** (Breaking ⚠️) - * `error` **Changed** - - `` **Added** - - `status[401]` **Added** - - `status[500]` **Added** -* `outpost.destinations.update()`: - * `request.tenant_id` **Changed** (Breaking ⚠️) - * `error` **Changed** (Breaking ⚠️) - - `` **Added** - - `status[400]` **Removed** (Breaking ⚠️) - - `status[401]` **Added** - - `status[422]` **Added** - - `status[500]` **Added** -* `outpost.destinations.list()`: - * `request.tenant_id` **Changed** (Breaking ⚠️) - * `error` **Changed** - - `` **Added** - - `status[401]` **Added** - - `status[500]` **Added** -* `outpost.destinations.create()`: - * `request.tenant_id` **Changed** (Breaking ⚠️) - * `error` **Changed** (Breaking ⚠️) - - `` **Added** - - `status[400]` **Removed** (Breaking ⚠️) - - `status[401]` **Added** - - `status[422]` **Added** - - `status[500]` **Added** -* `outpost.destinations.get()`: - * `request.tenant_id` **Changed** (Breaking ⚠️) - * `error` **Changed** - - `` **Added** - - `status[401]` **Added** - - `status[500]` **Added** -* `outpost.attempts.retry()`: `error` **Changed** (Breaking ⚠️) - - `` **Added** - - `status[401]` **Added** - - `status[422]` **Removed** (Breaking ⚠️) - - `status[500]` **Added** -* `outpost.destinations.delete()`: - * `request.tenant_id` **Changed** (Breaking ⚠️) - * `error` **Changed** - - `` **Added** - - `status[401]` **Added** - - `status[500]` **Added** -* `outpost.schemas.list_destination_types()`: **Added** -* `outpost.schemas.get_destination_type()`: **Added** -* `outpost.attempts.get()`: `error` **Changed** - - `` **Added** - - `status[401]` **Added** - - `status[500]` **Added** -* `outpost.schemas.get_destination_type_jwt()`: **Removed** (Breaking ⚠️) -* `outpost.schemas.list_destination_types_jwt()`: **Removed** (Breaking ⚠️) -* `outpost.topics.list()`: `error.status[401]` **Added** +## Typescript SDK Changes: +* `outpost.tenants.listTenants()`: `request` **Changed** (Breaking ⚠️) + - `dir` **Removed** (Breaking ⚠️) + - `limit` **Removed** (Breaking ⚠️) + - `next` **Removed** (Breaking ⚠️) + - `prev` **Removed** (Breaking ⚠️) + - `request` **Added** (Breaking ⚠️) +* `outpost.events.list()`: `request` **Changed** (Breaking ⚠️) + - `id` **Added** + - `tenantId` **Changed** (Breaking ⚠️) + - `time[gt]` **Added** + - `time[lt]` **Added** +* `outpost.attempts.list()`: `request` **Changed** (Breaking ⚠️) + - `destinationId` **Changed** (Breaking ⚠️) + - `eventId` **Changed** (Breaking ⚠️) + - `tenantId` **Changed** (Breaking ⚠️) + - `time[gt]` **Added** + - `time[lt]` **Added** +* `outpost.destinations.listAttempts()`: `request` **Changed** (Breaking ⚠️) + - `eventId` **Changed** (Breaking ⚠️) + - `time[gt]` **Added** + - `time[lt]` **Added** diff --git a/.speakeasy/logs/changes/new.openapi.yaml b/.speakeasy/logs/changes/new.openapi.yaml index 04e5dc68f..026f142e9 100644 --- a/.speakeasy/logs/changes/new.openapi.yaml +++ b/.speakeasy/logs/changes/new.openapi.yaml @@ -204,13 +204,11 @@ components: nullable: true description: Cursor for the next page of results. Null if no more results. example: "MTcwNDA2NzIwMA==" - x-speakeasy-name-override: "next_cursor" prev: type: string nullable: true description: Cursor for the previous page of results. Null if on first page. example: null - x-speakeasy-name-override: "prev_cursor" APIErrorResponse: type: object description: Standard error response format. @@ -2207,6 +2205,16 @@ paths: When authenticated with a Tenant JWT, returns only the authenticated tenant. Pagination is not used in this case. operationId: listTenants parameters: + - name: id + in: query + required: false + schema: + oneOf: + - type: string + - type: array + items: + type: string + description: Filter tenants by ID(s). Use bracket notation for multiple values (e.g., `id[0]=t1&id[1]=t2` or `id[]=t1&id[]=t2`). - name: limit in: query required: false @@ -2230,7 +2238,6 @@ paths: schema: type: string description: Cursor for the next page of results. Mutually exclusive with `prev`. - x-speakeasy-name-override: "direction" - name: prev in: query required: false @@ -2280,18 +2287,6 @@ paths: example: "list tenant not supported" security: - BearerAuth: [] - x-speakeasy-pagination: - type: cursor - inputs: - - name: next - in: parameters - type: cursor - - name: limit - in: parameters - type: limit - outputs: - nextCursor: $.pagination.next - results: $.models /tenants/{tenant_id}: parameters: - name: tenant_id @@ -2385,12 +2380,29 @@ paths: When authenticated with Admin API Key, returns events across all tenants. Use `tenant_id` query parameter to filter by tenant. operationId: listEvents parameters: + - name: id + in: query + required: false + schema: + oneOf: + - type: string + - type: array + items: + type: string + description: Filter events by ID(s). Use bracket notation for multiple values (e.g., `id[0]=abc&id[1]=def`). - name: tenant_id in: query required: false schema: - type: string - description: Filter events by tenant ID. If not provided, returns events from all tenants. + oneOf: + - type: string + - type: array + items: + type: string + description: | + Filter events by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`). + When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used. + If not provided with API key auth, returns events from all tenants. - name: topic in: query required: false @@ -2400,7 +2412,7 @@ paths: - type: array items: type: string - description: Filter events by topic(s). Can be specified multiple times or comma-separated. + description: Filter events by topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). - name: time[gte] in: query required: false @@ -2415,6 +2427,20 @@ paths: type: string format: date-time description: Filter events with time <= value (RFC3339 or YYYY-MM-DD format). + - name: time[gt] + in: query + required: false + schema: + type: string + format: date-time + description: Filter events with time > value (RFC3339 or YYYY-MM-DD format). + - name: time[lt] + in: query + required: false + schema: + type: string + format: date-time + description: Filter events with time < value (RFC3339 or YYYY-MM-DD format). - name: limit in: query required: false @@ -2430,14 +2456,12 @@ paths: schema: type: string description: Cursor for next page of results. - x-speakeasy-name-override: "next_cursor" - name: prev in: query required: false schema: type: string description: Cursor for previous page of results. - x-speakeasy-name-override: "prev_cursor" - name: order_by in: query required: false @@ -2454,7 +2478,6 @@ paths: enum: [asc, desc] default: desc description: Sort direction. - x-speakeasy-name-override: "direction" responses: "200": description: A paginated list of events. @@ -2491,18 +2514,6 @@ paths: x-speakeasy-name-override: list security: - BearerAuth: [] - x-speakeasy-pagination: - type: cursor - inputs: - - name: next - in: parameters - type: cursor - - name: limit - in: parameters - type: limit - outputs: - nextCursor: $.pagination.next - results: $.models /events/{event_id}: parameters: - name: event_id @@ -2558,20 +2569,35 @@ paths: in: query required: false schema: - type: string - description: Filter attempts by tenant ID. If not provided, returns attempts from all tenants. + oneOf: + - type: string + - type: array + items: + type: string + description: | + Filter attempts by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`). + When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used. + If not provided with API key auth, returns attempts from all tenants. - name: event_id in: query required: false schema: - type: string - description: Filter attempts by event ID. + oneOf: + - type: string + - type: array + items: + type: string + description: Filter attempts by event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`). - name: destination_id in: query required: false schema: - type: string - description: Filter attempts by destination ID. + oneOf: + - type: string + - type: array + items: + type: string + description: Filter attempts by destination ID(s). Use bracket notation for multiple values (e.g., `destination_id[0]=d1&destination_id[1]=d2`). - name: status in: query required: false @@ -2588,7 +2614,7 @@ paths: - type: array items: type: string - description: Filter attempts by event topic(s). Can be specified multiple times or comma-separated. + description: Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). - name: time[gte] in: query required: false @@ -2603,6 +2629,20 @@ paths: type: string format: date-time description: Filter attempts by event time <= value (RFC3339 or YYYY-MM-DD format). + - name: time[gt] + in: query + required: false + schema: + type: string + format: date-time + description: Filter attempts by event time > value (RFC3339 or YYYY-MM-DD format). + - name: time[lt] + in: query + required: false + schema: + type: string + format: date-time + description: Filter attempts by event time < value (RFC3339 or YYYY-MM-DD format). - name: limit in: query required: false @@ -2618,14 +2658,12 @@ paths: schema: type: string description: Cursor for next page of results. - x-speakeasy-name-override: "next_cursor" - name: prev in: query required: false schema: type: string description: Cursor for previous page of results. - x-speakeasy-name-override: "prev_cursor" - name: include in: query required: false @@ -2636,7 +2674,7 @@ paths: items: type: string description: | - Fields to include in the response. Can be specified multiple times or comma-separated. + Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata) - `event.data`: Include full event with payload data - `response_data`: Include response body and headers @@ -2656,7 +2694,6 @@ paths: enum: [asc, desc] default: desc description: Sort direction. - x-speakeasy-name-override: "direction" responses: "200": description: A paginated list of attempts. @@ -2718,18 +2755,6 @@ paths: x-speakeasy-name-override: list security: - BearerAuth: [] - x-speakeasy-pagination: - type: cursor - inputs: - - name: next - in: parameters - type: cursor - - name: limit - in: parameters - type: limit - outputs: - nextCursor: $.pagination.next - results: $.models /attempts/{attempt_id}: parameters: - name: attempt_id @@ -2758,7 +2783,7 @@ paths: items: type: string description: | - Fields to include in the response. Can be specified multiple times or comma-separated. + Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata) - `event.data`: Include full event with payload data - `response_data`: Include response body and headers @@ -2910,7 +2935,7 @@ paths: - type: array items: $ref: "#/components/schemas/DestinationType" - description: Filter destinations by type(s). + description: Filter destinations by type(s). Use bracket notation for multiple values (e.g., `type[0]=webhook&type[1]=aws_sqs`). - name: topics in: query required: false @@ -2920,7 +2945,7 @@ paths: - type: array items: type: string - description: Filter destinations by supported topic(s). + description: Filter destinations by supported topic(s). Use bracket notation for multiple values (e.g., `topics[0]=user.created&topics[1]=user.deleted`). responses: "200": description: A list of destinations. @@ -3253,8 +3278,12 @@ paths: in: query required: false schema: - type: string - description: Filter attempts by event ID. + oneOf: + - type: string + - type: array + items: + type: string + description: Filter attempts by event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`). - name: status in: query required: false @@ -3271,7 +3300,7 @@ paths: - type: array items: type: string - description: Filter attempts by event topic(s). Can be specified multiple times or comma-separated. + description: Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). - name: time[gte] in: query required: false @@ -3286,6 +3315,20 @@ paths: type: string format: date-time description: Filter attempts by event time <= value (RFC3339 or YYYY-MM-DD format). + - name: time[gt] + in: query + required: false + schema: + type: string + format: date-time + description: Filter attempts by event time > value (RFC3339 or YYYY-MM-DD format). + - name: time[lt] + in: query + required: false + schema: + type: string + format: date-time + description: Filter attempts by event time < value (RFC3339 or YYYY-MM-DD format). - name: limit in: query required: false @@ -3301,14 +3344,12 @@ paths: schema: type: string description: Cursor for next page of results. - x-speakeasy-name-override: "next_cursor" - name: prev in: query required: false schema: type: string description: Cursor for previous page of results. - x-speakeasy-name-override: "prev_cursor" - name: include in: query required: false @@ -3319,7 +3360,7 @@ paths: items: type: string description: | - Fields to include in the response. Can be specified multiple times or comma-separated. + Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata) - `event.data`: Include full event with payload data - `response_data`: Include response body and headers @@ -3339,7 +3380,6 @@ paths: enum: [asc, desc] default: desc description: Sort direction. - x-speakeasy-name-override: "direction" responses: "200": description: A paginated list of attempts for the destination. @@ -3378,18 +3418,6 @@ paths: "500": $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: listAttempts - x-speakeasy-pagination: - type: cursor - inputs: - - name: next - in: parameters - type: cursor - - name: limit - in: parameters - type: limit - outputs: - nextCursor: $.pagination.next - results: $.models /tenants/{tenant_id}/destinations/{destination_id}/attempts/{attempt_id}: parameters: - name: tenant_id @@ -3426,7 +3454,7 @@ paths: items: type: string description: | - Fields to include in the response. Can be specified multiple times or comma-separated. + Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). - `event`: Include event summary - `event.data`: Include full event with payload data - `response_data`: Include response body and headers diff --git a/.speakeasy/logs/changes/old.openapi.yaml b/.speakeasy/logs/changes/old.openapi.yaml index c2e4b718b..7f29c3eb2 100644 --- a/.speakeasy/logs/changes/old.openapi.yaml +++ b/.speakeasy/logs/changes/old.openapi.yaml @@ -2,14 +2,12 @@ openapi: 3.1.0 info: title: Outpost API version: "0.0.1" - description: The Outpost API is a REST-based JSON API for managing tenants, destinations, and publishing events. + description: | + The Outpost API is a REST-based JSON API for managing tenants, destinations, and publishing events. contact: name: Outpost Support email: support@hookdeck.com url: https://outpost.hookdeck.com/docs -security: - - AdminApiKey: [] - - TenantJwt: [] servers: - url: https://api.outpost.hookdeck.com/2025-07-01 description: Outpost API (production) @@ -17,33 +15,61 @@ servers: description: Local development server base path components: securitySchemes: - AdminApiKey: - type: http - scheme: bearer - description: Admin API Key configured via API_KEY environment variable. - TenantJwt: + BearerAuth: type: http scheme: bearer - bearerFormat: JWT + x-speakeasy-name-override: apiKey description: | - Per-tenant JWT token valid for 24 hours. + Bearer token for authentication. The SDK exposes a single "apiKey" parameter; its value can be either: - **JWT Structure:** - The token is a standard JWT signed with HS256 algorithm containing the following claims: - - `iss` (issuer): Always "outpost" - - `sub` (subject): The tenant_id this token is scoped to - - `iat` (issued at): Unix timestamp when the token was created - - `exp` (expiration): Unix timestamp when the token expires (24 hours after issuance) + **Admin API Key:** Static key configured via the `API_KEY` environment variable. + Required for admin operations (publishing events, managing tenants, generating tenant tokens). - **Example decoded payload:** - ```json - { - "iss": "outpost", - "sub": "tenant_123", - "iat": 1704067200, - "exp": 1704153600 - } - ``` + **JWT (tenant token):** Obtained via GET /tenants/{tenant_id}/token (requires Admin API Key). Valid for 24 hours, scoped to one tenant. + Use for tenant-scoped operations (e.g. listing destinations for that tenant). + responses: + BadRequest: + description: A collection of codes that generally means the end user got something wrong in making the request + content: + application/json: + schema: + $ref: "#/components/schemas/BadRequest" + Unauthorized: + description: A collection of codes that generally means the client was not authenticated correctly for the request they want to make + content: + application/json: + schema: + $ref: "#/components/schemas/Unauthorized" + NotFound: + description: Status codes relating to the resource/entity they are requesting not being found or endpoints/routes not existing + content: + application/json: + schema: + $ref: "#/components/schemas/NotFound" + ValidationError: + description: Request body fails validation. + content: + application/json: + schema: + $ref: "#/components/schemas/APIErrorResponse" + InternalServerError: + description: A collection of status codes that generally mean the server failed in an unexpected way + content: + application/json: + schema: + $ref: "#/components/schemas/InternalServerError" + RateLimited: + description: Status codes relating to the client being rate limited by the server + content: + application/json: + schema: + $ref: '#/components/schemas/RateLimited' + Timeout: + description: Timeouts occurred with the request + content: + application/json: + schema: + $ref: '#/components/schemas/Timeout' schemas: # Base Schemas Tenant: @@ -178,13 +204,11 @@ components: nullable: true description: Cursor for the next page of results. Null if no more results. example: "MTcwNDA2NzIwMA==" - x-speakeasy-name-override: "next_cursor" prev: type: string nullable: true description: Cursor for the previous page of results. Null if on first page. example: null - x-speakeasy-name-override: "prev_cursor" APIErrorResponse: type: object description: Standard error response format. @@ -1678,12 +1702,6 @@ components: format: date-time description: Time the event was received/processed. example: "2024-01-01T00:00:00Z" - successful_at: - type: string - format: date-time - nullable: true - description: Time the event was successfully delivered. - example: "2024-01-01T00:00:00Z" metadata: type: object nullable: true @@ -1968,43 +1986,6 @@ components: message: type: string additionalProperties: true - responses: - BadRequest: - description: A collection of codes that generally means the end user got something wrong in making the request - content: - application/json: - schema: - $ref: '#/components/schemas/BadRequest' - Unauthorized: - description: A collection of codes that generally means the client was not authenticated correctly for the request they want to make - content: - application/json: - schema: - $ref: '#/components/schemas/Unauthorized' - NotFound: - description: Status codes relating to the resource/entity they are requesting not being found or endpoints/routes not existing - content: - application/json: - schema: - $ref: '#/components/schemas/NotFound' - RateLimited: - description: Status codes relating to the client being rate limited by the server - content: - application/json: - schema: - $ref: '#/components/schemas/RateLimited' - InternalServerError: - description: A collection of status codes that generally mean the server failed in an unexpected way - content: - application/json: - schema: - $ref: '#/components/schemas/InternalServerError' - Timeout: - description: Timeouts occurred with the request - content: - application/json: - schema: - $ref: '#/components/schemas/Timeout' # Security is applied per-operation based on AuthScope tags: - name: Health @@ -2184,11 +2165,8 @@ paths: **Requirements:** This endpoint requires Redis with RediSearch module (e.g., `redis/redis-stack-server`). If RediSearch is not available, this endpoint returns `501 Not Implemented`. - The response includes lightweight tenant objects without computed fields like `destinations_count` and `topics`. - Use `GET /tenants/{tenant_id}` to retrieve full tenant details including these fields. + When authenticated with a Tenant JWT, returns only the authenticated tenant. Pagination is not used in this case. operationId: listTenants - security: - - AdminApiKey: [] parameters: - name: limit in: query @@ -2199,14 +2177,6 @@ paths: maximum: 100 default: 20 description: Number of tenants to return per page (1-100, default 20). - - name: order_by - in: query - required: false - schema: - type: string - enum: [created_at] - default: created_at - description: Field to sort by. - name: dir in: query required: false @@ -2215,35 +2185,18 @@ paths: enum: [asc, desc] default: desc description: Sort direction. - x-speakeasy-name-override: "direction" - - name: created_at[gte] - in: query - required: false - schema: - type: string - format: date-time - description: Filter tenants created at or after this time (RFC3339 or YYYY-MM-DD format). - - name: created_at[lte] - in: query - required: false - schema: - type: string - format: date-time - description: Filter tenants created at or before this time (RFC3339 or YYYY-MM-DD format). - name: next in: query required: false schema: type: string description: Cursor for the next page of results. Mutually exclusive with `prev`. - x-speakeasy-name-override: "next_cursor" - name: prev in: query required: false schema: type: string description: Cursor for the previous page of results. Mutually exclusive with `next`. - x-speakeasy-name-override: "prev_cursor" responses: "200": description: List of tenants. @@ -2270,17 +2223,11 @@ paths: prev: null count: 42 "400": - description: Invalid request parameters (e.g., invalid cursor, both next and prev provided). - content: - application/json: - schema: - type: object - properties: - error: - type: string - example: "invalid cursor format" + $ref: "#/components/responses/BadRequest" "401": - description: Unauthorized (Admin API Key missing or invalid). + $ref: "#/components/responses/Unauthorized" + "500": + $ref: "#/components/responses/InternalServerError" "501": description: List Tenants feature is not available. Requires Redis with RediSearch module. content: @@ -2291,18 +2238,8 @@ paths: error: type: string example: "list tenant not supported" - x-speakeasy-pagination: - type: cursor - inputs: - - name: next - in: parameters - type: cursor - - name: limit - in: parameters - type: limit - outputs: - nextCursor: $.pagination.next - results: $.models + security: + - BearerAuth: [] /tenants/{tenant_id}: parameters: - name: tenant_id @@ -2336,7 +2273,12 @@ paths: application/json: schema: $ref: "#/components/schemas/Tenant" - # Add error responses + "401": + $ref: "#/components/responses/Unauthorized" + "422": + $ref: "#/components/responses/ValidationError" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: upsert get: tags: [Tenants] @@ -2350,9 +2292,12 @@ paths: application/json: schema: $ref: "#/components/schemas/Tenant" + "401": + $ref: "#/components/responses/Unauthorized" "404": - description: Tenant not found. - # Add other error responses + $ref: "#/components/responses/NotFound" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: get delete: tags: [Tenants] @@ -2370,22 +2315,23 @@ paths: SuccessExample: value: success: true + "401": + $ref: "#/components/responses/Unauthorized" "404": - description: Tenant not found. - # Add other error responses + $ref: "#/components/responses/NotFound" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: delete - # Admin-only endpoints (cross-tenant) /events: get: tags: [Events] - summary: List Events (Admin) + summary: List Events description: | - Retrieves a list of events across all tenants. This is an admin-only endpoint that requires the Admin API Key. + Retrieves a list of events. - When `tenant_id` is not provided, returns events from all tenants. When `tenant_id` is provided, returns only events for that tenant. - operationId: adminListEvents - security: - - AdminApiKey: [] + When authenticated with a Tenant JWT, returns only events belonging to that tenant. + When authenticated with Admin API Key, returns events across all tenants. Use `tenant_id` query parameter to filter by tenant. + operationId: listEvents parameters: - name: tenant_id in: query @@ -2432,14 +2378,12 @@ paths: schema: type: string description: Cursor for next page of results. - x-speakeasy-name-override: "next_cursor" - name: prev in: query required: false schema: type: string description: Cursor for previous page of results. - x-speakeasy-name-override: "prev_cursor" - name: order_by in: query required: false @@ -2456,7 +2400,6 @@ paths: enum: [asc, desc] default: desc description: Sort direction. - x-speakeasy-name-override: "direction" responses: "200": description: A paginated list of events. @@ -2487,26 +2430,12 @@ paths: next: "MTcwNDA2NzIwMA==" prev: null "401": - description: Unauthorized (Admin API Key missing or invalid). - "422": - description: Validation error (invalid query parameters). - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/responses/Unauthorized" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: list - x-speakeasy-pagination: - type: cursor - inputs: - - name: next - in: parameters - type: cursor - - name: limit - in: parameters - type: limit - outputs: - nextCursor: $.pagination.next - results: $.models + security: + - BearerAuth: [] /events/{event_id}: parameters: - name: event_id @@ -2540,20 +2469,23 @@ paths: eligible_for_retry: false metadata: {"source": "crm"} data: {"user_id": "userid", "status": "active"} + "401": + $ref: "#/components/responses/Unauthorized" "404": - description: Event not found. + $ref: "#/components/responses/NotFound" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: get /attempts: get: tags: [Attempts] - summary: List Attempts (Admin) + summary: List Attempts description: | - Retrieves a paginated list of attempts across all tenants. This is an admin-only endpoint that requires the Admin API Key. + Retrieves a paginated list of attempts. - When `tenant_id` is not provided, returns attempts from all tenants. When `tenant_id` is provided, returns only attempts for that tenant. - operationId: adminListAttempts - security: - - AdminApiKey: [] + When authenticated with a Tenant JWT, returns only attempts belonging to that tenant. + When authenticated with Admin API Key, returns attempts across all tenants. Use `tenant_id` query parameter to filter by tenant. + operationId: listAttempts parameters: - name: tenant_id in: query @@ -2619,14 +2551,12 @@ paths: schema: type: string description: Cursor for next page of results. - x-speakeasy-name-override: "next_cursor" - name: prev in: query required: false schema: type: string description: Cursor for previous page of results. - x-speakeasy-name-override: "prev_cursor" - name: include in: query required: false @@ -2657,7 +2587,6 @@ paths: enum: [asc, desc] default: desc description: Sort direction. - x-speakeasy-name-override: "direction" responses: "200": description: A paginated list of attempts. @@ -2713,26 +2642,12 @@ paths: next: null prev: null "401": - description: Unauthorized (Admin API Key missing or invalid). - "422": - description: Validation error (invalid query parameters). - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/responses/Unauthorized" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: list - x-speakeasy-pagination: - type: cursor - inputs: - - name: next - in: parameters - type: cursor - - name: limit - in: parameters - type: limit - outputs: - nextCursor: $.pagination.next - results: $.models + security: + - BearerAuth: [] /attempts/{attempt_id}: parameters: - name: attempt_id @@ -2803,8 +2718,12 @@ paths: eligible_for_retry: false metadata: {"source": "crm"} data: {"user_id": "userid", "status": "active"} + "401": + $ref: "#/components/responses/Unauthorized" "404": - description: Attempt not found. + $ref: "#/components/responses/NotFound" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: get /tenants/{tenant_id}/portal: parameters: @@ -2817,7 +2736,7 @@ paths: get: tags: [Tenants] summary: Get Portal Redirect URL - description: Returns a redirect URL containing a JWT to authenticate the user with the portal. + description: Returns a redirect URL containing a JWT to authenticate the user with the portal. Requires Admin API Key. operationId: getTenantPortalUrl parameters: - name: theme @@ -2839,10 +2758,15 @@ paths: value: redirect_url: "https://webhooks.acme.com/?token=JWT_TOKEN&tenant_id=tenant_123" tenant_id: "tenant_123" + "401": + $ref: "#/components/responses/Unauthorized" "404": - description: Tenant not found. - # Add other error responses + $ref: "#/components/responses/NotFound" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: getPortalUrl + security: + - BearerAuth: [] /tenants/{tenant_id}/token: parameters: - name: tenant_id @@ -2854,7 +2778,7 @@ paths: get: tags: [Tenants] summary: Get Tenant JWT Token - description: Returns a JWT token scoped to the tenant for safe browser API calls. + description: Returns a JWT token scoped to the tenant for safe browser API calls. Requires Admin API Key. operationId: getTenantToken responses: "200": @@ -2868,10 +2792,15 @@ paths: value: token: "SOME_JWT_TOKEN" tenant_id: "tenant_123" + "401": + $ref: "#/components/responses/Unauthorized" "404": - description: Tenant not found. - # Add other error responses + $ref: "#/components/responses/NotFound" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: getToken + security: + - BearerAuth: [] # Destinations /tenants/{tenant_id}/destinations: description: | @@ -2958,9 +2887,12 @@ paths: credentials: key: "AKIAIOSFODNN7EXAMPLE" secret: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" + "401": + $ref: "#/components/responses/Unauthorized" "404": - description: Tenant not found. - # Add other error responses + $ref: "#/components/responses/NotFound" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: list post: tags: [Destinations] @@ -2994,11 +2926,14 @@ paths: credentials: secret: "whsec_abc123def456" # previous_secret and previous_secret_invalid_at are absent on creation - "400": - description: Invalid request body or configuration. + "401": + $ref: "#/components/responses/Unauthorized" "404": - description: Tenant not found. - # Add other error responses (e.g., max destinations reached) + $ref: "#/components/responses/NotFound" + "422": + $ref: "#/components/responses/ValidationError" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: create /tenants/{tenant_id}/destinations/{destination_id}: parameters: @@ -3041,8 +2976,12 @@ paths: secret: "whsec_abc123def456" previous_secret: "whsec_prev789xyz012" previous_secret_invalid_at: "2024-02-16T10:00:00Z" + "401": + $ref: "#/components/responses/Unauthorized" "404": - description: Tenant or Destination not found. + $ref: "#/components/responses/NotFound" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: get patch: tags: [Destinations] @@ -3079,11 +3018,14 @@ paths: secret: "whsec_abc123def456" previous_secret: "whsec_prev789xyz012" previous_secret_invalid_at: "2024-02-16T10:00:00Z" - "400": - description: Invalid request body or configuration. + "401": + $ref: "#/components/responses/Unauthorized" "404": - description: Tenant or Destination not found. - # Add other error responses + $ref: "#/components/responses/NotFound" + "422": + $ref: "#/components/responses/ValidationError" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: update delete: tags: [Destinations] @@ -3101,9 +3043,12 @@ paths: SuccessExample: value: success: true + "401": + $ref: "#/components/responses/Unauthorized" "404": - description: Tenant or Destination not found. - # Add other error responses + $ref: "#/components/responses/NotFound" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: delete /tenants/{tenant_id}/destinations/{destination_id}/enable: parameters: @@ -3146,9 +3091,12 @@ paths: secret: "whsec_abc123def456" previous_secret: "whsec_prev789xyz012" previous_secret_invalid_at: "2024-02-16T10:00:00Z" + "401": + $ref: "#/components/responses/Unauthorized" "404": - description: Tenant or Destination not found. - # Add other error responses + $ref: "#/components/responses/NotFound" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: enable /tenants/{tenant_id}/destinations/{destination_id}/disable: parameters: @@ -3191,9 +3139,12 @@ paths: secret: "whsec_abc123def456" previous_secret: "whsec_prev789xyz012" previous_secret_invalid_at: "2024-02-16T10:00:00Z" + "401": + $ref: "#/components/responses/Unauthorized" "404": - description: Tenant or Destination not found. - # Add other error responses + $ref: "#/components/responses/NotFound" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: disable # Destination-scoped Attempts /tenants/{tenant_id}/destinations/{destination_id}/attempts: @@ -3268,14 +3219,12 @@ paths: schema: type: string description: Cursor for next page of results. - x-speakeasy-name-override: "next_cursor" - name: prev in: query required: false schema: type: string description: Cursor for previous page of results. - x-speakeasy-name-override: "prev_cursor" - name: include in: query required: false @@ -3306,7 +3255,6 @@ paths: enum: [asc, desc] default: desc description: Sort direction. - x-speakeasy-name-override: "direction" responses: "200": description: A paginated list of attempts for the destination. @@ -3338,27 +3286,13 @@ paths: limit: 100 next: "MTcwNDA2NzIwMA==" prev: null + "401": + $ref: "#/components/responses/Unauthorized" "404": - description: Tenant or Destination not found. - "422": - description: Validation error (invalid query parameters). - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/responses/NotFound" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: listAttempts - x-speakeasy-pagination: - type: cursor - inputs: - - name: next - in: parameters - type: cursor - - name: limit - in: parameters - type: limit - outputs: - nextCursor: $.pagination.next - results: $.models /tenants/{tenant_id}/destinations/{destination_id}/attempts/{attempt_id}: parameters: - name: tenant_id @@ -3416,8 +3350,12 @@ paths: attempt_number: 1 event_id: "evt_123" destination_id: "des_456" + "401": + $ref: "#/components/responses/Unauthorized" "404": - description: Tenant, Destination, or Attempt not found. + $ref: "#/components/responses/NotFound" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: getAttempt # Publish (Admin Only) /publish: @@ -3439,17 +3377,15 @@ paths: application/json: schema: $ref: "#/components/schemas/PublishResponse" - "400": - description: Invalid request body. "401": - description: Unauthorized (Admin API Key missing or invalid). + $ref: "#/components/responses/Unauthorized" "409": description: Conflict. An event with the provided `id` already exists. "422": - description: Unprocessable Entity. The event topic was either required or was invalid. - # Add other error responses - + description: The event topic was either required or was invalid. $ref: '#/components/responses/BadRequest' + "500": + $ref: "#/components/responses/InternalServerError" '413': $ref: '#/components/responses/BadRequest' '414': @@ -3474,8 +3410,6 @@ paths: $ref: '#/components/responses/NotFound' '429': $ref: '#/components/responses/RateLimited' - '500': - $ref: '#/components/responses/InternalServerError' '502': $ref: '#/components/responses/InternalServerError' '503': @@ -3491,6 +3425,8 @@ paths: '504': $ref: '#/components/responses/Timeout' x-speakeasy-name-override: event + security: + - BearerAuth: [] # Retry /retry: post: @@ -3524,14 +3460,12 @@ paths: Bad request. This can happen when: - The destination is disabled - The destination does not match the event's topic + "401": + $ref: "#/components/responses/Unauthorized" "404": - description: Event or destination not found. - "422": - description: Validation error (missing required fields). - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/responses/NotFound" + "500": + $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: retry /destination-types: get: @@ -3568,7 +3502,9 @@ paths: config_fields: [{type: "text", label: "Queue URL", description: "The URL of the SQS queue.", required: true}, {type: "text", label: "Endpoint", description: "Optional custom AWS endpoint URL.", required: false}] credential_fields: [{type: "text", label: "Key", description: "AWS Access Key ID.", required: true, sensitive: true}, {type: "text", label: "Secret", description: "AWS Secret Access Key.", required: true, sensitive: true}, {type: "text", label: "Session", description: "Optional AWS Session Token.", required: false, sensitive: true}] "401": - description: Unauthorized (Tenant JWT missing or invalid). + $ref: "#/components/responses/Unauthorized" + "500": + $ref: "#/components/responses/InternalServerError" '400': $ref: '#/components/responses/BadRequest' '413': @@ -3597,8 +3533,6 @@ paths: $ref: '#/components/responses/NotFound' '429': $ref: '#/components/responses/RateLimited' - '500': - $ref: '#/components/responses/InternalServerError' '502': $ref: '#/components/responses/InternalServerError' '503': @@ -3613,7 +3547,7 @@ paths: $ref: '#/components/responses/Timeout' '504': $ref: '#/components/responses/Timeout' - x-speakeasy-name-override: listDestinationTypesJwt + x-speakeasy-name-override: listDestinationTypes /destination-types/{type}: parameters: - name: type @@ -3621,7 +3555,7 @@ paths: required: true schema: type: string - enum: [webhook, aws_sqs, rabbitmq, hookdeck, aws_kinesis, aws_s3] + enum: [webhook, aws_sqs, rabbitmq, hookdeck, aws_kinesis, azure_servicebus, aws_s3, gcp_pubsub] description: The type of the destination. get: tags: [Schemas] @@ -3649,9 +3583,11 @@ paths: credential_fields: [{type: "text", label: "Secret", description: "Optional signing secret.", required: false, sensitive: true, # Added sensitive }] "401": - description: Unauthorized (Tenant JWT missing or invalid). + $ref: "#/components/responses/Unauthorized" "404": - description: Destination type not found. + $ref: "#/components/responses/NotFound" + "500": + $ref: "#/components/responses/InternalServerError" '400': $ref: '#/components/responses/BadRequest' '413': @@ -3678,8 +3614,6 @@ paths: $ref: '#/components/responses/NotFound' '429': $ref: '#/components/responses/RateLimited' - '500': - $ref: '#/components/responses/InternalServerError' '502': $ref: '#/components/responses/InternalServerError' '503': @@ -3694,7 +3628,7 @@ paths: $ref: '#/components/responses/Timeout' '504': $ref: '#/components/responses/Timeout' - x-speakeasy-name-override: getDestinationTypeJwt + x-speakeasy-name-override: getDestinationType /topics: get: tags: [Topics] @@ -3714,7 +3648,9 @@ paths: TopicsListExample: # Same as /{tenant_id}/topics example value: ["user.created", "user.updated", "order.shipped", "inventory.updated"] "401": - description: Unauthorized (Tenant JWT missing or invalid). + $ref: "#/components/responses/Unauthorized" + "500": + $ref: "#/components/responses/InternalServerError" '400': $ref: '#/components/responses/BadRequest' '413': @@ -3743,8 +3679,6 @@ paths: $ref: '#/components/responses/NotFound' '429': $ref: '#/components/responses/RateLimited' - '500': - $ref: '#/components/responses/InternalServerError' '502': $ref: '#/components/responses/InternalServerError' '503': @@ -3760,9 +3694,5 @@ paths: '504': $ref: '#/components/responses/Timeout' x-speakeasy-name-override: list -x-speakeasy-globals: - parameters: - - name: tenant_id - in: path - schema: - type: string +security: + - BearerAuth: [] diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index f01e9e738..5aeeb3c60 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.741.7 +speakeasyVersion: 1.753.0 sources: Outpost API: sourceNamespace: outpost-api - sourceRevisionDigest: sha256:837c1ec11841961c17673ee40729959fce25fb87c9ca09f822e2d88805b5556a - sourceBlobDigest: sha256:0210b5211be69672b9fdb4ed35188fd778a0fc3fad0a7f426d2f0f7d0fb86067 + sourceRevisionDigest: sha256:2d542416df0e6dd809fa896f531710287232665d74a771ebaa663e906b6e1b31 + sourceBlobDigest: sha256:b5f559e7870ebfa1539ec9bb32bd45d74d5bc2c35b806343e9df2006591f47e8 tags: - latest - 0.0.1 @@ -32,10 +32,10 @@ targets: outpost-ts: source: Outpost API sourceNamespace: outpost-api - sourceRevisionDigest: sha256:837c1ec11841961c17673ee40729959fce25fb87c9ca09f822e2d88805b5556a - sourceBlobDigest: sha256:0210b5211be69672b9fdb4ed35188fd778a0fc3fad0a7f426d2f0f7d0fb86067 + sourceRevisionDigest: sha256:2d542416df0e6dd809fa896f531710287232665d74a771ebaa663e906b6e1b31 + sourceBlobDigest: sha256:b5f559e7870ebfa1539ec9bb32bd45d74d5bc2c35b806343e9df2006591f47e8 codeSamplesNamespace: outpost-api-typescript-code-samples - codeSamplesRevisionDigest: sha256:8815a2efc3e22c8d9f31523a06aa4177ae7f3be6416c8fcc7547a21945621fae + codeSamplesRevisionDigest: sha256:d74bf3f16492cd1cd6e325f2060bd8110bfce9811927a1816ca5c96a51742978 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest @@ -49,6 +49,16 @@ workflow: - location: ./sdks/schemas/error-types.yaml registry: location: registry.speakeasyapi.dev/hookdeck-dev/outpost/outpost-api + Outpost API (Go): + inputs: + - location: ./docs/apis/openapi.yaml + overlays: + - location: ./sdks/schemas/speakeasy-modifications-overlay.yaml + - location: ./sdks/schemas/security-collapse-overlay.yaml + - location: ./sdks/schemas/error-types.yaml + - location: ./sdks/schemas/go-array-params-overlay.yaml + registry: + location: registry.speakeasyapi.dev/hookdeck-dev/outpost/outpost-api Outpost API (Python): inputs: - location: ./docs/apis/openapi.yaml @@ -56,13 +66,13 @@ workflow: - location: ./sdks/schemas/speakeasy-modifications-overlay.yaml - location: ./sdks/schemas/security-collapse-overlay.yaml - location: ./sdks/schemas/error-types.yaml - - location: ./sdks/schemas/pagination-fixes-overlay.yaml + - location: ./sdks/schemas/python-pagination-fixes-overlay.yaml registry: location: registry.speakeasyapi.dev/hookdeck-dev/outpost/outpost-api targets: outpost-go: target: go - source: Outpost API + source: Outpost API (Go) output: ./sdks/outpost-go codeSamples: registry: diff --git a/sdks/outpost-typescript/.speakeasy/gen.lock b/sdks/outpost-typescript/.speakeasy/gen.lock index 0520caa4a..07ff5c288 100644 --- a/sdks/outpost-typescript/.speakeasy/gen.lock +++ b/sdks/outpost-typescript/.speakeasy/gen.lock @@ -1,26 +1,26 @@ lockVersion: 2.0.0 id: edb58086-83b9-45a3-9095-52bf57a11009 management: - docChecksum: 4d871f0d5196e38d0c8198b92566a660 + docChecksum: 00678760b3a5c3bd41874f95c8b98a55 docVersion: 0.0.1 - speakeasyVersion: 1.741.7 - generationVersion: 2.849.10 - releaseVersion: 0.8.0 - configChecksum: b66823fa0f4e59194c1942c9e8854d3d + speakeasyVersion: 1.753.0 + generationVersion: 2.862.0 + releaseVersion: 0.8.1 + configChecksum: 0a048371a65a65bb9f042749ee65d314 repoURL: https://github.com/hookdeck/outpost.git repoSubDirectory: sdks/outpost-typescript installationURL: https://github.com/hookdeck/outpost published: true persistentEdits: - generation_id: 12f83f54-6201-4ec8-a4cf-14033b55c05a - pristine_commit_hash: c5f8e36d04add08c3918c7c4ba0e2ea1fe826b85 - pristine_tree_hash: 817181424e45cc414d05eaabead97020ddb37b84 + generation_id: 6baebf1d-ac04-4cde-9961-ff9debefc2d9 + pristine_commit_hash: 2a4651b2f3c284926e385309ddbd860d7bf52c81 + pristine_tree_hash: c96d7d211544a184dc04a3448edea43f78730d5c features: typescript: additionalDependencies: 0.1.0 additionalProperties: 0.1.3 constsAndDefaults: 0.1.14 - core: 3.26.41 + core: 3.26.42 defaultEnabledRetries: 0.1.0 enumUnions: 0.1.0 envVarSecurityUsage: 0.1.2 @@ -379,8 +379,8 @@ trackedFiles: pristine_git_object: 123c22bcd21f1876a85445de32481e5217925806 docs/models/operations/createtenantdestinationrequest.md: id: 5c201a2c92c3 - last_write_checksum: sha1:1af1ca14b039ae3a4a28d23b5017ce666476f517 - pristine_git_object: ed4efc0e706a36502f664d0f4651f28f907ec943 + last_write_checksum: sha1:d32eb6591b9921c8f1411b00080f7d02f7c867c0 + pristine_git_object: 485ef72f2d3d675107e8bf5aa211bff00445e3c6 docs/models/operations/deletetenantdestinationrequest.md: id: 4bf9f875c288 last_write_checksum: sha1:9b4758314f9672c11b50d0b7a75b1f5fe4073d0b @@ -389,6 +389,10 @@ trackedFiles: id: b983367702a8 last_write_checksum: sha1:e11c43e9e02180641655cabfc1aeed8553cd87c0 pristine_git_object: f24bb7e82bab673c3f4f6c2273c63185b92ae6ad + docs/models/operations/destinationid.md: + id: e575ae5f085b + last_write_checksum: sha1:a466a541ee6bf0de797bed0dbbe95daea8d41f02 + pristine_git_object: 437d58ebb34659debe23d5a7f2dbb10c90300079 docs/models/operations/disabletenantdestinationrequest.md: id: f1eba2d52881 last_write_checksum: sha1:3e4862387df93843068b2ff83fc9f0328f4df44e @@ -399,12 +403,12 @@ trackedFiles: pristine_git_object: e972cb0b136831ddb65e646dee8a092cf65a9eef docs/models/operations/getattemptinclude.md: id: 899622c94b52 - last_write_checksum: sha1:9d3a80fe39c93ea067342aede664d533ab33f187 - pristine_git_object: e5fd20b3454897624725100028b89f1093ebe121 + last_write_checksum: sha1:2885203eaf0647cbf61024cba59a9a9f133b4e17 + pristine_git_object: ef32d450eda3cffe828fd3ef719209b78aa02498 docs/models/operations/getattemptrequest.md: id: 58916c0b18d3 - last_write_checksum: sha1:077069bcab3cb9aa889f3cbdfa53457828e68fac - pristine_git_object: d7efbc1ac1fb0a53e04b303afe9ca9775877cb25 + last_write_checksum: sha1:ec397658b11aacff284dae3fdec27ca8b8ace965 + pristine_git_object: 3b7592b28a3fd90b2dc673671f47faeb6cd1f715 docs/models/operations/getdestinationtypeschemarequest.md: id: 28942fdcd1d3 last_write_checksum: sha1:06191edcf74f20f979c370fb99c4e34d38faa78a @@ -419,12 +423,12 @@ trackedFiles: pristine_git_object: 3b5424ecc53ae234e768bf6efbe4eb3d12fa6049 docs/models/operations/gettenantdestinationattemptinclude.md: id: 6a2a3c5c804d - last_write_checksum: sha1:090297acf2b2569dc41267bef49cb52fb2f70f2e - pristine_git_object: 72a9fb0b7cabe0043ad35f6a7d90e2a85030f0cd + last_write_checksum: sha1:d89b283b09a40e3b8ba15bb591b29e4e2a6000db + pristine_git_object: e8d56ea6489d119a5733e9d0dba8c310079b5da3 docs/models/operations/gettenantdestinationattemptrequest.md: id: ba08fde2adc7 - last_write_checksum: sha1:e7f626c521026e6c40c3273cab205af622d3b9ba - pristine_git_object: f896f822b931d4103a0d871b767a519b2f74dede + last_write_checksum: sha1:b32b4f8c22541dcf969993b0c1eb71294f435d3a + pristine_git_object: f483c1c0c946a21ea063748a992762b59679a067 docs/models/operations/gettenantdestinationrequest.md: id: f6dbaa55f398 last_write_checksum: sha1:d639d8c187355f5f8b7848f5c5a0b9923d997179 @@ -457,114 +461,138 @@ trackedFiles: id: dda592e84dd0 last_write_checksum: sha1:ce2866a86a4737c7553558da51278708df7ca28e pristine_git_object: e6f1b308ccb519eb80b9ebc36fca4c700aa26d0e + docs/models/operations/listattemptseventid.md: + id: 1fe5026628b0 + last_write_checksum: sha1:373cbe2f4651de9754ecddefe04b770dc56b01e2 + pristine_git_object: fb3b0cf62de753df9cd1cc288b2adee8194a6d4c docs/models/operations/listattemptsinclude.md: id: cc99e9b38c4b - last_write_checksum: sha1:62543bfab5889ba5322ab96064d8845e5343c6a6 - pristine_git_object: 3c0ef8ac69c42c6e72f18b40b03838c12df0fea5 + last_write_checksum: sha1:3295631cb5078b83a26f6be705bb33a57d8af678 + pristine_git_object: 96a30565bfe4310371f346fcf87b25b3f5f4f80e docs/models/operations/listattemptsorderby.md: id: 8aa3505e4088 last_write_checksum: sha1:31da0d12674bc1e8a001976c0e4778a6efa4ee1e pristine_git_object: 6f854abb0932e74ae27a3426feb4b65a5485c288 docs/models/operations/listattemptsrequest.md: id: c664c21b68cc - last_write_checksum: sha1:9a67ad793c59a49e78354fe307e3eecb047c8de4 - pristine_git_object: 4ac8ecf7a86fe58ba13c2627a29afb6d5b6a4e48 + last_write_checksum: sha1:a1c0b8cbb5bf3d4ad9269ef2699addb7e5b92cd8 + pristine_git_object: b1ee918f7ef039aad8216e957915aafe4dc7609a docs/models/operations/listattemptsstatus.md: id: 2135342ab1bc last_write_checksum: sha1:7b19c7107e6a0031cb3e9f642d5644633c469a10 pristine_git_object: d6a620877e979368f75339b6e143b7927778b088 + docs/models/operations/listattemptstenantid.md: + id: 73fb78fe8149 + last_write_checksum: sha1:30c3b9e543a1b389e2f5362995ad74882ce70fbe + pristine_git_object: e3cf12aaa7c344b11863cd242b4061bcbdada9f5 docs/models/operations/listattemptstopic.md: id: f2821d472cd9 - last_write_checksum: sha1:6ad24b065ea250ec394fab9bd879226b96c7ced6 - pristine_git_object: 03f6b0969ce40da2558f4889cb8c25b749535366 + last_write_checksum: sha1:7757c204486b83748819073a61d8327fc032df0d + pristine_git_object: f80277eae251a82918f9e9eb6309727fc5cc67d3 docs/models/operations/listeventsdir.md: id: 64c3b2e5265d last_write_checksum: sha1:86ad84ca4ba40f04bee0914e920250533729bf97 pristine_git_object: aff616b259379fa807d47a6ebc510b2a5d6879bd + docs/models/operations/listeventsid.md: + id: cd0e9734be19 + last_write_checksum: sha1:2e16df0a7e0e64e14d178ebc96b1c15e7cc1e4fc + pristine_git_object: ceb29ad133311c7fe3d6aa938ec26b597295b71a docs/models/operations/listeventsorderby.md: id: 26a2c25f93c9 last_write_checksum: sha1:998c7fcdacde1c070f6f5344c87beb414cf49f3c pristine_git_object: 6bca4302436902cb7eeb8ac8464055b459e9f157 docs/models/operations/listeventsrequest.md: id: 4c63e4d672e2 - last_write_checksum: sha1:2088f14a6c576f00090e90687dfe70429a531e9e - pristine_git_object: bb664d71478c50fe49d43d3ec075a246133bbfa7 + last_write_checksum: sha1:c710d40d7b97901b2a61258f0de1f74c95223b2f + pristine_git_object: 3a660702c5afdee12e1fff3f9ddc793b63715ce1 + docs/models/operations/listeventstenantid.md: + id: f211d204834a + last_write_checksum: sha1:03b5c2b4923b92a00a8fdedf16a819b2f4b0cae8 + pristine_git_object: d60598f42a2d8a639b13654e4e0371cf55b9ecc4 docs/models/operations/listeventstopic.md: id: 181dd268f9dc - last_write_checksum: sha1:2f52cf6d76459acc85d6f44438662f416d19287c - pristine_git_object: 4c8fc324a37c6d1e9b1e1b9b2b27356dce683db2 + last_write_checksum: sha1:680a20091cbb2f42cfcfa38240b1dcde12acf84d + pristine_git_object: 1bfc5c08d19c37e09cdc790c56b01d9023e47483 docs/models/operations/listtenantdestinationattemptsdir.md: id: 34ec44a1d6ee last_write_checksum: sha1:6abbfebcb5abfd4058b731701171024682377890 pristine_git_object: 8cdd425c18babea9ddc9fd325a7c10761ab4f95e + docs/models/operations/listtenantdestinationattemptseventid.md: + id: be83aa135148 + last_write_checksum: sha1:2ee47239b03cdae2c4776e4d052f5f446e8c19d8 + pristine_git_object: 02b6f41119ae7cb4970aec3575bb6f66bba30e55 docs/models/operations/listtenantdestinationattemptsinclude.md: id: 2540a66e35b0 - last_write_checksum: sha1:4ada516f11ab72b1175483d2890ee60f9371c522 - pristine_git_object: 166af08f6dde1b127b98fe78faaca5608b0281fa + last_write_checksum: sha1:e57102df7d271cb671388b475cb6905b0a3c372c + pristine_git_object: 174760083b8cf77b7887501fe19205abab8452a2 docs/models/operations/listtenantdestinationattemptsorderby.md: id: 528d7d98d88e last_write_checksum: sha1:a9662882f8af09d677d6eb4eec24866fc52fbef8 pristine_git_object: a3f566ce8a637215c28dd7e62ed285def9f4d0b6 docs/models/operations/listtenantdestinationattemptsrequest.md: id: 341955bbcb29 - last_write_checksum: sha1:a74436c881e890e1410918d5da0708a2403c75c7 - pristine_git_object: e99b3ab146b19de6599f5795ca0d5d4bb49acde5 + last_write_checksum: sha1:dd2925f5b142f66b5f16f23d1b1882669a8991a6 + pristine_git_object: db6a29ce0a07b4e687903abb83cc02f502f93960 docs/models/operations/listtenantdestinationattemptsstatus.md: id: 5185c1081587 last_write_checksum: sha1:8fbaab8110940bbd2a269bf878b373396f45748c pristine_git_object: be95d1852e082286300fe059b7c5ae4b3d608986 docs/models/operations/listtenantdestinationattemptstopic.md: id: 3212865488ce - last_write_checksum: sha1:649a7f9837d911271836f5a248ff56c6d13551c9 - pristine_git_object: 47647d9ed6e27cc6792a0287f159a1815ee852f7 + last_write_checksum: sha1:49b9fb483066677a53e0876dcc1e7b7277f8e874 + pristine_git_object: 81ce4202daf4aa902ef64465cd4c0407c5bd3635 docs/models/operations/listtenantdestinationsrequest.md: id: 76b4ddfe6a6d - last_write_checksum: sha1:1ae5797bfa972eda61f0df2b81396aff4f1c4bde - pristine_git_object: 6a3e6a06f28edf4534c387a3283ecef67fc8d215 + last_write_checksum: sha1:a34ed1c5f8b455b5b860886cf09148ee270fcfb9 + pristine_git_object: c118dc972a8054422499ecede47d132e98ab8f47 docs/models/operations/listtenantdestinationstype.md: id: a20b115e8b0f - last_write_checksum: sha1:ee0e2f4705b97615c80ba1027aafd0265a7966c1 - pristine_git_object: 0c4cbc49831bb4b8580ab5ca51822a78d883686e + last_write_checksum: sha1:dddc7f88d16b6bdeccc8e193a209beecfe30ec06 + pristine_git_object: 85f94a008c6ed84376047160e761d090c991a113 docs/models/operations/listtenantsdir.md: id: 1c1e3cb1ad58 last_write_checksum: sha1:837b457e7f32118d383d7534f1796bb96f04cc5b pristine_git_object: d8ff66f940dab75431351b1619111701ab7552e4 + docs/models/operations/listtenantsid.md: + id: bb2f8aa2c380 + last_write_checksum: sha1:1dbc9a634e4acaf53d03d4f59121d2d2a8748817 + pristine_git_object: e95cf84979ee47f7395a6e4df1acfa10ef7c12d0 docs/models/operations/listtenantsrequest.md: id: f550d84e5a64 - last_write_checksum: sha1:120e004ff67fe2e050db4f367666bbdb1abe16f6 - pristine_git_object: 59dd8f9047acc2d9e784539a46a66255f8783e44 + last_write_checksum: sha1:8a54bfdedd3be67f50208d7be5d52f220574bad9 + pristine_git_object: bb65b2ff85ee82af22f41947c5feec52f432b543 docs/models/operations/theme.md: id: 2f9a390ad334 last_write_checksum: sha1:677548ae53312176316b1d2a45f490bd0c008253 pristine_git_object: dfab6e11683545b7df748d81ef57321388cc6d5b docs/models/operations/topics.md: id: b18fd8c48c1d - last_write_checksum: sha1:b9a49d1da2c56271c8ef71d5261c1457d25736a6 - pristine_git_object: 9a806e112a7996a2b260909b07672b1eccb04c15 + last_write_checksum: sha1:4958f9636684dd98e20ce541b62fe067a665f5fc + pristine_git_object: ce47ee1051d9f24fe130b622e1289cc01d5389a4 docs/models/operations/updatetenantdestinationrequest.md: id: 3806f88d7729 - last_write_checksum: sha1:171cbec783c227b4457a52200ecd84802dc33d49 - pristine_git_object: 86854fcbda885b31fb78e3b168a85efd0a53a195 + last_write_checksum: sha1:b0a0e019302c12ae2a085c19fb41755cbe44bff3 + pristine_git_object: 8d796440be55c1832346cb29a707ff589af75272 docs/models/operations/updatetenantdestinationresponse.md: id: 7f18084651f9 last_write_checksum: sha1:30cac7fb7ac5b2bc772b254930b504e72c4cb83a pristine_git_object: aad89aa6d07c957193ed76994d78450ad0f3b6a1 docs/models/operations/upserttenantrequest.md: id: 7df83dab5d53 - last_write_checksum: sha1:69e54dde262050fd5364f75ece53239e381b6d27 - pristine_git_object: dedcefb4482c53beeb40422ba7191a23b62dd598 + last_write_checksum: sha1:58b4ced160b6c68ccafa790e2b9a4754e4952f30 + pristine_git_object: 3f776ff14ece2ee139361cbb1f239a7c2c42c806 docs/models/operations/workers.md: id: a10841a82928 last_write_checksum: sha1:1689184b3770a32bbbf752e741ac517d5a6fb418 pristine_git_object: b9c3c42e697df4c33f959d7dbc30b2188827055c docs/sdks/attempts/README.md: id: 41a6f5edd623 - last_write_checksum: sha1:225842e313bbb8427a899dd3cc4801b68b703534 - pristine_git_object: 2621758f7c854f0dc3bfa8aa8b74eea6907a79cb + last_write_checksum: sha1:b435903d2ae3d93901b4e01020f73f2e7be15d19 + pristine_git_object: 6e6c29ad858947a99fec44fa0cdd137cdb2cbb7f docs/sdks/destinations/README.md: id: e83d288899aa - last_write_checksum: sha1:ba6e50450bb4f5cfcdefbee7a957387535995e50 - pristine_git_object: d32681c373518c32426683a3b65f91a23cec7184 + last_write_checksum: sha1:3b1538409ebd14c31c5e761f0c6ff694ae236026 + pristine_git_object: 93d5d8b190212ffbe103eb759a6828dbd79aa3d7 docs/sdks/events/README.md: id: cf45a4390b9b last_write_checksum: sha1:11045bd482b5fea318c2f006845e7ec7e2cffb52 @@ -583,8 +611,8 @@ trackedFiles: pristine_git_object: 64d5cb116073f0cf8ddc7806f9433cdca6c85a09 docs/sdks/tenants/README.md: id: 68a2b19779b5 - last_write_checksum: sha1:6d78b6a817e9afcb07b61fc399dbb18e5135eba8 - pristine_git_object: e5c4f96ea4902570a4d8478be7a2e04fcb49c8fa + last_write_checksum: sha1:4d943f52bb608655034edcdf4b9754c0c72e8194 + pristine_git_object: 255c59672854fd23a09c5de0b2f08cff798d72ef docs/sdks/topics/README.md: id: db4aff1adac3 last_write_checksum: sha1:8d9a9d2163426ccc4ae92edc57a1e6860d94630a @@ -611,12 +639,12 @@ trackedFiles: pristine_git_object: 2ecc914dee96b672e4c966d02b66b72ad7d45435 jsr.json: id: 7f6ab7767282 - last_write_checksum: sha1:a84d6ae14d5c20e8accf07bd74e749b292001e74 - pristine_git_object: 7cb416a4f42637830e91de965efb841b645ed7a6 + last_write_checksum: sha1:b322f316b9e0de28677043203ae1d3d9696a3336 + pristine_git_object: 453059db5d4afedc9d90f69fe4ac0abdec87bedd package.json: id: 7030d0b2f71b - last_write_checksum: sha1:49942c06767af7dbff393dc1d634eea418cbce4c - pristine_git_object: 5225530483e5202ac6f8e19d60333ea8d3eafe03 + last_write_checksum: sha1:028e49eb0964fee072481dccc08567697e5106a1 + pristine_git_object: 87a5ee24f9dc0764aa98b468622ffc0a3161ed04 src/core.ts: id: f431fdbcd144 last_write_checksum: sha1:c858d8ea76a86c428e26943bf348319ba0a3c865 @@ -627,16 +655,16 @@ trackedFiles: pristine_git_object: 899f5e38a1216ca9e2ba1674d7af4901c95a448b src/funcs/attemptsList.ts: id: 05c308c98e04 - last_write_checksum: sha1:47334a81dc348f5ca69f21b2d3d858ffe52c179a - pristine_git_object: 90596dcf70fed267e5f2c54d1dd3c73cafdeb57e + last_write_checksum: sha1:e2960ab8b7716a5aa1f70c78e17d55c2845d20a7 + pristine_git_object: 3fc5c300434ce895a0beb37cc786cdf719ef4697 src/funcs/attemptsRetry.ts: id: 3c2b9181138e last_write_checksum: sha1:066d07aa11966c6e5709be23f4e800327bc7b215 pristine_git_object: 7420c7c6c8746790de8fbffd82ba889427c78ea1 src/funcs/destinationsCreate.ts: id: bb26d96fe47c - last_write_checksum: sha1:e3820095916e0278e55d89066052e0ea1642055c - pristine_git_object: 2ad86f38a1913bb125777f2f02b49bc3ab34c750 + last_write_checksum: sha1:6377c0ccd72bc3dcc4c2e998aa79f176565fbbc9 + pristine_git_object: ff6af28867f38a37f308c7a2f7eb23bbde4f8ae0 src/funcs/destinationsDelete.ts: id: 95323805da0b last_write_checksum: sha1:43f9166035ec12d9ed16fadbd9e0c80d4be767c3 @@ -663,20 +691,20 @@ trackedFiles: pristine_git_object: 1a2e07919330a471caca66a7e68d52cb221375db src/funcs/destinationsListAttempts.ts: id: bb79602f1494 - last_write_checksum: sha1:240bc6c40b688217177d3ca71f8b39b68e818834 - pristine_git_object: 14623dd1007f19e5a3453e1261fc5678e15ac52a + last_write_checksum: sha1:00ded738849f6f773f04abe069242cadc87285f8 + pristine_git_object: 9d1f98e14ad3d03b9919a44e534b9348a3cf4f20 src/funcs/destinationsUpdate.ts: id: bf3a58acd260 - last_write_checksum: sha1:4a90acd5a191f5554f5c97d37671e4f2d8861851 - pristine_git_object: 43fae84eb1f7cbf2529966db112eeea13b0ec4c6 + last_write_checksum: sha1:c69d86705a8004ff3bede79ba7e512b70c49eacc + pristine_git_object: 0bb684aa7fb4477301b9ac87744c643f7f863471 src/funcs/eventsGet.ts: id: 5f1c128a8a40 last_write_checksum: sha1:4efb24b09c08cd4de812a718efbcd450280fdb83 pristine_git_object: 5effb084c2723b43181fed8d7cec0ebae2716303 src/funcs/eventsList.ts: id: 4522a8542985 - last_write_checksum: sha1:77df5a53e422a6025e92587560e2d36d58e735c8 - pristine_git_object: 0dd9e07555949826e32980156a03f2dd52725853 + last_write_checksum: sha1:af72832039c4427e27d0c9e2090b396c891942d8 + pristine_git_object: 45b4777e935f752abea9c271badde3cbaee05aa8 src/funcs/healthCheck.ts: id: c97d559e7f4c last_write_checksum: sha1:b4e79f2734e36285e512b58f322a1ebb402f934f @@ -711,12 +739,12 @@ trackedFiles: pristine_git_object: aee19fd0f8d688ac1f16a871d740468f271ceed7 src/funcs/tenantsListTenants.ts: id: 7a588593213f - last_write_checksum: sha1:c2450adb0140aba3b585a21b907c7e4105f75245 - pristine_git_object: 5fbc272bb1e88e686a28fa80d6a1a6ac7578132d + last_write_checksum: sha1:8848717bc34eca1fb086e32c20656b800d5fc8c4 + pristine_git_object: 2017895c4ef8229fe3da8cc90e58fc7d217f0823 src/funcs/tenantsUpsert.ts: id: f6eb1c703ee6 - last_write_checksum: sha1:0fa1a6b6a8b21553b246d134c4dd02fdd7da4fef - pristine_git_object: a83beb5ad0a5bc42cf277a6bf27f9b49d7fc36a1 + last_write_checksum: sha1:5b2356b1d539d7032c0b0373399724877c032a0f + pristine_git_object: 03de88cbe6b34e30a4cf21f671ae244682fa06e5 src/funcs/topicsList.ts: id: eb5cfdbc739a last_write_checksum: sha1:d4644855a646edd148b5950a79dbae91d43aa2a3 @@ -743,8 +771,8 @@ trackedFiles: pristine_git_object: 0aebd8b0a4867e35cb3348fc52921c3c0b4725b7 src/lib/config.ts: id: 320761608fb3 - last_write_checksum: sha1:269cb6d1acdeea2e883a99b5acbeca510abf3f62 - pristine_git_object: ff2491418abff58ce5350c3f5c2a202e08b4f0f1 + last_write_checksum: sha1:c8fa96f525eb7706fdaa215c339f7a68d0a04c2a + pristine_git_object: c573735701f5b36ed50ee4d0e35926058a39e7e5 src/lib/dlv.ts: id: b1988214835a last_write_checksum: sha1:1dd3e3fbb4550c4bf31f5ef997faff355d6f3250 @@ -823,8 +851,8 @@ trackedFiles: pristine_git_object: 0955a573c2ce989d63c737410ab8cc28706d9f74 src/mcp-server/mcp-server.ts: id: aabbc4ab07c1 - last_write_checksum: sha1:c88ec740d67153ebfe20076697110fa73173e138 - pristine_git_object: a7c3a332154d3eebf69358ac1de57e4a58ca1b5f + last_write_checksum: sha1:3f64df81a1ccc2d62b19dae6ac2190387020ba02 + pristine_git_object: 43e63ade2ce94e7a12c7578917ee0c98f252ca53 src/mcp-server/prompts.ts: id: 26f3d73cbf31 last_write_checksum: sha1:3472c8babea2d3b44d3a61e42fbba471fbd936b7 @@ -839,8 +867,8 @@ trackedFiles: pristine_git_object: c25696d4c4f70e081fa5d87ad6891874c509a577 src/mcp-server/server.ts: id: 2784dd48e82a - last_write_checksum: sha1:76d7dc2343a543d92886b07366d942ded813ef0c - pristine_git_object: e4bf8288b0f0a0afda37a5363fa3469750cfb721 + last_write_checksum: sha1:f496785c2248fd618764d9f30b181aa04001d202 + pristine_git_object: 0a5f351614312cd494c01aae29e6c4f6facbca3b src/mcp-server/shared.ts: id: 074e80d4be1e last_write_checksum: sha1:d89576cea2bef3856b7fc3e65b868875528be042 @@ -863,8 +891,8 @@ trackedFiles: pristine_git_object: 9cdad7e7d410a01b416f2273731d447ef99fc328 src/mcp-server/tools/destinationsCreate.ts: id: 8b1bc5b2f16e - last_write_checksum: sha1:efc6891e7ac44842a1ea511336f7a8215357ef8e - pristine_git_object: f50919a8cc22323c2919af8ff6259dbb0cb52a95 + last_write_checksum: sha1:951b2100e8dc00e6770e410be7a9d96931980ecb + pristine_git_object: 153392d071db3463c5982c1634fd5a4ba3c06315 src/mcp-server/tools/destinationsDelete.ts: id: 606b9394f9ed last_write_checksum: sha1:e917e3d3eabd0193d0bbbe619e35954f5682dea0 @@ -895,8 +923,8 @@ trackedFiles: pristine_git_object: cb14f136f11a004e27ae4dfeac8fa05a9c1b67bf src/mcp-server/tools/destinationsUpdate.ts: id: af33626c4345 - last_write_checksum: sha1:faadf0f6e3f6012fa636771fee67d82406d27137 - pristine_git_object: 8f2e6f357e169c8fd28ed6bf25cc112382cffab1 + last_write_checksum: sha1:3bebc61551e303ad58e5d18dedb579dd7389c0c7 + pristine_git_object: 709cbf4c99ca9cecb4bcd1040c3ab4acce1708fb src/mcp-server/tools/eventsGet.ts: id: 3aadad1f25b1 last_write_checksum: sha1:905318de7bd7ff916dd993b4048d9f4e1d097b29 @@ -939,12 +967,12 @@ trackedFiles: pristine_git_object: 1b37f8acae13d0e7091c523a2fac483e3a0caa09 src/mcp-server/tools/tenantsListTenants.ts: id: 44237630d9c4 - last_write_checksum: sha1:c0598ae06e611787a989a5d0c8ecfd7333c70553 - pristine_git_object: ea3fcb2f9bb21100c207f5f7efcac49361f210f0 + last_write_checksum: sha1:422d46905ef1f1d123a490ca3599850743e7bab5 + pristine_git_object: d34b192ac05f070a3b2ff5f6f98f20c9e73d08a4 src/mcp-server/tools/tenantsUpsert.ts: id: 45e8ddbd187d - last_write_checksum: sha1:22b63e34242b8d3d8bfddb736007eaff9664bd0a - pristine_git_object: 79d5f4ad2265dece1afdf62d36fed89519a70b89 + last_write_checksum: sha1:6fab66269d96e7b8a6c2afa7846215f78291088e + pristine_git_object: 5cb69968bd21ff21d46f743fbeafbd812eb8059d src/mcp-server/tools/topicsList.ts: id: 28a55eacab3f last_write_checksum: sha1:20c552d9248a74b89c293a75d136701a96fb4f0e @@ -1267,8 +1295,8 @@ trackedFiles: pristine_git_object: 886eb0867cd515030e727c2ece3f4016d95ee2f0 src/models/operations/createtenantdestination.ts: id: 4a821ec08c76 - last_write_checksum: sha1:ab44c59eacdaf2b845c403e59fc344b044215beb - pristine_git_object: 5e50398e35a5188b87ad748fe0604aab83b44c2c + last_write_checksum: sha1:a945af75afb743fa33c90c7ab36e7ad71a61a744 + pristine_git_object: 6ced17e8807b18094f5b3a09599edb1350f385e7 src/models/operations/deletetenant.ts: id: 53bba7aa0258 last_write_checksum: sha1:68250e9f44d71779c65869679699db2279d1dc98 @@ -1287,8 +1315,8 @@ trackedFiles: pristine_git_object: 748556cec7d226ff993c03129e0e116bf481023e src/models/operations/getattempt.ts: id: 1e29ee3806d0 - last_write_checksum: sha1:fbaf422951012f4fdb73b38752d5bf40df82b7eb - pristine_git_object: 8949f086580a505d61bc171fe0d5d007e5931a89 + last_write_checksum: sha1:f1c59d47d71d12c0edbf58435dbe707b6c74951a + pristine_git_object: d7d95014e6ea7d2813397b70f0e7a8d541e7608a src/models/operations/getdestinationtypeschema.ts: id: 66f17cba3cea last_write_checksum: sha1:31c517b873cd57db9bf5ca63857f0cfb2eb7478e @@ -1307,8 +1335,8 @@ trackedFiles: pristine_git_object: a4c633987fbada9de11409988308e8f36e92932e src/models/operations/gettenantdestinationattempt.ts: id: 6e3d7c05ed74 - last_write_checksum: sha1:ccfb540399965f37f5e6a1c7bdfe7a77e26e9b33 - pristine_git_object: e9b5264a50b0e7e9a2f2bdb401dee2fe089231e9 + last_write_checksum: sha1:6b8b8136383241843a3d3f668088da21ee62bf66 + pristine_git_object: 7fdfac8c181de52b27e17419c0165fc7392b4521 src/models/operations/gettenantportalurl.ts: id: 7da1ad2b3a94 last_write_checksum: sha1:d1e6eea60e40ef0887a3ef91cb00fbc29bb864bc @@ -1327,40 +1355,40 @@ trackedFiles: pristine_git_object: a5a697ad7eb868ecf77f811a8011a24b026ecf18 src/models/operations/listattempts.ts: id: 5d32427e0db0 - last_write_checksum: sha1:f3ca005f7ea6392f1e405481869f06a62b871927 - pristine_git_object: e54575e106c40670edc778da4f8af85c3e34cb61 + last_write_checksum: sha1:2d823fe4f14c4a7bdbaf50ffe00a6e33b04abece + pristine_git_object: 4c769d275879b7ed904489ae433f92878e0e78ad src/models/operations/listevents.ts: id: 4324ebbf246a - last_write_checksum: sha1:e3112a819ce5ee671b89c188ab74d70853d7fea1 - pristine_git_object: b6f69afdd5ac6b0c4548bdb2b38a2723a8d14e3c + last_write_checksum: sha1:b09d8717b554fb22526594451a210622afd6b3da + pristine_git_object: c060b7235812f8cea2402d1e55d8abc90a868cc2 src/models/operations/listtenantdestinationattempts.ts: id: fab875a5d815 - last_write_checksum: sha1:629e0a1566eab570b5b7220f70ba17e6a7fe2bdf - pristine_git_object: 67cd60c95ac3c40b10ad17fd58d89b55f84d6a91 + last_write_checksum: sha1:ed2bb8422a9d55c60ce585e59976e71e6ed25ed2 + pristine_git_object: de97cff1387a45db83a6f1690d402a6cc7025e3b src/models/operations/listtenantdestinations.ts: id: 4f302620b5f9 - last_write_checksum: sha1:a16a31e7c5c692b56f528103fa7981e9014d9ecc - pristine_git_object: e6c70551cae63d257b1d29478ed95fac4b6a427b + last_write_checksum: sha1:7c6a2722d47d356687d002264cd59e6243ac40e1 + pristine_git_object: 53ebc32b1f39e306dd03a7c2d4be73468c246ba9 src/models/operations/listtenants.ts: id: 92cf989590cc - last_write_checksum: sha1:cd373dad24d07e41548788731cc309471c0acb19 - pristine_git_object: d4e627ac84a88f10ce8381b9a3cc8f78cd25b303 + last_write_checksum: sha1:268698ca22049a647e3e253ac5beed497dde421b + pristine_git_object: 132bd76a11ccc97b60fb1b1087936a94ca077d0e src/models/operations/updatetenantdestination.ts: id: f920d916486b - last_write_checksum: sha1:4e6b28ef971b5f73a976f28e11d7ce761f28adbd - pristine_git_object: f309d454cbc1e38796dc3ba2a9ca7187d209fa94 + last_write_checksum: sha1:531c4f9121fca6cf69aef3302e81cae97d6b04e2 + pristine_git_object: 2f26c4edc0d0304837a9c7e70a37bb5101a6afcf src/models/operations/upserttenant.ts: id: 414b363a722d - last_write_checksum: sha1:6ef5614e68bae58e7e039ba164acb2f8d815394f - pristine_git_object: e8f3d0a4d05b9c0a38603ab68aaf5cea75b55d58 + last_write_checksum: sha1:2288b85b0ac16ab1a61dd3edc9b756473d4876be + pristine_git_object: e8487d0c7bfad1141b6b5934e3183e4aeef38e1d src/sdk/attempts.ts: id: b2a3fc6771ff last_write_checksum: sha1:d113513cfc0e58cb49ed1c0c49762cbbd629e621 pristine_git_object: 70a935aa9468d6c7de4e08f0a64ed2db478339c8 src/sdk/destinations.ts: id: "130438586931" - last_write_checksum: sha1:823b5de97cf57f9f757eac4b4e5b2cf84174ba15 - pristine_git_object: 4f88de86b5b6539a339fcc90dd4ea4ae9359aaa9 + last_write_checksum: sha1:3464415f379648b70c0afa6d4fe5060e0aaa3c4f + pristine_git_object: c9797cb817698b4522588b185e8543072711965a src/sdk/events.ts: id: c7d130088b17 last_write_checksum: sha1:87e532e3a4b34dfcf2255564a51c4f19df36608b @@ -1387,8 +1415,8 @@ trackedFiles: pristine_git_object: bbbc0ae79e5dd3498f902c501596e25c9260fc1b src/sdk/tenants.ts: id: 7f3b22c334f5 - last_write_checksum: sha1:e02ef34d77087ca991baaf8b002464298e7ac9d9 - pristine_git_object: e3d8896803aa91bb9786478a7cb05868dd4db6b3 + last_write_checksum: sha1:a29c1ac23af21c8fe49819299f5d0bc2609adc81 + pristine_git_object: befac36a0a5f0744529fdf50b370858169677a3e src/sdk/topics.ts: id: d1567d1cd917 last_write_checksum: sha1:fa28cf21bf938daaa7608d81cb4459aa7c7c5af3 @@ -1882,7 +1910,12 @@ examples: application/json: {"models": [{"id": "del_123", "status": "success", "time": "2024-01-01T00:00:05Z", "code": "200", "attempt_number": 1, "event_id": "evt_123", "destination_id": "des_456", "event": {"id": "evt_123", "topic": "user.created", "time": "2024-01-01T00:00:00Z", "eligible_for_retry": false, "metadata": {"source": "crm"}}}], "pagination": {"order_by": "time", "dir": "desc", "limit": 100, "next": null, "prev": null}} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: "## Typescript SDK Changes:\n* `outpost.attempts.list()`: `error` **Changed** (Breaking ⚠️)\n* `outpost.destinations.listAttempts()`: \n * `request.tenantId` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `outpost.publish.event()`: `error` **Changed** (Breaking ⚠️)\n* `outpost.destinations.getAttempt()`: \n * `request.tenantId` **Changed** (Breaking ⚠️)\n * `error` **Changed**\n* `outpost.tenants.listTenants()`: \n * `request` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `outpost.tenants.upsert()`: \n * `request.tenantId` **Changed** (Breaking ⚠️)\n * `error` **Changed**\n* `outpost.tenants.get()`: \n * `request.tenantId` **Changed** (Breaking ⚠️)\n * `error` **Changed**\n* `outpost.tenants.delete()`: \n * `request.tenantId` **Changed** (Breaking ⚠️)\n * `error` **Changed**\n* `outpost.tenants.getPortalUrl()`: \n * `request.tenantId` **Changed** (Breaking ⚠️)\n * `error` **Changed**\n* `outpost.tenants.getToken()`: \n * `request.tenantId` **Changed** (Breaking ⚠️)\n * `error` **Changed**\n* `outpost.events.list()`: \n * `response.models[].successfulAt` **Removed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `outpost.events.get()`: \n * `response.successfulAt` **Removed** (Breaking ⚠️)\n * `error` **Changed**\n* `outpost.destinations.disable()`: \n * `request.tenantId` **Changed** (Breaking ⚠️)\n * `error` **Changed**\n* `outpost.destinations.enable()`: \n * `request.tenantId` **Changed** (Breaking ⚠️)\n * `error` **Changed**\n* `outpost.destinations.update()`: \n * `request.tenantId` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `outpost.destinations.list()`: \n * `request.tenantId` **Changed** (Breaking ⚠️)\n * `error` **Changed**\n* `outpost.destinations.create()`: \n * `request.tenantId` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `outpost.destinations.get()`: \n * `request.tenantId` **Changed** (Breaking ⚠️)\n * `error` **Changed**\n* `outpost.attempts.retry()`: `error` **Changed** (Breaking ⚠️)\n* `outpost.destinations.delete()`: \n * `request.tenantId` **Changed** (Breaking ⚠️)\n * `error` **Changed**\n* `outpost.schemas.listDestinationTypes()`: **Added**\n* `outpost.schemas.getDestinationType()`: **Added**\n* `outpost.attempts.get()`: `error` **Changed**\n* `outpost.schemas.getDestinationTypeJwt()`: **Removed** (Breaking ⚠️)\n* `outpost.schemas.listDestinationTypesJwt()`: **Removed** (Breaking ⚠️)\n* `outpost.topics.list()`: `error.status[401]` **Added**\n" +releaseNotes: | + ## Typescript SDK Changes: + * `outpost.tenants.listTenants()`: `request` **Changed** (Breaking ⚠️) + * `outpost.events.list()`: `request` **Changed** (Breaking ⚠️) + * `outpost.attempts.list()`: `request` **Changed** (Breaking ⚠️) + * `outpost.destinations.listAttempts()`: `request` **Changed** (Breaking ⚠️) generatedFiles: - .gitattributes - .npmignore diff --git a/sdks/outpost-typescript/.speakeasy/gen.yaml b/sdks/outpost-typescript/.speakeasy/gen.yaml index bb8c3c444..a058d933c 100644 --- a/sdks/outpost-typescript/.speakeasy/gen.yaml +++ b/sdks/outpost-typescript/.speakeasy/gen.yaml @@ -29,7 +29,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false typescript: - version: 0.8.0 + version: 0.8.1 acceptHeaderEnum: true additionalDependencies: dependencies: {} diff --git a/sdks/outpost-typescript/RELEASES.md b/sdks/outpost-typescript/RELEASES.md index 9e47d2529..4e6a6a784 100644 --- a/sdks/outpost-typescript/RELEASES.md +++ b/sdks/outpost-typescript/RELEASES.md @@ -68,4 +68,14 @@ Based on: ### Generated - [typescript v0.8.0] sdks/outpost-typescript ### Releases -- [NPM v0.8.0] https://www.npmjs.com/package/@hookdeck/outpost-sdk/v/0.8.0 - sdks/outpost-typescript \ No newline at end of file +- [NPM v0.8.0] https://www.npmjs.com/package/@hookdeck/outpost-sdk/v/0.8.0 - sdks/outpost-typescript + +## 2026-03-13 08:41:57 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.753.0 (2.862.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.8.1] sdks/outpost-typescript +### Releases +- [NPM v0.8.1] https://www.npmjs.com/package/@hookdeck/outpost-sdk/v/0.8.1 - sdks/outpost-typescript \ No newline at end of file diff --git a/sdks/outpost-typescript/docs/models/operations/createtenantdestinationrequest.md b/sdks/outpost-typescript/docs/models/operations/createtenantdestinationrequest.md index ed4efc0e7..485ef72f2 100644 --- a/sdks/outpost-typescript/docs/models/operations/createtenantdestinationrequest.md +++ b/sdks/outpost-typescript/docs/models/operations/createtenantdestinationrequest.md @@ -7,7 +7,7 @@ import { CreateTenantDestinationRequest } from "@hookdeck/outpost-sdk/models/ope let value: CreateTenantDestinationRequest = { tenantId: "", - params: { + body: { type: "aws_s3", topics: "*", config: { @@ -31,4 +31,4 @@ let value: CreateTenantDestinationRequest = { | Field | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `tenantId` | *string* | :heavy_check_mark: | The ID of the tenant. Required when using AdminApiKey authentication. | -| `params` | *components.DestinationCreate* | :heavy_check_mark: | N/A | \ No newline at end of file +| `body` | *components.DestinationCreate* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/sdks/outpost-typescript/docs/models/operations/destinationid.md b/sdks/outpost-typescript/docs/models/operations/destinationid.md new file mode 100644 index 000000000..437d58ebb --- /dev/null +++ b/sdks/outpost-typescript/docs/models/operations/destinationid.md @@ -0,0 +1,22 @@ +# DestinationId + +Filter attempts by destination ID(s). Use bracket notation for multiple values (e.g., `destination_id[0]=d1&destination_id[1]=d2`). + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `string[]` + +```typescript +const value: string[] = [ + "", + "", +]; +``` + diff --git a/sdks/outpost-typescript/docs/models/operations/getattemptinclude.md b/sdks/outpost-typescript/docs/models/operations/getattemptinclude.md index e5fd20b34..ef32d450e 100644 --- a/sdks/outpost-typescript/docs/models/operations/getattemptinclude.md +++ b/sdks/outpost-typescript/docs/models/operations/getattemptinclude.md @@ -1,6 +1,6 @@ # GetAttemptInclude -Fields to include in the response. Can be specified multiple times or comma-separated. +Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata) - `event.data`: Include full event with payload data - `response_data`: Include response body and headers diff --git a/sdks/outpost-typescript/docs/models/operations/getattemptrequest.md b/sdks/outpost-typescript/docs/models/operations/getattemptrequest.md index d7efbc1ac..3b7592b28 100644 --- a/sdks/outpost-typescript/docs/models/operations/getattemptrequest.md +++ b/sdks/outpost-typescript/docs/models/operations/getattemptrequest.md @@ -12,7 +12,7 @@ let value: GetAttemptRequest = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `attemptId` | *string* | :heavy_check_mark: | The ID of the attempt. | -| `include` | *operations.GetAttemptInclude* | :heavy_minus_sign: | Fields to include in the response. Can be specified multiple times or comma-separated.
- `event`: Include event summary (id, topic, time, eligible_for_retry, metadata)
- `event.data`: Include full event with payload data
- `response_data`: Include response body and headers
| \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `attemptId` | *string* | :heavy_check_mark: | The ID of the attempt. | +| `include` | *operations.GetAttemptInclude* | :heavy_minus_sign: | Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`).
- `event`: Include event summary (id, topic, time, eligible_for_retry, metadata)
- `event.data`: Include full event with payload data
- `response_data`: Include response body and headers
| \ No newline at end of file diff --git a/sdks/outpost-typescript/docs/models/operations/gettenantdestinationattemptinclude.md b/sdks/outpost-typescript/docs/models/operations/gettenantdestinationattemptinclude.md index 72a9fb0b7..e8d56ea64 100644 --- a/sdks/outpost-typescript/docs/models/operations/gettenantdestinationattemptinclude.md +++ b/sdks/outpost-typescript/docs/models/operations/gettenantdestinationattemptinclude.md @@ -1,6 +1,6 @@ # GetTenantDestinationAttemptInclude -Fields to include in the response. Can be specified multiple times or comma-separated. +Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). - `event`: Include event summary - `event.data`: Include full event with payload data - `response_data`: Include response body and headers diff --git a/sdks/outpost-typescript/docs/models/operations/gettenantdestinationattemptrequest.md b/sdks/outpost-typescript/docs/models/operations/gettenantdestinationattemptrequest.md index f896f822b..f483c1c0c 100644 --- a/sdks/outpost-typescript/docs/models/operations/gettenantdestinationattemptrequest.md +++ b/sdks/outpost-typescript/docs/models/operations/gettenantdestinationattemptrequest.md @@ -14,9 +14,9 @@ let value: GetTenantDestinationAttemptRequest = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `tenantId` | *string* | :heavy_check_mark: | The ID of the tenant. Required when using AdminApiKey authentication. | -| `destinationId` | *string* | :heavy_check_mark: | The ID of the destination. | -| `attemptId` | *string* | :heavy_check_mark: | The ID of the attempt. | -| `include` | *operations.GetTenantDestinationAttemptInclude* | :heavy_minus_sign: | Fields to include in the response. Can be specified multiple times or comma-separated.
- `event`: Include event summary
- `event.data`: Include full event with payload data
- `response_data`: Include response body and headers
| \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `tenantId` | *string* | :heavy_check_mark: | The ID of the tenant. Required when using AdminApiKey authentication. | +| `destinationId` | *string* | :heavy_check_mark: | The ID of the destination. | +| `attemptId` | *string* | :heavy_check_mark: | The ID of the attempt. | +| `include` | *operations.GetTenantDestinationAttemptInclude* | :heavy_minus_sign: | Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`).
- `event`: Include event summary
- `event.data`: Include full event with payload data
- `response_data`: Include response body and headers
| \ No newline at end of file diff --git a/sdks/outpost-typescript/docs/models/operations/listattemptseventid.md b/sdks/outpost-typescript/docs/models/operations/listattemptseventid.md new file mode 100644 index 000000000..fb3b0cf62 --- /dev/null +++ b/sdks/outpost-typescript/docs/models/operations/listattemptseventid.md @@ -0,0 +1,22 @@ +# ListAttemptsEventId + +Filter attempts by event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`). + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `string[]` + +```typescript +const value: string[] = [ + "", + "", +]; +``` + diff --git a/sdks/outpost-typescript/docs/models/operations/listattemptsinclude.md b/sdks/outpost-typescript/docs/models/operations/listattemptsinclude.md index 3c0ef8ac6..96a30565b 100644 --- a/sdks/outpost-typescript/docs/models/operations/listattemptsinclude.md +++ b/sdks/outpost-typescript/docs/models/operations/listattemptsinclude.md @@ -1,6 +1,6 @@ # ListAttemptsInclude -Fields to include in the response. Can be specified multiple times or comma-separated. +Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata) - `event.data`: Include full event with payload data - `response_data`: Include response body and headers diff --git a/sdks/outpost-typescript/docs/models/operations/listattemptsrequest.md b/sdks/outpost-typescript/docs/models/operations/listattemptsrequest.md index 4ac8ecf7a..b1ee918f7 100644 --- a/sdks/outpost-typescript/docs/models/operations/listattemptsrequest.md +++ b/sdks/outpost-typescript/docs/models/operations/listattemptsrequest.md @@ -10,18 +10,20 @@ let value: ListAttemptsRequest = {}; ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `tenantId` | *string* | :heavy_minus_sign: | Filter attempts by tenant ID. If not provided, returns attempts from all tenants. | -| `eventId` | *string* | :heavy_minus_sign: | Filter attempts by event ID. | -| `destinationId` | *string* | :heavy_minus_sign: | Filter attempts by destination ID. | -| `status` | [operations.ListAttemptsStatus](../../models/operations/listattemptsstatus.md) | :heavy_minus_sign: | Filter attempts by status. | -| `topic` | *operations.ListAttemptsTopic* | :heavy_minus_sign: | Filter attempts by event topic(s). Can be specified multiple times or comma-separated. | -| `timeGte` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter attempts by event time >= value (RFC3339 or YYYY-MM-DD format). | -| `timeLte` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter attempts by event time <= value (RFC3339 or YYYY-MM-DD format). | -| `limit` | *number* | :heavy_minus_sign: | Number of items per page (default 100, max 1000). | -| `next` | *string* | :heavy_minus_sign: | Cursor for next page of results. | -| `prev` | *string* | :heavy_minus_sign: | Cursor for previous page of results. | -| `include` | *operations.ListAttemptsInclude* | :heavy_minus_sign: | Fields to include in the response. Can be specified multiple times or comma-separated.
- `event`: Include event summary (id, topic, time, eligible_for_retry, metadata)
- `event.data`: Include full event with payload data
- `response_data`: Include response body and headers
| -| `orderBy` | [operations.ListAttemptsOrderBy](../../models/operations/listattemptsorderby.md) | :heavy_minus_sign: | Field to sort by. | -| `dir` | [operations.ListAttemptsDir](../../models/operations/listattemptsdir.md) | :heavy_minus_sign: | Sort direction. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `tenantId` | *operations.ListAttemptsTenantId* | :heavy_minus_sign: | Filter attempts by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`).
When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used.
If not provided with API key auth, returns attempts from all tenants.
| +| `eventId` | *operations.ListAttemptsEventId* | :heavy_minus_sign: | Filter attempts by event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`). | +| `destinationId` | *operations.DestinationId* | :heavy_minus_sign: | Filter attempts by destination ID(s). Use bracket notation for multiple values (e.g., `destination_id[0]=d1&destination_id[1]=d2`). | +| `status` | [operations.ListAttemptsStatus](../../models/operations/listattemptsstatus.md) | :heavy_minus_sign: | Filter attempts by status. | +| `topic` | *operations.ListAttemptsTopic* | :heavy_minus_sign: | Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). | +| `timeGte` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter attempts by event time >= value (RFC3339 or YYYY-MM-DD format). | +| `timeLte` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter attempts by event time <= value (RFC3339 or YYYY-MM-DD format). | +| `timeGt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter attempts by event time > value (RFC3339 or YYYY-MM-DD format). | +| `timeLt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter attempts by event time < value (RFC3339 or YYYY-MM-DD format). | +| `limit` | *number* | :heavy_minus_sign: | Number of items per page (default 100, max 1000). | +| `next` | *string* | :heavy_minus_sign: | Cursor for next page of results. | +| `prev` | *string* | :heavy_minus_sign: | Cursor for previous page of results. | +| `include` | *operations.ListAttemptsInclude* | :heavy_minus_sign: | Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`).
- `event`: Include event summary (id, topic, time, eligible_for_retry, metadata)
- `event.data`: Include full event with payload data
- `response_data`: Include response body and headers
| +| `orderBy` | [operations.ListAttemptsOrderBy](../../models/operations/listattemptsorderby.md) | :heavy_minus_sign: | Field to sort by. | +| `dir` | [operations.ListAttemptsDir](../../models/operations/listattemptsdir.md) | :heavy_minus_sign: | Sort direction. | \ No newline at end of file diff --git a/sdks/outpost-typescript/docs/models/operations/listattemptstenantid.md b/sdks/outpost-typescript/docs/models/operations/listattemptstenantid.md new file mode 100644 index 000000000..e3cf12aaa --- /dev/null +++ b/sdks/outpost-typescript/docs/models/operations/listattemptstenantid.md @@ -0,0 +1,25 @@ +# ListAttemptsTenantId + +Filter attempts by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`). +When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used. +If not provided with API key auth, returns attempts from all tenants. + + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `string[]` + +```typescript +const value: string[] = [ + "", + "", +]; +``` + diff --git a/sdks/outpost-typescript/docs/models/operations/listattemptstopic.md b/sdks/outpost-typescript/docs/models/operations/listattemptstopic.md index 03f6b0969..f80277eae 100644 --- a/sdks/outpost-typescript/docs/models/operations/listattemptstopic.md +++ b/sdks/outpost-typescript/docs/models/operations/listattemptstopic.md @@ -1,6 +1,6 @@ # ListAttemptsTopic -Filter attempts by event topic(s). Can be specified multiple times or comma-separated. +Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). ## Supported Types diff --git a/sdks/outpost-typescript/docs/models/operations/listeventsid.md b/sdks/outpost-typescript/docs/models/operations/listeventsid.md new file mode 100644 index 000000000..ceb29ad13 --- /dev/null +++ b/sdks/outpost-typescript/docs/models/operations/listeventsid.md @@ -0,0 +1,22 @@ +# ListEventsId + +Filter events by ID(s). Use bracket notation for multiple values (e.g., `id[0]=abc&id[1]=def`). + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `string[]` + +```typescript +const value: string[] = [ + "", + "", +]; +``` + diff --git a/sdks/outpost-typescript/docs/models/operations/listeventsrequest.md b/sdks/outpost-typescript/docs/models/operations/listeventsrequest.md index bb664d714..3a660702c 100644 --- a/sdks/outpost-typescript/docs/models/operations/listeventsrequest.md +++ b/sdks/outpost-typescript/docs/models/operations/listeventsrequest.md @@ -10,14 +10,17 @@ let value: ListEventsRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `tenantId` | *string* | :heavy_minus_sign: | Filter events by tenant ID. If not provided, returns events from all tenants. | -| `topic` | *operations.ListEventsTopic* | :heavy_minus_sign: | Filter events by topic(s). Can be specified multiple times or comma-separated. | -| `timeGte` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter events with time >= value (RFC3339 or YYYY-MM-DD format). | -| `timeLte` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter events with time <= value (RFC3339 or YYYY-MM-DD format). | -| `limit` | *number* | :heavy_minus_sign: | Number of items per page (default 100, max 1000). | -| `next` | *string* | :heavy_minus_sign: | Cursor for next page of results. | -| `prev` | *string* | :heavy_minus_sign: | Cursor for previous page of results. | -| `orderBy` | [operations.ListEventsOrderBy](../../models/operations/listeventsorderby.md) | :heavy_minus_sign: | Field to sort by. | -| `dir` | [operations.ListEventsDir](../../models/operations/listeventsdir.md) | :heavy_minus_sign: | Sort direction. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *operations.ListEventsId* | :heavy_minus_sign: | Filter events by ID(s). Use bracket notation for multiple values (e.g., `id[0]=abc&id[1]=def`). | +| `tenantId` | *operations.ListEventsTenantId* | :heavy_minus_sign: | Filter events by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`).
When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used.
If not provided with API key auth, returns events from all tenants.
| +| `topic` | *operations.ListEventsTopic* | :heavy_minus_sign: | Filter events by topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). | +| `timeGte` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter events with time >= value (RFC3339 or YYYY-MM-DD format). | +| `timeLte` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter events with time <= value (RFC3339 or YYYY-MM-DD format). | +| `timeGt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter events with time > value (RFC3339 or YYYY-MM-DD format). | +| `timeLt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter events with time < value (RFC3339 or YYYY-MM-DD format). | +| `limit` | *number* | :heavy_minus_sign: | Number of items per page (default 100, max 1000). | +| `next` | *string* | :heavy_minus_sign: | Cursor for next page of results. | +| `prev` | *string* | :heavy_minus_sign: | Cursor for previous page of results. | +| `orderBy` | [operations.ListEventsOrderBy](../../models/operations/listeventsorderby.md) | :heavy_minus_sign: | Field to sort by. | +| `dir` | [operations.ListEventsDir](../../models/operations/listeventsdir.md) | :heavy_minus_sign: | Sort direction. | \ No newline at end of file diff --git a/sdks/outpost-typescript/docs/models/operations/listeventstenantid.md b/sdks/outpost-typescript/docs/models/operations/listeventstenantid.md new file mode 100644 index 000000000..d60598f42 --- /dev/null +++ b/sdks/outpost-typescript/docs/models/operations/listeventstenantid.md @@ -0,0 +1,25 @@ +# ListEventsTenantId + +Filter events by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`). +When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used. +If not provided with API key auth, returns events from all tenants. + + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `string[]` + +```typescript +const value: string[] = [ + "", + "", +]; +``` + diff --git a/sdks/outpost-typescript/docs/models/operations/listeventstopic.md b/sdks/outpost-typescript/docs/models/operations/listeventstopic.md index 4c8fc324a..1bfc5c08d 100644 --- a/sdks/outpost-typescript/docs/models/operations/listeventstopic.md +++ b/sdks/outpost-typescript/docs/models/operations/listeventstopic.md @@ -1,6 +1,6 @@ # ListEventsTopic -Filter events by topic(s). Can be specified multiple times or comma-separated. +Filter events by topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). ## Supported Types diff --git a/sdks/outpost-typescript/docs/models/operations/listtenantdestinationattemptseventid.md b/sdks/outpost-typescript/docs/models/operations/listtenantdestinationattemptseventid.md new file mode 100644 index 000000000..02b6f4111 --- /dev/null +++ b/sdks/outpost-typescript/docs/models/operations/listtenantdestinationattemptseventid.md @@ -0,0 +1,22 @@ +# ListTenantDestinationAttemptsEventId + +Filter attempts by event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`). + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `string[]` + +```typescript +const value: string[] = [ + "", + "", +]; +``` + diff --git a/sdks/outpost-typescript/docs/models/operations/listtenantdestinationattemptsinclude.md b/sdks/outpost-typescript/docs/models/operations/listtenantdestinationattemptsinclude.md index 166af08f6..174760083 100644 --- a/sdks/outpost-typescript/docs/models/operations/listtenantdestinationattemptsinclude.md +++ b/sdks/outpost-typescript/docs/models/operations/listtenantdestinationattemptsinclude.md @@ -1,6 +1,6 @@ # ListTenantDestinationAttemptsInclude -Fields to include in the response. Can be specified multiple times or comma-separated. +Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata) - `event.data`: Include full event with payload data - `response_data`: Include response body and headers diff --git a/sdks/outpost-typescript/docs/models/operations/listtenantdestinationattemptsrequest.md b/sdks/outpost-typescript/docs/models/operations/listtenantdestinationattemptsrequest.md index e99b3ab14..db6a29ce0 100644 --- a/sdks/outpost-typescript/docs/models/operations/listtenantdestinationattemptsrequest.md +++ b/sdks/outpost-typescript/docs/models/operations/listtenantdestinationattemptsrequest.md @@ -13,18 +13,20 @@ let value: ListTenantDestinationAttemptsRequest = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `tenantId` | *string* | :heavy_check_mark: | The ID of the tenant. Required when using AdminApiKey authentication. | -| `destinationId` | *string* | :heavy_check_mark: | The ID of the destination. | -| `eventId` | *string* | :heavy_minus_sign: | Filter attempts by event ID. | -| `status` | [operations.ListTenantDestinationAttemptsStatus](../../models/operations/listtenantdestinationattemptsstatus.md) | :heavy_minus_sign: | Filter attempts by status. | -| `topic` | *operations.ListTenantDestinationAttemptsTopic* | :heavy_minus_sign: | Filter attempts by event topic(s). Can be specified multiple times or comma-separated. | -| `timeGte` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter attempts by event time >= value (RFC3339 or YYYY-MM-DD format). | -| `timeLte` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter attempts by event time <= value (RFC3339 or YYYY-MM-DD format). | -| `limit` | *number* | :heavy_minus_sign: | Number of items per page (default 100, max 1000). | -| `next` | *string* | :heavy_minus_sign: | Cursor for next page of results. | -| `prev` | *string* | :heavy_minus_sign: | Cursor for previous page of results. | -| `include` | *operations.ListTenantDestinationAttemptsInclude* | :heavy_minus_sign: | Fields to include in the response. Can be specified multiple times or comma-separated.
- `event`: Include event summary (id, topic, time, eligible_for_retry, metadata)
- `event.data`: Include full event with payload data
- `response_data`: Include response body and headers
| -| `orderBy` | [operations.ListTenantDestinationAttemptsOrderBy](../../models/operations/listtenantdestinationattemptsorderby.md) | :heavy_minus_sign: | Field to sort by. | -| `dir` | [operations.ListTenantDestinationAttemptsDir](../../models/operations/listtenantdestinationattemptsdir.md) | :heavy_minus_sign: | Sort direction. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `tenantId` | *string* | :heavy_check_mark: | The ID of the tenant. Required when using AdminApiKey authentication. | +| `destinationId` | *string* | :heavy_check_mark: | The ID of the destination. | +| `eventId` | *operations.ListTenantDestinationAttemptsEventId* | :heavy_minus_sign: | Filter attempts by event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`). | +| `status` | [operations.ListTenantDestinationAttemptsStatus](../../models/operations/listtenantdestinationattemptsstatus.md) | :heavy_minus_sign: | Filter attempts by status. | +| `topic` | *operations.ListTenantDestinationAttemptsTopic* | :heavy_minus_sign: | Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). | +| `timeGte` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter attempts by event time >= value (RFC3339 or YYYY-MM-DD format). | +| `timeLte` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter attempts by event time <= value (RFC3339 or YYYY-MM-DD format). | +| `timeGt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter attempts by event time > value (RFC3339 or YYYY-MM-DD format). | +| `timeLt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter attempts by event time < value (RFC3339 or YYYY-MM-DD format). | +| `limit` | *number* | :heavy_minus_sign: | Number of items per page (default 100, max 1000). | +| `next` | *string* | :heavy_minus_sign: | Cursor for next page of results. | +| `prev` | *string* | :heavy_minus_sign: | Cursor for previous page of results. | +| `include` | *operations.ListTenantDestinationAttemptsInclude* | :heavy_minus_sign: | Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`).
- `event`: Include event summary (id, topic, time, eligible_for_retry, metadata)
- `event.data`: Include full event with payload data
- `response_data`: Include response body and headers
| +| `orderBy` | [operations.ListTenantDestinationAttemptsOrderBy](../../models/operations/listtenantdestinationattemptsorderby.md) | :heavy_minus_sign: | Field to sort by. | +| `dir` | [operations.ListTenantDestinationAttemptsDir](../../models/operations/listtenantdestinationattemptsdir.md) | :heavy_minus_sign: | Sort direction. | \ No newline at end of file diff --git a/sdks/outpost-typescript/docs/models/operations/listtenantdestinationattemptstopic.md b/sdks/outpost-typescript/docs/models/operations/listtenantdestinationattemptstopic.md index 47647d9ed..81ce4202d 100644 --- a/sdks/outpost-typescript/docs/models/operations/listtenantdestinationattemptstopic.md +++ b/sdks/outpost-typescript/docs/models/operations/listtenantdestinationattemptstopic.md @@ -1,6 +1,6 @@ # ListTenantDestinationAttemptsTopic -Filter attempts by event topic(s). Can be specified multiple times or comma-separated. +Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). ## Supported Types diff --git a/sdks/outpost-typescript/docs/models/operations/listtenantdestinationsrequest.md b/sdks/outpost-typescript/docs/models/operations/listtenantdestinationsrequest.md index 6a3e6a06f..c118dc972 100644 --- a/sdks/outpost-typescript/docs/models/operations/listtenantdestinationsrequest.md +++ b/sdks/outpost-typescript/docs/models/operations/listtenantdestinationsrequest.md @@ -13,8 +13,8 @@ let value: ListTenantDestinationsRequest = { ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `tenantId` | *string* | :heavy_check_mark: | The ID of the tenant. Required when using AdminApiKey authentication. | -| `type` | *operations.ListTenantDestinationsType* | :heavy_minus_sign: | Filter destinations by type(s). | -| `topics` | *operations.Topics* | :heavy_minus_sign: | Filter destinations by supported topic(s). | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | +| `tenantId` | *string* | :heavy_check_mark: | The ID of the tenant. Required when using AdminApiKey authentication. | +| `type` | *operations.ListTenantDestinationsType* | :heavy_minus_sign: | Filter destinations by type(s). Use bracket notation for multiple values (e.g., `type[0]=webhook&type[1]=aws_sqs`). | +| `topics` | *operations.Topics* | :heavy_minus_sign: | Filter destinations by supported topic(s). Use bracket notation for multiple values (e.g., `topics[0]=user.created&topics[1]=user.deleted`). | \ No newline at end of file diff --git a/sdks/outpost-typescript/docs/models/operations/listtenantdestinationstype.md b/sdks/outpost-typescript/docs/models/operations/listtenantdestinationstype.md index 0c4cbc498..85f94a008 100644 --- a/sdks/outpost-typescript/docs/models/operations/listtenantdestinationstype.md +++ b/sdks/outpost-typescript/docs/models/operations/listtenantdestinationstype.md @@ -1,6 +1,6 @@ # ListTenantDestinationsType -Filter destinations by type(s). +Filter destinations by type(s). Use bracket notation for multiple values (e.g., `type[0]=webhook&type[1]=aws_sqs`). ## Supported Types diff --git a/sdks/outpost-typescript/docs/models/operations/listtenantsid.md b/sdks/outpost-typescript/docs/models/operations/listtenantsid.md new file mode 100644 index 000000000..e95cf8497 --- /dev/null +++ b/sdks/outpost-typescript/docs/models/operations/listtenantsid.md @@ -0,0 +1,22 @@ +# ListTenantsId + +Filter tenants by ID(s). Use bracket notation for multiple values (e.g., `id[0]=t1&id[1]=t2` or `id[]=t1&id[]=t2`). + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `string[]` + +```typescript +const value: string[] = [ + "", + "", +]; +``` + diff --git a/sdks/outpost-typescript/docs/models/operations/listtenantsrequest.md b/sdks/outpost-typescript/docs/models/operations/listtenantsrequest.md index 59dd8f904..bb65b2ff8 100644 --- a/sdks/outpost-typescript/docs/models/operations/listtenantsrequest.md +++ b/sdks/outpost-typescript/docs/models/operations/listtenantsrequest.md @@ -10,9 +10,10 @@ let value: ListTenantsRequest = {}; ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `limit` | *number* | :heavy_minus_sign: | Number of tenants to return per page (1-100, default 20). | -| `dir` | [operations.ListTenantsDir](../../models/operations/listtenantsdir.md) | :heavy_minus_sign: | Sort direction. | -| `next` | *string* | :heavy_minus_sign: | Cursor for the next page of results. Mutually exclusive with `prev`. | -| `prev` | *string* | :heavy_minus_sign: | Cursor for the previous page of results. Mutually exclusive with `next`. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `id` | *operations.ListTenantsId* | :heavy_minus_sign: | Filter tenants by ID(s). Use bracket notation for multiple values (e.g., `id[0]=t1&id[1]=t2` or `id[]=t1&id[]=t2`). | +| `limit` | *number* | :heavy_minus_sign: | Number of tenants to return per page (1-100, default 20). | +| `dir` | [operations.ListTenantsDir](../../models/operations/listtenantsdir.md) | :heavy_minus_sign: | Sort direction. | +| `next` | *string* | :heavy_minus_sign: | Cursor for the next page of results. Mutually exclusive with `prev`. | +| `prev` | *string* | :heavy_minus_sign: | Cursor for the previous page of results. Mutually exclusive with `next`. | \ No newline at end of file diff --git a/sdks/outpost-typescript/docs/models/operations/topics.md b/sdks/outpost-typescript/docs/models/operations/topics.md index 9a806e112..ce47ee105 100644 --- a/sdks/outpost-typescript/docs/models/operations/topics.md +++ b/sdks/outpost-typescript/docs/models/operations/topics.md @@ -1,6 +1,6 @@ # Topics -Filter destinations by supported topic(s). +Filter destinations by supported topic(s). Use bracket notation for multiple values (e.g., `topics[0]=user.created&topics[1]=user.deleted`). ## Supported Types diff --git a/sdks/outpost-typescript/docs/models/operations/updatetenantdestinationrequest.md b/sdks/outpost-typescript/docs/models/operations/updatetenantdestinationrequest.md index 86854fcbd..8d796440b 100644 --- a/sdks/outpost-typescript/docs/models/operations/updatetenantdestinationrequest.md +++ b/sdks/outpost-typescript/docs/models/operations/updatetenantdestinationrequest.md @@ -8,7 +8,7 @@ import { UpdateTenantDestinationRequest } from "@hookdeck/outpost-sdk/models/ope let value: UpdateTenantDestinationRequest = { tenantId: "", destinationId: "", - params: { + body: { topics: "*", filter: { "data": { @@ -41,4 +41,4 @@ let value: UpdateTenantDestinationRequest = { | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `tenantId` | *string* | :heavy_check_mark: | The ID of the tenant. Required when using AdminApiKey authentication. | | `destinationId` | *string* | :heavy_check_mark: | The ID of the destination. | -| `params` | *components.DestinationUpdate* | :heavy_check_mark: | N/A | \ No newline at end of file +| `body` | *components.DestinationUpdate* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/sdks/outpost-typescript/docs/models/operations/upserttenantrequest.md b/sdks/outpost-typescript/docs/models/operations/upserttenantrequest.md index dedcefb44..3f776ff14 100644 --- a/sdks/outpost-typescript/docs/models/operations/upserttenantrequest.md +++ b/sdks/outpost-typescript/docs/models/operations/upserttenantrequest.md @@ -15,4 +15,4 @@ let value: UpsertTenantRequest = { | Field | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `tenantId` | *string* | :heavy_check_mark: | The ID of the tenant. Required when using AdminApiKey authentication. | -| `params` | [components.TenantUpsert](../../models/components/tenantupsert.md) | :heavy_minus_sign: | Optional tenant metadata | \ No newline at end of file +| `body` | [components.TenantUpsert](../../models/components/tenantupsert.md) | :heavy_minus_sign: | Optional tenant metadata | \ No newline at end of file diff --git a/sdks/outpost-typescript/docs/sdks/attempts/README.md b/sdks/outpost-typescript/docs/sdks/attempts/README.md index 2621758f7..6e6c29ad8 100644 --- a/sdks/outpost-typescript/docs/sdks/attempts/README.md +++ b/sdks/outpost-typescript/docs/sdks/attempts/README.md @@ -246,13 +246,13 @@ run(); ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `attemptId` | *string* | :heavy_check_mark: | The ID of the attempt. | -| `include` | *operations.GetAttemptInclude* | :heavy_minus_sign: | Fields to include in the response. Can be specified multiple times or comma-separated.
- `event`: Include event summary (id, topic, time, eligible_for_retry, metadata)
- `event.data`: Include full event with payload data
- `response_data`: Include response body and headers
| -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `attemptId` | *string* | :heavy_check_mark: | The ID of the attempt. | +| `include` | *operations.GetAttemptInclude* | :heavy_minus_sign: | Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`).
- `event`: Include event summary (id, topic, time, eligible_for_retry, metadata)
- `event.data`: Include full event with payload data
- `response_data`: Include response body and headers
| +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/sdks/outpost-typescript/docs/sdks/destinations/README.md b/sdks/outpost-typescript/docs/sdks/destinations/README.md index d32681c37..93d5d8b19 100644 --- a/sdks/outpost-typescript/docs/sdks/destinations/README.md +++ b/sdks/outpost-typescript/docs/sdks/destinations/README.md @@ -94,8 +94,8 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `tenantId` | *string* | :heavy_check_mark: | The ID of the tenant. Required when using AdminApiKey authentication. | -| `type` | *operations.ListTenantDestinationsType* | :heavy_minus_sign: | Filter destinations by type(s). | -| `topics` | *operations.Topics* | :heavy_minus_sign: | Filter destinations by supported topic(s). | +| `type` | *operations.ListTenantDestinationsType* | :heavy_minus_sign: | Filter destinations by type(s). Use bracket notation for multiple values (e.g., `type[0]=webhook&type[1]=aws_sqs`). | +| `topics` | *operations.Topics* | :heavy_minus_sign: | Filter destinations by supported topic(s). Use bracket notation for multiple values (e.g., `topics[0]=user.created&topics[1]=user.deleted`). | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -194,7 +194,7 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `tenantId` | *string* | :heavy_check_mark: | The ID of the tenant. Required when using AdminApiKey authentication. | -| `params` | *components.DestinationCreate* | :heavy_check_mark: | N/A | +| `body` | *components.DestinationCreate* | :heavy_check_mark: | N/A | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -364,7 +364,7 @@ run(); | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `tenantId` | *string* | :heavy_check_mark: | The ID of the tenant. Required when using AdminApiKey authentication. | | `destinationId` | *string* | :heavy_check_mark: | The ID of the destination. | -| `params` | *components.DestinationUpdate* | :heavy_check_mark: | N/A | +| `body` | *components.DestinationUpdate* | :heavy_check_mark: | N/A | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -732,15 +732,15 @@ run(); ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `tenantId` | *string* | :heavy_check_mark: | The ID of the tenant. Required when using AdminApiKey authentication. | -| `destinationId` | *string* | :heavy_check_mark: | The ID of the destination. | -| `attemptId` | *string* | :heavy_check_mark: | The ID of the attempt. | -| `include` | *operations.GetTenantDestinationAttemptInclude* | :heavy_minus_sign: | Fields to include in the response. Can be specified multiple times or comma-separated.
- `event`: Include event summary
- `event.data`: Include full event with payload data
- `response_data`: Include response body and headers
| -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `tenantId` | *string* | :heavy_check_mark: | The ID of the tenant. Required when using AdminApiKey authentication. | +| `destinationId` | *string* | :heavy_check_mark: | The ID of the destination. | +| `attemptId` | *string* | :heavy_check_mark: | The ID of the attempt. | +| `include` | *operations.GetTenantDestinationAttemptInclude* | :heavy_minus_sign: | Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`).
- `event`: Include event summary
- `event.data`: Include full event with payload data
- `response_data`: Include response body and headers
| +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response diff --git a/sdks/outpost-typescript/docs/sdks/tenants/README.md b/sdks/outpost-typescript/docs/sdks/tenants/README.md index e5c4f96ea..255c59672 100644 --- a/sdks/outpost-typescript/docs/sdks/tenants/README.md +++ b/sdks/outpost-typescript/docs/sdks/tenants/README.md @@ -37,7 +37,7 @@ const outpost = new Outpost({ }); async function run() { - const result = await outpost.tenants.listTenants(); + const result = await outpost.tenants.listTenants({}); console.log(result); } @@ -60,7 +60,7 @@ const outpost = new OutpostCore({ }); async function run() { - const res = await tenantsListTenants(outpost); + const res = await tenantsListTenants(outpost, {}); if (res.ok) { const { value: result } = res; console.log(result); @@ -76,10 +76,7 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `limit` | *number* | :heavy_minus_sign: | Number of tenants to return per page (1-100, default 20). | -| `dir` | [operations.ListTenantsDir](../../models/operations/listtenantsdir.md) | :heavy_minus_sign: | Sort direction. | -| `next` | *string* | :heavy_minus_sign: | Cursor for the next page of results. Mutually exclusive with `prev`. | -| `prev` | *string* | :heavy_minus_sign: | Cursor for the previous page of results. Mutually exclusive with `next`. | +| `request` | [operations.ListTenantsRequest](../../models/operations/listtenantsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -153,7 +150,7 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `tenantId` | *string* | :heavy_check_mark: | The ID of the tenant. Required when using AdminApiKey authentication. | -| `params` | [components.TenantUpsert](../../models/components/tenantupsert.md) | :heavy_minus_sign: | Optional tenant metadata | +| `body` | [components.TenantUpsert](../../models/components/tenantupsert.md) | :heavy_minus_sign: | Optional tenant metadata | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/sdks/outpost-typescript/examples/package-lock.json b/sdks/outpost-typescript/examples/package-lock.json index ede332c88..bfb168217 100644 --- a/sdks/outpost-typescript/examples/package-lock.json +++ b/sdks/outpost-typescript/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "@hookdeck/outpost-sdk", - "version": "0.8.0", + "version": "0.8.1", "dependencies": { "@modelcontextprotocol/sdk": "^1.26.0", "zod": "^3.25.0 || ^4.0.0" diff --git a/sdks/outpost-typescript/jsr.json b/sdks/outpost-typescript/jsr.json index 7cb416a4f..453059db5 100644 --- a/sdks/outpost-typescript/jsr.json +++ b/sdks/outpost-typescript/jsr.json @@ -2,7 +2,7 @@ { "name": "@hookdeck/outpost-sdk", - "version": "0.8.0", + "version": "0.8.1", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/sdks/outpost-typescript/package-lock.json b/sdks/outpost-typescript/package-lock.json index 2acdf6b30..1aeefa249 100644 --- a/sdks/outpost-typescript/package-lock.json +++ b/sdks/outpost-typescript/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hookdeck/outpost-sdk", - "version": "0.8.0", + "version": "0.8.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@hookdeck/outpost-sdk", - "version": "0.8.0", + "version": "0.8.1", "dependencies": { "@modelcontextprotocol/sdk": "^1.26.0", "zod": "^3.25.0 || ^4.0.0" diff --git a/sdks/outpost-typescript/package.json b/sdks/outpost-typescript/package.json index 522553048..87a5ee24f 100644 --- a/sdks/outpost-typescript/package.json +++ b/sdks/outpost-typescript/package.json @@ -1,6 +1,6 @@ { "name": "@hookdeck/outpost-sdk", - "version": "0.8.0", + "version": "0.8.1", "author": "Speakeasy", "type": "module", "bin": { diff --git a/sdks/outpost-typescript/src/funcs/attemptsList.ts b/sdks/outpost-typescript/src/funcs/attemptsList.ts index 90596dcf7..3fc5c3004 100644 --- a/sdks/outpost-typescript/src/funcs/attemptsList.ts +++ b/sdks/outpost-typescript/src/funcs/attemptsList.ts @@ -107,7 +107,9 @@ async function $do( "prev": payload.prev, "status": payload.status, "tenant_id": payload.tenant_id, + "time[gt]": payload["time[gt]"], "time[gte]": payload["time[gte]"], + "time[lt]": payload["time[lt]"], "time[lte]": payload["time[lte]"], "topic": payload.topic, }); diff --git a/sdks/outpost-typescript/src/funcs/destinationsCreate.ts b/sdks/outpost-typescript/src/funcs/destinationsCreate.ts index 2ad86f38a..ff6af2886 100644 --- a/sdks/outpost-typescript/src/funcs/destinationsCreate.ts +++ b/sdks/outpost-typescript/src/funcs/destinationsCreate.ts @@ -35,7 +35,7 @@ import { Result } from "../types/fp.js"; export function destinationsCreate( client: OutpostCore, tenantId: string, - params: components.DestinationCreate, + body: components.DestinationCreate, options?: RequestOptions, ): APIPromise< Result< @@ -57,7 +57,7 @@ export function destinationsCreate( return new APIPromise($do( client, tenantId, - params, + body, options, )); } @@ -65,7 +65,7 @@ export function destinationsCreate( async function $do( client: OutpostCore, tenantId: string, - params: components.DestinationCreate, + body: components.DestinationCreate, options?: RequestOptions, ): Promise< [ @@ -89,7 +89,7 @@ async function $do( > { const input: operations.CreateTenantDestinationRequest = { tenantId: tenantId, - params: params, + body: body, }; const parsed = safeParse( @@ -102,7 +102,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.params, { explode: true }); + const body$ = encodeJSON("body", payload.body, { explode: true }); const pathParams = { tenant_id: encodeSimple("tenant_id", payload.tenant_id, { @@ -143,7 +143,7 @@ async function $do( baseURL: options?.serverURL, path: path, headers: headers, - body: body, + body: body$, userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); diff --git a/sdks/outpost-typescript/src/funcs/destinationsListAttempts.ts b/sdks/outpost-typescript/src/funcs/destinationsListAttempts.ts index 14623dd10..9d1f98e14 100644 --- a/sdks/outpost-typescript/src/funcs/destinationsListAttempts.ts +++ b/sdks/outpost-typescript/src/funcs/destinationsListAttempts.ts @@ -120,7 +120,9 @@ async function $do( "order_by": payload.order_by, "prev": payload.prev, "status": payload.status, + "time[gt]": payload["time[gt]"], "time[gte]": payload["time[gte]"], + "time[lt]": payload["time[lt]"], "time[lte]": payload["time[lte]"], "topic": payload.topic, }); diff --git a/sdks/outpost-typescript/src/funcs/destinationsUpdate.ts b/sdks/outpost-typescript/src/funcs/destinationsUpdate.ts index 43fae84eb..0bb684aa7 100644 --- a/sdks/outpost-typescript/src/funcs/destinationsUpdate.ts +++ b/sdks/outpost-typescript/src/funcs/destinationsUpdate.ts @@ -36,7 +36,7 @@ export function destinationsUpdate( client: OutpostCore, tenantId: string, destinationId: string, - params: components.DestinationUpdate, + body: components.DestinationUpdate, options?: RequestOptions, ): APIPromise< Result< @@ -59,7 +59,7 @@ export function destinationsUpdate( client, tenantId, destinationId, - params, + body, options, )); } @@ -68,7 +68,7 @@ async function $do( client: OutpostCore, tenantId: string, destinationId: string, - params: components.DestinationUpdate, + body: components.DestinationUpdate, options?: RequestOptions, ): Promise< [ @@ -93,7 +93,7 @@ async function $do( const input: operations.UpdateTenantDestinationRequest = { tenantId: tenantId, destinationId: destinationId, - params: params, + body: body, }; const parsed = safeParse( @@ -106,7 +106,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.params, { explode: true }); + const body$ = encodeJSON("body", payload.body, { explode: true }); const pathParams = { destination_id: encodeSimple("destination_id", payload.destination_id, { @@ -153,7 +153,7 @@ async function $do( baseURL: options?.serverURL, path: path, headers: headers, - body: body, + body: body$, userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); diff --git a/sdks/outpost-typescript/src/funcs/eventsList.ts b/sdks/outpost-typescript/src/funcs/eventsList.ts index 0dd9e0755..45b4777e9 100644 --- a/sdks/outpost-typescript/src/funcs/eventsList.ts +++ b/sdks/outpost-typescript/src/funcs/eventsList.ts @@ -98,12 +98,15 @@ async function $do( const query = encodeFormQuery({ "dir": payload.dir, + "id": payload.id, "limit": payload.limit, "next": payload.next, "order_by": payload.order_by, "prev": payload.prev, "tenant_id": payload.tenant_id, + "time[gt]": payload["time[gt]"], "time[gte]": payload["time[gte]"], + "time[lt]": payload["time[lt]"], "time[lte]": payload["time[lte]"], "topic": payload.topic, }); diff --git a/sdks/outpost-typescript/src/funcs/tenantsListTenants.ts b/sdks/outpost-typescript/src/funcs/tenantsListTenants.ts index 5fbc272bb..2017895c4 100644 --- a/sdks/outpost-typescript/src/funcs/tenantsListTenants.ts +++ b/sdks/outpost-typescript/src/funcs/tenantsListTenants.ts @@ -39,10 +39,7 @@ import { Result } from "../types/fp.js"; */ export function tenantsListTenants( client: OutpostCore, - limit?: number | undefined, - dir?: operations.ListTenantsDir | undefined, - next?: string | undefined, - prev?: string | undefined, + request: operations.ListTenantsRequest, options?: RequestOptions, ): APIPromise< Result< @@ -63,20 +60,14 @@ export function tenantsListTenants( > { return new APIPromise($do( client, - limit, - dir, - next, - prev, + request, options, )); } async function $do( client: OutpostCore, - limit?: number | undefined, - dir?: operations.ListTenantsDir | undefined, - next?: string | undefined, - prev?: string | undefined, + request: operations.ListTenantsRequest, options?: RequestOptions, ): Promise< [ @@ -98,15 +89,8 @@ async function $do( APICall, ] > { - const input: operations.ListTenantsRequest = { - limit: limit, - dir: dir, - next: next, - prev: prev, - }; - const parsed = safeParse( - input, + request, (value) => operations.ListTenantsRequest$outboundSchema.parse(value), "Input validation failed", ); @@ -120,6 +104,7 @@ async function $do( const query = encodeFormQuery({ "dir": payload.dir, + "id": payload.id, "limit": payload.limit, "next": payload.next, "prev": payload.prev, diff --git a/sdks/outpost-typescript/src/funcs/tenantsUpsert.ts b/sdks/outpost-typescript/src/funcs/tenantsUpsert.ts index a83beb5ad..03de88cbe 100644 --- a/sdks/outpost-typescript/src/funcs/tenantsUpsert.ts +++ b/sdks/outpost-typescript/src/funcs/tenantsUpsert.ts @@ -35,7 +35,7 @@ import { Result } from "../types/fp.js"; export function tenantsUpsert( client: OutpostCore, tenantId: string, - params?: components.TenantUpsert | undefined, + body?: components.TenantUpsert | undefined, options?: RequestOptions, ): APIPromise< Result< @@ -56,7 +56,7 @@ export function tenantsUpsert( return new APIPromise($do( client, tenantId, - params, + body, options, )); } @@ -64,7 +64,7 @@ export function tenantsUpsert( async function $do( client: OutpostCore, tenantId: string, - params?: components.TenantUpsert | undefined, + body?: components.TenantUpsert | undefined, options?: RequestOptions, ): Promise< [ @@ -87,7 +87,7 @@ async function $do( > { const input: operations.UpsertTenantRequest = { tenantId: tenantId, - params: params, + body: body, }; const parsed = safeParse( @@ -99,7 +99,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.params, { explode: true }); + const body$ = encodeJSON("body", payload.body, { explode: true }); const pathParams = { tenant_id: encodeSimple("tenant_id", payload.tenant_id, { @@ -140,7 +140,7 @@ async function $do( baseURL: options?.serverURL, path: path, headers: headers, - body: body, + body: body$, userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); diff --git a/sdks/outpost-typescript/src/lib/config.ts b/sdks/outpost-typescript/src/lib/config.ts index ff2491418..c57373570 100644 --- a/sdks/outpost-typescript/src/lib/config.ts +++ b/sdks/outpost-typescript/src/lib/config.ts @@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.0.1", - sdkVersion: "0.8.0", - genVersion: "2.849.10", + sdkVersion: "0.8.1", + genVersion: "2.862.0", userAgent: - "speakeasy-sdk/typescript 0.8.0 2.849.10 0.0.1 @hookdeck/outpost-sdk", + "speakeasy-sdk/typescript 0.8.1 2.862.0 0.0.1 @hookdeck/outpost-sdk", } as const; diff --git a/sdks/outpost-typescript/src/mcp-server/mcp-server.ts b/sdks/outpost-typescript/src/mcp-server/mcp-server.ts index a7c3a3321..43e63ade2 100644 --- a/sdks/outpost-typescript/src/mcp-server/mcp-server.ts +++ b/sdks/outpost-typescript/src/mcp-server/mcp-server.ts @@ -19,7 +19,7 @@ const routes = buildRouteMap({ export const app = buildApplication(routes, { name: "mcp", versionInfo: { - currentVersion: "0.8.0", + currentVersion: "0.8.1", }, }); diff --git a/sdks/outpost-typescript/src/mcp-server/server.ts b/sdks/outpost-typescript/src/mcp-server/server.ts index e4bf8288b..0a5f35161 100644 --- a/sdks/outpost-typescript/src/mcp-server/server.ts +++ b/sdks/outpost-typescript/src/mcp-server/server.ts @@ -49,7 +49,7 @@ export function createMCPServer(deps: { }) { const server = new McpServer({ name: "Outpost", - version: "0.8.0", + version: "0.8.1", }); const client = new OutpostCore({ diff --git a/sdks/outpost-typescript/src/mcp-server/tools/destinationsCreate.ts b/sdks/outpost-typescript/src/mcp-server/tools/destinationsCreate.ts index f50919a8c..153392d07 100644 --- a/sdks/outpost-typescript/src/mcp-server/tools/destinationsCreate.ts +++ b/sdks/outpost-typescript/src/mcp-server/tools/destinationsCreate.ts @@ -9,7 +9,7 @@ import { formatResult, ToolDefinition } from "../tools.js"; const args = { tenantId: z.string(), - params: components.DestinationCreate$inboundSchema, + body: components.DestinationCreate$inboundSchema, }; export const tool$destinationsCreate: ToolDefinition = { @@ -22,7 +22,7 @@ Creates a new destination for the tenant. The request body structure depends on const [result, apiCall] = await destinationsCreate( client, args.tenantId, - args.params, + args.body, { fetchOptions: { signal: ctx.signal } }, ).$inspect(); diff --git a/sdks/outpost-typescript/src/mcp-server/tools/destinationsUpdate.ts b/sdks/outpost-typescript/src/mcp-server/tools/destinationsUpdate.ts index 8f2e6f357..709cbf4c9 100644 --- a/sdks/outpost-typescript/src/mcp-server/tools/destinationsUpdate.ts +++ b/sdks/outpost-typescript/src/mcp-server/tools/destinationsUpdate.ts @@ -10,7 +10,7 @@ import { formatResult, ToolDefinition } from "../tools.js"; const args = { tenantId: z.string(), destinationId: z.string(), - params: components.DestinationUpdate$inboundSchema, + body: components.DestinationUpdate$inboundSchema, }; export const tool$destinationsUpdate: ToolDefinition = { @@ -24,7 +24,7 @@ Updates the configuration of an existing destination. The request body structure client, args.tenantId, args.destinationId, - args.params, + args.body, { fetchOptions: { signal: ctx.signal } }, ).$inspect(); diff --git a/sdks/outpost-typescript/src/mcp-server/tools/tenantsListTenants.ts b/sdks/outpost-typescript/src/mcp-server/tools/tenantsListTenants.ts index ea3fcb2f9..d34b192ac 100644 --- a/sdks/outpost-typescript/src/mcp-server/tools/tenantsListTenants.ts +++ b/sdks/outpost-typescript/src/mcp-server/tools/tenantsListTenants.ts @@ -2,16 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; import { tenantsListTenants } from "../../funcs/tenantsListTenants.js"; import * as operations from "../../models/operations/index.js"; import { formatResult, ToolDefinition } from "../tools.js"; const args = { - limit: z.number().int().default(20), - dir: operations.ListTenantsDir$inboundSchema.default("desc"), - next: z.string().optional(), - prev: z.string().optional(), + request: operations.ListTenantsRequest$inboundSchema, }; export const tool$tenantsListTenants: ToolDefinition = { @@ -29,10 +25,7 @@ When authenticated with a Tenant JWT, returns only the authenticated tenant. Pag tool: async (client, args, ctx) => { const [result, apiCall] = await tenantsListTenants( client, - args.limit, - args.dir, - args.next, - args.prev, + args.request, { fetchOptions: { signal: ctx.signal } }, ).$inspect(); diff --git a/sdks/outpost-typescript/src/mcp-server/tools/tenantsUpsert.ts b/sdks/outpost-typescript/src/mcp-server/tools/tenantsUpsert.ts index 79d5f4ad2..5cb69968b 100644 --- a/sdks/outpost-typescript/src/mcp-server/tools/tenantsUpsert.ts +++ b/sdks/outpost-typescript/src/mcp-server/tools/tenantsUpsert.ts @@ -9,7 +9,7 @@ import { formatResult, ToolDefinition } from "../tools.js"; const args = { tenantId: z.string(), - params: components.TenantUpsert$inboundSchema.optional(), + body: components.TenantUpsert$inboundSchema.optional(), }; export const tool$tenantsUpsert: ToolDefinition = { @@ -22,7 +22,7 @@ Idempotently creates or updates a tenant. Required before associating destinatio const [result, apiCall] = await tenantsUpsert( client, args.tenantId, - args.params, + args.body, { fetchOptions: { signal: ctx.signal } }, ).$inspect(); diff --git a/sdks/outpost-typescript/src/models/operations/createtenantdestination.ts b/sdks/outpost-typescript/src/models/operations/createtenantdestination.ts index 5e50398e3..6ced17e88 100644 --- a/sdks/outpost-typescript/src/models/operations/createtenantdestination.ts +++ b/sdks/outpost-typescript/src/models/operations/createtenantdestination.ts @@ -14,7 +14,7 @@ export type CreateTenantDestinationRequest = { * The ID of the tenant. Required when using AdminApiKey authentication. */ tenantId: string; - params: components.DestinationCreate; + body: components.DestinationCreate; }; /** @internal */ @@ -24,7 +24,7 @@ export const CreateTenantDestinationRequest$inboundSchema: z.ZodType< unknown > = z.object({ tenant_id: z.string(), - params: components.DestinationCreate$inboundSchema, + body: components.DestinationCreate$inboundSchema, }).transform((v) => { return remap$(v, { "tenant_id": "tenantId", @@ -33,7 +33,7 @@ export const CreateTenantDestinationRequest$inboundSchema: z.ZodType< /** @internal */ export type CreateTenantDestinationRequest$Outbound = { tenant_id: string; - params: components.DestinationCreate$Outbound; + body: components.DestinationCreate$Outbound; }; /** @internal */ @@ -43,7 +43,7 @@ export const CreateTenantDestinationRequest$outboundSchema: z.ZodType< CreateTenantDestinationRequest > = z.object({ tenantId: z.string(), - params: components.DestinationCreate$outboundSchema, + body: components.DestinationCreate$outboundSchema, }).transform((v) => { return remap$(v, { tenantId: "tenant_id", diff --git a/sdks/outpost-typescript/src/models/operations/getattempt.ts b/sdks/outpost-typescript/src/models/operations/getattempt.ts index 8949f0865..d7d95014e 100644 --- a/sdks/outpost-typescript/src/models/operations/getattempt.ts +++ b/sdks/outpost-typescript/src/models/operations/getattempt.ts @@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** - * Fields to include in the response. Can be specified multiple times or comma-separated. + * Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). * * @remarks * - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata) @@ -24,7 +24,7 @@ export type GetAttemptRequest = { */ attemptId: string; /** - * Fields to include in the response. Can be specified multiple times or comma-separated. + * Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). * * @remarks * - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata) diff --git a/sdks/outpost-typescript/src/models/operations/gettenantdestinationattempt.ts b/sdks/outpost-typescript/src/models/operations/gettenantdestinationattempt.ts index e9b5264a5..7fdfac8c1 100644 --- a/sdks/outpost-typescript/src/models/operations/gettenantdestinationattempt.ts +++ b/sdks/outpost-typescript/src/models/operations/gettenantdestinationattempt.ts @@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** - * Fields to include in the response. Can be specified multiple times or comma-separated. + * Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). * * @remarks * - `event`: Include event summary @@ -32,7 +32,7 @@ export type GetTenantDestinationAttemptRequest = { */ attemptId: string; /** - * Fields to include in the response. Can be specified multiple times or comma-separated. + * Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). * * @remarks * - `event`: Include event summary diff --git a/sdks/outpost-typescript/src/models/operations/listattempts.ts b/sdks/outpost-typescript/src/models/operations/listattempts.ts index e54575e10..4c769d275 100644 --- a/sdks/outpost-typescript/src/models/operations/listattempts.ts +++ b/sdks/outpost-typescript/src/models/operations/listattempts.ts @@ -9,6 +9,25 @@ import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +/** + * Filter attempts by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`). + * + * @remarks + * When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used. + * If not provided with API key auth, returns attempts from all tenants. + */ +export type ListAttemptsTenantId = string | Array; + +/** + * Filter attempts by event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`). + */ +export type ListAttemptsEventId = string | Array; + +/** + * Filter attempts by destination ID(s). Use bracket notation for multiple values (e.g., `destination_id[0]=d1&destination_id[1]=d2`). + */ +export type DestinationId = string | Array; + /** * Filter attempts by status. */ @@ -22,12 +41,12 @@ export const ListAttemptsStatus = { export type ListAttemptsStatus = ClosedEnum; /** - * Filter attempts by event topic(s). Can be specified multiple times or comma-separated. + * Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). */ export type ListAttemptsTopic = string | Array; /** - * Fields to include in the response. Can be specified multiple times or comma-separated. + * Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). * * @remarks * - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata) @@ -61,23 +80,27 @@ export type ListAttemptsDir = ClosedEnum; export type ListAttemptsRequest = { /** - * Filter attempts by tenant ID. If not provided, returns attempts from all tenants. + * Filter attempts by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`). + * + * @remarks + * When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used. + * If not provided with API key auth, returns attempts from all tenants. */ - tenantId?: string | undefined; + tenantId?: string | Array | undefined; /** - * Filter attempts by event ID. + * Filter attempts by event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`). */ - eventId?: string | undefined; + eventId?: string | Array | undefined; /** - * Filter attempts by destination ID. + * Filter attempts by destination ID(s). Use bracket notation for multiple values (e.g., `destination_id[0]=d1&destination_id[1]=d2`). */ - destinationId?: string | undefined; + destinationId?: string | Array | undefined; /** * Filter attempts by status. */ status?: ListAttemptsStatus | undefined; /** - * Filter attempts by event topic(s). Can be specified multiple times or comma-separated. + * Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). */ topic?: string | Array | undefined; /** @@ -88,6 +111,14 @@ export type ListAttemptsRequest = { * Filter attempts by event time <= value (RFC3339 or YYYY-MM-DD format). */ timeLte?: Date | undefined; + /** + * Filter attempts by event time > value (RFC3339 or YYYY-MM-DD format). + */ + timeGt?: Date | undefined; + /** + * Filter attempts by event time < value (RFC3339 or YYYY-MM-DD format). + */ + timeLt?: Date | undefined; /** * Number of items per page (default 100, max 1000). */ @@ -101,7 +132,7 @@ export type ListAttemptsRequest = { */ prev?: string | undefined; /** - * Fields to include in the response. Can be specified multiple times or comma-separated. + * Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). * * @remarks * - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata) @@ -119,6 +150,101 @@ export type ListAttemptsRequest = { dir?: ListAttemptsDir | undefined; }; +/** @internal */ +export const ListAttemptsTenantId$inboundSchema: z.ZodType< + ListAttemptsTenantId, + z.ZodTypeDef, + unknown +> = z.union([z.string(), z.array(z.string())]); +/** @internal */ +export type ListAttemptsTenantId$Outbound = string | Array; + +/** @internal */ +export const ListAttemptsTenantId$outboundSchema: z.ZodType< + ListAttemptsTenantId$Outbound, + z.ZodTypeDef, + ListAttemptsTenantId +> = z.union([z.string(), z.array(z.string())]); + +export function listAttemptsTenantIdToJSON( + listAttemptsTenantId: ListAttemptsTenantId, +): string { + return JSON.stringify( + ListAttemptsTenantId$outboundSchema.parse(listAttemptsTenantId), + ); +} +export function listAttemptsTenantIdFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAttemptsTenantId$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAttemptsTenantId' from JSON`, + ); +} + +/** @internal */ +export const ListAttemptsEventId$inboundSchema: z.ZodType< + ListAttemptsEventId, + z.ZodTypeDef, + unknown +> = z.union([z.string(), z.array(z.string())]); +/** @internal */ +export type ListAttemptsEventId$Outbound = string | Array; + +/** @internal */ +export const ListAttemptsEventId$outboundSchema: z.ZodType< + ListAttemptsEventId$Outbound, + z.ZodTypeDef, + ListAttemptsEventId +> = z.union([z.string(), z.array(z.string())]); + +export function listAttemptsEventIdToJSON( + listAttemptsEventId: ListAttemptsEventId, +): string { + return JSON.stringify( + ListAttemptsEventId$outboundSchema.parse(listAttemptsEventId), + ); +} +export function listAttemptsEventIdFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAttemptsEventId$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAttemptsEventId' from JSON`, + ); +} + +/** @internal */ +export const DestinationId$inboundSchema: z.ZodType< + DestinationId, + z.ZodTypeDef, + unknown +> = z.union([z.string(), z.array(z.string())]); +/** @internal */ +export type DestinationId$Outbound = string | Array; + +/** @internal */ +export const DestinationId$outboundSchema: z.ZodType< + DestinationId$Outbound, + z.ZodTypeDef, + DestinationId +> = z.union([z.string(), z.array(z.string())]); + +export function destinationIdToJSON(destinationId: DestinationId): string { + return JSON.stringify(DestinationId$outboundSchema.parse(destinationId)); +} +export function destinationIdFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DestinationId$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DestinationId' from JSON`, + ); +} + /** @internal */ export const ListAttemptsStatus$inboundSchema: z.ZodNativeEnum< typeof ListAttemptsStatus @@ -218,15 +344,19 @@ export const ListAttemptsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - tenant_id: z.string().optional(), - event_id: z.string().optional(), - destination_id: z.string().optional(), + tenant_id: z.union([z.string(), z.array(z.string())]).optional(), + event_id: z.union([z.string(), z.array(z.string())]).optional(), + destination_id: z.union([z.string(), z.array(z.string())]).optional(), status: ListAttemptsStatus$inboundSchema.optional(), topic: z.union([z.string(), z.array(z.string())]).optional(), "time[gte]": z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), "time[lte]": z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), + "time[gt]": z.string().datetime({ offset: true }).transform(v => new Date(v)) + .optional(), + "time[lt]": z.string().datetime({ offset: true }).transform(v => new Date(v)) + .optional(), limit: z.number().int().default(100), next: z.string().optional(), prev: z.string().optional(), @@ -240,18 +370,22 @@ export const ListAttemptsRequest$inboundSchema: z.ZodType< "destination_id": "destinationId", "time[gte]": "timeGte", "time[lte]": "timeLte", + "time[gt]": "timeGt", + "time[lt]": "timeLt", "order_by": "orderBy", }); }); /** @internal */ export type ListAttemptsRequest$Outbound = { - tenant_id?: string | undefined; - event_id?: string | undefined; - destination_id?: string | undefined; + tenant_id?: string | Array | undefined; + event_id?: string | Array | undefined; + destination_id?: string | Array | undefined; status?: string | undefined; topic?: string | Array | undefined; "time[gte]"?: string | undefined; "time[lte]"?: string | undefined; + "time[gt]"?: string | undefined; + "time[lt]"?: string | undefined; limit: number; next?: string | undefined; prev?: string | undefined; @@ -266,13 +400,15 @@ export const ListAttemptsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListAttemptsRequest > = z.object({ - tenantId: z.string().optional(), - eventId: z.string().optional(), - destinationId: z.string().optional(), + tenantId: z.union([z.string(), z.array(z.string())]).optional(), + eventId: z.union([z.string(), z.array(z.string())]).optional(), + destinationId: z.union([z.string(), z.array(z.string())]).optional(), status: ListAttemptsStatus$outboundSchema.optional(), topic: z.union([z.string(), z.array(z.string())]).optional(), timeGte: z.date().transform(v => v.toISOString()).optional(), timeLte: z.date().transform(v => v.toISOString()).optional(), + timeGt: z.date().transform(v => v.toISOString()).optional(), + timeLt: z.date().transform(v => v.toISOString()).optional(), limit: z.number().int().default(100), next: z.string().optional(), prev: z.string().optional(), @@ -286,6 +422,8 @@ export const ListAttemptsRequest$outboundSchema: z.ZodType< destinationId: "destination_id", timeGte: "time[gte]", timeLte: "time[lte]", + timeGt: "time[gt]", + timeLt: "time[lt]", orderBy: "order_by", }); }); diff --git a/sdks/outpost-typescript/src/models/operations/listevents.ts b/sdks/outpost-typescript/src/models/operations/listevents.ts index b6f69afdd..c060b7235 100644 --- a/sdks/outpost-typescript/src/models/operations/listevents.ts +++ b/sdks/outpost-typescript/src/models/operations/listevents.ts @@ -10,7 +10,21 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** - * Filter events by topic(s). Can be specified multiple times or comma-separated. + * Filter events by ID(s). Use bracket notation for multiple values (e.g., `id[0]=abc&id[1]=def`). + */ +export type ListEventsId = string | Array; + +/** + * Filter events by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`). + * + * @remarks + * When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used. + * If not provided with API key auth, returns events from all tenants. + */ +export type ListEventsTenantId = string | Array; + +/** + * Filter events by topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). */ export type ListEventsTopic = string | Array; @@ -39,11 +53,19 @@ export type ListEventsDir = ClosedEnum; export type ListEventsRequest = { /** - * Filter events by tenant ID. If not provided, returns events from all tenants. + * Filter events by ID(s). Use bracket notation for multiple values (e.g., `id[0]=abc&id[1]=def`). */ - tenantId?: string | undefined; + id?: string | Array | undefined; /** - * Filter events by topic(s). Can be specified multiple times or comma-separated. + * Filter events by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`). + * + * @remarks + * When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used. + * If not provided with API key auth, returns events from all tenants. + */ + tenantId?: string | Array | undefined; + /** + * Filter events by topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). */ topic?: string | Array | undefined; /** @@ -54,6 +76,14 @@ export type ListEventsRequest = { * Filter events with time <= value (RFC3339 or YYYY-MM-DD format). */ timeLte?: Date | undefined; + /** + * Filter events with time > value (RFC3339 or YYYY-MM-DD format). + */ + timeGt?: Date | undefined; + /** + * Filter events with time < value (RFC3339 or YYYY-MM-DD format). + */ + timeLt?: Date | undefined; /** * Number of items per page (default 100, max 1000). */ @@ -76,6 +106,68 @@ export type ListEventsRequest = { dir?: ListEventsDir | undefined; }; +/** @internal */ +export const ListEventsId$inboundSchema: z.ZodType< + ListEventsId, + z.ZodTypeDef, + unknown +> = z.union([z.string(), z.array(z.string())]); +/** @internal */ +export type ListEventsId$Outbound = string | Array; + +/** @internal */ +export const ListEventsId$outboundSchema: z.ZodType< + ListEventsId$Outbound, + z.ZodTypeDef, + ListEventsId +> = z.union([z.string(), z.array(z.string())]); + +export function listEventsIdToJSON(listEventsId: ListEventsId): string { + return JSON.stringify(ListEventsId$outboundSchema.parse(listEventsId)); +} +export function listEventsIdFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListEventsId$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListEventsId' from JSON`, + ); +} + +/** @internal */ +export const ListEventsTenantId$inboundSchema: z.ZodType< + ListEventsTenantId, + z.ZodTypeDef, + unknown +> = z.union([z.string(), z.array(z.string())]); +/** @internal */ +export type ListEventsTenantId$Outbound = string | Array; + +/** @internal */ +export const ListEventsTenantId$outboundSchema: z.ZodType< + ListEventsTenantId$Outbound, + z.ZodTypeDef, + ListEventsTenantId +> = z.union([z.string(), z.array(z.string())]); + +export function listEventsTenantIdToJSON( + listEventsTenantId: ListEventsTenantId, +): string { + return JSON.stringify( + ListEventsTenantId$outboundSchema.parse(listEventsTenantId), + ); +} +export function listEventsTenantIdFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListEventsTenantId$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListEventsTenantId' from JSON`, + ); +} + /** @internal */ export const ListEventsTopic$inboundSchema: z.ZodType< ListEventsTopic, @@ -131,12 +223,17 @@ export const ListEventsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - tenant_id: z.string().optional(), + id: z.union([z.string(), z.array(z.string())]).optional(), + tenant_id: z.union([z.string(), z.array(z.string())]).optional(), topic: z.union([z.string(), z.array(z.string())]).optional(), "time[gte]": z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), "time[lte]": z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), + "time[gt]": z.string().datetime({ offset: true }).transform(v => new Date(v)) + .optional(), + "time[lt]": z.string().datetime({ offset: true }).transform(v => new Date(v)) + .optional(), limit: z.number().int().default(100), next: z.string().optional(), prev: z.string().optional(), @@ -147,15 +244,20 @@ export const ListEventsRequest$inboundSchema: z.ZodType< "tenant_id": "tenantId", "time[gte]": "timeGte", "time[lte]": "timeLte", + "time[gt]": "timeGt", + "time[lt]": "timeLt", "order_by": "orderBy", }); }); /** @internal */ export type ListEventsRequest$Outbound = { - tenant_id?: string | undefined; + id?: string | Array | undefined; + tenant_id?: string | Array | undefined; topic?: string | Array | undefined; "time[gte]"?: string | undefined; "time[lte]"?: string | undefined; + "time[gt]"?: string | undefined; + "time[lt]"?: string | undefined; limit: number; next?: string | undefined; prev?: string | undefined; @@ -169,10 +271,13 @@ export const ListEventsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListEventsRequest > = z.object({ - tenantId: z.string().optional(), + id: z.union([z.string(), z.array(z.string())]).optional(), + tenantId: z.union([z.string(), z.array(z.string())]).optional(), topic: z.union([z.string(), z.array(z.string())]).optional(), timeGte: z.date().transform(v => v.toISOString()).optional(), timeLte: z.date().transform(v => v.toISOString()).optional(), + timeGt: z.date().transform(v => v.toISOString()).optional(), + timeLt: z.date().transform(v => v.toISOString()).optional(), limit: z.number().int().default(100), next: z.string().optional(), prev: z.string().optional(), @@ -183,6 +288,8 @@ export const ListEventsRequest$outboundSchema: z.ZodType< tenantId: "tenant_id", timeGte: "time[gte]", timeLte: "time[lte]", + timeGt: "time[gt]", + timeLt: "time[lt]", orderBy: "order_by", }); }); diff --git a/sdks/outpost-typescript/src/models/operations/listtenantdestinationattempts.ts b/sdks/outpost-typescript/src/models/operations/listtenantdestinationattempts.ts index 67cd60c95..de97cff13 100644 --- a/sdks/outpost-typescript/src/models/operations/listtenantdestinationattempts.ts +++ b/sdks/outpost-typescript/src/models/operations/listtenantdestinationattempts.ts @@ -9,6 +9,11 @@ import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +/** + * Filter attempts by event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`). + */ +export type ListTenantDestinationAttemptsEventId = string | Array; + /** * Filter attempts by status. */ @@ -24,12 +29,12 @@ export type ListTenantDestinationAttemptsStatus = ClosedEnum< >; /** - * Filter attempts by event topic(s). Can be specified multiple times or comma-separated. + * Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). */ export type ListTenantDestinationAttemptsTopic = string | Array; /** - * Fields to include in the response. Can be specified multiple times or comma-separated. + * Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). * * @remarks * - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata) @@ -75,15 +80,15 @@ export type ListTenantDestinationAttemptsRequest = { */ destinationId: string; /** - * Filter attempts by event ID. + * Filter attempts by event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`). */ - eventId?: string | undefined; + eventId?: string | Array | undefined; /** * Filter attempts by status. */ status?: ListTenantDestinationAttemptsStatus | undefined; /** - * Filter attempts by event topic(s). Can be specified multiple times or comma-separated. + * Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). */ topic?: string | Array | undefined; /** @@ -94,6 +99,14 @@ export type ListTenantDestinationAttemptsRequest = { * Filter attempts by event time <= value (RFC3339 or YYYY-MM-DD format). */ timeLte?: Date | undefined; + /** + * Filter attempts by event time > value (RFC3339 or YYYY-MM-DD format). + */ + timeGt?: Date | undefined; + /** + * Filter attempts by event time < value (RFC3339 or YYYY-MM-DD format). + */ + timeLt?: Date | undefined; /** * Number of items per page (default 100, max 1000). */ @@ -107,7 +120,7 @@ export type ListTenantDestinationAttemptsRequest = { */ prev?: string | undefined; /** - * Fields to include in the response. Can be specified multiple times or comma-separated. + * Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). * * @remarks * - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata) @@ -125,6 +138,44 @@ export type ListTenantDestinationAttemptsRequest = { dir?: ListTenantDestinationAttemptsDir | undefined; }; +/** @internal */ +export const ListTenantDestinationAttemptsEventId$inboundSchema: z.ZodType< + ListTenantDestinationAttemptsEventId, + z.ZodTypeDef, + unknown +> = z.union([z.string(), z.array(z.string())]); +/** @internal */ +export type ListTenantDestinationAttemptsEventId$Outbound = + | string + | Array; + +/** @internal */ +export const ListTenantDestinationAttemptsEventId$outboundSchema: z.ZodType< + ListTenantDestinationAttemptsEventId$Outbound, + z.ZodTypeDef, + ListTenantDestinationAttemptsEventId +> = z.union([z.string(), z.array(z.string())]); + +export function listTenantDestinationAttemptsEventIdToJSON( + listTenantDestinationAttemptsEventId: ListTenantDestinationAttemptsEventId, +): string { + return JSON.stringify( + ListTenantDestinationAttemptsEventId$outboundSchema.parse( + listTenantDestinationAttemptsEventId, + ), + ); +} +export function listTenantDestinationAttemptsEventIdFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListTenantDestinationAttemptsEventId$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTenantDestinationAttemptsEventId' from JSON`, + ); +} + /** @internal */ export const ListTenantDestinationAttemptsStatus$inboundSchema: z.ZodNativeEnum< typeof ListTenantDestinationAttemptsStatus @@ -237,13 +288,17 @@ export const ListTenantDestinationAttemptsRequest$inboundSchema: z.ZodType< > = z.object({ tenant_id: z.string(), destination_id: z.string(), - event_id: z.string().optional(), + event_id: z.union([z.string(), z.array(z.string())]).optional(), status: ListTenantDestinationAttemptsStatus$inboundSchema.optional(), topic: z.union([z.string(), z.array(z.string())]).optional(), "time[gte]": z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), "time[lte]": z.string().datetime({ offset: true }).transform(v => new Date(v)) .optional(), + "time[gt]": z.string().datetime({ offset: true }).transform(v => new Date(v)) + .optional(), + "time[lt]": z.string().datetime({ offset: true }).transform(v => new Date(v)) + .optional(), limit: z.number().int().default(100), next: z.string().optional(), prev: z.string().optional(), @@ -257,6 +312,8 @@ export const ListTenantDestinationAttemptsRequest$inboundSchema: z.ZodType< "event_id": "eventId", "time[gte]": "timeGte", "time[lte]": "timeLte", + "time[gt]": "timeGt", + "time[lt]": "timeLt", "order_by": "orderBy", }); }); @@ -264,11 +321,13 @@ export const ListTenantDestinationAttemptsRequest$inboundSchema: z.ZodType< export type ListTenantDestinationAttemptsRequest$Outbound = { tenant_id: string; destination_id: string; - event_id?: string | undefined; + event_id?: string | Array | undefined; status?: string | undefined; topic?: string | Array | undefined; "time[gte]"?: string | undefined; "time[lte]"?: string | undefined; + "time[gt]"?: string | undefined; + "time[lt]"?: string | undefined; limit: number; next?: string | undefined; prev?: string | undefined; @@ -285,11 +344,13 @@ export const ListTenantDestinationAttemptsRequest$outboundSchema: z.ZodType< > = z.object({ tenantId: z.string(), destinationId: z.string(), - eventId: z.string().optional(), + eventId: z.union([z.string(), z.array(z.string())]).optional(), status: ListTenantDestinationAttemptsStatus$outboundSchema.optional(), topic: z.union([z.string(), z.array(z.string())]).optional(), timeGte: z.date().transform(v => v.toISOString()).optional(), timeLte: z.date().transform(v => v.toISOString()).optional(), + timeGt: z.date().transform(v => v.toISOString()).optional(), + timeLt: z.date().transform(v => v.toISOString()).optional(), limit: z.number().int().default(100), next: z.string().optional(), prev: z.string().optional(), @@ -303,6 +364,8 @@ export const ListTenantDestinationAttemptsRequest$outboundSchema: z.ZodType< eventId: "event_id", timeGte: "time[gte]", timeLte: "time[lte]", + timeGt: "time[gt]", + timeLt: "time[lt]", orderBy: "order_by", }); }); diff --git a/sdks/outpost-typescript/src/models/operations/listtenantdestinations.ts b/sdks/outpost-typescript/src/models/operations/listtenantdestinations.ts index e6c70551c..53ebc32b1 100644 --- a/sdks/outpost-typescript/src/models/operations/listtenantdestinations.ts +++ b/sdks/outpost-typescript/src/models/operations/listtenantdestinations.ts @@ -10,14 +10,14 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** - * Filter destinations by type(s). + * Filter destinations by type(s). Use bracket notation for multiple values (e.g., `type[0]=webhook&type[1]=aws_sqs`). */ export type ListTenantDestinationsType = | components.DestinationType | Array; /** - * Filter destinations by supported topic(s). + * Filter destinations by supported topic(s). Use bracket notation for multiple values (e.g., `topics[0]=user.created&topics[1]=user.deleted`). */ export type Topics = string | Array; @@ -27,14 +27,14 @@ export type ListTenantDestinationsRequest = { */ tenantId: string; /** - * Filter destinations by type(s). + * Filter destinations by type(s). Use bracket notation for multiple values (e.g., `type[0]=webhook&type[1]=aws_sqs`). */ type?: | components.DestinationType | Array | undefined; /** - * Filter destinations by supported topic(s). + * Filter destinations by supported topic(s). Use bracket notation for multiple values (e.g., `topics[0]=user.created&topics[1]=user.deleted`). */ topics?: string | Array | undefined; }; diff --git a/sdks/outpost-typescript/src/models/operations/listtenants.ts b/sdks/outpost-typescript/src/models/operations/listtenants.ts index d4e627ac8..132bd76a1 100644 --- a/sdks/outpost-typescript/src/models/operations/listtenants.ts +++ b/sdks/outpost-typescript/src/models/operations/listtenants.ts @@ -8,6 +8,11 @@ import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +/** + * Filter tenants by ID(s). Use bracket notation for multiple values (e.g., `id[0]=t1&id[1]=t2` or `id[]=t1&id[]=t2`). + */ +export type ListTenantsId = string | Array; + /** * Sort direction. */ @@ -21,6 +26,10 @@ export const ListTenantsDir = { export type ListTenantsDir = ClosedEnum; export type ListTenantsRequest = { + /** + * Filter tenants by ID(s). Use bracket notation for multiple values (e.g., `id[0]=t1&id[1]=t2` or `id[]=t1&id[]=t2`). + */ + id?: string | Array | undefined; /** * Number of tenants to return per page (1-100, default 20). */ @@ -39,6 +48,35 @@ export type ListTenantsRequest = { prev?: string | undefined; }; +/** @internal */ +export const ListTenantsId$inboundSchema: z.ZodType< + ListTenantsId, + z.ZodTypeDef, + unknown +> = z.union([z.string(), z.array(z.string())]); +/** @internal */ +export type ListTenantsId$Outbound = string | Array; + +/** @internal */ +export const ListTenantsId$outboundSchema: z.ZodType< + ListTenantsId$Outbound, + z.ZodTypeDef, + ListTenantsId +> = z.union([z.string(), z.array(z.string())]); + +export function listTenantsIdToJSON(listTenantsId: ListTenantsId): string { + return JSON.stringify(ListTenantsId$outboundSchema.parse(listTenantsId)); +} +export function listTenantsIdFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTenantsId$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTenantsId' from JSON`, + ); +} + /** @internal */ export const ListTenantsDir$inboundSchema: z.ZodNativeEnum< typeof ListTenantsDir @@ -54,6 +92,7 @@ export const ListTenantsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ + id: z.union([z.string(), z.array(z.string())]).optional(), limit: z.number().int().default(20), dir: ListTenantsDir$inboundSchema.default("desc"), next: z.string().optional(), @@ -61,6 +100,7 @@ export const ListTenantsRequest$inboundSchema: z.ZodType< }); /** @internal */ export type ListTenantsRequest$Outbound = { + id?: string | Array | undefined; limit: number; dir: string; next?: string | undefined; @@ -73,6 +113,7 @@ export const ListTenantsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, ListTenantsRequest > = z.object({ + id: z.union([z.string(), z.array(z.string())]).optional(), limit: z.number().int().default(20), dir: ListTenantsDir$outboundSchema.default("desc"), next: z.string().optional(), diff --git a/sdks/outpost-typescript/src/models/operations/updatetenantdestination.ts b/sdks/outpost-typescript/src/models/operations/updatetenantdestination.ts index f309d454c..2f26c4edc 100644 --- a/sdks/outpost-typescript/src/models/operations/updatetenantdestination.ts +++ b/sdks/outpost-typescript/src/models/operations/updatetenantdestination.ts @@ -18,7 +18,7 @@ export type UpdateTenantDestinationRequest = { * The ID of the destination. */ destinationId: string; - params: components.DestinationUpdate; + body: components.DestinationUpdate; }; /** @@ -34,7 +34,7 @@ export const UpdateTenantDestinationRequest$inboundSchema: z.ZodType< > = z.object({ tenant_id: z.string(), destination_id: z.string(), - params: components.DestinationUpdate$inboundSchema, + body: components.DestinationUpdate$inboundSchema, }).transform((v) => { return remap$(v, { "tenant_id": "tenantId", @@ -45,7 +45,7 @@ export const UpdateTenantDestinationRequest$inboundSchema: z.ZodType< export type UpdateTenantDestinationRequest$Outbound = { tenant_id: string; destination_id: string; - params: components.DestinationUpdate$Outbound; + body: components.DestinationUpdate$Outbound; }; /** @internal */ @@ -56,7 +56,7 @@ export const UpdateTenantDestinationRequest$outboundSchema: z.ZodType< > = z.object({ tenantId: z.string(), destinationId: z.string(), - params: components.DestinationUpdate$outboundSchema, + body: components.DestinationUpdate$outboundSchema, }).transform((v) => { return remap$(v, { tenantId: "tenant_id", diff --git a/sdks/outpost-typescript/src/models/operations/upserttenant.ts b/sdks/outpost-typescript/src/models/operations/upserttenant.ts index e8f3d0a4d..e8487d0c7 100644 --- a/sdks/outpost-typescript/src/models/operations/upserttenant.ts +++ b/sdks/outpost-typescript/src/models/operations/upserttenant.ts @@ -17,7 +17,7 @@ export type UpsertTenantRequest = { /** * Optional tenant metadata */ - params?: components.TenantUpsert | undefined; + body?: components.TenantUpsert | undefined; }; /** @internal */ @@ -27,7 +27,7 @@ export const UpsertTenantRequest$inboundSchema: z.ZodType< unknown > = z.object({ tenant_id: z.string(), - params: components.TenantUpsert$inboundSchema.optional(), + body: components.TenantUpsert$inboundSchema.optional(), }).transform((v) => { return remap$(v, { "tenant_id": "tenantId", @@ -36,7 +36,7 @@ export const UpsertTenantRequest$inboundSchema: z.ZodType< /** @internal */ export type UpsertTenantRequest$Outbound = { tenant_id: string; - params?: components.TenantUpsert$Outbound | undefined; + body?: components.TenantUpsert$Outbound | undefined; }; /** @internal */ @@ -46,7 +46,7 @@ export const UpsertTenantRequest$outboundSchema: z.ZodType< UpsertTenantRequest > = z.object({ tenantId: z.string(), - params: components.TenantUpsert$outboundSchema.optional(), + body: components.TenantUpsert$outboundSchema.optional(), }).transform((v) => { return remap$(v, { tenantId: "tenant_id", diff --git a/sdks/outpost-typescript/src/sdk/destinations.ts b/sdks/outpost-typescript/src/sdk/destinations.ts index 4f88de86b..c9797cb81 100644 --- a/sdks/outpost-typescript/src/sdk/destinations.ts +++ b/sdks/outpost-typescript/src/sdk/destinations.ts @@ -46,13 +46,13 @@ export class Destinations extends ClientSDK { */ async create( tenantId: string, - params: components.DestinationCreate, + body: components.DestinationCreate, options?: RequestOptions, ): Promise { return unwrapAsync(destinationsCreate( this, tenantId, - params, + body, options, )); } @@ -85,14 +85,14 @@ export class Destinations extends ClientSDK { async update( tenantId: string, destinationId: string, - params: components.DestinationUpdate, + body: components.DestinationUpdate, options?: RequestOptions, ): Promise { return unwrapAsync(destinationsUpdate( this, tenantId, destinationId, - params, + body, options, )); } diff --git a/sdks/outpost-typescript/src/sdk/tenants.ts b/sdks/outpost-typescript/src/sdk/tenants.ts index e3d889680..befac36a0 100644 --- a/sdks/outpost-typescript/src/sdk/tenants.ts +++ b/sdks/outpost-typescript/src/sdk/tenants.ts @@ -26,18 +26,12 @@ export class Tenants extends ClientSDK { * When authenticated with a Tenant JWT, returns only the authenticated tenant. Pagination is not used in this case. */ async listTenants( - limit?: number | undefined, - dir?: operations.ListTenantsDir | undefined, - next?: string | undefined, - prev?: string | undefined, + request: operations.ListTenantsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(tenantsListTenants( this, - limit, - dir, - next, - prev, + request, options, )); } @@ -50,13 +44,13 @@ export class Tenants extends ClientSDK { */ async upsert( tenantId: string, - params?: components.TenantUpsert | undefined, + body?: components.TenantUpsert | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(tenantsUpsert( this, tenantId, - params, + body, options, )); }