cadenya 0.45.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/cadenya/client.rb +10 -2
  5. data/lib/cadenya/models/account_info.rb +5 -4
  6. data/lib/cadenya/models/api_key.rb +33 -4
  7. data/lib/cadenya/models/api_key_create_params.rb +8 -12
  8. data/lib/cadenya/models/api_key_delete_params.rb +7 -1
  9. data/lib/cadenya/models/api_key_disable_params.rb +26 -0
  10. data/lib/cadenya/models/api_key_enable_params.rb +26 -0
  11. data/lib/cadenya/models/api_key_info.rb +1 -21
  12. data/lib/cadenya/models/api_key_list_params.rb +8 -1
  13. data/lib/cadenya/models/api_key_retrieve_params.rb +7 -1
  14. data/lib/cadenya/models/api_key_rotate_params.rb +7 -1
  15. data/lib/cadenya/models/api_key_spec.rb +6 -6
  16. data/lib/cadenya/models/api_key_update_params.rb +8 -1
  17. data/lib/cadenya/models/global_api_key_disable_params.rb +14 -0
  18. data/lib/cadenya/models/global_api_key_enable_params.rb +14 -0
  19. data/lib/cadenya/models/global_api_key_retrieve_params.rb +14 -0
  20. data/lib/cadenya/models/global_api_key_rotate_params.rb +14 -0
  21. data/lib/cadenya/models.rb +12 -2
  22. data/lib/cadenya/resources/api_keys.rb +116 -38
  23. data/lib/cadenya/resources/global_api_key.rb +93 -0
  24. data/lib/cadenya/version.rb +1 -1
  25. data/lib/cadenya.rb +7 -4
  26. data/rbi/cadenya/client.rbi +9 -2
  27. data/rbi/cadenya/models/account_info.rbi +8 -6
  28. data/rbi/cadenya/models/api_key.rbi +37 -3
  29. data/rbi/cadenya/models/api_key_create_params.rbi +6 -13
  30. data/rbi/cadenya/models/api_key_delete_params.rbi +10 -2
  31. data/rbi/cadenya/models/api_key_disable_params.rbi +43 -0
  32. data/rbi/cadenya/models/api_key_enable_params.rbi +43 -0
  33. data/rbi/cadenya/models/api_key_info.rbi +3 -39
  34. data/rbi/cadenya/models/api_key_list_params.rbi +6 -0
  35. data/rbi/cadenya/models/api_key_retrieve_params.rbi +10 -2
  36. data/rbi/cadenya/models/api_key_rotate_params.rbi +10 -2
  37. data/rbi/cadenya/models/api_key_spec.rbi +10 -10
  38. data/rbi/cadenya/models/api_key_update_params.rbi +6 -0
  39. data/rbi/cadenya/models/global_api_key_disable_params.rbi +27 -0
  40. data/rbi/cadenya/models/global_api_key_enable_params.rbi +27 -0
  41. data/rbi/cadenya/models/global_api_key_retrieve_params.rbi +27 -0
  42. data/rbi/cadenya/models/global_api_key_rotate_params.rbi +27 -0
  43. data/rbi/cadenya/models.rbi +12 -2
  44. data/rbi/cadenya/resources/api_keys.rbi +64 -20
  45. data/rbi/cadenya/resources/global_api_key.rbi +55 -0
  46. data/sig/cadenya/client.rbs +2 -0
  47. data/sig/cadenya/models/api_key.rbs +17 -0
  48. data/sig/cadenya/models/api_key_create_params.rbs +6 -8
  49. data/sig/cadenya/models/api_key_delete_params.rbs +10 -2
  50. data/sig/cadenya/models/api_key_disable_params.rbs +28 -0
  51. data/sig/cadenya/models/api_key_enable_params.rbs +28 -0
  52. data/sig/cadenya/models/api_key_info.rbs +3 -26
  53. data/sig/cadenya/models/api_key_list_params.rbs +5 -0
  54. data/sig/cadenya/models/api_key_retrieve_params.rbs +10 -2
  55. data/sig/cadenya/models/api_key_rotate_params.rbs +10 -2
  56. data/sig/cadenya/models/api_key_update_params.rbs +5 -0
  57. data/sig/cadenya/models/global_api_key_disable_params.rbs +15 -0
  58. data/sig/cadenya/models/global_api_key_enable_params.rbs +15 -0
  59. data/sig/cadenya/models/global_api_key_retrieve_params.rbs +15 -0
  60. data/sig/cadenya/models/global_api_key_rotate_params.rbs +15 -0
  61. data/sig/cadenya/models.rbs +12 -2
  62. data/sig/cadenya/resources/api_keys.rbs +22 -4
  63. data/sig/cadenya/resources/global_api_key.rbs +15 -0
  64. metadata +23 -14
  65. data/lib/cadenya/models/api_keys/access_add_params.rb +0 -31
  66. data/lib/cadenya/models/api_keys/access_list_params.rb +0 -52
  67. data/lib/cadenya/models/api_keys/access_remove_params.rb +0 -28
  68. data/lib/cadenya/resources/api_keys/access.rb +0 -105
  69. data/rbi/cadenya/models/api_keys/access_add_params.rbi +0 -54
  70. data/rbi/cadenya/models/api_keys/access_list_params.rbi +0 -83
  71. data/rbi/cadenya/models/api_keys/access_remove_params.rbi +0 -48
  72. data/rbi/cadenya/resources/api_keys/access.rbi +0 -78
  73. data/sig/cadenya/models/api_keys/access_add_params.rbs +0 -32
  74. data/sig/cadenya/models/api_keys/access_list_params.rbs +0 -44
  75. data/sig/cadenya/models/api_keys/access_remove_params.rbs +0 -30
  76. data/sig/cadenya/resources/api_keys/access.rbs +0 -29
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 909780a1dbd0e765d0bd08297067a790a82d1b71e997e0d98cf8f135d42f7026
4
- data.tar.gz: e42f683aa88d026e1d79971c25305f2765cd52679222223e0e16fe1f79fa4b45
3
+ metadata.gz: d5a9b1ef46409d82f62b8be667e5eb848b4342a1e78ff2598f5c0bf08dfbcba9
4
+ data.tar.gz: f9b1458109789eb38dda8487621bdce7b73698c351b8b0c102624d8b72906d30
5
5
  SHA512:
6
- metadata.gz: 6ea287180ef6b0e27fe2480c0a53bd7c5c8b98627fb36a78f6ed8e6e48b4cd53d3b8ac27a7a60cde12e46c2d745e69488c0c1d893fd9578dc2993f557dbf6d65
7
- data.tar.gz: f13242fb378f9e814e840037629435fdda731ef1da34ca590d110dfd830d1e6ebbf1e45d4a2bf045ebc646eaaecc569c2dfe53fc3f94037eacc4416458b7f4f5
6
+ metadata.gz: 99de39a30f26701c5a20ae71cb42eeb8a78ea02e86b1f5790648eb428a9d1f6dee0844af0c6b1c71749e3945f3dd28e6bec31034e529ad2aab99ea18fd74df56
7
+ data.tar.gz: 2e98c90c7306b66b45aeb79a4fb5ef0be0e1ca90cef3f7d387d6860dedbce7ef56316437b251b2b483bb4e328da4bee2a15e2f4cd372ec1c2bbcbe9266f19905
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.47.0 (2026-07-18)
4
+
5
+ Full Changelog: [v0.46.0...v0.47.0](https://github.com/cadenya/cadenya-ruby/compare/v0.46.0...v0.47.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([f7674c5](https://github.com/cadenya/cadenya-ruby/commit/f7674c54e9dd5db75c397908323e2032a5f7dc64))
10
+
11
+ ## 0.46.0 (2026-07-17)
12
+
13
+ Full Changelog: [v0.45.0...v0.46.0](https://github.com/cadenya/cadenya-ruby/compare/v0.45.0...v0.46.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([7cd416d](https://github.com/cadenya/cadenya-ruby/commit/7cd416ddc9510dbf331fc8429722a979b48005d6))
18
+
3
19
  ## 0.45.0 (2026-07-17)
4
20
 
5
21
  Full Changelog: [v0.44.0...v0.45.0](https://github.com/cadenya/cadenya-ruby/compare/v0.44.0...v0.45.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "cadenya", "~> 0.45.0"
20
+ gem "cadenya", "~> 0.47.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -71,11 +71,18 @@ module Cadenya
71
71
  # @return [Cadenya::Resources::ToolSets]
72
72
  attr_reader :tool_sets
73
73
 
74
- # Issue, rotate, and revoke API keys for the account, and grant or revoke each
75
- # key's access to individual workspaces.
74
+ # Issue, rotate, disable, and revoke a workspace's API keys. Every key belongs to
75
+ # exactly one workspace; the system-managed global account key is managed via
76
+ # GlobalAPIKeyService instead.
76
77
  # @return [Cadenya::Resources::APIKeys]
77
78
  attr_reader :api_keys
78
79
 
80
+ # Manage the account's system-provisioned global API key. The global key is the
81
+ # only key that spans every workspace; it is created by the system and cannot be
82
+ # deleted, so the surface is retrieve, rotate, and the disable/enable kill switch.
83
+ # @return [Cadenya::Resources::GlobalAPIKey]
84
+ attr_reader :global_api_key
85
+
79
86
  # @return [Cadenya::Resources::WorkspaceSecrets]
80
87
  attr_reader :workspace_secrets
81
88
 
@@ -176,6 +183,7 @@ module Cadenya
176
183
  @search = Cadenya::Resources::Search.new(client: self)
177
184
  @tool_sets = Cadenya::Resources::ToolSets.new(client: self)
178
185
  @api_keys = Cadenya::Resources::APIKeys.new(client: self)
186
+ @global_api_key = Cadenya::Resources::GlobalAPIKey.new(client: self)
179
187
  @workspace_secrets = Cadenya::Resources::WorkspaceSecrets.new(client: self)
180
188
  @workspaces = Cadenya::Resources::Workspaces.new(client: self)
181
189
  @workspace_admin = Cadenya::Resources::WorkspaceAdmin.new(client: self)
@@ -15,9 +15,10 @@ module Cadenya
15
15
  optional :challenge_token, String, api_name: :challengeToken
16
16
 
17
17
  # @!attribute global_api_key
18
- # An API key for the account. Use workspace-association RPCs to grant the key
19
- # access to specific workspaces; a key with zero workspaces is valid but cannot
20
- # access workspace-scoped resources.
18
+ # An API key. Every key belongs to exactly one workspace and is managed via the
19
+ # workspace-scoped API key routes. The only exception is the system-managed global
20
+ # account key, which spans all workspaces and is managed via the account
21
+ # global_api_key routes.
21
22
  #
22
23
  # @return [Cadenya::Models::APIKey, nil]
23
24
  optional :global_api_key, -> { Cadenya::APIKey }, api_name: :globalApiKey
@@ -39,7 +40,7 @@ module Cadenya
39
40
  #
40
41
  # @param challenge_token [String] The challenge token Cadenya sends in the X-Cadenya-Challenge-Token header
41
42
  #
42
- # @param global_api_key [Cadenya::Models::APIKey] An API key for the account. Use workspace-association RPCs to grant the
43
+ # @param global_api_key [Cadenya::Models::APIKey] An API key. Every key belongs to exactly one workspace and is managed via
43
44
  #
44
45
  # @param webhook_events_hmac_secret [String] The generated secret that will sign all webhooks that are sent to your configure
45
46
  end
@@ -22,19 +22,48 @@ module Cadenya
22
22
  # @return [Cadenya::Models::APIKeyInfo, nil]
23
23
  optional :info, -> { Cadenya::APIKeyInfo }
24
24
 
25
- # @!method initialize(metadata:, spec:, info: nil)
25
+ response_only do
26
+ # @!attribute state
27
+ # The current lifecycle state of the API key. Output only. Keys are created
28
+ # STATE_ENABLED; use the :disable and :enable actions to transition between
29
+ # states.
30
+ #
31
+ # @return [Symbol, Cadenya::Models::APIKey::State]
32
+ required :state, enum: -> { Cadenya::APIKey::State }
33
+ end
34
+
35
+ # @!method initialize(metadata:, spec:, state:, info: nil)
26
36
  # Some parameter documentations has been truncated, see {Cadenya::Models::APIKey}
27
37
  # for more details.
28
38
  #
29
- # An API key for the account. Use workspace-association RPCs to grant the key
30
- # access to specific workspaces; a key with zero workspaces is valid but cannot
31
- # access workspace-scoped resources.
39
+ # An API key. Every key belongs to exactly one workspace and is managed via the
40
+ # workspace-scoped API key routes. The only exception is the system-managed global
41
+ # account key, which spans all workspaces and is managed via the account
42
+ # global_api_key routes.
32
43
  #
33
44
  # @param metadata [Cadenya::Models::AccountResourceMetadata] AccountResourceMetadata is used to represent a resource that is associated to an
34
45
  #
35
46
  # @param spec [Cadenya::Models::APIKeySpec] Configuration for an API key.
36
47
  #
48
+ # @param state [Symbol, Cadenya::Models::APIKey::State] The current lifecycle state of the API key. Output only. Keys are
49
+ #
37
50
  # @param info [Cadenya::Models::APIKeyInfo]
51
+
52
+ # The current lifecycle state of the API key. Output only. Keys are created
53
+ # STATE_ENABLED; use the :disable and :enable actions to transition between
54
+ # states.
55
+ #
56
+ # @see Cadenya::Models::APIKey#state
57
+ module State
58
+ extend Cadenya::Internal::Type::Enum
59
+
60
+ STATE_UNSPECIFIED = :STATE_UNSPECIFIED
61
+ STATE_ENABLED = :STATE_ENABLED
62
+ STATE_DISABLED = :STATE_DISABLED
63
+
64
+ # @!method self.values
65
+ # @return [Array<Symbol>]
66
+ end
38
67
  end
39
68
  end
40
69
  end
@@ -7,6 +7,11 @@ module Cadenya
7
7
  extend Cadenya::Internal::Type::RequestParameters::Converter
8
8
  include Cadenya::Internal::Type::RequestParameters
9
9
 
10
+ # @!attribute workspace_id
11
+ #
12
+ # @return [String]
13
+ required :workspace_id, String
14
+
10
15
  # @!attribute metadata
11
16
  # CreateAccountResourceMetadata contains the user-provided fields for creating an
12
17
  # account-scoped resource. Read-only fields (id, account_id, profile_id) are
@@ -21,25 +26,16 @@ module Cadenya
21
26
  # @return [Cadenya::Models::APIKeySpec]
22
27
  required :spec, -> { Cadenya::APIKeySpec }
23
28
 
24
- # @!attribute initial_workspace_ids
25
- # Workspaces this API key will have access to on creation. Optional — a key can be
26
- # created with no workspace access and granted later via AddAPIKeyWorkspace.
27
- #
28
- # @return [Array<String>, nil]
29
- optional :initial_workspace_ids,
30
- Cadenya::Internal::Type::ArrayOf[String],
31
- api_name: :initialWorkspaceIds
32
-
33
- # @!method initialize(metadata:, spec:, initial_workspace_ids: nil, request_options: {})
29
+ # @!method initialize(workspace_id:, metadata:, spec:, request_options: {})
34
30
  # Some parameter documentations has been truncated, see
35
31
  # {Cadenya::Models::APIKeyCreateParams} for more details.
36
32
  #
33
+ # @param workspace_id [String]
34
+ #
37
35
  # @param metadata [Cadenya::Models::APIKeyCreateParams::Metadata] CreateAccountResourceMetadata contains the user-provided fields for creating
38
36
  #
39
37
  # @param spec [Cadenya::Models::APIKeySpec] Configuration for an API key.
40
38
  #
41
- # @param initial_workspace_ids [Array<String>] Workspaces this API key will have access to on creation. Optional —
42
- #
43
39
  # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
44
40
 
45
41
  class Metadata < Cadenya::Internal::Type::BaseModel
@@ -7,12 +7,18 @@ module Cadenya
7
7
  extend Cadenya::Internal::Type::RequestParameters::Converter
8
8
  include Cadenya::Internal::Type::RequestParameters
9
9
 
10
+ # @!attribute workspace_id
11
+ #
12
+ # @return [String]
13
+ required :workspace_id, String
14
+
10
15
  # @!attribute id
11
16
  #
12
17
  # @return [String]
13
18
  required :id, String
14
19
 
15
- # @!method initialize(id:, request_options: {})
20
+ # @!method initialize(workspace_id:, id:, request_options: {})
21
+ # @param workspace_id [String]
16
22
  # @param id [String]
17
23
  # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
18
24
  end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cadenya
4
+ module Models
5
+ # @see Cadenya::Resources::APIKeys#disable
6
+ class APIKeyDisableParams < Cadenya::Internal::Type::BaseModel
7
+ extend Cadenya::Internal::Type::RequestParameters::Converter
8
+ include Cadenya::Internal::Type::RequestParameters
9
+
10
+ # @!attribute workspace_id
11
+ #
12
+ # @return [String]
13
+ required :workspace_id, String
14
+
15
+ # @!attribute id
16
+ #
17
+ # @return [String]
18
+ required :id, String
19
+
20
+ # @!method initialize(workspace_id:, id:, request_options: {})
21
+ # @param workspace_id [String]
22
+ # @param id [String]
23
+ # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cadenya
4
+ module Models
5
+ # @see Cadenya::Resources::APIKeys#enable
6
+ class APIKeyEnableParams < Cadenya::Internal::Type::BaseModel
7
+ extend Cadenya::Internal::Type::RequestParameters::Converter
8
+ include Cadenya::Internal::Type::RequestParameters
9
+
10
+ # @!attribute workspace_id
11
+ #
12
+ # @return [String]
13
+ required :workspace_id, String
14
+
15
+ # @!attribute id
16
+ #
17
+ # @return [String]
18
+ required :id, String
19
+
20
+ # @!method initialize(workspace_id:, id:, request_options: {})
21
+ # @param workspace_id [String]
22
+ # @param id [String]
23
+ # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
24
+ end
25
+ end
26
+ end
@@ -11,33 +11,13 @@ module Cadenya
11
11
  #
12
12
  # @return [Cadenya::Models::Profile, nil]
13
13
  optional :created_by, -> { Cadenya::Profile }, api_name: :createdBy
14
-
15
- # @!attribute workspaces_preview
16
- # Up to a small number of workspaces this key has access to, intended for display
17
- # ("Workspace 1, Workspace 2, and 4 more"). Use ListAPIKeyWorkspaces for the full
18
- # paginated list.
19
- #
20
- # @return [Array<Cadenya::Models::BareMetadata>, nil]
21
- optional :workspaces_preview,
22
- -> { Cadenya::Internal::Type::ArrayOf[Cadenya::BareMetadata] },
23
- api_name: :workspacesPreview
24
-
25
- # @!attribute workspaces_total
26
- # Total number of workspaces this key has access to.
27
- #
28
- # @return [Integer, nil]
29
- optional :workspaces_total, Integer, api_name: :workspacesTotal
30
14
  end
31
15
 
32
- # @!method initialize(created_by: nil, workspaces_preview: nil, workspaces_total: nil)
16
+ # @!method initialize(created_by: nil)
33
17
  # Some parameter documentations has been truncated, see
34
18
  # {Cadenya::Models::APIKeyInfo} for more details.
35
19
  #
36
20
  # @param created_by [Cadenya::Models::Profile] A profile identifies a user or non-human principal (such as an API key)
37
- #
38
- # @param workspaces_preview [Array<Cadenya::Models::BareMetadata>] Up to a small number of workspaces this key has access to, intended
39
- #
40
- # @param workspaces_total [Integer] Total number of workspaces this key has access to.
41
21
  end
42
22
  end
43
23
  end
@@ -7,6 +7,11 @@ module Cadenya
7
7
  extend Cadenya::Internal::Type::RequestParameters::Converter
8
8
  include Cadenya::Internal::Type::RequestParameters
9
9
 
10
+ # @!attribute workspace_id
11
+ #
12
+ # @return [String]
13
+ required :workspace_id, String
14
+
10
15
  # @!attribute cursor
11
16
  # Pagination cursor from previous response.
12
17
  #
@@ -52,10 +57,12 @@ module Cadenya
52
57
  # @return [String, nil]
53
58
  optional :sort_order, String
54
59
 
55
- # @!method initialize(cursor: nil, include_info: nil, labels: nil, limit: nil, prefix: nil, query: nil, sort_order: nil, request_options: {})
60
+ # @!method initialize(workspace_id:, cursor: nil, include_info: nil, labels: nil, limit: nil, prefix: nil, query: nil, sort_order: nil, request_options: {})
56
61
  # Some parameter documentations has been truncated, see
57
62
  # {Cadenya::Models::APIKeyListParams} for more details.
58
63
  #
64
+ # @param workspace_id [String]
65
+ #
59
66
  # @param cursor [String] Pagination cursor from previous response.
60
67
  #
61
68
  # @param include_info [Boolean] When true, included info fields are populated. Requests with this
@@ -7,12 +7,18 @@ module Cadenya
7
7
  extend Cadenya::Internal::Type::RequestParameters::Converter
8
8
  include Cadenya::Internal::Type::RequestParameters
9
9
 
10
+ # @!attribute workspace_id
11
+ #
12
+ # @return [String]
13
+ required :workspace_id, String
14
+
10
15
  # @!attribute id
11
16
  #
12
17
  # @return [String]
13
18
  required :id, String
14
19
 
15
- # @!method initialize(id:, request_options: {})
20
+ # @!method initialize(workspace_id:, id:, request_options: {})
21
+ # @param workspace_id [String]
16
22
  # @param id [String]
17
23
  # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
18
24
  end
@@ -7,12 +7,18 @@ module Cadenya
7
7
  extend Cadenya::Internal::Type::RequestParameters::Converter
8
8
  include Cadenya::Internal::Type::RequestParameters
9
9
 
10
+ # @!attribute workspace_id
11
+ #
12
+ # @return [String]
13
+ required :workspace_id, String
14
+
10
15
  # @!attribute id
11
16
  #
12
17
  # @return [String]
13
18
  required :id, String
14
19
 
15
- # @!method initialize(id:, request_options: {})
20
+ # @!method initialize(workspace_id:, id:, request_options: {})
21
+ # @param workspace_id [String]
16
22
  # @param id [String]
17
23
  # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
18
24
  end
@@ -13,10 +13,10 @@ module Cadenya
13
13
  # Scopes granted to this key. Each entry is a colon-separated resource:verb string
14
14
  # (e.g. "objectives:manage").
15
15
  #
16
- # Resources: agents, objectives, tools, memory, api_keys, secrets, account. Verbs:
17
- # read and manage, where manage implies read — a stored scope set is normalized to
18
- # drop "x:read" when "x:manage" is present. The secrets and account resources
19
- # support only manage. "\*" is an explicit full-access grant.
16
+ # Resources: agents, objectives, tools, memory, api_keys, workspaces, secrets,
17
+ # account. Verbs: read and manage, where manage implies read — a stored scope set
18
+ # is normalized to drop "x:read" when "x:manage" is present. The secrets and
19
+ # account resources support only manage. "\*" is an explicit full-access grant.
20
20
  #
21
21
  # Scopes are deny-by-default: a key with an empty list can call only scope-free
22
22
  # endpoints. Full access is always an explicit "\*" grant.
@@ -33,7 +33,7 @@ module Cadenya
33
33
  optional :token, String
34
34
 
35
35
  # @!attribute system_
36
- # True when this key is managed by the system (e.g. the auto-provisioned global
36
+ # True when this key is managed by the system (i.e. the auto-provisioned global
37
37
  # account key). System keys cannot be deleted but can be rotated.
38
38
  #
39
39
  # @return [Boolean, nil]
@@ -52,7 +52,7 @@ module Cadenya
52
52
  #
53
53
  # @param permissions [Array<String>] Scopes granted to this key. Each entry is a colon-separated
54
54
  #
55
- # @param system_ [Boolean] True when this key is managed by the system (e.g. the auto-provisioned
55
+ # @param system_ [Boolean] True when this key is managed by the system (i.e. the auto-provisioned
56
56
  end
57
57
  end
58
58
  end
@@ -7,6 +7,11 @@ module Cadenya
7
7
  extend Cadenya::Internal::Type::RequestParameters::Converter
8
8
  include Cadenya::Internal::Type::RequestParameters
9
9
 
10
+ # @!attribute workspace_id
11
+ #
12
+ # @return [String]
13
+ required :workspace_id, String
14
+
10
15
  # @!attribute id
11
16
  #
12
17
  # @return [String]
@@ -32,10 +37,12 @@ module Cadenya
32
37
  # @return [String, nil]
33
38
  optional :update_mask, String, api_name: :updateMask
34
39
 
35
- # @!method initialize(id:, metadata: nil, spec: nil, update_mask: nil, request_options: {})
40
+ # @!method initialize(workspace_id:, id:, metadata: nil, spec: nil, update_mask: nil, request_options: {})
36
41
  # Some parameter documentations has been truncated, see
37
42
  # {Cadenya::Models::APIKeyUpdateParams} for more details.
38
43
  #
44
+ # @param workspace_id [String]
45
+ #
39
46
  # @param id [String]
40
47
  #
41
48
  # @param metadata [Cadenya::Models::APIKeyUpdateParams::Metadata] UpdateAccountResourceMetadata contains the user-provided fields for updating
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cadenya
4
+ module Models
5
+ # @see Cadenya::Resources::GlobalAPIKey#disable
6
+ class GlobalAPIKeyDisableParams < Cadenya::Internal::Type::BaseModel
7
+ extend Cadenya::Internal::Type::RequestParameters::Converter
8
+ include Cadenya::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cadenya
4
+ module Models
5
+ # @see Cadenya::Resources::GlobalAPIKey#enable
6
+ class GlobalAPIKeyEnableParams < Cadenya::Internal::Type::BaseModel
7
+ extend Cadenya::Internal::Type::RequestParameters::Converter
8
+ include Cadenya::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cadenya
4
+ module Models
5
+ # @see Cadenya::Resources::GlobalAPIKey#retrieve
6
+ class GlobalAPIKeyRetrieveParams < Cadenya::Internal::Type::BaseModel
7
+ extend Cadenya::Internal::Type::RequestParameters::Converter
8
+ include Cadenya::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cadenya
4
+ module Models
5
+ # @see Cadenya::Resources::GlobalAPIKey#rotate
6
+ class GlobalAPIKeyRotateParams < Cadenya::Internal::Type::BaseModel
7
+ extend Cadenya::Internal::Type::RequestParameters::Converter
8
+ include Cadenya::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -99,6 +99,10 @@ module Cadenya
99
99
 
100
100
  APIKeyDeleteParams = Cadenya::Models::APIKeyDeleteParams
101
101
 
102
+ APIKeyDisableParams = Cadenya::Models::APIKeyDisableParams
103
+
104
+ APIKeyEnableParams = Cadenya::Models::APIKeyEnableParams
105
+
102
106
  APIKeyInfo = Cadenya::Models::APIKeyInfo
103
107
 
104
108
  APIKeyListParams = Cadenya::Models::APIKeyListParams
@@ -107,8 +111,6 @@ module Cadenya
107
111
 
108
112
  APIKeyRotateParams = Cadenya::Models::APIKeyRotateParams
109
113
 
110
- APIKeys = Cadenya::Models::APIKeys
111
-
112
114
  APIKeySpec = Cadenya::Models::APIKeySpec
113
115
 
114
116
  APIKeyUpdateParams = Cadenya::Models::APIKeyUpdateParams
@@ -133,6 +135,14 @@ module Cadenya
133
135
 
134
136
  CreateResourceMetadata = Cadenya::Models::CreateResourceMetadata
135
137
 
138
+ GlobalAPIKeyDisableParams = Cadenya::Models::GlobalAPIKeyDisableParams
139
+
140
+ GlobalAPIKeyEnableParams = Cadenya::Models::GlobalAPIKeyEnableParams
141
+
142
+ GlobalAPIKeyRetrieveParams = Cadenya::Models::GlobalAPIKeyRetrieveParams
143
+
144
+ GlobalAPIKeyRotateParams = Cadenya::Models::GlobalAPIKeyRotateParams
145
+
136
146
  MemoryLayer = Cadenya::Models::MemoryLayer
137
147
 
138
148
  MemoryLayerCreateParams = Cadenya::Models::MemoryLayerCreateParams