tripwire-server 0.3.1 → 0.3.2
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 +4 -4
- data/README.md +27 -7
- data/lib/tripwire/server/client.rb +75 -23
- data/lib/tripwire/server/gate_delivery.rb +27 -2
- data/lib/tripwire/server/version.rb +1 -1
- data/spec/README.md +4 -4
- data/spec/fixtures/api/gate/service-create.json +2 -2
- data/spec/fixtures/api/gate/service-detail.json +2 -2
- data/spec/fixtures/api/gate/service-disable.json +2 -2
- data/spec/fixtures/api/gate/service-update.json +2 -2
- data/spec/fixtures/api/gate/services-list.json +2 -2
- data/spec/fixtures/api/organizations/api-key-create.json +27 -0
- data/spec/fixtures/api/{teams → organizations}/api-key-list.json +10 -5
- data/spec/fixtures/api/{teams → organizations}/api-key-revoke.json +10 -5
- data/spec/fixtures/api/organizations/api-key-rotate.json +27 -0
- data/spec/fixtures/api/organizations/api-key-update.json +29 -0
- data/spec/fixtures/api/{teams/team-create.json → organizations/organization-create.json} +4 -4
- data/spec/fixtures/api/{teams/team-update.json → organizations/organization-update.json} +4 -4
- data/spec/fixtures/api/{teams/team.json → organizations/organization.json} +4 -4
- data/spec/fixtures/api/sessions/detail.json +45 -35
- data/spec/fixtures/gate-delivery/approved-webhook-payload.valid.json +0 -1
- data/spec/fixtures/gate-delivery/webhook-signature.json +3 -3
- data/spec/fixtures/manifest.json +20 -14
- data/spec/openapi.json +12099 -5351
- metadata +11 -10
- data/spec/fixtures/api/teams/api-key-create.json +0 -21
- data/spec/fixtures/api/teams/api-key-rotate.json +0 -21
metadata
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tripwire-server
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ABXY Labs
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-05-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description: Customer-facing Ruby SDK for Tripwire Sessions, Fingerprints,
|
|
13
|
+
description: Customer-facing Ruby SDK for Tripwire Sessions, Fingerprints, Organizations,
|
|
14
14
|
and sealed token verification.
|
|
15
15
|
email:
|
|
16
16
|
- support@tripwirejs.com
|
|
@@ -46,15 +46,16 @@ files:
|
|
|
46
46
|
- spec/fixtures/api/gate/session-ack.json
|
|
47
47
|
- spec/fixtures/api/gate/session-create.json
|
|
48
48
|
- spec/fixtures/api/gate/session-poll.json
|
|
49
|
+
- spec/fixtures/api/organizations/api-key-create.json
|
|
50
|
+
- spec/fixtures/api/organizations/api-key-list.json
|
|
51
|
+
- spec/fixtures/api/organizations/api-key-revoke.json
|
|
52
|
+
- spec/fixtures/api/organizations/api-key-rotate.json
|
|
53
|
+
- spec/fixtures/api/organizations/api-key-update.json
|
|
54
|
+
- spec/fixtures/api/organizations/organization-create.json
|
|
55
|
+
- spec/fixtures/api/organizations/organization-update.json
|
|
56
|
+
- spec/fixtures/api/organizations/organization.json
|
|
49
57
|
- spec/fixtures/api/sessions/detail.json
|
|
50
58
|
- spec/fixtures/api/sessions/list.json
|
|
51
|
-
- spec/fixtures/api/teams/api-key-create.json
|
|
52
|
-
- spec/fixtures/api/teams/api-key-list.json
|
|
53
|
-
- spec/fixtures/api/teams/api-key-revoke.json
|
|
54
|
-
- spec/fixtures/api/teams/api-key-rotate.json
|
|
55
|
-
- spec/fixtures/api/teams/team-create.json
|
|
56
|
-
- spec/fixtures/api/teams/team-update.json
|
|
57
|
-
- spec/fixtures/api/teams/team.json
|
|
58
59
|
- spec/fixtures/errors/invalid-api-key.json
|
|
59
60
|
- spec/fixtures/errors/missing-api-key.json
|
|
60
61
|
- spec/fixtures/errors/not-found.json
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"data": {
|
|
3
|
-
"object": "api_key",
|
|
4
|
-
"id": "key_6789abcdefghjkmnpqrstvwxyz",
|
|
5
|
-
"public_key": "pk_live_example",
|
|
6
|
-
"name": "Production",
|
|
7
|
-
"environment": "live",
|
|
8
|
-
"allowed_origins": [
|
|
9
|
-
"https://example.com"
|
|
10
|
-
],
|
|
11
|
-
"rate_limit": 600,
|
|
12
|
-
"status": "active",
|
|
13
|
-
"created_at": "2026-03-24T19:00:00.000Z",
|
|
14
|
-
"rotated_at": null,
|
|
15
|
-
"revoked_at": null,
|
|
16
|
-
"secret_key": "sk_live_example"
|
|
17
|
-
},
|
|
18
|
-
"meta": {
|
|
19
|
-
"request_id": "req_0123456789abcdef0123456789abcdef"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"data": {
|
|
3
|
-
"object": "api_key",
|
|
4
|
-
"id": "key_789abcdefghjkmnpqrstvwxyz0",
|
|
5
|
-
"public_key": "pk_live_rotated",
|
|
6
|
-
"name": "Production",
|
|
7
|
-
"environment": "live",
|
|
8
|
-
"allowed_origins": [
|
|
9
|
-
"https://example.com"
|
|
10
|
-
],
|
|
11
|
-
"rate_limit": 600,
|
|
12
|
-
"status": "active",
|
|
13
|
-
"created_at": "2026-03-24T19:00:00.000Z",
|
|
14
|
-
"rotated_at": "2026-03-24T20:00:00.000Z",
|
|
15
|
-
"revoked_at": null,
|
|
16
|
-
"secret_key": "sk_live_rotated"
|
|
17
|
-
},
|
|
18
|
-
"meta": {
|
|
19
|
-
"request_id": "req_0123456789abcdef0123456789abcdef"
|
|
20
|
-
}
|
|
21
|
-
}
|