fizzy-sdk 0.2.1 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fabd608c8ee9812080cb4ce96afbbc99c7453d63a03339edc776eeefc209191
4
- data.tar.gz: '038e40db641720fd7049f76883e2e06a6cdb630910621706ece8cb24c77aa330'
3
+ metadata.gz: 4148bf948dbe4f116778c655d10b149a8eead481f24e2675dee2fbca8a1fb76d
4
+ data.tar.gz: 37d11604378a170e05525485628132940890259d4e486f91fcf1b78e04807d78
5
5
  SHA512:
6
- metadata.gz: '08482c0013d7c8c7a6e952605628ce25217a5d874defbd2f5faf4dad7bd86ee91e31b2ca9601bf6d7d729706ef8f05cc6e9518e3a037b6d58585b8a424c2cb39'
7
- data.tar.gz: ac29cc10c1a24c2b75acbaa27dbf2f9a8d4aadc2332a15b28f7c2030cbbaf79f14936f96ab91f1d819f56cf614da76d9eb38cab045e3edc0ae6c0f8ad3d7554b
6
+ metadata.gz: a5fc5660d84ce0a0dd47ea03d9b57ff8d86399b8a44680f0a44264dcbf040f8f29cd45aced7fcff393adb4c01a293b47745928f7c11f1f5833aec422960c4dbd
7
+ data.tar.gz: d12fee37e5bad0d5acac1bc0995d1098a0e96bc397eca1784e6f0bcf3fc755abf8e3f1585e57823ef4719c16d912a3fbcbbad258847c463d935f7667c2e07322
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://fizzy.do/schemas/sdk-metadata.json",
3
3
  "version": "1.0.0",
4
- "generated": "2026-04-30T17:59:20Z",
4
+ "generated": "2026-06-01T02:39:56Z",
5
5
  "operations": {
6
6
  "ListAccessTokens": {
7
7
  "retry": {
@@ -50,18 +50,6 @@
50
50
  ]
51
51
  }
52
52
  },
53
- "ListPins": {
54
- "retry": {
55
- "maxAttempts": 3,
56
- "baseDelayMs": 1000,
57
- "backoff": "exponential",
58
- "retryOn": [
59
- 429,
60
- 500,
61
- 503
62
- ]
63
- }
64
- },
65
53
  "CreateSession": {
66
54
  "retry": {
67
55
  "maxAttempts": 1,
@@ -1153,6 +1141,33 @@
1153
1141
  "natural": true
1154
1142
  }
1155
1143
  },
1144
+ "ListPins": {
1145
+ "retry": {
1146
+ "maxAttempts": 3,
1147
+ "baseDelayMs": 1000,
1148
+ "backoff": "exponential",
1149
+ "retryOn": [
1150
+ 429,
1151
+ 500,
1152
+ 503
1153
+ ]
1154
+ }
1155
+ },
1156
+ "UpdateMyTimezone": {
1157
+ "retry": {
1158
+ "maxAttempts": 3,
1159
+ "baseDelayMs": 1000,
1160
+ "backoff": "exponential",
1161
+ "retryOn": [
1162
+ 429,
1163
+ 500,
1164
+ 503
1165
+ ]
1166
+ },
1167
+ "idempotent": {
1168
+ "natural": true
1169
+ }
1170
+ },
1156
1171
  "ListNotifications": {
1157
1172
  "retry": {
1158
1173
  "maxAttempts": 3,
@@ -14,6 +14,17 @@ module Fizzy
14
14
  http_get("/my/identity.json").json
15
15
  end
16
16
  end
17
+
18
+ # update_timezone operation
19
+ # @param account_id [String] account id ID
20
+ # @param timezone_name [String] timezone name
21
+ # @return [void]
22
+ def update_timezone(account_id:, timezone_name:)
23
+ with_operation(service: "identity", operation: "UpdateMyTimezone", is_mutation: true, resource_id: account_id) do
24
+ http_patch("/#{account_id}/my/timezone.json", body: compact_params(timezone_name: timezone_name))
25
+ nil
26
+ end
27
+ end
17
28
  end
18
29
  end
19
30
  end
@@ -8,10 +8,11 @@ module Fizzy
8
8
  class PinsService < BaseService
9
9
 
10
10
  # list operation
11
+ # @param account_id [String] account id ID
11
12
  # @return [Hash] response data
12
- def list()
13
- with_operation(service: "pins", operation: "ListPins", is_mutation: false) do
14
- http_get("/my/pins.json").json
13
+ def list(account_id:)
14
+ with_operation(service: "pins", operation: "ListPins", is_mutation: false, resource_id: account_id) do
15
+ http_get("/#{account_id}/my/pins.json").json
15
16
  end
16
17
  end
17
18
  end
@@ -1039,6 +1039,16 @@ module Fizzy
1039
1039
  end
1040
1040
  end
1041
1041
 
1042
+ # @generated
1043
+ UpdateMyTimezoneRequestContent = Data.define(:timezone_name) do
1044
+ # @param data [Hash] raw JSON response
1045
+ def self.from_json(data)
1046
+ new(
1047
+ timezone_name: data["timezone_name"]
1048
+ )
1049
+ end
1050
+ end
1051
+
1042
1052
  # @generated
1043
1053
  UpdateNotificationSettingsRequestContent = Data.define(:bundle_email_frequency) do
1044
1054
  # @param data [Hash] raw JSON response
data/lib/fizzy/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fizzy
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  API_VERSION = "2026-03-01"
6
6
  end
@@ -44,6 +44,7 @@ class ServiceGenerator
44
44
  # Method name overrides for Fizzy operations
45
45
  METHOD_NAME_OVERRIDES = {
46
46
  'GetMyIdentity' => 'me',
47
+ 'UpdateMyTimezone' => 'update_timezone',
47
48
  'ListCardReactions' => 'list_for_card',
48
49
  'CreateCardReaction' => 'create_for_card',
49
50
  'DeleteCardReaction' => 'delete_for_card',
@@ -186,6 +187,7 @@ class ServiceGenerator
186
187
  # Derive service name from operationId when tags are absent.
187
188
  OPERATION_SERVICE_OVERRIDES = {
188
189
  'GetMyIdentity' => 'Identity',
190
+ 'UpdateMyTimezone' => 'Identity',
189
191
  'CreateDirectUpload' => 'Uploads',
190
192
  'RedeemMagicLink' => 'Sessions',
191
193
  'CompleteJoin' => 'Sessions',
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fizzy-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Basecamp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-30 00:00:00.000000000 Z
11
+ date: 2026-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday