tripwire-server 0.3.0 → 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.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -7
  3. data/lib/tripwire/server/client.rb +75 -23
  4. data/lib/tripwire/server/gate_delivery.rb +27 -2
  5. data/lib/tripwire/server/version.rb +1 -1
  6. data/spec/README.md +4 -4
  7. data/spec/fixtures/api/gate/service-create.json +2 -2
  8. data/spec/fixtures/api/gate/service-detail.json +2 -2
  9. data/spec/fixtures/api/gate/service-disable.json +2 -2
  10. data/spec/fixtures/api/gate/service-update.json +2 -2
  11. data/spec/fixtures/api/gate/services-list.json +2 -2
  12. data/spec/fixtures/api/organizations/api-key-create.json +27 -0
  13. data/spec/fixtures/api/{teams → organizations}/api-key-list.json +10 -5
  14. data/spec/fixtures/api/{teams → organizations}/api-key-revoke.json +10 -5
  15. data/spec/fixtures/api/organizations/api-key-rotate.json +27 -0
  16. data/spec/fixtures/api/organizations/api-key-update.json +29 -0
  17. data/spec/fixtures/api/{teams/team-create.json → organizations/organization-create.json} +4 -4
  18. data/spec/fixtures/api/{teams/team-update.json → organizations/organization-update.json} +4 -4
  19. data/spec/fixtures/api/{teams/team.json → organizations/organization.json} +4 -4
  20. data/spec/fixtures/api/sessions/detail.json +65 -36
  21. data/spec/fixtures/gate-delivery/approved-webhook-payload.valid.json +0 -1
  22. data/spec/fixtures/gate-delivery/webhook-signature.json +3 -3
  23. data/spec/fixtures/manifest.json +20 -14
  24. data/spec/openapi.json +18131 -3220
  25. metadata +12 -11
  26. data/spec/fixtures/api/teams/api-key-create.json +0 -21
  27. data/spec/fixtures/api/teams/api-key-rotate.json +0 -21
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tripwire-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
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-04-05 00:00:00.000000000 Z
11
+ date: 2026-05-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Customer-facing Ruby SDK for Tripwire Sessions, Fingerprints, Teams,
13
+ description: Customer-facing Ruby SDK for Tripwire Sessions, Fingerprints, Organizations,
14
14
  and sealed token verification.
15
15
  email:
16
- - support@tripwire.com
16
+ - support@tripwirejs.com
17
17
  executables: []
18
18
  extensions: []
19
19
  extra_rdoc_files: []
@@ -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
- }