@37signals/fizzy 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.
@@ -52,22 +52,6 @@ export interface paths {
52
52
  patch?: never;
53
53
  trace?: never;
54
54
  };
55
- "/my/pins.json": {
56
- parameters: {
57
- query?: never;
58
- header?: never;
59
- path?: never;
60
- cookie?: never;
61
- };
62
- get: operations["ListPins"];
63
- put?: never;
64
- post?: never;
65
- delete?: never;
66
- options?: never;
67
- head?: never;
68
- patch?: never;
69
- trace?: never;
70
- };
71
55
  "/session.json": {
72
56
  parameters: {
73
57
  query?: never;
@@ -916,6 +900,38 @@ export interface paths {
916
900
  patch?: never;
917
901
  trace?: never;
918
902
  };
903
+ "/my/pins.json": {
904
+ parameters: {
905
+ query?: never;
906
+ header?: never;
907
+ path?: never;
908
+ cookie?: never;
909
+ };
910
+ get: operations["ListPins"];
911
+ put?: never;
912
+ post?: never;
913
+ delete?: never;
914
+ options?: never;
915
+ head?: never;
916
+ patch?: never;
917
+ trace?: never;
918
+ };
919
+ "/my/timezone.json": {
920
+ parameters: {
921
+ query?: never;
922
+ header?: never;
923
+ path?: never;
924
+ cookie?: never;
925
+ };
926
+ get?: never;
927
+ put?: never;
928
+ post?: never;
929
+ delete?: never;
930
+ options?: never;
931
+ head?: never;
932
+ patch: operations["UpdateMyTimezone"];
933
+ trace?: never;
934
+ };
919
935
  "/notifications.json": {
920
936
  parameters: {
921
937
  query?: never;
@@ -1683,6 +1699,9 @@ export interface components {
1683
1699
  /** Format: int32 */
1684
1700
  usage_limit?: number;
1685
1701
  };
1702
+ UpdateMyTimezoneRequestContent: {
1703
+ timezone_name: string;
1704
+ };
1686
1705
  UpdateNotificationSettingsRequestContent: {
1687
1706
  bundle_email_frequency?: string;
1688
1707
  };
@@ -2111,89 +2130,6 @@ export interface operations {
2111
2130
  };
2112
2131
  };
2113
2132
  };
2114
- ListPins: {
2115
- parameters: {
2116
- query?: never;
2117
- header?: never;
2118
- path?: never;
2119
- cookie?: never;
2120
- };
2121
- requestBody?: never;
2122
- responses: {
2123
- /** @description ListPins 200 response */
2124
- 200: {
2125
- headers: {
2126
- [name: string]: unknown;
2127
- };
2128
- content: {
2129
- "application/json": components["schemas"]["ListPinsResponseContent"];
2130
- };
2131
- };
2132
- /** @description BadRequestError 400 response */
2133
- 400: {
2134
- headers: {
2135
- [name: string]: unknown;
2136
- };
2137
- content: {
2138
- "application/json": components["schemas"]["BadRequestErrorResponseContent"];
2139
- };
2140
- };
2141
- /** @description UnauthorizedError 401 response */
2142
- 401: {
2143
- headers: {
2144
- [name: string]: unknown;
2145
- };
2146
- content: {
2147
- "application/json": components["schemas"]["UnauthorizedErrorResponseContent"];
2148
- };
2149
- };
2150
- /** @description ForbiddenError 403 response */
2151
- 403: {
2152
- headers: {
2153
- [name: string]: unknown;
2154
- };
2155
- content: {
2156
- "application/json": components["schemas"]["ForbiddenErrorResponseContent"];
2157
- };
2158
- };
2159
- /** @description NotFoundError 404 response */
2160
- 404: {
2161
- headers: {
2162
- [name: string]: unknown;
2163
- };
2164
- content: {
2165
- "application/json": components["schemas"]["NotFoundErrorResponseContent"];
2166
- };
2167
- };
2168
- /** @description ValidationError 422 response */
2169
- 422: {
2170
- headers: {
2171
- [name: string]: unknown;
2172
- };
2173
- content: {
2174
- "application/json": components["schemas"]["ValidationErrorResponseContent"];
2175
- };
2176
- };
2177
- /** @description RateLimitError 429 response */
2178
- 429: {
2179
- headers: {
2180
- [name: string]: unknown;
2181
- };
2182
- content: {
2183
- "application/json": components["schemas"]["RateLimitErrorResponseContent"];
2184
- };
2185
- };
2186
- /** @description InternalServerError 500 response */
2187
- 500: {
2188
- headers: {
2189
- [name: string]: unknown;
2190
- };
2191
- content: {
2192
- "application/json": components["schemas"]["InternalServerErrorResponseContent"];
2193
- };
2194
- };
2195
- };
2196
- };
2197
2133
  CreateSession: {
2198
2134
  parameters: {
2199
2135
  query?: never;
@@ -9369,6 +9305,174 @@ export interface operations {
9369
9305
  };
9370
9306
  };
9371
9307
  };
9308
+ ListPins: {
9309
+ parameters: {
9310
+ query?: never;
9311
+ header?: never;
9312
+ path?: never;
9313
+ cookie?: never;
9314
+ };
9315
+ requestBody?: never;
9316
+ responses: {
9317
+ /** @description ListPins 200 response */
9318
+ 200: {
9319
+ headers: {
9320
+ [name: string]: unknown;
9321
+ };
9322
+ content: {
9323
+ "application/json": components["schemas"]["ListPinsResponseContent"];
9324
+ };
9325
+ };
9326
+ /** @description BadRequestError 400 response */
9327
+ 400: {
9328
+ headers: {
9329
+ [name: string]: unknown;
9330
+ };
9331
+ content: {
9332
+ "application/json": components["schemas"]["BadRequestErrorResponseContent"];
9333
+ };
9334
+ };
9335
+ /** @description UnauthorizedError 401 response */
9336
+ 401: {
9337
+ headers: {
9338
+ [name: string]: unknown;
9339
+ };
9340
+ content: {
9341
+ "application/json": components["schemas"]["UnauthorizedErrorResponseContent"];
9342
+ };
9343
+ };
9344
+ /** @description ForbiddenError 403 response */
9345
+ 403: {
9346
+ headers: {
9347
+ [name: string]: unknown;
9348
+ };
9349
+ content: {
9350
+ "application/json": components["schemas"]["ForbiddenErrorResponseContent"];
9351
+ };
9352
+ };
9353
+ /** @description NotFoundError 404 response */
9354
+ 404: {
9355
+ headers: {
9356
+ [name: string]: unknown;
9357
+ };
9358
+ content: {
9359
+ "application/json": components["schemas"]["NotFoundErrorResponseContent"];
9360
+ };
9361
+ };
9362
+ /** @description ValidationError 422 response */
9363
+ 422: {
9364
+ headers: {
9365
+ [name: string]: unknown;
9366
+ };
9367
+ content: {
9368
+ "application/json": components["schemas"]["ValidationErrorResponseContent"];
9369
+ };
9370
+ };
9371
+ /** @description RateLimitError 429 response */
9372
+ 429: {
9373
+ headers: {
9374
+ [name: string]: unknown;
9375
+ };
9376
+ content: {
9377
+ "application/json": components["schemas"]["RateLimitErrorResponseContent"];
9378
+ };
9379
+ };
9380
+ /** @description InternalServerError 500 response */
9381
+ 500: {
9382
+ headers: {
9383
+ [name: string]: unknown;
9384
+ };
9385
+ content: {
9386
+ "application/json": components["schemas"]["InternalServerErrorResponseContent"];
9387
+ };
9388
+ };
9389
+ };
9390
+ };
9391
+ UpdateMyTimezone: {
9392
+ parameters: {
9393
+ query?: never;
9394
+ header?: never;
9395
+ path?: never;
9396
+ cookie?: never;
9397
+ };
9398
+ requestBody: {
9399
+ content: {
9400
+ "application/json": components["schemas"]["UpdateMyTimezoneRequestContent"];
9401
+ };
9402
+ };
9403
+ responses: {
9404
+ /** @description UpdateMyTimezone 204 response */
9405
+ 204: {
9406
+ headers: {
9407
+ [name: string]: unknown;
9408
+ };
9409
+ content?: never;
9410
+ };
9411
+ /** @description BadRequestError 400 response */
9412
+ 400: {
9413
+ headers: {
9414
+ [name: string]: unknown;
9415
+ };
9416
+ content: {
9417
+ "application/json": components["schemas"]["BadRequestErrorResponseContent"];
9418
+ };
9419
+ };
9420
+ /** @description UnauthorizedError 401 response */
9421
+ 401: {
9422
+ headers: {
9423
+ [name: string]: unknown;
9424
+ };
9425
+ content: {
9426
+ "application/json": components["schemas"]["UnauthorizedErrorResponseContent"];
9427
+ };
9428
+ };
9429
+ /** @description ForbiddenError 403 response */
9430
+ 403: {
9431
+ headers: {
9432
+ [name: string]: unknown;
9433
+ };
9434
+ content: {
9435
+ "application/json": components["schemas"]["ForbiddenErrorResponseContent"];
9436
+ };
9437
+ };
9438
+ /** @description NotFoundError 404 response */
9439
+ 404: {
9440
+ headers: {
9441
+ [name: string]: unknown;
9442
+ };
9443
+ content: {
9444
+ "application/json": components["schemas"]["NotFoundErrorResponseContent"];
9445
+ };
9446
+ };
9447
+ /** @description ValidationError 422 response */
9448
+ 422: {
9449
+ headers: {
9450
+ [name: string]: unknown;
9451
+ };
9452
+ content: {
9453
+ "application/json": components["schemas"]["ValidationErrorResponseContent"];
9454
+ };
9455
+ };
9456
+ /** @description RateLimitError 429 response */
9457
+ 429: {
9458
+ headers: {
9459
+ [name: string]: unknown;
9460
+ };
9461
+ content: {
9462
+ "application/json": components["schemas"]["RateLimitErrorResponseContent"];
9463
+ };
9464
+ };
9465
+ /** @description InternalServerError 500 response */
9466
+ 500: {
9467
+ headers: {
9468
+ [name: string]: unknown;
9469
+ };
9470
+ content: {
9471
+ "application/json": components["schemas"]["InternalServerErrorResponseContent"];
9472
+ };
9473
+ };
9474
+ };
9475
+ };
9372
9476
  ListNotifications: {
9373
9477
  parameters: {
9374
9478
  query?: {
@@ -7,10 +7,17 @@
7
7
  import { BaseService } from "../../services/base.js";
8
8
  import type { components } from "../schema.js";
9
9
  export type Identity = components["schemas"]["Identity"];
10
+ export interface UpdateMyTimezoneRequest {
11
+ timezoneName: string;
12
+ }
10
13
  export declare class IdentityService extends BaseService {
11
14
  /**
12
15
  * GetMyIdentity
13
16
  */
14
17
  me(): Promise<Identity>;
18
+ /**
19
+ * UpdateMyTimezone
20
+ */
21
+ updateTimezone(body: UpdateMyTimezoneRequest): Promise<void>;
15
22
  }
16
23
  //# sourceMappingURL=identity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../src/generated/services/identity.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAsB,MAAM,wBAAwB,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC;AAEzD,qBAAa,eAAgB,SAAQ,WAAW;IAE9C;;OAEG;IACG,EAAE,IAAI,OAAO,CAAC,QAAQ,CAAC;CAY9B"}
1
+ {"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../src/generated/services/identity.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAsB,MAAM,wBAAwB,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC;AAEzD,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,eAAgB,SAAQ,WAAW;IAE9C;;OAEG;IACG,EAAE,IAAI,OAAO,CAAC,QAAQ,CAAC;IAa7B;;OAEG;IACG,cAAc,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;CAanE"}
@@ -17,5 +17,18 @@ export class IdentityService extends BaseService {
17
17
  isMutation: false,
18
18
  }, () => this.client.GET("/my/identity.json", {}));
19
19
  }
20
+ /**
21
+ * UpdateMyTimezone
22
+ */
23
+ async updateTimezone(body) {
24
+ return this.request({
25
+ service: "My timezone",
26
+ operation: "UpdateMyTimezone",
27
+ resourceType: "my_timezone",
28
+ isMutation: true,
29
+ }, () => this.client.PATCH("/my/timezone.json", {
30
+ body: { timezone_name: body.timezoneName },
31
+ }));
32
+ }
20
33
  }
21
34
  //# sourceMappingURL=identity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"identity.js","sourceRoot":"","sources":["../../../src/generated/services/identity.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAsB,MAAM,wBAAwB,CAAC;AAKzE,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAE9C;;OAEG;IACH,KAAK,CAAC,EAAE;QACN,OAAO,IAAI,CAAC,OAAO,CACjB;YACE,OAAO,EAAE,aAAa;YACtB,SAAS,EAAE,eAAe;YAC1B,YAAY,EAAE,aAAa;YAC3B,UAAU,EAAE,KAAK;SAClB,EACD,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,mBAA4B,EAAE,EAC1C,CAAC,CACZ,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"identity.js","sourceRoot":"","sources":["../../../src/generated/services/identity.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAsB,MAAM,wBAAwB,CAAC;AASzE,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAE9C;;OAEG;IACH,KAAK,CAAC,EAAE;QACN,OAAO,IAAI,CAAC,OAAO,CACjB;YACE,OAAO,EAAE,aAAa;YACtB,SAAS,EAAE,eAAe;YAC1B,YAAY,EAAE,aAAa;YAC3B,UAAU,EAAE,KAAK;SAClB,EACD,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,mBAA4B,EAAE,EAC1C,CAAC,CACZ,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,cAAc,CAAC,IAA6B;QAChD,OAAO,IAAI,CAAC,OAAO,CACjB;YACE,OAAO,EAAE,aAAa;YACtB,SAAS,EAAE,kBAAkB;YAC7B,YAAY,EAAE,aAAa;YAC3B,UAAU,EAAE,IAAI;SACjB,EACD,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,mBAA4B,EAAE;YACpD,IAAI,EAAE,EAAE,aAAa,EAAE,IAAI,CAAC,YAAY,EAAW;SAC3C,CAAC,CACZ,CAAC;IACJ,CAAC;CACF"}
@@ -10,6 +10,10 @@ import type { components } from "../schema.js";
10
10
 
11
11
  export type Identity = components["schemas"]["Identity"];
12
12
 
13
+ export interface UpdateMyTimezoneRequest {
14
+ timezoneName: string;
15
+ }
16
+
13
17
  export class IdentityService extends BaseService {
14
18
 
15
19
  /**
@@ -27,4 +31,21 @@ export class IdentityService extends BaseService {
27
31
  } as never),
28
32
  );
29
33
  }
34
+
35
+ /**
36
+ * UpdateMyTimezone
37
+ */
38
+ async updateTimezone(body: UpdateMyTimezoneRequest): Promise<void> {
39
+ return this.request(
40
+ {
41
+ service: "My timezone",
42
+ operation: "UpdateMyTimezone",
43
+ resourceType: "my_timezone",
44
+ isMutation: true,
45
+ },
46
+ () => this.client.PATCH("/my/timezone.json" as never, {
47
+ body: { timezone_name: body.timezoneName } as never,
48
+ } as never),
49
+ );
50
+ }
30
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@37signals/fizzy",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "TypeScript SDK for the Fizzy API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -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-30T16:53:39.959Z",
4
+ "generated": "2026-06-01T02:39:54.159Z",
5
5
  "operations": {
6
6
  "ListAccessTokens": {
7
7
  "retry": {
@@ -47,18 +47,6 @@
47
47
  ]
48
48
  }
49
49
  },
50
- "ListPins": {
51
- "retry": {
52
- "maxAttempts": 3,
53
- "baseDelayMs": 1000,
54
- "backoff": "exponential",
55
- "retryOn": [
56
- 429,
57
- 500,
58
- 503
59
- ]
60
- }
61
- },
62
50
  "CreateSession": {
63
51
  "retry": {
64
52
  "maxAttempts": 1
@@ -1093,6 +1081,33 @@
1093
1081
  "natural": true
1094
1082
  }
1095
1083
  },
1084
+ "ListPins": {
1085
+ "retry": {
1086
+ "maxAttempts": 3,
1087
+ "baseDelayMs": 1000,
1088
+ "backoff": "exponential",
1089
+ "retryOn": [
1090
+ 429,
1091
+ 500,
1092
+ 503
1093
+ ]
1094
+ }
1095
+ },
1096
+ "UpdateMyTimezone": {
1097
+ "retry": {
1098
+ "maxAttempts": 3,
1099
+ "baseDelayMs": 1000,
1100
+ "backoff": "exponential",
1101
+ "retryOn": [
1102
+ 429,
1103
+ 500,
1104
+ 503
1105
+ ]
1106
+ },
1107
+ "idempotent": {
1108
+ "natural": true
1109
+ }
1110
+ },
1096
1111
  "ListNotifications": {
1097
1112
  "retry": {
1098
1113
  "maxAttempts": 3,