@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.
@@ -409,103 +409,6 @@
409
409
  }
410
410
  }
411
411
  },
412
- "/my/pins.json": {
413
- "get": {
414
- "operationId": "ListPins",
415
- "responses": {
416
- "200": {
417
- "description": "ListPins 200 response",
418
- "content": {
419
- "application/json": {
420
- "schema": {
421
- "$ref": "#/components/schemas/ListPinsResponseContent"
422
- }
423
- }
424
- }
425
- },
426
- "400": {
427
- "description": "BadRequestError 400 response",
428
- "content": {
429
- "application/json": {
430
- "schema": {
431
- "$ref": "#/components/schemas/BadRequestErrorResponseContent"
432
- }
433
- }
434
- }
435
- },
436
- "401": {
437
- "description": "UnauthorizedError 401 response",
438
- "content": {
439
- "application/json": {
440
- "schema": {
441
- "$ref": "#/components/schemas/UnauthorizedErrorResponseContent"
442
- }
443
- }
444
- }
445
- },
446
- "403": {
447
- "description": "ForbiddenError 403 response",
448
- "content": {
449
- "application/json": {
450
- "schema": {
451
- "$ref": "#/components/schemas/ForbiddenErrorResponseContent"
452
- }
453
- }
454
- }
455
- },
456
- "404": {
457
- "description": "NotFoundError 404 response",
458
- "content": {
459
- "application/json": {
460
- "schema": {
461
- "$ref": "#/components/schemas/NotFoundErrorResponseContent"
462
- }
463
- }
464
- }
465
- },
466
- "422": {
467
- "description": "ValidationError 422 response",
468
- "content": {
469
- "application/json": {
470
- "schema": {
471
- "$ref": "#/components/schemas/ValidationErrorResponseContent"
472
- }
473
- }
474
- }
475
- },
476
- "429": {
477
- "description": "RateLimitError 429 response",
478
- "content": {
479
- "application/json": {
480
- "schema": {
481
- "$ref": "#/components/schemas/RateLimitErrorResponseContent"
482
- }
483
- }
484
- }
485
- },
486
- "500": {
487
- "description": "InternalServerError 500 response",
488
- "content": {
489
- "application/json": {
490
- "schema": {
491
- "$ref": "#/components/schemas/InternalServerErrorResponseContent"
492
- }
493
- }
494
- }
495
- }
496
- },
497
- "x-fizzy-retry": {
498
- "maxAttempts": 3,
499
- "baseDelayMs": 1000,
500
- "backoff": "exponential",
501
- "retryOn": [
502
- 429,
503
- 500,
504
- 503
505
- ]
506
- }
507
- }
508
- },
509
412
  "/session.json": {
510
413
  "delete": {
511
414
  "operationId": "DestroySession",
@@ -9643,6 +9546,208 @@
9643
9546
  }
9644
9547
  }
9645
9548
  },
9549
+ "/my/pins.json": {
9550
+ "get": {
9551
+ "operationId": "ListPins",
9552
+ "parameters": [],
9553
+ "responses": {
9554
+ "200": {
9555
+ "description": "ListPins 200 response",
9556
+ "content": {
9557
+ "application/json": {
9558
+ "schema": {
9559
+ "$ref": "#/components/schemas/ListPinsResponseContent"
9560
+ }
9561
+ }
9562
+ }
9563
+ },
9564
+ "400": {
9565
+ "description": "BadRequestError 400 response",
9566
+ "content": {
9567
+ "application/json": {
9568
+ "schema": {
9569
+ "$ref": "#/components/schemas/BadRequestErrorResponseContent"
9570
+ }
9571
+ }
9572
+ }
9573
+ },
9574
+ "401": {
9575
+ "description": "UnauthorizedError 401 response",
9576
+ "content": {
9577
+ "application/json": {
9578
+ "schema": {
9579
+ "$ref": "#/components/schemas/UnauthorizedErrorResponseContent"
9580
+ }
9581
+ }
9582
+ }
9583
+ },
9584
+ "403": {
9585
+ "description": "ForbiddenError 403 response",
9586
+ "content": {
9587
+ "application/json": {
9588
+ "schema": {
9589
+ "$ref": "#/components/schemas/ForbiddenErrorResponseContent"
9590
+ }
9591
+ }
9592
+ }
9593
+ },
9594
+ "404": {
9595
+ "description": "NotFoundError 404 response",
9596
+ "content": {
9597
+ "application/json": {
9598
+ "schema": {
9599
+ "$ref": "#/components/schemas/NotFoundErrorResponseContent"
9600
+ }
9601
+ }
9602
+ }
9603
+ },
9604
+ "422": {
9605
+ "description": "ValidationError 422 response",
9606
+ "content": {
9607
+ "application/json": {
9608
+ "schema": {
9609
+ "$ref": "#/components/schemas/ValidationErrorResponseContent"
9610
+ }
9611
+ }
9612
+ }
9613
+ },
9614
+ "429": {
9615
+ "description": "RateLimitError 429 response",
9616
+ "content": {
9617
+ "application/json": {
9618
+ "schema": {
9619
+ "$ref": "#/components/schemas/RateLimitErrorResponseContent"
9620
+ }
9621
+ }
9622
+ }
9623
+ },
9624
+ "500": {
9625
+ "description": "InternalServerError 500 response",
9626
+ "content": {
9627
+ "application/json": {
9628
+ "schema": {
9629
+ "$ref": "#/components/schemas/InternalServerErrorResponseContent"
9630
+ }
9631
+ }
9632
+ }
9633
+ }
9634
+ },
9635
+ "x-fizzy-retry": {
9636
+ "maxAttempts": 3,
9637
+ "baseDelayMs": 1000,
9638
+ "backoff": "exponential",
9639
+ "retryOn": [
9640
+ 429,
9641
+ 500,
9642
+ 503
9643
+ ]
9644
+ }
9645
+ }
9646
+ },
9647
+ "/my/timezone.json": {
9648
+ "patch": {
9649
+ "operationId": "UpdateMyTimezone",
9650
+ "requestBody": {
9651
+ "content": {
9652
+ "application/json": {
9653
+ "schema": {
9654
+ "$ref": "#/components/schemas/UpdateMyTimezoneRequestContent"
9655
+ }
9656
+ }
9657
+ },
9658
+ "required": true
9659
+ },
9660
+ "parameters": [],
9661
+ "responses": {
9662
+ "204": {
9663
+ "description": "UpdateMyTimezone 204 response"
9664
+ },
9665
+ "400": {
9666
+ "description": "BadRequestError 400 response",
9667
+ "content": {
9668
+ "application/json": {
9669
+ "schema": {
9670
+ "$ref": "#/components/schemas/BadRequestErrorResponseContent"
9671
+ }
9672
+ }
9673
+ }
9674
+ },
9675
+ "401": {
9676
+ "description": "UnauthorizedError 401 response",
9677
+ "content": {
9678
+ "application/json": {
9679
+ "schema": {
9680
+ "$ref": "#/components/schemas/UnauthorizedErrorResponseContent"
9681
+ }
9682
+ }
9683
+ }
9684
+ },
9685
+ "403": {
9686
+ "description": "ForbiddenError 403 response",
9687
+ "content": {
9688
+ "application/json": {
9689
+ "schema": {
9690
+ "$ref": "#/components/schemas/ForbiddenErrorResponseContent"
9691
+ }
9692
+ }
9693
+ }
9694
+ },
9695
+ "404": {
9696
+ "description": "NotFoundError 404 response",
9697
+ "content": {
9698
+ "application/json": {
9699
+ "schema": {
9700
+ "$ref": "#/components/schemas/NotFoundErrorResponseContent"
9701
+ }
9702
+ }
9703
+ }
9704
+ },
9705
+ "422": {
9706
+ "description": "ValidationError 422 response",
9707
+ "content": {
9708
+ "application/json": {
9709
+ "schema": {
9710
+ "$ref": "#/components/schemas/ValidationErrorResponseContent"
9711
+ }
9712
+ }
9713
+ }
9714
+ },
9715
+ "429": {
9716
+ "description": "RateLimitError 429 response",
9717
+ "content": {
9718
+ "application/json": {
9719
+ "schema": {
9720
+ "$ref": "#/components/schemas/RateLimitErrorResponseContent"
9721
+ }
9722
+ }
9723
+ }
9724
+ },
9725
+ "500": {
9726
+ "description": "InternalServerError 500 response",
9727
+ "content": {
9728
+ "application/json": {
9729
+ "schema": {
9730
+ "$ref": "#/components/schemas/InternalServerErrorResponseContent"
9731
+ }
9732
+ }
9733
+ }
9734
+ }
9735
+ },
9736
+ "x-fizzy-idempotent": {
9737
+ "natural": true
9738
+ },
9739
+ "x-fizzy-retry": {
9740
+ "maxAttempts": 3,
9741
+ "baseDelayMs": 1000,
9742
+ "backoff": "exponential",
9743
+ "retryOn": [
9744
+ 429,
9745
+ 500,
9746
+ 503
9747
+ ]
9748
+ }
9749
+ }
9750
+ },
9646
9751
  "/notifications.json": {
9647
9752
  "get": {
9648
9753
  "operationId": "ListNotifications",
@@ -13643,6 +13748,17 @@
13643
13748
  }
13644
13749
  }
13645
13750
  },
13751
+ "UpdateMyTimezoneRequestContent": {
13752
+ "type": "object",
13753
+ "properties": {
13754
+ "timezone_name": {
13755
+ "type": "string"
13756
+ }
13757
+ },
13758
+ "required": [
13759
+ "timezone_name"
13760
+ ]
13761
+ },
13646
13762
  "UpdateNotificationSettingsRequestContent": {
13647
13763
  "type": "object",
13648
13764
  "properties": {
@@ -16,6 +16,7 @@ export const PATH_TO_OPERATION: Record<string, string> = {
16
16
  "GET:/{accountId}/account/settings.json": "GetAccountSettings",
17
17
  "PATCH:/{accountId}/account/settings.json": "UpdateAccountSettings",
18
18
  "GET:/{accountId}/activities.json": "ListActivities",
19
+ "PATCH:/{accountId}/my/timezone.json": "UpdateMyTimezone",
19
20
  "POST:/{accountId}/rails/active_storage/direct_uploads": "CreateDirectUpload",
20
21
  "GET:/{accountId}/search.json": "SearchCards",
21
22
  "GET:/my/access_tokens.json": "ListAccessTokens",
@@ -111,6 +112,9 @@ export const PATH_TO_OPERATION: Record<string, string> = {
111
112
  "POST:/{accountId}/devices": "RegisterDevice",
112
113
  "DELETE:/{accountId}/devices/{deviceToken}": "UnregisterDevice",
113
114
 
115
+ // Pins
116
+ "GET:/{accountId}/my/pins.json": "ListPins",
117
+
114
118
  // Notifications
115
119
  "GET:/{accountId}/notifications.json": "ListNotifications",
116
120
  "DELETE:/{accountId}/notifications/{notificationId}/reading.json": "UnreadNotification",
@@ -137,7 +141,4 @@ export const PATH_TO_OPERATION: Record<string, string> = {
137
141
  "DELETE:/{accountId}/users/{userId}/push_subscriptions/{pushSubscriptionId}": "DeletePushSubscription",
138
142
  "PATCH:/{accountId}/users/{userId}/role.json": "UpdateUserRole",
139
143
  "POST:/users/joins.json": "CompleteJoin",
140
-
141
- // Pins
142
- "GET:/my/pins.json": "ListPins",
143
144
  };
@@ -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?: {