diff --git a/.speakeasy/logs/changes/changes.html b/.speakeasy/logs/changes/changes.html index 8381e756..f56ab4bc 100644 --- a/.speakeasy/logs/changes/changes.html +++ b/.speakeasy/logs/changes/changes.html @@ -4,7 +4,7 @@ - SDK Changelog - typescript + SDK Changelog - go -

Typescript SDK Changes:

+

Go SDK Changes:

\ No newline at end of file diff --git a/.speakeasy/logs/changes/changes.md b/.speakeasy/logs/changes/changes.md index 2a22012a..c82c18cc 100644 --- a/.speakeasy/logs/changes/changes.md +++ b/.speakeasy/logs/changes/changes.md @@ -1,5 +1,39 @@ -## Typescript SDK Changes: -* `outpost.publish()`: **Added** -* `outpost.retry()`: **Added** -* `outpost.publish.event()`: **Removed** (Breaking ⚠️) -* `outpost.retry.retry()`: **Removed** (Breaking ⚠️) +## Go SDK Changes: +* `Outpost.Destinations.Create()`: `request.Body` **Changed** + - `union(aws_kinesis).CreatedAt` **Added** + - `union(aws_kinesis).DisabledAt` **Added** + - `union(aws_kinesis).UpdatedAt` **Added** + - `union(aws_s3).CreatedAt` **Added** + - `union(aws_s3).DisabledAt` **Added** + - `union(aws_s3).UpdatedAt` **Added** + - `union(aws_sqs).CreatedAt` **Added** + - `union(aws_sqs).DisabledAt` **Added** + - `union(aws_sqs).UpdatedAt` **Added** + - `union(azure_servicebus).CreatedAt` **Added** + - `union(azure_servicebus).DisabledAt` **Added** + - `union(azure_servicebus).UpdatedAt` **Added** + - `union(gcp_pubsub).CreatedAt` **Added** + - `union(gcp_pubsub).DisabledAt` **Added** + - `union(gcp_pubsub).UpdatedAt` **Added** + - `union(hookdeck).CreatedAt` **Added** + - `union(hookdeck).DisabledAt` **Added** + - `union(hookdeck).UpdatedAt` **Added** + - `union(kafka).CreatedAt` **Added** + - `union(kafka).DisabledAt` **Added** + - `union(kafka).UpdatedAt` **Added** + - `union(rabbitmq).CreatedAt` **Added** + - `union(rabbitmq).DisabledAt` **Added** + - `union(rabbitmq).UpdatedAt` **Added** + - `union(webhook).CreatedAt` **Added** + - `union(webhook).DisabledAt` **Added** + - `union(webhook).UpdatedAt` **Added** +* `Outpost.Destinations.Update()`: `request.Body` **Changed** + - `union(DestinationUpdateAWSKinesis).DisabledAt` **Added** + - `union(DestinationUpdateAWSS3).DisabledAt` **Added** + - `union(DestinationUpdateAWSSQS).DisabledAt` **Added** + - `union(DestinationUpdateAzureServiceBus).DisabledAt` **Added** + - `union(DestinationUpdateGCPPubSub).DisabledAt` **Added** + - `union(DestinationUpdateHookdeck).DisabledAt` **Added** + - `union(DestinationUpdateKafka).DisabledAt` **Added** + - `union(DestinationUpdateRabbitMQ).DisabledAt` **Added** + - `union(DestinationUpdateWebhook).DisabledAt` **Added** diff --git a/.speakeasy/logs/changes/new.openapi.yaml b/.speakeasy/logs/changes/new.openapi.yaml index 5c650f81..dc87d84d 100644 --- a/.speakeasy/logs/changes/new.openapi.yaml +++ b/.speakeasy/logs/changes/new.openapi.yaml @@ -1262,6 +1262,27 @@ components: nullable: true description: Arbitrary contextual information stored with the destination. example: {"internal-id": "123", "team": "platform"} + created_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + example: "2024-02-15T10:00:00Z" + updated_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + example: "2024-02-15T10:00:00Z" + disabled_at: + type: string + format: date-time + nullable: true + description: >- + If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + example: null DestinationCreateAWSSQS: type: object x-docs-type: "AWS SQS" @@ -1297,6 +1318,27 @@ components: nullable: true description: Arbitrary contextual information stored with the destination. example: {"internal-id": "123", "team": "platform"} + created_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + example: "2024-02-15T10:00:00Z" + updated_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + example: "2024-02-15T10:00:00Z" + disabled_at: + type: string + format: date-time + nullable: true + description: >- + If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + example: null DestinationCreateRabbitMQ: type: object x-docs-type: "RabbitMQ" @@ -1332,6 +1374,27 @@ components: nullable: true description: Arbitrary contextual information stored with the destination. example: {"internal-id": "123", "team": "platform"} + created_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + example: "2024-02-15T10:00:00Z" + updated_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + example: "2024-02-15T10:00:00Z" + disabled_at: + type: string + format: date-time + nullable: true + description: >- + If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + example: null DestinationCreateHookdeck: type: object x-docs-type: "Hookdeck Event Gateway" @@ -1366,6 +1429,27 @@ components: nullable: true description: Arbitrary contextual information stored with the destination. example: {"internal-id": "123", "team": "platform"} + created_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + example: "2024-02-15T10:00:00Z" + updated_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + example: "2024-02-15T10:00:00Z" + disabled_at: + type: string + format: date-time + nullable: true + description: >- + If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + example: null DestinationCreateAWSKinesis: type: object x-docs-type: "AWS Kinesis" @@ -1401,6 +1485,27 @@ components: nullable: true description: Arbitrary contextual information stored with the destination. example: {"internal-id": "123", "team": "platform"} + created_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + example: "2024-02-15T10:00:00Z" + updated_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + example: "2024-02-15T10:00:00Z" + disabled_at: + type: string + format: date-time + nullable: true + description: >- + If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + example: null DestinationCreateAzureServiceBus: type: object x-docs-type: "Azure Service Bus" @@ -1436,6 +1541,27 @@ components: nullable: true description: Arbitrary contextual information stored with the destination. example: {"internal-id": "123", "team": "platform"} + created_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + example: "2024-02-15T10:00:00Z" + updated_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + example: "2024-02-15T10:00:00Z" + disabled_at: + type: string + format: date-time + nullable: true + description: >- + If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + example: null DestinationCreateAWSS3: type: object x-docs-type: "AWS S3" @@ -1471,6 +1597,27 @@ components: nullable: true description: Arbitrary contextual information stored with the destination. example: {"internal-id": "123", "team": "platform"} + created_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + example: "2024-02-15T10:00:00Z" + updated_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + example: "2024-02-15T10:00:00Z" + disabled_at: + type: string + format: date-time + nullable: true + description: >- + If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + example: null DestinationCreateGCPPubSub: type: object x-docs-type: "GCP PubSub" @@ -1506,6 +1653,27 @@ components: nullable: true description: Arbitrary contextual information stored with the destination. example: {"internal-id": "123", "team": "platform"} + created_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + example: "2024-02-15T10:00:00Z" + updated_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + example: "2024-02-15T10:00:00Z" + disabled_at: + type: string + format: date-time + nullable: true + description: >- + If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + example: null DestinationCreateKafka: type: object x-docs-type: "Apache Kafka" @@ -1541,6 +1709,27 @@ components: nullable: true description: Arbitrary contextual information stored with the destination. example: {"internal-id": "123", "team": "platform"} + created_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + example: "2024-02-15T10:00:00Z" + updated_at: + type: string + format: date-time + nullable: true + description: >- + Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + example: "2024-02-15T10:00:00Z" + disabled_at: + type: string + format: date-time + nullable: true + description: >- + If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + example: null # Polymorphic Destination Creation Schema (for Request Bodies) DestinationCreate: oneOf: @@ -1615,6 +1804,13 @@ components: description: >- Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. example: {"internal-id": "123", "team": "platform"} + disabled_at: + type: string + format: date-time + nullable: true + description: >- + Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + example: null DestinationUpdateAWSSQS: type: object x-docs-type: "AWS SQS" @@ -1648,6 +1844,13 @@ components: description: >- Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. example: {"internal-id": "123", "team": "platform"} + disabled_at: + type: string + format: date-time + nullable: true + description: >- + Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + example: null DestinationUpdateRabbitMQ: type: object x-docs-type: "RabbitMQ" @@ -1681,6 +1884,13 @@ components: description: >- Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. example: {"internal-id": "123", "team": "platform"} + disabled_at: + type: string + format: date-time + nullable: true + description: >- + Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + example: null DestinationUpdateHookdeck: type: object x-docs-type: "Hookdeck Event Gateway" @@ -1713,6 +1923,13 @@ components: description: >- Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. example: {"internal-id": "123", "team": "platform"} + disabled_at: + type: string + format: date-time + nullable: true + description: >- + Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + example: null DestinationUpdateAWSKinesis: type: object x-docs-type: "AWS Kinesis" @@ -1746,6 +1963,13 @@ components: description: >- Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. example: {"internal-id": "123", "team": "platform"} + disabled_at: + type: string + format: date-time + nullable: true + description: >- + Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + example: null DestinationUpdateAzureServiceBus: type: object x-docs-type: "Azure Service Bus" @@ -1779,6 +2003,13 @@ components: description: >- Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. example: {"internal-id": "123", "team": "platform"} + disabled_at: + type: string + format: date-time + nullable: true + description: >- + Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + example: null DestinationUpdateAWSS3: type: object x-docs-type: "AWS S3" @@ -1812,6 +2043,13 @@ components: description: >- Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. example: {"internal-id": "123", "team": "platform"} + disabled_at: + type: string + format: date-time + nullable: true + description: >- + Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + example: null DestinationUpdateGCPPubSub: type: object x-docs-type: "GCP PubSub" @@ -1845,6 +2083,13 @@ components: description: >- Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. example: {"internal-id": "123", "team": "platform"} + disabled_at: + type: string + format: date-time + nullable: true + description: >- + Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + example: null DestinationUpdateKafka: type: object x-docs-type: "Apache Kafka" @@ -1878,6 +2123,13 @@ components: description: >- Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. example: {"internal-id": "123", "team": "platform"} + disabled_at: + type: string + format: date-time + nullable: true + description: >- + Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + example: null # Polymorphic Destination Update Schema (for Request Bodies) DestinationUpdate: oneOf: @@ -2766,11 +3018,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - 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 @@ -2982,21 +3232,17 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - 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: - oneOf: - - type: string - - type: array - items: - 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. @@ -3015,11 +3261,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - type: string + type: array + items: + type: string description: Filter events by topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). - name: time in: query @@ -3179,11 +3423,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - 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. @@ -3192,21 +3434,17 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - 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: - oneOf: - - type: string - - type: array - items: - 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: destination_type in: query @@ -3229,11 +3467,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - type: string + type: array + items: + type: string 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 in: query @@ -3268,11 +3504,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - type: string + type: array + items: + type: string description: | 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) @@ -3396,11 +3630,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - type: string + type: array + items: + type: string description: | 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) @@ -3550,21 +3782,17 @@ paths: in: query required: false schema: - oneOf: - - $ref: "#/components/schemas/DestinationType" - - type: array - items: - $ref: "#/components/schemas/DestinationType" + type: array + items: + $ref: "#/components/schemas/DestinationType" 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 schema: - oneOf: - - type: string - - type: array - items: - type: string + type: array + items: + type: string 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": @@ -3914,11 +4142,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - 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 @@ -3931,11 +4157,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - type: string + type: array + items: + type: string 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 in: query @@ -3970,11 +4194,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - type: string + type: array + items: + type: string description: | 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) @@ -4077,11 +4299,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - type: string + type: array + items: + type: string description: | 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 diff --git a/.speakeasy/logs/changes/old.openapi.yaml b/.speakeasy/logs/changes/old.openapi.yaml index eb6eb337..7cd5ab5c 100644 --- a/.speakeasy/logs/changes/old.openapi.yaml +++ b/.speakeasy/logs/changes/old.openapi.yaml @@ -2729,11 +2729,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - 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 @@ -2945,21 +2943,17 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - 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: - oneOf: - - type: string - - type: array - items: - 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. @@ -2978,11 +2972,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - type: string + type: array + items: + type: string description: Filter events by topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). - name: time in: query @@ -3142,11 +3134,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - 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. @@ -3155,21 +3145,17 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - 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: - oneOf: - - type: string - - type: array - items: - 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: destination_type in: query @@ -3192,11 +3178,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - type: string + type: array + items: + type: string 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 in: query @@ -3231,11 +3215,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - type: string + type: array + items: + type: string description: | 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) @@ -3359,11 +3341,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - type: string + type: array + items: + type: string description: | 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) @@ -3513,21 +3493,17 @@ paths: in: query required: false schema: - oneOf: - - $ref: "#/components/schemas/DestinationType" - - type: array - items: - $ref: "#/components/schemas/DestinationType" + type: array + items: + $ref: "#/components/schemas/DestinationType" 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 schema: - oneOf: - - type: string - - type: array - items: - type: string + type: array + items: + type: string 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": @@ -3877,11 +3853,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - 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 @@ -3894,11 +3868,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - type: string + type: array + items: + type: string 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 in: query @@ -3933,11 +3905,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - type: string + type: array + items: + type: string description: | 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) @@ -4040,11 +4010,9 @@ paths: in: query required: false schema: - oneOf: - - type: string - - type: array - items: - type: string + type: array + items: + type: string description: | 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 @@ -4156,7 +4124,8 @@ paths: $ref: '#/components/responses/Timeout' '504': $ref: '#/components/responses/Timeout' - x-speakeasy-name-override: event + x-speakeasy-name-override: publish + x-speakeasy-group: "" security: - BearerAuth: [] # Retry @@ -4202,6 +4171,7 @@ paths: "500": $ref: "#/components/responses/InternalServerError" x-speakeasy-name-override: retry + x-speakeasy-group: "" /destination-types: get: tags: [Schemas] diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 083d3242..c69a2069 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.761.10 +speakeasyVersion: 1.763.0 sources: Outpost API: sourceNamespace: outpost-api @@ -9,8 +9,8 @@ sources: - 0.0.1 Outpost API (Go): sourceNamespace: outpost-api - sourceRevisionDigest: sha256:4f09edb730cf40e6bd87de128f38ec66a75313af26f3527656f30687128cd945 - sourceBlobDigest: sha256:38070d5c2a64104540e79d45a1fc751110ad166711b8f16b8e3ba90dea5a5730 + sourceRevisionDigest: sha256:3dcedd941c02dca57d321a9ff9549ad3e4c06f4b05fce54b1db4518ae1525926 + sourceBlobDigest: sha256:26aa19602e299ca2b312093a0ae81958402522a9d8a1f900742904197648c5ed tags: - latest - 0.0.1 @@ -25,10 +25,10 @@ targets: outpost-go: source: Outpost API (Go) sourceNamespace: outpost-api - sourceRevisionDigest: sha256:4f09edb730cf40e6bd87de128f38ec66a75313af26f3527656f30687128cd945 - sourceBlobDigest: sha256:38070d5c2a64104540e79d45a1fc751110ad166711b8f16b8e3ba90dea5a5730 + sourceRevisionDigest: sha256:3dcedd941c02dca57d321a9ff9549ad3e4c06f4b05fce54b1db4518ae1525926 + sourceBlobDigest: sha256:26aa19602e299ca2b312093a0ae81958402522a9d8a1f900742904197648c5ed codeSamplesNamespace: outpost-api-go-code-samples - codeSamplesRevisionDigest: sha256:fb564b5a48cc20c2b7c1b4b4b68b1b8ec36afc67b4e681411e6ee9c5ece61e37 + codeSamplesRevisionDigest: sha256:0244d7a112aba384de02c70dfbb3db6c48c858e36f29dba6006d1281ebc8d7bf outpost-python: source: Outpost API (Python) sourceNamespace: outpost-api diff --git a/sdks/outpost-go/.speakeasy/gen.lock b/sdks/outpost-go/.speakeasy/gen.lock index d5206dd3..7537995b 100644 --- a/sdks/outpost-go/.speakeasy/gen.lock +++ b/sdks/outpost-go/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: f0627709-5a00-43ac-8678-ca716d6f379c management: - docChecksum: 08dffbff624e58e156ce8af8063d1fc0 + docChecksum: 56b3afb457a31662f570518662cc8faf docVersion: 0.0.1 - speakeasyVersion: 1.761.10 - generationVersion: 2.881.16 - releaseVersion: 1.2.0 - configChecksum: a164b90c8d5de746ec645718e2da64bc + speakeasyVersion: 1.763.0 + generationVersion: 2.884.0 + releaseVersion: 1.3.0 + configChecksum: 15d9d37ca486be8d70ac88bd0bf96529 repoURL: https://github.com/hookdeck/outpost.git repoSubDirectory: sdks/outpost-go installationURL: https://github.com/hookdeck/outpost persistentEdits: - generation_id: 45c053a0-b24a-494a-abbd-47693a547860 - pristine_commit_hash: 611ab17be4d0f1fd50a2d26a9ce2a6e41aa94849 - pristine_tree_hash: c5d69971d55b7216ef3d42809098273cea7e1840 + generation_id: 3fe84976-864e-41c3-ac28-e178ede67f2a + pristine_commit_hash: 86e68cbd4c1bf77a23d24daed84ac23efdd80590 + pristine_tree_hash: 32259f846488c50b5217e6411dc0b041fc0af460 features: go: additionalDependencies: 0.1.0 @@ -35,7 +35,7 @@ features: responseFormat: 0.1.2 retries: 2.84.2 sdkHooks: 0.3.0 - unions: 2.87.6 + unions: 2.87.7 trackedFiles: .gitattributes: id: 24139dae6567 @@ -175,72 +175,72 @@ trackedFiles: pristine_git_object: 302a4307d84d3d0be6d24287f39636478f82317f docs/models/components/destinationcreateawskinesis.md: id: 5593f1bd5e1a - last_write_checksum: sha1:0816af2b17088e8bb4f2f3d8bdf4ebe603f2b780 - pristine_git_object: 67c99d848e7c17faf789601e572d7cc6840aae40 + last_write_checksum: sha1:e93d6d3d7bc80f6edccaba0302c24fce7bfe8db7 + pristine_git_object: 663c136320c99a83ce985e64c3dcae6d6fc4876b docs/models/components/destinationcreateawskinesistype.md: id: 6956680339a0 last_write_checksum: sha1:ccfe37b5aec6c9cc151a70e4c9a83badcebf0ce9 pristine_git_object: 0a54ef9a6fd668ebc2e658bacb3556cdb18a4f5e docs/models/components/destinationcreateawss3.md: id: af91634b61a0 - last_write_checksum: sha1:f5f560c7f7d74d3d2adbfff6bc1571000ccdb3bd - pristine_git_object: a6c3b8e6b104878be7bd26de335c7191a844ff06 + last_write_checksum: sha1:fce629bff9ce32aec5c0b572af14e971a9579744 + pristine_git_object: 13f58791c1b3aa5202a67512d945684a71d67fc3 docs/models/components/destinationcreateawss3type.md: id: 6877bf7e23ec last_write_checksum: sha1:15f7ecdaf26e36c0293c8da23599a38b81bc3be0 pristine_git_object: 3c81a08e5b289348be136baa3a104afbfda0abae docs/models/components/destinationcreateawssqs.md: id: c6b726f0ec14 - last_write_checksum: sha1:be4d88e1e10b833e096a0da5e6d268bf7c79b6fe - pristine_git_object: 44335a773eb2de4a938d92938dd059f0472c3c12 + last_write_checksum: sha1:624a53c289d7ce9085e1a98248a3ffe38b8bca85 + pristine_git_object: 89dec8c8d2693b600e888e2a278d1d66d77777e8 docs/models/components/destinationcreateawssqstype.md: id: 1ef234381d5e last_write_checksum: sha1:6fa312b73dffdacc62b2d05b264d3b6794da974f pristine_git_object: 31eab2ef4c64390f168a4ff6808d7e1e3b685089 docs/models/components/destinationcreateazureservicebus.md: id: 89472b979d07 - last_write_checksum: sha1:a6c0d857939423cf53e96705daa159e88bbca027 - pristine_git_object: 4fc1dbbec24895aea8c5be98806503afe20ee9ee + last_write_checksum: sha1:2cf9deb396f7a939117089c2dd8024dc81b2e2d5 + pristine_git_object: 2272715f46a8496ddfe6a6cb013e0cf72828b78a docs/models/components/destinationcreateazureservicebustype.md: id: 7bcec8499967 last_write_checksum: sha1:4556330df57f6e8afb09b8f70ba8899214a33373 pristine_git_object: 45c69a88d58579d1450876db00bb913772b61f28 docs/models/components/destinationcreategcppubsub.md: id: 83e1ebef3406 - last_write_checksum: sha1:f8401e4bccf54995fe789d77454360e9e367eca9 - pristine_git_object: 6679bc877760cac1dc6d8a6871b0b0eae472b77b + last_write_checksum: sha1:6f00dbfcc12e4d2e57546173ba8ee51f367aa193 + pristine_git_object: 00928462a2aeb6b9fac6c1a3c93cec1ffc4c3db8 docs/models/components/destinationcreategcppubsubtype.md: id: dc2f412568a7 last_write_checksum: sha1:b6e81a8cdb239107506d6f7c6a946f0e980623f8 pristine_git_object: 2d821818d1265a121a3386844818bb679079a4db docs/models/components/destinationcreatehookdeck.md: id: a06f19b079ed - last_write_checksum: sha1:d4114313aaa7eafcef9d8bb092bc1ed3de7af862 - pristine_git_object: 89faea7773fad7b349770e96eadea54ace6ea21b + last_write_checksum: sha1:15efb07afd442088e512c7acc1ae8ca575b8478e + pristine_git_object: 28ef2cdf78cbca380df8b0a995dd2aae1109cbf1 docs/models/components/destinationcreatehookdecktype.md: id: 7633062252b9 last_write_checksum: sha1:6ca9d40f2c4eac5e7d540c5c0e0a7bc4e4a73d6d pristine_git_object: 034fb5298041b5d42008c7a5a8a86c2fb50002cb docs/models/components/destinationcreatekafka.md: id: 7c43fe1d2c1f - last_write_checksum: sha1:497dcf681172963d51dc8d89c7dc13b6e3f052be - pristine_git_object: c3fa0a6ffc8d94a3f113b43fe21af3cc76b733c1 + last_write_checksum: sha1:7ada6179a97a5da69b0afb71d490b1c88f96146c + pristine_git_object: cb567538cedec2ca4ae98569e728536c3421a777 docs/models/components/destinationcreatekafkatype.md: id: d63a5ec5cd5c last_write_checksum: sha1:bf2d38ec8b1b1869907fcf4406c7eaad09c3c53c pristine_git_object: 09388b639b8f73730259ed54a2f7c9515d4e35f5 docs/models/components/destinationcreaterabbitmq.md: id: 3f95bd0221e2 - last_write_checksum: sha1:a04c4b041bba5f4fccb0d2fe11003fb6a3356818 - pristine_git_object: c9f62d002bcf05f332464c84e21a5278b79c9e1f + last_write_checksum: sha1:d8f2221eec47a8957cdb243162211b3492d4bdb7 + pristine_git_object: 3316027202bc407c674a67bc050f80b191874b3b docs/models/components/destinationcreaterabbitmqtype.md: id: 71cf19ccfc8b last_write_checksum: sha1:f66d756b3e5f4321643ee26fe4b6963fda64828f pristine_git_object: fb92b828c9737d6279145a208f79df0fb41d8fe0 docs/models/components/destinationcreatewebhook.md: id: 92e4ccbf4461 - last_write_checksum: sha1:0bb670086a394bbb6eee0f808cbf508930b4be7e - pristine_git_object: d6ecb04ed7e1388600b0193303a5bc12209504cf + last_write_checksum: sha1:8855b8158b4dc7f3653e25c39108ebc059827b0c + pristine_git_object: b6f782c0a53786ddf69ebbd2580c5d8bf19bcfdd docs/models/components/destinationcreatewebhooktype.md: id: b112cbdd9f49 last_write_checksum: sha1:d2446eb8980f8027afd9b4e8e96007077a3c9fed @@ -299,40 +299,40 @@ trackedFiles: pristine_git_object: 3aee7e4bee00df52fe6128ead83cd1f1598a5614 docs/models/components/destinationupdateawskinesis.md: id: e0a4842ef74c - last_write_checksum: sha1:cdd9ffd3edcec80097c4fa5571175836c3e73fe5 - pristine_git_object: 165e785d12089d725264cc76216b58c384565076 + last_write_checksum: sha1:897a0267e63e3b6c90680da2add18f5e5edf056c + pristine_git_object: e2901ea801230ff99e3d0efda5e0c340df143b0b docs/models/components/destinationupdateawss3.md: id: c250ff90df94 - last_write_checksum: sha1:080030c3627fd68e9351a9dac4c4cb289d4b4c0d - pristine_git_object: 186c28650da7b14f9f569d25749a8364b160dff7 + last_write_checksum: sha1:994835785c33770118f54c94ba68f01d9ab8ccc4 + pristine_git_object: 5da69e367cb79dd9d093af2a921bba846e75c0f6 docs/models/components/destinationupdateawssqs.md: id: e2401ded4e44 - last_write_checksum: sha1:83ef802dfa02ff1ef2bcb1572c4d9f9ed6a41aa5 - pristine_git_object: 0e276d10cae9b8947111eaeb8604c088de0b9e46 + last_write_checksum: sha1:26f525ce6dcb8fc18c5c2a8cf37b8afe1d8c8a0d + pristine_git_object: 6bd68cf26d6895ce017d82e5a31164fc40ffa327 docs/models/components/destinationupdateazureservicebus.md: id: f230709db383 - last_write_checksum: sha1:4694690f384f0e1051c39472243439b1343f798c - pristine_git_object: 22da29c3259c1746a9acf171fa095d5802d9fb91 + last_write_checksum: sha1:4a2826cf093f90d545fe38760ee4a9ec8a79b713 + pristine_git_object: 09a2d036460949654cc8af7a4474c9288f98d1d1 docs/models/components/destinationupdategcppubsub.md: id: dfb954a0431a - last_write_checksum: sha1:22cc361a2a5c6e5494ae3783ed815733ea75b382 - pristine_git_object: 9978489cea9c681f5009ad16fdf557fa1739356f + last_write_checksum: sha1:f19edd7777e503d45707604cd6f1e4a4afcdda03 + pristine_git_object: 4878a979825f81ca8c86ec4045c3280a0108637f docs/models/components/destinationupdatehookdeck.md: id: 2d0fe3ebe94f - last_write_checksum: sha1:d5b6a8c02ade71fceb2a2a2b5a0dcf0d72f6c482 - pristine_git_object: 641b16cbbbdd98e664ed8430a78c065d11434e8f + last_write_checksum: sha1:06542bae4d63b4e98e0c2cb98c6baa4811c71690 + pristine_git_object: 314d1c38924ac78834cb9a8da1e60b019da27016 docs/models/components/destinationupdatekafka.md: id: 10be812cf1c0 - last_write_checksum: sha1:f2cb5c7bc77d50cef3b4239b0a9a709b2599f796 - pristine_git_object: 2555b5e98e76f8285fbe67ddfe82732cad00a5e9 + last_write_checksum: sha1:4f5085f6d429510c61b03bb96cef53eea5d2209b + pristine_git_object: 98e8155afc6c01bdbe7674da2fbcbf1b88c1bbc5 docs/models/components/destinationupdaterabbitmq.md: id: 75ae8e40dfd5 - last_write_checksum: sha1:2ec504373e2799ae71771f98673744bcd39974b7 - pristine_git_object: 00f021ca503de7922fe5b7a0bfc031dd03554493 + last_write_checksum: sha1:daa634a650c1dd64418de3fcfffaa4e73cfe2b02 + pristine_git_object: bd66eda49bfe381d826c413e3666b54c5897c84a docs/models/components/destinationupdatewebhook.md: id: 86013f6d41fd - last_write_checksum: sha1:4d65784916bffe06985fb13f3ef646fc343c8201 - pristine_git_object: 09b1846411762b95b8da15e7b954623ad4599b16 + last_write_checksum: sha1:d9d8229a5b1bb55016381994adf84cb5b0bc4fae + pristine_git_object: e3ca041c61c0edaa047dac616a196f974b4872a8 docs/models/components/destinationwebhook.md: id: 1b6ca867dbc9 last_write_checksum: sha1:5dd9693db96dae3adf383dfd0a7185a511e96935 @@ -995,12 +995,12 @@ trackedFiles: pristine_git_object: a2332ee8de013a2121880e4b7be332d3385c6f41 internal/utils/union.go: id: db86c85746b6 - last_write_checksum: sha1:08ba9097091619af0438094533f06c5693f9aeaa - pristine_git_object: dfff6f64f7838452c4caf663abb6fbdbb5b8f76f + last_write_checksum: sha1:5be016c86ebb32e8824ff2a2292d20fe5a4d89d0 + pristine_git_object: f52a45af4d1a471e64c0c6f04689b7370820aa91 internal/utils/union_test.go: id: 4b56247171bd - last_write_checksum: sha1:83ac73c1901de4c6db90f65cf5879163f3d47a00 - pristine_git_object: f66814c73ace94d8e71d785fd6161fb405745754 + last_write_checksum: sha1:bd5c7506e1d6238117c1ac4e340314a5a41401b5 + pristine_git_object: 138f7e2a066b10dffd0a9957ecfcab9e00dd26fe internal/utils/utils.go: id: 1133b2a27019 last_write_checksum: sha1:c03378176a107205b8938606faef3fd8fb8f91a0 @@ -1111,40 +1111,40 @@ trackedFiles: pristine_git_object: 06a1408b48b8c50c9c7a16d754f4eb2bb44b6edd models/components/destinationcreateawskinesis.go: id: 716114099c1b - last_write_checksum: sha1:ad651305414e5e8127bb533e4ccd71133fa554c3 - pristine_git_object: 9805ee9fecac44e5cd0ed3106273d1cdf07c1266 + last_write_checksum: sha1:3fffc63653ee1d8fa59f8c86f2a0667fffb73eb1 + pristine_git_object: 28cd494c8358f76caf6e00278e65acc4e6cb98b1 models/components/destinationcreateawss3.go: id: 7bea39e95ede - last_write_checksum: sha1:8d38f1d84c0ba6b658b292558ed8693ff38fcf45 - pristine_git_object: f4d44b7e089da978f0df9bc67739651152a81c51 + last_write_checksum: sha1:a1851428f14fd4fd75901eaf7db23b977028e7ff + pristine_git_object: 2549fb0f35eee56c99729e449429b1d20a1db100 models/components/destinationcreateawssqs.go: id: c60d19e6d3de - last_write_checksum: sha1:a833f824e00ab4899e4d4fa31704b94b02651e45 - pristine_git_object: baa46c730ee5c55c325d08e1f1ca59afc8672607 + last_write_checksum: sha1:b1f910ae7f729ad854ada2ef135277b41afe6c48 + pristine_git_object: 927dbed9b1093beb0e97a35f8733bb8ab36493d9 models/components/destinationcreateazureservicebus.go: id: d96c5dcffc18 - last_write_checksum: sha1:09a73a95e7c4b021052cf163435a04738afc6244 - pristine_git_object: 5b129dd605cd4fa111c8d5bc1d25b95f88bf5121 + last_write_checksum: sha1:0c80309ed62f0a175c07b2839ad1384f71a9a178 + pristine_git_object: a7a44a4b917ad7515083f5899e6cc171feda0ee2 models/components/destinationcreategcppubsub.go: id: 760cc25f4532 - last_write_checksum: sha1:5b2c4cf02bede6bc8337c818b6667553059e7196 - pristine_git_object: 588509b8637fa023bbabaf713be1e637eb2344b0 + last_write_checksum: sha1:6e76ed0751c49a5ccdc9dc711df5fde4bebbb3da + pristine_git_object: ecc2b39ffd38efe78430c962c073f1381a5b274c models/components/destinationcreatehookdeck.go: id: 0b164756ec20 - last_write_checksum: sha1:af82093c7d96277376562e61be794abbd56c9d4f - pristine_git_object: 5ed8f3203c33f241611d5ad4b45e36c7c91ce6f1 + last_write_checksum: sha1:bb248fb879d7e646dd969cbef8ae4d7312de0ecd + pristine_git_object: 3df91f73ba5513a43aaefccca936732f86a26f2a models/components/destinationcreatekafka.go: id: d2ae3dea4c90 - last_write_checksum: sha1:16dbdb00f15e10b6a0b147777481216af5bf98a2 - pristine_git_object: 6b257ddc88d5188ff7c3e7ca06ffca51efb4d00f + last_write_checksum: sha1:4298d3d5993c68f8fe98a300768bf1cf1067a86e + pristine_git_object: 3059b92a7a0065f1f391b1f87d5b34cde16471d6 models/components/destinationcreaterabbitmq.go: id: 27cd933960e7 - last_write_checksum: sha1:d6e22de1c5564fbcb89435f51116388ef4b47fe3 - pristine_git_object: 0480068b6e8bf6f23f49e8e60ac45e9258d93f26 + last_write_checksum: sha1:6dee226a381612d700726b94b7b47ecbc8e06c83 + pristine_git_object: 59bfbfe384a2d430b81de12ee644a95ae1133453 models/components/destinationcreatewebhook.go: id: e97a4db7225c - last_write_checksum: sha1:0c6f480e751546703dab254c1d6f88747c5f3884 - pristine_git_object: 10f9875f038d800118440374c7e7b560092acf30 + last_write_checksum: sha1:d737502ef0d8ca5e50e593b095fe7cc3c4071f2e + pristine_git_object: 4f8fbf1e840c1b27d86d6ad33b35914ddd3db940 models/components/destinationgcppubsub.go: id: d0551eafaf48 last_write_checksum: sha1:a281a70de2302e972007c171eb09eda158c88764 @@ -1179,40 +1179,40 @@ trackedFiles: pristine_git_object: a85aeba7a853846403cd5283171677cd269d07d9 models/components/destinationupdateawskinesis.go: id: 3282bcbfd9da - last_write_checksum: sha1:0928d775e0e26e8884f28eea73d047a6eae91911 - pristine_git_object: a4c61d79bc1320f687e618af9a937a67869de586 + last_write_checksum: sha1:ac227a0c676519effb4422975280d70744cd366a + pristine_git_object: f02a4bf525caf1e3ddab556ad7f0e2da702095f9 models/components/destinationupdateawss3.go: id: 79a4859f0cea - last_write_checksum: sha1:f279d6dff4994bc5c220a7a3d9021f56fad61301 - pristine_git_object: 229fff36e8d3ffd0991d23e100e055b06ae4f634 + last_write_checksum: sha1:a0ff7807190ea44bb7b0f71ce424f08fc6ec4094 + pristine_git_object: 7e53db2db05b91b34243e0953964e770d5b36e8f models/components/destinationupdateawssqs.go: id: 23190d1a3d21 - last_write_checksum: sha1:8aa42062029307133e6e98d3615806cb1bf633f5 - pristine_git_object: 0bdf9399a0eb57e0d80e4e343368da1314acf33c + last_write_checksum: sha1:ed375146b12ee887a56531b29114a57f1698824e + pristine_git_object: 484a76eee1553b9bc44dc76cec32a89793a133d3 models/components/destinationupdateazureservicebus.go: id: b83a9c557a38 - last_write_checksum: sha1:caa663b316d045e338bcf25a3c2b2e7fa47fed81 - pristine_git_object: 6ea2b2c71d410d99540f9c4201ef16fb95bdbf8a + last_write_checksum: sha1:798ce98467c05e42a07f0bb4033304fc0d7cde5b + pristine_git_object: f7cfdbbe4c8aa89f8afbb6a761a6d93c5b203d38 models/components/destinationupdategcppubsub.go: id: c1fdf179507b - last_write_checksum: sha1:6988378c16f834ead3f70f4769120ab59fd57a41 - pristine_git_object: 8570967179a646b0e9ea8e54bad105cdcf56f63d + last_write_checksum: sha1:582cb035476f38612aad8defb3be954c6f0de368 + pristine_git_object: b5987b92be26296a3f8ce5e7eeb682ae62c63331 models/components/destinationupdatehookdeck.go: id: 03124d06038b - last_write_checksum: sha1:a41209cd594c8140937f6209b0045acbbfd68b16 - pristine_git_object: edb5071eb5697b12a23ac7ae75caf12f8286f479 + last_write_checksum: sha1:2ecd177ea51637788e4786c44daed3154c9fc564 + pristine_git_object: 9af1a2b093677e9a232f32800ce350e888ec2fa0 models/components/destinationupdatekafka.go: id: 0a553d96d90c - last_write_checksum: sha1:031d9880ac1feefb4eecb3fbb4f5d7c15fdbf73a - pristine_git_object: dd0a0860e428e2976cc0ccdee271dc835bc82f5c + last_write_checksum: sha1:a2767968be6fd54f24e53d4038f3da15acf025f9 + pristine_git_object: a9079063fb35067d3bf146a02949fbced323ad75 models/components/destinationupdaterabbitmq.go: id: 4ee793e05609 - last_write_checksum: sha1:fd062a9f147a3415505cacd8da2ea468cffe3cf9 - pristine_git_object: ccba48587c2d7dda12dbcbfe19fcf2bb88ee151c + last_write_checksum: sha1:bac782ab61f104804743c6a8b45aae7b627848d1 + pristine_git_object: 488420215c2e12dc37b014f816638f6c1139a8cf models/components/destinationupdatewebhook.go: id: b4c8c0a38df5 - last_write_checksum: sha1:107b824164bcc114e58abfeb1bddc66bbdfbb38f - pristine_git_object: e9b331ff2a829ed7cc4995976b1a8afc6ab279ab + last_write_checksum: sha1:4e7ff5adf3c06abd227c11312ca48bcb8e392003 + pristine_git_object: 1c93fa6986fbb2fc4554a106d12a1ec281e8eed2 models/components/destinationwebhook.go: id: 34f9436369a5 last_write_checksum: sha1:a766e853cb1d0bee00ddb94c4e08ed9aefce84e9 @@ -1467,8 +1467,8 @@ trackedFiles: pristine_git_object: e6e5a01c6e721e879e24a38a1f97e3e27d4686d4 outpost.go: id: 7aebc57e3f81 - last_write_checksum: sha1:e6fab77ce524637c37fd3e94e85efc361e8740a8 - pristine_git_object: 4b07b7f831852f5be10b34a33e79be29443754aa + last_write_checksum: sha1:02253c52eb8ba47c942430c4606e2fdb00fb3486 + pristine_git_object: add31676a1fa8a09d64af1a913d2ca77e3057ea1 retry/config.go: id: 82d673cb0389 last_write_checksum: sha1:7f7d96b59a18e95bac847ae09c63bbd911ee8432 @@ -2085,10 +2085,8 @@ examplesVersion: 1.0.2 generatedTests: {} releaseNotes: | ## Go SDK Changes: - * `Outpost.Publish()`: **Added** - * `Outpost.Retry()`: **Added** - * `Outpost.Publish.Event()`: **Removed** (Breaking ⚠️) - * `Outpost.Retry.Retry()`: **Removed** (Breaking ⚠️) + * `Outpost.Destinations.Create()`: `request.Body` **Changed** + * `Outpost.Destinations.Update()`: `request.Body` **Changed** generatedFiles: - .gitattributes - /models/apierrors/badrequesterror.go diff --git a/sdks/outpost-go/.speakeasy/gen.yaml b/sdks/outpost-go/.speakeasy/gen.yaml index 8313acd5..747506e6 100644 --- a/sdks/outpost-go/.speakeasy/gen.yaml +++ b/sdks/outpost-go/.speakeasy/gen.yaml @@ -29,7 +29,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false go: - version: 1.2.0 + version: 1.3.0 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false baseErrorName: OutpostError diff --git a/sdks/outpost-go/RELEASES.md b/sdks/outpost-go/RELEASES.md index f055d9af..4c9c502e 100644 --- a/sdks/outpost-go/RELEASES.md +++ b/sdks/outpost-go/RELEASES.md @@ -188,4 +188,14 @@ Based on: ### Generated - [go v1.2.0] sdks/outpost-go ### Releases -- [Go v1.2.0] https://github.com/hookdeck/outpost/releases/tag/sdks/outpost-go/v1.2.0 - sdks/outpost-go \ No newline at end of file +- [Go v1.2.0] https://github.com/hookdeck/outpost/releases/tag/sdks/outpost-go/v1.2.0 - sdks/outpost-go + +## 2026-05-13 17:55:54 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.763.0 (2.884.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v1.3.0] sdks/outpost-go +### Releases +- [Go v1.3.0] https://github.com/hookdeck/outpost/releases/tag/sdks/outpost-go/v1.3.0 - sdks/outpost-go \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationcreateawskinesis.md b/sdks/outpost-go/docs/models/components/destinationcreateawskinesis.md index 67c99d84..663c1363 100644 --- a/sdks/outpost-go/docs/models/components/destinationcreateawskinesis.md +++ b/sdks/outpost-go/docs/models/components/destinationcreateawskinesis.md @@ -12,4 +12,7 @@ | `Config` | [components.AWSKinesisConfig](../../models/components/awskinesisconfig.md) | :heavy_check_mark: | N/A | | | `Credentials` | [components.AWSKinesisCredentials](../../models/components/awskinesiscredentials.md) | :heavy_check_mark: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | +| `CreatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. | 2024-02-15T10:00:00Z | +| `UpdatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. | 2024-02-15T10:00:00Z | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). | | \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationcreateawss3.md b/sdks/outpost-go/docs/models/components/destinationcreateawss3.md index a6c3b8e6..13f58791 100644 --- a/sdks/outpost-go/docs/models/components/destinationcreateawss3.md +++ b/sdks/outpost-go/docs/models/components/destinationcreateawss3.md @@ -12,4 +12,7 @@ | `Config` | [components.Awss3Config](../../models/components/awss3config.md) | :heavy_check_mark: | N/A | | | `Credentials` | [components.Awss3Credentials](../../models/components/awss3credentials.md) | :heavy_check_mark: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | +| `CreatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. | 2024-02-15T10:00:00Z | +| `UpdatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. | 2024-02-15T10:00:00Z | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). | | \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationcreateawssqs.md b/sdks/outpost-go/docs/models/components/destinationcreateawssqs.md index 44335a77..89dec8c8 100644 --- a/sdks/outpost-go/docs/models/components/destinationcreateawssqs.md +++ b/sdks/outpost-go/docs/models/components/destinationcreateawssqs.md @@ -12,4 +12,7 @@ | `Config` | [components.AWSSQSConfig](../../models/components/awssqsconfig.md) | :heavy_check_mark: | N/A | | | `Credentials` | [components.AWSSQSCredentials](../../models/components/awssqscredentials.md) | :heavy_check_mark: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | +| `CreatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. | 2024-02-15T10:00:00Z | +| `UpdatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. | 2024-02-15T10:00:00Z | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). | | \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationcreateazureservicebus.md b/sdks/outpost-go/docs/models/components/destinationcreateazureservicebus.md index 4fc1dbbe..2272715f 100644 --- a/sdks/outpost-go/docs/models/components/destinationcreateazureservicebus.md +++ b/sdks/outpost-go/docs/models/components/destinationcreateazureservicebus.md @@ -12,4 +12,7 @@ | `Config` | [components.AzureServiceBusConfig](../../models/components/azureservicebusconfig.md) | :heavy_check_mark: | N/A | | | `Credentials` | [components.AzureServiceBusCredentials](../../models/components/azureservicebuscredentials.md) | :heavy_check_mark: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | +| `CreatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. | 2024-02-15T10:00:00Z | +| `UpdatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. | 2024-02-15T10:00:00Z | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). | | \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationcreategcppubsub.md b/sdks/outpost-go/docs/models/components/destinationcreategcppubsub.md index 6679bc87..00928462 100644 --- a/sdks/outpost-go/docs/models/components/destinationcreategcppubsub.md +++ b/sdks/outpost-go/docs/models/components/destinationcreategcppubsub.md @@ -12,4 +12,7 @@ | `Config` | [components.GCPPubSubConfig](../../models/components/gcppubsubconfig.md) | :heavy_check_mark: | N/A | | | `Credentials` | [components.GCPPubSubCredentials](../../models/components/gcppubsubcredentials.md) | :heavy_check_mark: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | +| `CreatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. | 2024-02-15T10:00:00Z | +| `UpdatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. | 2024-02-15T10:00:00Z | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). | | \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationcreatehookdeck.md b/sdks/outpost-go/docs/models/components/destinationcreatehookdeck.md index 89faea77..28ef2cdf 100644 --- a/sdks/outpost-go/docs/models/components/destinationcreatehookdeck.md +++ b/sdks/outpost-go/docs/models/components/destinationcreatehookdeck.md @@ -12,4 +12,7 @@ | `Config` | `any` | :heavy_minus_sign: | N/A | | | `Credentials` | [components.HookdeckCredentials](../../models/components/hookdeckcredentials.md) | :heavy_check_mark: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | +| `CreatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. | 2024-02-15T10:00:00Z | +| `UpdatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. | 2024-02-15T10:00:00Z | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). | | \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationcreatekafka.md b/sdks/outpost-go/docs/models/components/destinationcreatekafka.md index c3fa0a6f..cb567538 100644 --- a/sdks/outpost-go/docs/models/components/destinationcreatekafka.md +++ b/sdks/outpost-go/docs/models/components/destinationcreatekafka.md @@ -12,4 +12,7 @@ | `Config` | [components.KafkaConfig](../../models/components/kafkaconfig.md) | :heavy_check_mark: | N/A | | | `Credentials` | [components.KafkaCredentials](../../models/components/kafkacredentials.md) | :heavy_check_mark: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | +| `CreatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. | 2024-02-15T10:00:00Z | +| `UpdatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. | 2024-02-15T10:00:00Z | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). | | \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationcreaterabbitmq.md b/sdks/outpost-go/docs/models/components/destinationcreaterabbitmq.md index c9f62d00..33160272 100644 --- a/sdks/outpost-go/docs/models/components/destinationcreaterabbitmq.md +++ b/sdks/outpost-go/docs/models/components/destinationcreaterabbitmq.md @@ -12,4 +12,7 @@ | `Config` | [components.RabbitMQConfig](../../models/components/rabbitmqconfig.md) | :heavy_check_mark: | N/A | | | `Credentials` | [components.RabbitMQCredentials](../../models/components/rabbitmqcredentials.md) | :heavy_check_mark: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | +| `CreatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. | 2024-02-15T10:00:00Z | +| `UpdatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. | 2024-02-15T10:00:00Z | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). | | \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationcreatewebhook.md b/sdks/outpost-go/docs/models/components/destinationcreatewebhook.md index d6ecb04e..b6f782c0 100644 --- a/sdks/outpost-go/docs/models/components/destinationcreatewebhook.md +++ b/sdks/outpost-go/docs/models/components/destinationcreatewebhook.md @@ -12,4 +12,7 @@ | `Config` | [components.WebhookConfig](../../models/components/webhookconfig.md) | :heavy_check_mark: | N/A | | | `Credentials` | [*components.WebhookCredentials](../../models/components/webhookcredentials.md) | :heavy_minus_sign: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. | {
"internal-id": "123",
"team": "platform"
} | +| `CreatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. | 2024-02-15T10:00:00Z | +| `UpdatedAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. | 2024-02-15T10:00:00Z | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). | | \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationupdateawskinesis.md b/sdks/outpost-go/docs/models/components/destinationupdateawskinesis.md index 165e785d..e2901ea8 100644 --- a/sdks/outpost-go/docs/models/components/destinationupdateawskinesis.md +++ b/sdks/outpost-go/docs/models/components/destinationupdateawskinesis.md @@ -10,4 +10,5 @@ | `Config` | [*components.AWSKinesisConfig](../../models/components/awskinesisconfig.md) | :heavy_minus_sign: | N/A | | | `Credentials` | [*components.AWSKinesisCredentials](../../models/components/awskinesiscredentials.md) | :heavy_minus_sign: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. | | \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationupdateawss3.md b/sdks/outpost-go/docs/models/components/destinationupdateawss3.md index 186c2865..5da69e36 100644 --- a/sdks/outpost-go/docs/models/components/destinationupdateawss3.md +++ b/sdks/outpost-go/docs/models/components/destinationupdateawss3.md @@ -10,4 +10,5 @@ | `Config` | [*components.Awss3Config](../../models/components/awss3config.md) | :heavy_minus_sign: | N/A | | | `Credentials` | [*components.Awss3Credentials](../../models/components/awss3credentials.md) | :heavy_minus_sign: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. | | \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationupdateawssqs.md b/sdks/outpost-go/docs/models/components/destinationupdateawssqs.md index 0e276d10..6bd68cf2 100644 --- a/sdks/outpost-go/docs/models/components/destinationupdateawssqs.md +++ b/sdks/outpost-go/docs/models/components/destinationupdateawssqs.md @@ -10,4 +10,5 @@ | `Config` | [*components.AWSSQSConfig](../../models/components/awssqsconfig.md) | :heavy_minus_sign: | N/A | | | `Credentials` | [*components.AWSSQSCredentials](../../models/components/awssqscredentials.md) | :heavy_minus_sign: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. | | \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationupdateazureservicebus.md b/sdks/outpost-go/docs/models/components/destinationupdateazureservicebus.md index 22da29c3..09a2d036 100644 --- a/sdks/outpost-go/docs/models/components/destinationupdateazureservicebus.md +++ b/sdks/outpost-go/docs/models/components/destinationupdateazureservicebus.md @@ -10,4 +10,5 @@ | `Config` | [*components.AzureServiceBusConfig](../../models/components/azureservicebusconfig.md) | :heavy_minus_sign: | N/A | | | `Credentials` | [*components.AzureServiceBusCredentials](../../models/components/azureservicebuscredentials.md) | :heavy_minus_sign: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. | | \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationupdategcppubsub.md b/sdks/outpost-go/docs/models/components/destinationupdategcppubsub.md index 9978489c..4878a979 100644 --- a/sdks/outpost-go/docs/models/components/destinationupdategcppubsub.md +++ b/sdks/outpost-go/docs/models/components/destinationupdategcppubsub.md @@ -10,4 +10,5 @@ | `Config` | [*components.GCPPubSubConfig](../../models/components/gcppubsubconfig.md) | :heavy_minus_sign: | N/A | | | `Credentials` | [*components.GCPPubSubCredentials](../../models/components/gcppubsubcredentials.md) | :heavy_minus_sign: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. | | \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationupdatehookdeck.md b/sdks/outpost-go/docs/models/components/destinationupdatehookdeck.md index 641b16cb..314d1c38 100644 --- a/sdks/outpost-go/docs/models/components/destinationupdatehookdeck.md +++ b/sdks/outpost-go/docs/models/components/destinationupdatehookdeck.md @@ -10,4 +10,5 @@ | `Config` | `any` | :heavy_minus_sign: | N/A | | | `Credentials` | [*components.HookdeckCredentials](../../models/components/hookdeckcredentials.md) | :heavy_minus_sign: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. | | \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationupdatekafka.md b/sdks/outpost-go/docs/models/components/destinationupdatekafka.md index 2555b5e9..98e8155a 100644 --- a/sdks/outpost-go/docs/models/components/destinationupdatekafka.md +++ b/sdks/outpost-go/docs/models/components/destinationupdatekafka.md @@ -10,4 +10,5 @@ | `Config` | [*components.KafkaConfig](../../models/components/kafkaconfig.md) | :heavy_minus_sign: | N/A | | | `Credentials` | [*components.KafkaCredentials](../../models/components/kafkacredentials.md) | :heavy_minus_sign: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. | | \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationupdaterabbitmq.md b/sdks/outpost-go/docs/models/components/destinationupdaterabbitmq.md index 00f021ca..bd66eda4 100644 --- a/sdks/outpost-go/docs/models/components/destinationupdaterabbitmq.md +++ b/sdks/outpost-go/docs/models/components/destinationupdaterabbitmq.md @@ -10,4 +10,5 @@ | `Config` | [*components.RabbitMQConfig](../../models/components/rabbitmqconfig.md) | :heavy_minus_sign: | N/A | | | `Credentials` | [*components.RabbitMQCredentials](../../models/components/rabbitmqcredentials.md) | :heavy_minus_sign: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. | | \ No newline at end of file diff --git a/sdks/outpost-go/docs/models/components/destinationupdatewebhook.md b/sdks/outpost-go/docs/models/components/destinationupdatewebhook.md index 09b18464..e3ca041c 100644 --- a/sdks/outpost-go/docs/models/components/destinationupdatewebhook.md +++ b/sdks/outpost-go/docs/models/components/destinationupdatewebhook.md @@ -10,4 +10,5 @@ | `Config` | [*components.WebhookConfig](../../models/components/webhookconfig.md) | :heavy_minus_sign: | N/A | | | `Credentials` | [*components.WebhookCredentialsUpdate](../../models/components/webhookcredentialsupdate.md) | :heavy_minus_sign: | N/A | | | `DeliveryMetadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Static key-value pairs merged into event metadata on every attempt. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"app-id": "my-app",
"region": "us-east-1"
} | -| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | \ No newline at end of file +| `Metadata` | optionalnullable.OptionalNullable[map[string]`*string`] | :heavy_minus_sign: | Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. | {
"internal-id": "123",
"team": "platform"
} | +| `DisabledAt` | optionalnullable.OptionalNullable[[time.Time](https://pkg.go.dev/time#Time)] | :heavy_minus_sign: | Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. | | \ No newline at end of file diff --git a/sdks/outpost-go/internal/utils/union.go b/sdks/outpost-go/internal/utils/union.go index dfff6f64..f52a45af 100644 --- a/sdks/outpost-go/internal/utils/union.go +++ b/sdks/outpost-go/internal/utils/union.go @@ -128,8 +128,8 @@ func countFieldsRecursive(candidate *UnionCandidate, typ reflect.Type, val refle // Handle unions if isUnion, activeVariant, variantVal := findActiveUnionVariant(typ, val); isUnion { - if activeVariant != nil && !variantVal.IsNil() { - countFieldsRecursive(candidate, activeVariant.Type.Elem(), variantVal.Elem(), raw) + if activeVariant != nil { + countFieldsRecursive(candidate, activeVariant.Type, variantVal, raw) } return } @@ -253,7 +253,6 @@ func findActiveUnionVariant(typ reflect.Type, val reflect.Value) (bool, *reflect isUnion = true - // All union variants are pointers - only set active if non-nil fieldVal := val.Field(i) if !fieldVal.IsNil() { activeVariant = &field diff --git a/sdks/outpost-go/internal/utils/union_test.go b/sdks/outpost-go/internal/utils/union_test.go index f66814c7..138f7e2a 100644 --- a/sdks/outpost-go/internal/utils/union_test.go +++ b/sdks/outpost-go/internal/utils/union_test.go @@ -585,3 +585,73 @@ func TestPickBestUnionCandidate_AnyFieldType(t *testing.T) { require.NotNil(t, result) assert.IsType(t, B{}, result.Type) } + +func TestPickBestUnionCandidate_NonPointerUnionVariants(t *testing.T) { + type Inner struct { + Foo string `json:"foo"` + } + type SliceUnion struct { + AsObject *Inner `union:"member"` + AsList []string `union:"member"` + } + type MapUnion struct { + AsObject *Inner `union:"member"` + AsMap map[string]string `union:"member"` + } + type AnyUnion struct { + AsObject *Inner `union:"member"` + AsAny any `union:"member"` + } + + cases := []struct { + name string + payload string + candidates []UnionCandidate + wantType string + }{ + { + name: "slice variant wins for array payload", + payload: `["a", "b"]`, + candidates: []UnionCandidate{ + {Type: "object", Value: SliceUnion{AsObject: &Inner{}}}, + {Type: "list", Value: SliceUnion{AsList: []string{"a", "b"}}}, + }, + wantType: "list", + }, + { + name: "map variant wins for object payload with no matching struct fields", + payload: `{"k1": "v1", "k2": "v2"}`, + candidates: []UnionCandidate{ + {Type: "object", Value: MapUnion{AsObject: &Inner{}}}, + {Type: "map", Value: MapUnion{AsMap: map[string]string{"k1": "v1", "k2": "v2"}}}, + }, + wantType: "map", + }, + { + name: "any variant wins as catch-all when struct can't fit a scalar", + payload: `"scalar"`, + candidates: []UnionCandidate{ + {Type: "object", Value: AnyUnion{AsObject: &Inner{}}}, + {Type: "any", Value: AnyUnion{AsAny: "scalar"}}, + }, + wantType: "any", + }, + { + name: "structured variant beats any on a matching object payload", + payload: `{"foo": "x"}`, + candidates: []UnionCandidate{ + {Type: "object", Value: AnyUnion{AsObject: &Inner{Foo: "x"}}}, + {Type: "any", Value: AnyUnion{AsAny: map[string]any{"foo": "x"}}}, + }, + wantType: "object", + }, + } + + for _, tc := range cases { + t.Run(tc.name, func(t *testing.T) { + result := PickBestUnionCandidate(tc.candidates, []byte(tc.payload)) + require.NotNil(t, result) + assert.Equal(t, tc.wantType, result.Type) + }) + } +} diff --git a/sdks/outpost-go/models/components/destinationcreateawskinesis.go b/sdks/outpost-go/models/components/destinationcreateawskinesis.go index 9805ee9f..28cd494c 100644 --- a/sdks/outpost-go/models/components/destinationcreateawskinesis.go +++ b/sdks/outpost-go/models/components/destinationcreateawskinesis.go @@ -7,6 +7,7 @@ import ( "fmt" "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) // DestinationCreateAWSKinesisType - Type of the destination. Must be 'aws_kinesis'. @@ -52,6 +53,12 @@ type DestinationCreateAWSKinesis struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Metadata optionalnullable.OptionalNullable[map[string]string] `json:"metadata,omitempty"` + // Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + CreatedAt optionalnullable.OptionalNullable[time.Time] `json:"created_at,omitempty"` + // Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + UpdatedAt optionalnullable.OptionalNullable[time.Time] `json:"updated_at,omitempty"` + // If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationCreateAWSKinesis) MarshalJSON() ([]byte, error) { @@ -120,3 +127,24 @@ func (d *DestinationCreateAWSKinesis) GetMetadata() optionalnullable.OptionalNul } return d.Metadata } + +func (d *DestinationCreateAWSKinesis) GetCreatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.CreatedAt +} + +func (d *DestinationCreateAWSKinesis) GetUpdatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.UpdatedAt +} + +func (d *DestinationCreateAWSKinesis) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} diff --git a/sdks/outpost-go/models/components/destinationcreateawss3.go b/sdks/outpost-go/models/components/destinationcreateawss3.go index f4d44b7e..2549fb0f 100644 --- a/sdks/outpost-go/models/components/destinationcreateawss3.go +++ b/sdks/outpost-go/models/components/destinationcreateawss3.go @@ -7,6 +7,7 @@ import ( "fmt" "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) // DestinationCreateAwss3Type - Type of the destination. Must be 'aws_s3'. @@ -52,6 +53,12 @@ type DestinationCreateAwss3 struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Metadata optionalnullable.OptionalNullable[map[string]string] `json:"metadata,omitempty"` + // Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + CreatedAt optionalnullable.OptionalNullable[time.Time] `json:"created_at,omitempty"` + // Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + UpdatedAt optionalnullable.OptionalNullable[time.Time] `json:"updated_at,omitempty"` + // If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationCreateAwss3) MarshalJSON() ([]byte, error) { @@ -121,5 +128,26 @@ func (d *DestinationCreateAwss3) GetMetadata() optionalnullable.OptionalNullable return d.Metadata } +func (d *DestinationCreateAwss3) GetCreatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.CreatedAt +} + +func (d *DestinationCreateAwss3) GetUpdatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.UpdatedAt +} + +func (d *DestinationCreateAwss3) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} + // #region class-body-destinationcreateawss3 // #endregion class-body-destinationcreateawss3 diff --git a/sdks/outpost-go/models/components/destinationcreateawssqs.go b/sdks/outpost-go/models/components/destinationcreateawssqs.go index baa46c73..927dbed9 100644 --- a/sdks/outpost-go/models/components/destinationcreateawssqs.go +++ b/sdks/outpost-go/models/components/destinationcreateawssqs.go @@ -7,6 +7,7 @@ import ( "fmt" "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) // DestinationCreateAWSSQSType - Type of the destination. Must be 'aws_sqs'. @@ -52,6 +53,12 @@ type DestinationCreateAWSSQS struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Metadata optionalnullable.OptionalNullable[map[string]string] `json:"metadata,omitempty"` + // Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + CreatedAt optionalnullable.OptionalNullable[time.Time] `json:"created_at,omitempty"` + // Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + UpdatedAt optionalnullable.OptionalNullable[time.Time] `json:"updated_at,omitempty"` + // If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationCreateAWSSQS) MarshalJSON() ([]byte, error) { @@ -120,3 +127,24 @@ func (d *DestinationCreateAWSSQS) GetMetadata() optionalnullable.OptionalNullabl } return d.Metadata } + +func (d *DestinationCreateAWSSQS) GetCreatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.CreatedAt +} + +func (d *DestinationCreateAWSSQS) GetUpdatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.UpdatedAt +} + +func (d *DestinationCreateAWSSQS) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} diff --git a/sdks/outpost-go/models/components/destinationcreateazureservicebus.go b/sdks/outpost-go/models/components/destinationcreateazureservicebus.go index 5b129dd6..a7a44a4b 100644 --- a/sdks/outpost-go/models/components/destinationcreateazureservicebus.go +++ b/sdks/outpost-go/models/components/destinationcreateazureservicebus.go @@ -7,6 +7,7 @@ import ( "fmt" "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) // DestinationCreateAzureServiceBusType - Type of the destination. Must be 'azure_servicebus'. @@ -52,6 +53,12 @@ type DestinationCreateAzureServiceBus struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Metadata optionalnullable.OptionalNullable[map[string]string] `json:"metadata,omitempty"` + // Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + CreatedAt optionalnullable.OptionalNullable[time.Time] `json:"created_at,omitempty"` + // Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + UpdatedAt optionalnullable.OptionalNullable[time.Time] `json:"updated_at,omitempty"` + // If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationCreateAzureServiceBus) MarshalJSON() ([]byte, error) { @@ -120,3 +127,24 @@ func (d *DestinationCreateAzureServiceBus) GetMetadata() optionalnullable.Option } return d.Metadata } + +func (d *DestinationCreateAzureServiceBus) GetCreatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.CreatedAt +} + +func (d *DestinationCreateAzureServiceBus) GetUpdatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.UpdatedAt +} + +func (d *DestinationCreateAzureServiceBus) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} diff --git a/sdks/outpost-go/models/components/destinationcreategcppubsub.go b/sdks/outpost-go/models/components/destinationcreategcppubsub.go index 588509b8..ecc2b39f 100644 --- a/sdks/outpost-go/models/components/destinationcreategcppubsub.go +++ b/sdks/outpost-go/models/components/destinationcreategcppubsub.go @@ -7,6 +7,7 @@ import ( "fmt" "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) // DestinationCreateGCPPubSubType - Type of the destination. Must be 'gcp_pubsub'. @@ -52,6 +53,12 @@ type DestinationCreateGCPPubSub struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Metadata optionalnullable.OptionalNullable[map[string]string] `json:"metadata,omitempty"` + // Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + CreatedAt optionalnullable.OptionalNullable[time.Time] `json:"created_at,omitempty"` + // Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + UpdatedAt optionalnullable.OptionalNullable[time.Time] `json:"updated_at,omitempty"` + // If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationCreateGCPPubSub) MarshalJSON() ([]byte, error) { @@ -120,3 +127,24 @@ func (d *DestinationCreateGCPPubSub) GetMetadata() optionalnullable.OptionalNull } return d.Metadata } + +func (d *DestinationCreateGCPPubSub) GetCreatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.CreatedAt +} + +func (d *DestinationCreateGCPPubSub) GetUpdatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.UpdatedAt +} + +func (d *DestinationCreateGCPPubSub) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} diff --git a/sdks/outpost-go/models/components/destinationcreatehookdeck.go b/sdks/outpost-go/models/components/destinationcreatehookdeck.go index 5ed8f320..3df91f73 100644 --- a/sdks/outpost-go/models/components/destinationcreatehookdeck.go +++ b/sdks/outpost-go/models/components/destinationcreatehookdeck.go @@ -7,6 +7,7 @@ import ( "fmt" "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) // DestinationCreateHookdeckType - Type of the destination. Must be 'hookdeck'. @@ -52,6 +53,12 @@ type DestinationCreateHookdeck struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Metadata optionalnullable.OptionalNullable[map[string]string] `json:"metadata,omitempty"` + // Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + CreatedAt optionalnullable.OptionalNullable[time.Time] `json:"created_at,omitempty"` + // Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + UpdatedAt optionalnullable.OptionalNullable[time.Time] `json:"updated_at,omitempty"` + // If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationCreateHookdeck) MarshalJSON() ([]byte, error) { @@ -120,3 +127,24 @@ func (d *DestinationCreateHookdeck) GetMetadata() optionalnullable.OptionalNulla } return d.Metadata } + +func (d *DestinationCreateHookdeck) GetCreatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.CreatedAt +} + +func (d *DestinationCreateHookdeck) GetUpdatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.UpdatedAt +} + +func (d *DestinationCreateHookdeck) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} diff --git a/sdks/outpost-go/models/components/destinationcreatekafka.go b/sdks/outpost-go/models/components/destinationcreatekafka.go index 6b257ddc..3059b92a 100644 --- a/sdks/outpost-go/models/components/destinationcreatekafka.go +++ b/sdks/outpost-go/models/components/destinationcreatekafka.go @@ -7,6 +7,7 @@ import ( "fmt" "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) // DestinationCreateKafkaType - Type of the destination. Must be 'kafka'. @@ -52,6 +53,12 @@ type DestinationCreateKafka struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Metadata optionalnullable.OptionalNullable[map[string]string] `json:"metadata,omitempty"` + // Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + CreatedAt optionalnullable.OptionalNullable[time.Time] `json:"created_at,omitempty"` + // Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + UpdatedAt optionalnullable.OptionalNullable[time.Time] `json:"updated_at,omitempty"` + // If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationCreateKafka) MarshalJSON() ([]byte, error) { @@ -120,3 +127,24 @@ func (d *DestinationCreateKafka) GetMetadata() optionalnullable.OptionalNullable } return d.Metadata } + +func (d *DestinationCreateKafka) GetCreatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.CreatedAt +} + +func (d *DestinationCreateKafka) GetUpdatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.UpdatedAt +} + +func (d *DestinationCreateKafka) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} diff --git a/sdks/outpost-go/models/components/destinationcreaterabbitmq.go b/sdks/outpost-go/models/components/destinationcreaterabbitmq.go index 0480068b..59bfbfe3 100644 --- a/sdks/outpost-go/models/components/destinationcreaterabbitmq.go +++ b/sdks/outpost-go/models/components/destinationcreaterabbitmq.go @@ -7,6 +7,7 @@ import ( "fmt" "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) // DestinationCreateRabbitMQType - Type of the destination. Must be 'rabbitmq'. @@ -52,6 +53,12 @@ type DestinationCreateRabbitMQ struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Metadata optionalnullable.OptionalNullable[map[string]string] `json:"metadata,omitempty"` + // Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + CreatedAt optionalnullable.OptionalNullable[time.Time] `json:"created_at,omitempty"` + // Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + UpdatedAt optionalnullable.OptionalNullable[time.Time] `json:"updated_at,omitempty"` + // If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationCreateRabbitMQ) MarshalJSON() ([]byte, error) { @@ -120,3 +127,24 @@ func (d *DestinationCreateRabbitMQ) GetMetadata() optionalnullable.OptionalNulla } return d.Metadata } + +func (d *DestinationCreateRabbitMQ) GetCreatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.CreatedAt +} + +func (d *DestinationCreateRabbitMQ) GetUpdatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.UpdatedAt +} + +func (d *DestinationCreateRabbitMQ) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} diff --git a/sdks/outpost-go/models/components/destinationcreatewebhook.go b/sdks/outpost-go/models/components/destinationcreatewebhook.go index 10f9875f..4f8fbf1e 100644 --- a/sdks/outpost-go/models/components/destinationcreatewebhook.go +++ b/sdks/outpost-go/models/components/destinationcreatewebhook.go @@ -7,6 +7,7 @@ import ( "fmt" "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) // DestinationCreateWebhookType - Type of the destination. Must be 'webhook'. @@ -52,6 +53,12 @@ type DestinationCreateWebhook struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Metadata optionalnullable.OptionalNullable[map[string]string] `json:"metadata,omitempty"` + // Optional override for the creation timestamp. Intended for importing destinations from another system. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to the current time when omitted. + CreatedAt optionalnullable.OptionalNullable[time.Time] `json:"created_at,omitempty"` + // Optional override for the last-updated timestamp. Intended for importing destinations. Must not be in the future. **Admin (API key) auth only — sending this with JWT auth returns 403.** Defaults to created_at when omitted. + UpdatedAt optionalnullable.OptionalNullable[time.Time] `json:"updated_at,omitempty"` + // If set, the destination is created in a disabled state with this timestamp. Must not be in the future. Defaults to null (enabled). + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationCreateWebhook) MarshalJSON() ([]byte, error) { @@ -120,3 +127,24 @@ func (d *DestinationCreateWebhook) GetMetadata() optionalnullable.OptionalNullab } return d.Metadata } + +func (d *DestinationCreateWebhook) GetCreatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.CreatedAt +} + +func (d *DestinationCreateWebhook) GetUpdatedAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.UpdatedAt +} + +func (d *DestinationCreateWebhook) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} diff --git a/sdks/outpost-go/models/components/destinationupdateawskinesis.go b/sdks/outpost-go/models/components/destinationupdateawskinesis.go index a4c61d79..f02a4bf5 100644 --- a/sdks/outpost-go/models/components/destinationupdateawskinesis.go +++ b/sdks/outpost-go/models/components/destinationupdateawskinesis.go @@ -5,6 +5,7 @@ package components import ( "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) type DestinationUpdateAWSKinesis struct { @@ -22,6 +23,8 @@ type DestinationUpdateAWSKinesis struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]*string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. Metadata optionalnullable.OptionalNullable[map[string]*string] `json:"metadata,omitempty"` + // Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationUpdateAWSKinesis) MarshalJSON() ([]byte, error) { @@ -76,3 +79,10 @@ func (d *DestinationUpdateAWSKinesis) GetMetadata() optionalnullable.OptionalNul } return d.Metadata } + +func (d *DestinationUpdateAWSKinesis) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} diff --git a/sdks/outpost-go/models/components/destinationupdateawss3.go b/sdks/outpost-go/models/components/destinationupdateawss3.go index 229fff36..7e53db2d 100644 --- a/sdks/outpost-go/models/components/destinationupdateawss3.go +++ b/sdks/outpost-go/models/components/destinationupdateawss3.go @@ -5,6 +5,7 @@ package components import ( "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) type DestinationUpdateAwss3 struct { @@ -22,6 +23,8 @@ type DestinationUpdateAwss3 struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]*string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. Metadata optionalnullable.OptionalNullable[map[string]*string] `json:"metadata,omitempty"` + // Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationUpdateAwss3) MarshalJSON() ([]byte, error) { @@ -77,5 +80,12 @@ func (d *DestinationUpdateAwss3) GetMetadata() optionalnullable.OptionalNullable return d.Metadata } +func (d *DestinationUpdateAwss3) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} + // #region class-body-destinationupdateawss3 // #endregion class-body-destinationupdateawss3 diff --git a/sdks/outpost-go/models/components/destinationupdateawssqs.go b/sdks/outpost-go/models/components/destinationupdateawssqs.go index 0bdf9399..484a76ee 100644 --- a/sdks/outpost-go/models/components/destinationupdateawssqs.go +++ b/sdks/outpost-go/models/components/destinationupdateawssqs.go @@ -5,6 +5,7 @@ package components import ( "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) type DestinationUpdateAWSSQS struct { @@ -22,6 +23,8 @@ type DestinationUpdateAWSSQS struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]*string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. Metadata optionalnullable.OptionalNullable[map[string]*string] `json:"metadata,omitempty"` + // Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationUpdateAWSSQS) MarshalJSON() ([]byte, error) { @@ -76,3 +79,10 @@ func (d *DestinationUpdateAWSSQS) GetMetadata() optionalnullable.OptionalNullabl } return d.Metadata } + +func (d *DestinationUpdateAWSSQS) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} diff --git a/sdks/outpost-go/models/components/destinationupdateazureservicebus.go b/sdks/outpost-go/models/components/destinationupdateazureservicebus.go index 6ea2b2c7..f7cfdbbe 100644 --- a/sdks/outpost-go/models/components/destinationupdateazureservicebus.go +++ b/sdks/outpost-go/models/components/destinationupdateazureservicebus.go @@ -5,6 +5,7 @@ package components import ( "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) type DestinationUpdateAzureServiceBus struct { @@ -22,6 +23,8 @@ type DestinationUpdateAzureServiceBus struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]*string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. Metadata optionalnullable.OptionalNullable[map[string]*string] `json:"metadata,omitempty"` + // Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationUpdateAzureServiceBus) MarshalJSON() ([]byte, error) { @@ -76,3 +79,10 @@ func (d *DestinationUpdateAzureServiceBus) GetMetadata() optionalnullable.Option } return d.Metadata } + +func (d *DestinationUpdateAzureServiceBus) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} diff --git a/sdks/outpost-go/models/components/destinationupdategcppubsub.go b/sdks/outpost-go/models/components/destinationupdategcppubsub.go index 85709671..b5987b92 100644 --- a/sdks/outpost-go/models/components/destinationupdategcppubsub.go +++ b/sdks/outpost-go/models/components/destinationupdategcppubsub.go @@ -5,6 +5,7 @@ package components import ( "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) type DestinationUpdateGCPPubSub struct { @@ -22,6 +23,8 @@ type DestinationUpdateGCPPubSub struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]*string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. Metadata optionalnullable.OptionalNullable[map[string]*string] `json:"metadata,omitempty"` + // Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationUpdateGCPPubSub) MarshalJSON() ([]byte, error) { @@ -76,3 +79,10 @@ func (d *DestinationUpdateGCPPubSub) GetMetadata() optionalnullable.OptionalNull } return d.Metadata } + +func (d *DestinationUpdateGCPPubSub) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} diff --git a/sdks/outpost-go/models/components/destinationupdatehookdeck.go b/sdks/outpost-go/models/components/destinationupdatehookdeck.go index edb5071e..9af1a2b0 100644 --- a/sdks/outpost-go/models/components/destinationupdatehookdeck.go +++ b/sdks/outpost-go/models/components/destinationupdatehookdeck.go @@ -5,6 +5,7 @@ package components import ( "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) type DestinationUpdateHookdeck struct { @@ -22,6 +23,8 @@ type DestinationUpdateHookdeck struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]*string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. Metadata optionalnullable.OptionalNullable[map[string]*string] `json:"metadata,omitempty"` + // Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationUpdateHookdeck) MarshalJSON() ([]byte, error) { @@ -76,3 +79,10 @@ func (d *DestinationUpdateHookdeck) GetMetadata() optionalnullable.OptionalNulla } return d.Metadata } + +func (d *DestinationUpdateHookdeck) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} diff --git a/sdks/outpost-go/models/components/destinationupdatekafka.go b/sdks/outpost-go/models/components/destinationupdatekafka.go index dd0a0860..a9079063 100644 --- a/sdks/outpost-go/models/components/destinationupdatekafka.go +++ b/sdks/outpost-go/models/components/destinationupdatekafka.go @@ -5,6 +5,7 @@ package components import ( "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) type DestinationUpdateKafka struct { @@ -22,6 +23,8 @@ type DestinationUpdateKafka struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]*string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. Metadata optionalnullable.OptionalNullable[map[string]*string] `json:"metadata,omitempty"` + // Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationUpdateKafka) MarshalJSON() ([]byte, error) { @@ -76,3 +79,10 @@ func (d *DestinationUpdateKafka) GetMetadata() optionalnullable.OptionalNullable } return d.Metadata } + +func (d *DestinationUpdateKafka) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} diff --git a/sdks/outpost-go/models/components/destinationupdaterabbitmq.go b/sdks/outpost-go/models/components/destinationupdaterabbitmq.go index ccba4858..48842021 100644 --- a/sdks/outpost-go/models/components/destinationupdaterabbitmq.go +++ b/sdks/outpost-go/models/components/destinationupdaterabbitmq.go @@ -5,6 +5,7 @@ package components import ( "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) type DestinationUpdateRabbitMQ struct { @@ -22,6 +23,8 @@ type DestinationUpdateRabbitMQ struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]*string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. Metadata optionalnullable.OptionalNullable[map[string]*string] `json:"metadata,omitempty"` + // Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationUpdateRabbitMQ) MarshalJSON() ([]byte, error) { @@ -76,3 +79,10 @@ func (d *DestinationUpdateRabbitMQ) GetMetadata() optionalnullable.OptionalNulla } return d.Metadata } + +func (d *DestinationUpdateRabbitMQ) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} diff --git a/sdks/outpost-go/models/components/destinationupdatewebhook.go b/sdks/outpost-go/models/components/destinationupdatewebhook.go index e9b331ff..1c93fa69 100644 --- a/sdks/outpost-go/models/components/destinationupdatewebhook.go +++ b/sdks/outpost-go/models/components/destinationupdatewebhook.go @@ -5,6 +5,7 @@ package components import ( "github.com/hookdeck/outpost/sdks/outpost-go/internal/utils" "github.com/hookdeck/outpost/sdks/outpost-go/optionalnullable" + "time" ) type DestinationUpdateWebhook struct { @@ -22,6 +23,8 @@ type DestinationUpdateWebhook struct { DeliveryMetadata optionalnullable.OptionalNullable[map[string]*string] `json:"delivery_metadata,omitempty"` // Arbitrary contextual information stored with the destination. Uses JSON merge-patch semantics (RFC 7396): send keys to add/update, null values to delete keys, null for entire field to clear all. Omit or send {} for no change. Metadata optionalnullable.OptionalNullable[map[string]*string] `json:"metadata,omitempty"` + // Update the disabled state of the destination. Send a timestamp (must not be in the future) to disable, null to enable, or omit to leave unchanged. + DisabledAt optionalnullable.OptionalNullable[time.Time] `json:"disabled_at,omitempty"` } func (d DestinationUpdateWebhook) MarshalJSON() ([]byte, error) { @@ -76,3 +79,10 @@ func (d *DestinationUpdateWebhook) GetMetadata() optionalnullable.OptionalNullab } return d.Metadata } + +func (d *DestinationUpdateWebhook) GetDisabledAt() optionalnullable.OptionalNullable[time.Time] { + if d == nil { + return nil + } + return d.DisabledAt +} diff --git a/sdks/outpost-go/outpost.go b/sdks/outpost-go/outpost.go index 4b07b7f8..add31676 100644 --- a/sdks/outpost-go/outpost.go +++ b/sdks/outpost-go/outpost.go @@ -2,7 +2,7 @@ package outpostgo -// Generated from OpenAPI doc version 0.0.1 and generator version 2.881.16 +// Generated from OpenAPI doc version 0.0.1 and generator version 2.884.0 import ( "bytes" @@ -172,9 +172,9 @@ func WithTimeout(timeout time.Duration) SDKOption { // New creates a new instance of the SDK with the provided options func New(opts ...SDKOption) *Outpost { sdk := &Outpost{ - SDKVersion: "1.2.0", + SDKVersion: "1.3.0", sdkConfiguration: config.SDKConfiguration{ - UserAgent: "speakeasy-sdk/go 1.2.0 2.881.16 0.0.1 github.com/hookdeck/outpost/sdks/outpost-go", + UserAgent: "speakeasy-sdk/go 1.3.0 2.884.0 0.0.1 github.com/hookdeck/outpost/sdks/outpost-go", ServerList: ServerList, }, hooks: hooks.New(),