Skip to content

Commit be3ff98

Browse files
authored
Update from platform-api (#49)
1 parent ff88db6 commit be3ff98

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1272
-758
lines changed

.speakeasy/gen.lock

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
lockVersion: 2.0.0
22
id: e3bbe1e9-fe63-436b-a42c-05e3e3f77633
33
management:
4-
docChecksum: 73a397e4ff362698318e32bb1992d19f
4+
docChecksum: e87f43a7a2316a40b53d3b8471fcfea5
55
docVersion: 2.0.0
66
speakeasyVersion: 1.555.3
77
generationVersion: 2.620.2
@@ -434,6 +434,7 @@ generatedFiles:
434434
- internal/provider/types/affinity_tags.go
435435
- internal/provider/types/aggregate.go
436436
- internal/provider/types/api_implementation_service.go
437+
- internal/provider/types/api_version_summary.go
437438
- internal/provider/types/append_match.go
438439
- internal/provider/types/append_modifications.go
439440
- internal/provider/types/append_policies.go
@@ -686,6 +687,7 @@ generatedFiles:
686687
- internal/provider/types/selector.go
687688
- internal/provider/types/selectors.go
688689
- internal/provider/types/sidecar.go
690+
- internal/provider/types/spec.go
689691
- internal/provider/types/spec_renderer.go
690692
- internal/provider/types/status.go
691693
- internal/provider/types/subject_alt_names.go
@@ -948,15 +950,18 @@ generatedFiles:
948950
- internal/sdk/models/shared/apiimplementation.go
949951
- internal/sdk/models/shared/apiimplementationresponse.go
950952
- internal/sdk/models/shared/apiimplementationservice.go
953+
- internal/sdk/models/shared/apiimplementationserviceinput.go
951954
- internal/sdk/models/shared/apipublication.go
952955
- internal/sdk/models/shared/apipublicationresponse.go
953956
- internal/sdk/models/shared/apipublicationvisibility.go
954957
- internal/sdk/models/shared/apiresponseschema.go
955958
- internal/sdk/models/shared/apislugconflict.go
956959
- internal/sdk/models/shared/apispec.go
957960
- internal/sdk/models/shared/apispecresponse.go
961+
- internal/sdk/models/shared/apispectype.go
958962
- internal/sdk/models/shared/apiversion.go
959963
- internal/sdk/models/shared/apiversionresponse.go
964+
- internal/sdk/models/shared/apiversionsummary.go
960965
- internal/sdk/models/shared/authserver.go
961966
- internal/sdk/models/shared/badrequesterror.go
962967
- internal/sdk/models/shared/claim.go
@@ -1116,6 +1121,7 @@ generatedFiles:
11161121
- internal/sdk/models/shared/security.go
11171122
- internal/sdk/models/shared/unauthorizederror.go
11181123
- internal/sdk/models/shared/unsupportedmediatypeerror.go
1124+
- internal/sdk/models/shared/updatealgorithm.go
11191125
- internal/sdk/models/shared/updateapirequest.go
11201126
- internal/sdk/models/shared/updateauthserver.go
11211127
- internal/sdk/models/shared/updateclaim.go
@@ -1531,7 +1537,7 @@ examples:
15311537
application/json: {"name": "MyAPI", "slug": "my-api-v1", "labels": {"env": "test"}}
15321538
responses:
15331539
"201":
1534-
application/json: {"id": "9f5061ce-78f6-4452-9108-ad7c02821fd5", "name": "MyAPI", "version": null, "slug": "my-api-v1", "api_spec_ids": ["123e4567-e89b-12d3-a456-426614174000"], "auth_strategy_sync_error": {"control_plane_error": "control_plane_error_unavailable", "message": "Unable to connect to the control plane to update plugin"}, "portals": [{"id": "25a2624c-49fc-4764-99e1-224ed819f200", "name": "My Portal", "display_name": "My Portal"}], "labels": {"env": "test"}, "created_at": "2022-11-04T20:10:06.927Z", "updated_at": "2022-11-04T20:10:06.927Z"}
1540+
application/json: {"id": "9f5061ce-78f6-4452-9108-ad7c02821fd5", "name": "MyAPI", "version": null, "current_version_summary": null, "slug": "my-api-v1", "api_spec_ids": ["123e4567-e89b-12d3-a456-426614174000"], "portals": [{"id": "25a2624c-49fc-4764-99e1-224ed819f200", "name": "My Portal", "display_name": "My Portal"}], "labels": {"env": "test"}, "created_at": "2022-11-04T20:10:06.927Z", "updated_at": "2022-11-04T20:10:06.927Z"}
15351541
"400":
15361542
application/problem+json: {"status": 497005, "title": "<value>", "instance": "<value>", "detail": "<value>", "invalid_parameters": []}
15371543
"401":
@@ -1549,7 +1555,7 @@ examples:
15491555
apiId: "9f5061ce-78f6-4452-9108-ad7c02821fd5"
15501556
responses:
15511557
"200":
1552-
application/json: {"id": "9f5061ce-78f6-4452-9108-ad7c02821fd5", "name": "MyAPI", "version": "<value>", "slug": "my-api-v1", "api_spec_ids": ["123e4567-e89b-12d3-a456-426614174000"], "auth_strategy_sync_error": {"control_plane_error": "control_plane_error_unavailable", "message": "Unable to connect to the control plane to update plugin"}, "portals": [{"id": "25a2624c-49fc-4764-99e1-224ed819f200", "name": "My Portal", "display_name": "My Portal"}, {"id": "25a2624c-49fc-4764-99e1-224ed819f200", "name": "My Portal", "display_name": "My Portal"}, {"id": "25a2624c-49fc-4764-99e1-224ed819f200", "name": "My Portal", "display_name": "My Portal"}], "labels": {"env": "test"}, "created_at": "2022-11-04T20:10:06.927Z", "updated_at": "2022-11-04T20:10:06.927Z"}
1558+
application/json: {"id": "9f5061ce-78f6-4452-9108-ad7c02821fd5", "name": "MyAPI", "version": "<value>", "current_version_summary": {"id": "7710d5c4-d902-410b-992f-18b814155b53", "spec": {"type": "oas3"}, "created_at": "2022-11-04T20:10:06.927Z", "updated_at": "2022-11-04T20:10:06.927Z"}, "slug": "my-api-v1", "api_spec_ids": ["123e4567-e89b-12d3-a456-426614174000"], "portals": [{"id": "25a2624c-49fc-4764-99e1-224ed819f200", "name": "My Portal", "display_name": "My Portal"}, {"id": "25a2624c-49fc-4764-99e1-224ed819f200", "name": "My Portal", "display_name": "My Portal"}, {"id": "25a2624c-49fc-4764-99e1-224ed819f200", "name": "My Portal", "display_name": "My Portal"}], "labels": {"env": "test"}, "created_at": "2022-11-04T20:10:06.927Z", "updated_at": "2022-11-04T20:10:06.927Z"}
15531559
"401":
15541560
application/problem+json: {"status": 401, "title": "Unauthorized", "type": "https://httpstatuses.com/401", "instance": "kong:trace:1234567890", "detail": "Invalid credentials"}
15551561
"403":
@@ -1565,7 +1571,7 @@ examples:
15651571
application/json: {"name": "MyAPI", "slug": "my-api-v1", "labels": {"env": "test"}}
15661572
responses:
15671573
"200":
1568-
application/json: {"id": "9f5061ce-78f6-4452-9108-ad7c02821fd5", "name": "MyAPI", "version": null, "slug": "my-api-v1", "api_spec_ids": ["123e4567-e89b-12d3-a456-426614174000"], "auth_strategy_sync_error": {"control_plane_error": "control_plane_error_unavailable", "message": "Unable to connect to the control plane to update plugin"}, "portals": [], "labels": {"env": "test"}, "created_at": "2022-11-04T20:10:06.927Z", "updated_at": "2022-11-04T20:10:06.927Z"}
1574+
application/json: {"id": "9f5061ce-78f6-4452-9108-ad7c02821fd5", "name": "MyAPI", "version": null, "current_version_summary": null, "slug": "my-api-v1", "api_spec_ids": ["123e4567-e89b-12d3-a456-426614174000"], "portals": [], "labels": {"env": "test"}, "created_at": "2022-11-04T20:10:06.927Z", "updated_at": "2022-11-04T20:10:06.927Z"}
15691575
"400":
15701576
application/problem+json: {"status": 683837, "title": "<value>", "instance": "<value>", "detail": "<value>", "invalid_parameters": [{"field": "name", "source": "body", "reason": "is a required field"}]}
15711577
"401":
@@ -1705,7 +1711,7 @@ examples:
17051711
apiId: "9f5061ce-78f6-4452-9108-ad7c02821fd5"
17061712
specId: "d32d905a-ed33-46a3-a093-d8f536af9a8a"
17071713
requestBody:
1708-
application/json: {"content": "{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Example API\",\"version\":\"1.0.0\"},\"paths\":{\"/example\":{\"get\":{\"summary\":\"Example endpoint\",\"responses\":{\"200\":{\"description\":\"Successful response\"}}}}}}"}
1714+
application/json: {"content": "{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Example API\",\"version\":\"1.0.0\"},\"paths\":{\"/example\":{\"get\":{\"summary\":\"Example endpoint\",\"responses\":{\"200\":{\"description\":\"Successful response\"}}}}}}", "type": "oas3"}
17091715
responses:
17101716
"200":
17111717
application/json: {"id": "7710d5c4-d902-410b-992f-18b814155b53", "content": "{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Example API\",\"version\":\"1.0.0\"},\"paths\":{\"/example\":{\"get\":{\"summary\":\"Example endpoint\",\"responses\":{\"200\":{\"description\":\"Successful response\"}}}}}}", "validation_messages": [{"message": "<value>"}, {"message": "<value>"}, {"message": "<value>"}], "type": "oas3", "created_at": "2022-11-04T20:10:06.927Z", "updated_at": "2022-11-04T20:10:06.927Z"}
@@ -1790,7 +1796,7 @@ examples:
17901796
application/json: {"service": {"control_plane_id": "9f5061ce-78f6-4452-9108-ad7c02821fd5", "id": "7710d5c4-d902-410b-992f-18b814155b53"}}
17911797
responses:
17921798
"201":
1793-
application/json: {"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7", "created_at": "2022-11-04T20:10:06.927Z", "updated_at": "2022-11-04T20:10:06.927Z", "service": {"control_plane_id": "9f5061ce-78f6-4452-9108-ad7c02821fd5", "id": "7710d5c4-d902-410b-992f-18b814155b53"}}
1799+
application/json: {"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7", "created_at": "2022-11-04T20:10:06.927Z", "updated_at": "2022-11-04T20:10:06.927Z", "service": {"control_plane_id": "9f5061ce-78f6-4452-9108-ad7c02821fd5", "id": "7710d5c4-d902-410b-992f-18b814155b53", "auth_strategy_sync_error": {"control_plane_error": "control_plane_error_unavailable", "message": "Unable to connect to the control plane to update plugin"}}}
17941800
"400":
17951801
application/problem+json: {"status": 371505, "title": "<value>", "instance": "<value>", "detail": "<value>", "invalid_parameters": [{"field": "name", "rule": "enum", "reason": "is a required field", "choices": ["<value 1>", "<value 2>"], "source": "body"}, {"field": "name", "rule": "enum", "reason": "is a required field", "choices": ["<value 1>", "<value 2>"], "source": "body"}]}
17961802
"401":
@@ -1809,7 +1815,7 @@ examples:
18091815
implementationId: "032d905a-ed33-46a3-a093-d8f536af9a8a"
18101816
responses:
18111817
"200":
1812-
application/json: {"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7", "created_at": "2022-11-04T20:10:06.927Z", "updated_at": "2022-11-04T20:10:06.927Z", "service": {"control_plane_id": "9f5061ce-78f6-4452-9108-ad7c02821fd5", "id": "7710d5c4-d902-410b-992f-18b814155b53"}}
1818+
application/json: {"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7", "created_at": "2022-11-04T20:10:06.927Z", "updated_at": "2022-11-04T20:10:06.927Z", "service": {"control_plane_id": "9f5061ce-78f6-4452-9108-ad7c02821fd5", "id": "7710d5c4-d902-410b-992f-18b814155b53", "auth_strategy_sync_error": {"control_plane_error": "control_plane_error_unavailable", "message": "Unable to connect to the control plane to update plugin"}}}
18131819
"401":
18141820
application/problem+json: {"status": 401, "title": "Unauthorized", "type": "https://httpstatuses.com/401", "instance": "kong:trace:1234567890", "detail": "Invalid credentials"}
18151821
"403":
@@ -3444,7 +3450,7 @@ examples:
34443450
path:
34453451
authServerId: "d32d905a-ed33-46a3-a093-d8f536af9a8a"
34463452
requestBody:
3447-
application/json: {"signing_algorithm": "RS256", "labels": {"env": "test"}}
3453+
application/json: {"labels": {"env": "test"}}
34483454
responses:
34493455
"200":
34503456
application/json: {"id": "68d4f2fa-7ace-4e1f-af19-1fbd364cf434", "name": "<value>", "description": "whimsical pretend bruised oof yieldingly save archaeology political pish strait", "audience": "<value>", "signing_algorithm": "RS256", "issuer": "discover", "metadata_uri": "https://disloyal-pneumonia.org", "labels": {"env": "test"}, "created_at": "2022-11-04T20:10:06.927Z", "updated_at": "2022-11-04T20:10:06.927Z"}
@@ -3494,7 +3500,7 @@ examples:
34943500
authServerId: "d32d905a-ed33-46a3-a093-d8f536af9a8a"
34953501
claimId: "07d05309-45cc-4b37-92fb-1524846deec3"
34963502
requestBody:
3497-
application/json: {"include_in_token": false, "include_in_all_scopes": false, "enabled": true}
3503+
application/json: {}
34983504
responses:
34993505
"200":
35003506
application/json: {"id": "298d07b9-74c8-4ec8-a4d3-589bc550a91d", "name": "<value>", "value": "<value>", "include_in_token": false, "include_in_all_scopes": false, "include_in_scopes": [], "enabled": true, "created_at": "2022-11-04T20:10:06.927Z", "updated_at": "2022-11-04T20:10:06.927Z"}
@@ -3545,7 +3551,7 @@ examples:
35453551
authServerId: "d32d905a-ed33-46a3-a093-d8f536af9a8a"
35463552
scopeId: "c5e12516-182c-4928-ae04-05374b3b1cca"
35473553
requestBody:
3548-
application/json: {"default": false, "include_in_metadata": false, "enabled": true}
3554+
application/json: {}
35493555
responses:
35503556
"200":
35513557
application/json: {"id": "e3b61511-2524-46dd-b444-e26d1fe65b49", "name": "<value>", "description": "beside because delirious any successfully yippee although", "default": false, "include_in_metadata": false, "enabled": true, "created_at": "2022-11-04T20:10:06.927Z", "updated_at": "2022-11-04T20:10:06.927Z"}

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
# Changelog
22

3+
## 0.7.0
4+
> Released on 2025/??/??
5+
6+
### BREAKING CHANGES
7+
* `auth_strategy_sync_error` read only field removed from `konnect_api`. It is now available on `konnect_api_implementation`
8+
9+
### Features
10+
* `current_version_summary` is now available on the `konnect_api` resource
11+
12+
### Bug Fixes
13+
* `service` is now optional in `konnect_api_implementation`
14+
315
## 0.6.1
416
> Released on 2025/06/12
517
618
### Bug Fixes
7-
> - Fix empty labels in Mesh resources causing an error
19+
* Fix empty labels in Mesh resources causing an error
820

921
## 0.6.0
1022
> Released on 2025/06/05

docs/resources/api.md

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -47,39 +47,30 @@ Defaults to `slugify(name + version)`
4747

4848
### Read-Only
4949

50-
- `api_spec_ids` (List of String) The list of API specification ids for the API.
51-
- `auth_strategy_sync_error` (Attributes) (see [below for nested schema](#nestedatt--auth_strategy_sync_error))
50+
- `api_spec_ids` (List of String, Deprecated) The list of API specification ids for the API.
5251
- `created_at` (String) An ISO-8601 timestamp representation of entity creation date.
52+
- `current_version_summary` (Attributes) (see [below for nested schema](#nestedatt--current_version_summary))
5353
- `id` (String) The API identifier.
5454
- `portals` (Attributes List) The list of portals which this API is published to. (see [below for nested schema](#nestedatt--portals))
5555
- `updated_at` (String) An ISO-8601 timestamp representation of entity update date.
5656

57-
<a id="nestedatt--auth_strategy_sync_error"></a>
58-
### Nested Schema for `auth_strategy_sync_error`
57+
<a id="nestedatt--current_version_summary"></a>
58+
### Nested Schema for `current_version_summary`
5959

6060
Read-Only:
6161

62-
- `control_plane_error` (String) must be one of ["control_plane_error_no_response", "control_plane_error_invalid_response", "control_plane_error_unavailable", "control_plane_error_internal_error", "control_plane_error_bad_request", "control_plane_error_plugin_conflict", "control_plane_error_data_constraint_error", "control_plane_error_implementation_not_found"]
63-
- `info` (Attributes) (see [below for nested schema](#nestedatt--auth_strategy_sync_error--info))
64-
- `message` (String)
65-
66-
<a id="nestedatt--auth_strategy_sync_error--info"></a>
67-
### Nested Schema for `auth_strategy_sync_error.info`
68-
69-
Read-Only:
70-
71-
- `additional_properties` (String) Parsed as JSON.
72-
- `details` (Attributes List) (see [below for nested schema](#nestedatt--auth_strategy_sync_error--info--details))
62+
- `created_at` (String) An ISO-8601 timestamp representation of entity creation date.
63+
- `id` (String) The API version identifier.
64+
- `spec` (Attributes) (see [below for nested schema](#nestedatt--current_version_summary--spec))
65+
- `updated_at` (String) An ISO-8601 timestamp representation of entity update date.
66+
- `version` (String) The version of this api spec.
7367

74-
<a id="nestedatt--auth_strategy_sync_error--info--details"></a>
75-
### Nested Schema for `auth_strategy_sync_error.info.details`
68+
<a id="nestedatt--current_version_summary--spec"></a>
69+
### Nested Schema for `current_version_summary.spec`
7670

7771
Read-Only:
7872

79-
- `additional_properties` (String) Parsed as JSON.
80-
- `message` (List of String)
81-
- `type` (String)
82-
73+
- `type` (String) The type of specification being stored. This allows us to render the specification correctly. must be one of ["oas2", "oas3", "asyncapi"]
8374

8475

8576

docs/resources/api_implementation.md

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ resource "konnect_api_implementation" "my_apiimplementation" {
2929
### Required
3030

3131
- `api_id` (String) The UUID API identifier. Requires replacement if changed.
32+
33+
### Optional
34+
3235
- `service` (Attributes) A Gateway service that implements an API. Requires replacement if changed. (see [below for nested schema](#nestedatt--service))
3336

3437
### Read-Only
@@ -40,10 +43,40 @@ resource "konnect_api_implementation" "my_apiimplementation" {
4043
<a id="nestedatt--service"></a>
4144
### Nested Schema for `service`
4245

43-
Required:
46+
Optional:
47+
48+
- `control_plane_id` (String) Not Null; Requires replacement if changed.
49+
- `id` (String) Not Null; Requires replacement if changed.
50+
51+
Read-Only:
52+
53+
- `auth_strategy_sync_error` (Attributes) (see [below for nested schema](#nestedatt--service--auth_strategy_sync_error))
54+
55+
<a id="nestedatt--service--auth_strategy_sync_error"></a>
56+
### Nested Schema for `service.auth_strategy_sync_error`
57+
58+
Read-Only:
59+
60+
- `control_plane_error` (String) must be one of ["control_plane_error_no_response", "control_plane_error_invalid_response", "control_plane_error_unavailable", "control_plane_error_internal_error", "control_plane_error_bad_request", "control_plane_error_plugin_conflict", "control_plane_error_data_constraint_error", "control_plane_error_implementation_not_found"]
61+
- `info` (Attributes) (see [below for nested schema](#nestedatt--service--auth_strategy_sync_error--info))
62+
- `message` (String)
63+
64+
<a id="nestedatt--service--auth_strategy_sync_error--info"></a>
65+
### Nested Schema for `service.auth_strategy_sync_error.info`
66+
67+
Read-Only:
68+
69+
- `additional_properties` (String) Parsed as JSON.
70+
- `details` (Attributes List) (see [below for nested schema](#nestedatt--service--auth_strategy_sync_error--info--details))
71+
72+
<a id="nestedatt--service--auth_strategy_sync_error--info--details"></a>
73+
### Nested Schema for `service.auth_strategy_sync_error.info.details`
74+
75+
Read-Only:
4476

45-
- `control_plane_id` (String) Requires replacement if changed.
46-
- `id` (String) Requires replacement if changed.
77+
- `additional_properties` (String) Parsed as JSON.
78+
- `message` (List of String)
79+
- `type` (String)
4780

4881
## Import
4982

docs/resources/api_specification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ resource "konnect_api_specification" "my_apispecification" {
3131

3232
### Optional
3333

34-
- `type` (String) The type of specification being stored. This allows us to render the specification correctly. must be one of ["oas2", "oas3", "asyncapi"]; Requires replacement if changed.
34+
- `type` (String) The type of specification being stored. This allows us to render the specification correctly. must be one of ["oas2", "oas3", "asyncapi"]
3535

3636
### Read-Only
3737

docs/resources/auth_server_clients.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ AuthServerClients Resource
1515
```terraform
1616
resource "konnect_auth_server_clients" "my_authserverclients" {
1717
provider = konnect-beta
18-
access_token_duration = 17749669
18+
access_token_duration = 1458901
1919
allow_all_scopes = true
2020
allow_scopes = [
2121
"247c0ad0-5487-46a8-bedf-a569c07c2442"
@@ -24,7 +24,7 @@ resource "konnect_auth_server_clients" "my_authserverclients" {
2424
grant_types = [
2525
"authorization_code"
2626
]
27-
id_token_duration = 11692687
27+
id_token_duration = 961077
2828
labels = {
2929
key = "value"
3030
}

examples/resources/konnect_auth_server_clients/resource.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
resource "konnect_auth_server_clients" "my_authserverclients" {
22
provider = konnect-beta
3-
access_token_duration = 17749669
3+
access_token_duration = 1458901
44
allow_all_scopes = true
55
allow_scopes = [
66
"247c0ad0-5487-46a8-bedf-a569c07c2442"
@@ -9,7 +9,7 @@ resource "konnect_auth_server_clients" "my_authserverclients" {
99
grant_types = [
1010
"authorization_code"
1111
]
12-
id_token_duration = 11692687
12+
id_token_duration = 961077
1313
labels = {
1414
key = "value"
1515
}

0 commit comments

Comments
 (0)