infrawrench-sdk 1.0.0 → 1.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e45c71379c84999b88d2b1d309a67f3725e4ba2cabed2b1ca4fd36db8a7d677a
4
- data.tar.gz: 0bd88d1530add69a8816f15cfdfd2f4feab6013a515832da475d74fba4bbf849
3
+ metadata.gz: b139d5dedc215d6acda15293d9e7e7680368622ca2ec6eb9214f525965eac59c
4
+ data.tar.gz: 3318c1b9597fdcfbaf0b20db678894475c4ce6410775dc6ebf84cac42cf35844
5
5
  SHA512:
6
- metadata.gz: 1e4e457b41335197e2e971665f566eee1278aa3cdf68e6658aa93d75628c4dea104674960494ec4c5b8b3b733e64d8f40101433ae93c86a249cb1d4c8945b76d
7
- data.tar.gz: 5e14b2e4d27d57e22c0dee347909d41908cc36fc87f894a5af9ca56f56079f21c80a93c8cd09f4818fd3fb71c88922653831983e9318ea3d0623cea097167c7a
6
+ metadata.gz: cbb962bad4e5a7296e2727918d559b22a70ac2bdec5d94726fbaec8207972a563ec134307510943065baf3f5e526178a0fa475c99978ac23c53a60e2f46a6d56
7
+ data.tar.gz: 261dbe50ecf45be5b3aff912293f2662774ded53666d150ec5e350e54695903fec2f95087e4e86af3ca515bcd5ad9f84e0ef970f82bf1cfa8f15185d2673d02e
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # infrawrench-sdk
2
2
 
3
- Generated Ruby client for the Infrawrench API (API version `1.0.0`).
3
+ Generated Ruby client for the Infrawrench API (API version `1.1.0`).
4
4
 
5
5
  **Do not edit this gem by hand** — it is regenerated from `openapi.json` and is
6
6
  not checked into the repository. Run
@@ -41,7 +41,7 @@ Every method takes an optional trailing `request_options:` hash (`:headers`,
41
41
  Responses are the plain `Hash`/`Array` that `JSON.parse` returns, with String
42
42
  keys spelled exactly as the wire spells them. There are no model classes — see
43
43
  [`sig/infrawrench/sdk.rbs`](./sig/infrawrench/sdk.rbs) for the shape of every one of the
44
- 409 schemas, as RBS type aliases that steep and TypeProf can read.
44
+ 417 schemas, as RBS type aliases that steep and TypeProf can read.
45
45
 
46
46
  Non-2xx responses raise `Infrawrench::ApiError`, which carries `#status`,
47
47
  the parsed `#body`, and the machine-readable `#code` when the API sends one —
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.0.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.1.0 | MIT | Copyright (c) 2026 Infrawrench LLC
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.0.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.1.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -17,8 +17,8 @@ require_relative "lib/infrawrench/version"
17
17
  Gem::Specification.new do |spec|
18
18
  spec.name = "infrawrench-sdk"
19
19
  spec.version = Infrawrench::VERSION
20
- spec.summary = "Generated Ruby client for the Infrawrench API (v1.0.0)."
21
- spec.description = "Generated Ruby client for the Infrawrench API (v1.0.0). Covers the published API surface only — operations marked x-internal in the spec are not generated. No runtime dependencies."
20
+ spec.summary = "Generated Ruby client for the Infrawrench API (v1.1.0)."
21
+ spec.description = "Generated Ruby client for the Infrawrench API (v1.1.0). Covers the published API surface only — operations marked x-internal in the spec are not generated. No runtime dependencies."
22
22
  spec.authors = ["Infrawrench LLC", "Astrid Gealer"]
23
23
  spec.email = ["astrid@infrawrench.com"]
24
24
  spec.homepage = "https://infrawrench.com/docs/team-and-billing/client-sdks"
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.0.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.1.0 | MIT | Copyright (c) 2026 Infrawrench LLC
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.0.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.1.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -4063,6 +4063,74 @@ module Infrawrench
4063
4063
  end
4064
4064
  end
4065
4065
 
4066
+ # `client.environment_diff`
4067
+ class EnvironmentDiffNamespace
4068
+ # @api private
4069
+ # @param transport [Transport]
4070
+ def initialize(transport)
4071
+ @transport = transport
4072
+ end
4073
+
4074
+ # Compare two accounts' resource inventories
4075
+ #
4076
+ # Compares two accounts of the same provider — typically staging against
4077
+ # production — over already-synced state: which resource types exist in one
4078
+ # and not the other, the per-type count deltas, and the fields on which two
4079
+ # corresponding resources disagree (instance class, engine version, feature
4080
+ # flags).
4081
+ #
4082
+ # Resources are paired by resource type plus name with environment words
4083
+ # removed, so `api-staging` lines up with `api-prod` without any naming
4084
+ # convention to configure. By default the comparison hides divergences that
4085
+ # are artefacts of being two different resources — ids, links, network
4086
+ # addresses and timestamps — because every resource has different ones; pass
4087
+ # `includeIdentityFields=true` to see them.
4088
+ #
4089
+ # Read-only and cheap: no provider API calls are made, so results reflect
4090
+ # the last sync.
4091
+ #
4092
+ # _Requires permission: `resources:read`._
4093
+ #
4094
+ # GET /api/org/{orgId}/environment-diff
4095
+ #
4096
+ # Raises on 400: Bad request
4097
+ #
4098
+ # Raises on 404: Not found
4099
+ #
4100
+ # @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
4101
+ # constructed with.
4102
+ # @param a [String] Baseline account id — by convention the environment that works.
4103
+ # @param b [String] Compared account id. Must differ from `a` and use the same provider.
4104
+ # @param resource_type_id [String, nil] Compare one resource type only.
4105
+ # @param include_identity_fields [String, nil] Compare identity and timestamp fields too,
4106
+ # instead of filtering them out.
4107
+ # @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
4108
+ # @return [Hash] Parsed JSON, shaped as `EnvironmentDiffResponse` — see
4109
+ # `sig/infrawrench/sdk.rbs`.
4110
+ # @raise [Infrawrench::ApiError] On any non-2xx response.
4111
+ def get(
4112
+ a:,
4113
+ b:,
4114
+ org_id: nil,
4115
+ resource_type_id: nil,
4116
+ include_identity_fields: nil,
4117
+ request_options: nil
4118
+ )
4119
+ @transport.request(
4120
+ http_method: "GET",
4121
+ path: "/api/org/{orgId}/environment-diff",
4122
+ path_params: { "orgId" => org_id },
4123
+ query: {
4124
+ "a" => a,
4125
+ "b" => b,
4126
+ "resourceTypeId" => resource_type_id,
4127
+ "includeIdentityFields" => include_identity_fields
4128
+ },
4129
+ request_options: request_options
4130
+ )
4131
+ end
4132
+ end
4133
+
4066
4134
  # `client.expiring.settings`
4067
4135
  class ExpiringSettingsNamespace
4068
4136
  # @api private
@@ -9268,6 +9336,8 @@ module Infrawrench
9268
9336
  attr_reader :dns
9269
9337
  # @return [DockerNamespace] `client.docker`
9270
9338
  attr_reader :docker
9339
+ # @return [EnvironmentDiffNamespace] `client.environment_diff`
9340
+ attr_reader :environment_diff
9271
9341
  # @return [ExpiringNamespace] `client.expiring`
9272
9342
  attr_reader :expiring
9273
9343
  # @return [InvitationsNamespace] `client.invitations`
@@ -9368,6 +9438,7 @@ module Infrawrench
9368
9438
  @digest = DigestNamespace.new(@transport)
9369
9439
  @dns = DnsNamespace.new(@transport)
9370
9440
  @docker = DockerNamespace.new(@transport)
9441
+ @environment_diff = EnvironmentDiffNamespace.new(@transport)
9371
9442
  @expiring = ExpiringNamespace.new(@transport)
9372
9443
  @invitations = InvitationsNamespace.new(@transport)
9373
9444
  @kv = KvNamespace.new(@transport)
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.0.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.1.0 | MIT | Copyright (c) 2026 Infrawrench LLC
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.0.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.1.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.0.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.1.0 | MIT | Copyright (c) 2026 Infrawrench LLC
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.0.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.1.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.0.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.1.0 | MIT | Copyright (c) 2026 Infrawrench LLC
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.0.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.1.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -15,5 +15,5 @@
15
15
  # Kept in its own file so the gemspec can read the version without loading the
16
16
  # client — a gemspec that pulls in net/http is a gemspec that can fail to parse.
17
17
  module Infrawrench
18
- VERSION = "1.0.0"
18
+ VERSION = "1.1.0"
19
19
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # infrawrench-sdk v1.0.0 | MIT | Copyright (c) 2026 Infrawrench LLC
3
+ # infrawrench-sdk v1.1.0 | MIT | Copyright (c) 2026 Infrawrench LLC
4
4
  # https://github.com/Infrawrench/Infrawrench
5
5
  #
6
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.0.0).
6
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.1.0).
7
7
  #
8
8
  # DO NOT EDIT. Regenerate with:
9
9
  # pnpm --filter @infrawrench/web generate:sdk
@@ -1,7 +1,7 @@
1
- # infrawrench-sdk v1.0.0 | MIT | Copyright (c) 2026 Infrawrench LLC
1
+ # infrawrench-sdk v1.1.0 | MIT | Copyright (c) 2026 Infrawrench LLC
2
2
  # https://github.com/Infrawrench/Infrawrench
3
3
  #
4
- # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.0.0).
4
+ # Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.1.0).
5
5
  #
6
6
  # DO NOT EDIT. Regenerate with:
7
7
  # pnpm --filter @infrawrench/web generate:sdk
@@ -1424,6 +1424,77 @@ module Infrawrench
1424
1424
  ?"enumValues" => Array[String]
1425
1425
  }
1426
1426
 
1427
+ # Spec schema: `EnvironmentDiffEntry`.
1428
+ type environment_diff_entry = {
1429
+ "key" => String,
1430
+ "resourceTypeId" => String,
1431
+ "resourceTypeName" => String,
1432
+ "status" => "only-in-a" | "only-in-b" | "changed",
1433
+ "a" => environment_diff_resource_ref,
1434
+ "b" => environment_diff_resource_ref & untyped,
1435
+ "changes" => Array[environment_diff_field_change],
1436
+ "suppressedCount" => Integer
1437
+ }
1438
+
1439
+ # Spec schema: `EnvironmentDiffFieldChange`.
1440
+ type environment_diff_field_change = { "field" => String, ?"a" => untyped, ?"b" => untyped }
1441
+
1442
+ # Null when the resource exists only on B.
1443
+ #
1444
+ # Spec schema: `EnvironmentDiffResourceRef`.
1445
+ type environment_diff_resource_ref = {
1446
+ "resourceId" => String,
1447
+ "accountId" => String,
1448
+ "displayName" => String,
1449
+ "externalId" => String | nil
1450
+ }
1451
+ | nil
1452
+
1453
+ # Spec schema: `EnvironmentDiffResponse`.
1454
+ type environment_diff_response = {
1455
+ "a" => environment_diff_side_summary,
1456
+ "b" => environment_diff_side_summary,
1457
+ "pluginId" => plugin_id,
1458
+ "pluginName" => String,
1459
+ "types" => Array[environment_diff_type_summary],
1460
+ "entries" => Array[environment_diff_entry],
1461
+ "totals" => environment_diff_totals,
1462
+ "unavailableTypes" => Array[environment_diff_unavailable_type],
1463
+ "includeIdentityFields" => bool,
1464
+ "generatedAt" => String
1465
+ }
1466
+
1467
+ # Spec schema: `EnvironmentDiffSideSummary`.
1468
+ type environment_diff_side_summary = { "accountId" => String, "accountName" => String, "resourceCount" => Integer }
1469
+
1470
+ # Spec schema: `EnvironmentDiffTotals`.
1471
+ type environment_diff_totals = {
1472
+ "onlyInA" => Integer,
1473
+ "onlyInB" => Integer,
1474
+ "changed" => Integer,
1475
+ "identical" => Integer,
1476
+ "typesOnlyInA" => Integer,
1477
+ "typesOnlyInB" => Integer,
1478
+ "suppressedFieldChanges" => Integer
1479
+ }
1480
+
1481
+ # Spec schema: `EnvironmentDiffTypeSummary`.
1482
+ type environment_diff_type_summary = {
1483
+ "resourceTypeId" => String,
1484
+ "resourceTypeName" => String,
1485
+ "countA" => Integer,
1486
+ "countB" => Integer,
1487
+ "delta" => Integer,
1488
+ "onlyInA" => Integer,
1489
+ "onlyInB" => Integer,
1490
+ "changed" => Integer,
1491
+ "identical" => Integer,
1492
+ "missingFrom" => "a" | "b" | nil
1493
+ }
1494
+
1495
+ # Spec schema: `EnvironmentDiffUnavailableType`.
1496
+ type environment_diff_unavailable_type = { "resourceTypeId" => String, "resourceTypeName" => String, "message" => String }
1497
+
1427
1498
  # Spec schema: `Error`.
1428
1499
  type error = { "error" => String }
1429
1500
 
@@ -3749,6 +3820,7 @@ module Infrawrench
3749
3820
  | "expiring"
3750
3821
  | "posture"
3751
3822
  | "dns"
3823
+ | "environment-diff"
3752
3824
  | "ssh-fanout"
3753
3825
  | "metric-alerts"
3754
3826
  | "probes"
@@ -4225,6 +4297,11 @@ module Infrawrench
4225
4297
  def command: (body: docker_command_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> docker_command_response
4226
4298
  end
4227
4299
 
4300
+ class EnvironmentDiffNamespace
4301
+ def initialize: (Transport) -> void
4302
+ def get: (a: String, b: String, ?org_id: String?, ?resource_type_id: String?, ?include_identity_fields: "true" | "false"?, ?request_options: Hash[Symbol, untyped]?) -> environment_diff_response
4303
+ end
4304
+
4228
4305
  class ExpiringSettingsNamespace
4229
4306
  def initialize: (Transport) -> void
4230
4307
  def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> expiry_alert_settings
@@ -4648,6 +4725,7 @@ module Infrawrench
4648
4725
  attr_reader digest: DigestNamespace
4649
4726
  attr_reader dns: DnsNamespace
4650
4727
  attr_reader docker: DockerNamespace
4728
+ attr_reader environment_diff: EnvironmentDiffNamespace
4651
4729
  attr_reader expiring: ExpiringNamespace
4652
4730
  attr_reader invitations: InvitationsNamespace
4653
4731
  attr_reader kv: KvNamespace
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infrawrench-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infrawrench LLC
@@ -11,7 +11,7 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2026-08-08 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Generated Ruby client for the Infrawrench API (v1.0.0). Covers the published
14
+ description: Generated Ruby client for the Infrawrench API (v1.1.0). Covers the published
15
15
  API surface only — operations marked x-internal in the spec are not generated. No
16
16
  runtime dependencies.
17
17
  email:
@@ -58,5 +58,5 @@ requirements: []
58
58
  rubygems_version: 3.5.22
59
59
  signing_key:
60
60
  specification_version: 4
61
- summary: Generated Ruby client for the Infrawrench API (v1.0.0).
61
+ summary: Generated Ruby client for the Infrawrench API (v1.1.0).
62
62
  test_files: []