@remit/api-http-client 0.0.79 → 0.0.80

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.
package/dist/sdk.gen.js CHANGED
@@ -296,6 +296,9 @@ export const calendarEventOperationsCreateCalendarEvent = (options) => (options.
296
296
  * Same refusals and the same `If-Match` precondition as the update.
297
297
  * An event in a `Subscribed` collection is refused with 400
298
298
  * `read_only_calendar`, here and on the update.
299
+ *
300
+ * Answers 200 with the cancellations it queued: one per guest when the
301
+ * reader organizes the event, none otherwise.
299
302
  */
300
303
  export const calendarEventDetailOperationsDeleteCalendarEvent = (options) => (options.client ?? client).delete({
301
304
  security: [{ name: 'Authorization', type: 'apiKey' }],
@@ -424,6 +427,51 @@ export const calendarSuggestionActionOperationsReopenCalendarSuggestion = (optio
424
427
  url: '/calendar-suggestions/{suggestionId}/reopen',
425
428
  ...options
426
429
  });
430
+ /**
431
+ * Tasks due in a window, across every task collection the caller holds, in due order. Refused with 400 on the same window rules as the event listing.
432
+ */
433
+ export const calendarTaskOperationsListCalendarTasks = (options) => (options.client ?? client).get({
434
+ security: [{ name: 'Authorization', type: 'apiKey' }],
435
+ url: '/calendar-tasks',
436
+ ...options
437
+ });
438
+ /**
439
+ * Create a task. Refused with 400 `not_a_task_calendar` when `calendarId` names an event collection.
440
+ */
441
+ export const calendarTaskOperationsCreateCalendarTask = (options) => (options.client ?? client).post({
442
+ security: [{ name: 'Authorization', type: 'apiKey' }],
443
+ url: '/calendar-tasks',
444
+ ...options,
445
+ headers: {
446
+ 'Content-Type': 'application/json',
447
+ ...options.headers
448
+ }
449
+ });
450
+ /**
451
+ * Delete a task. Same `If-Match` precondition as the update.
452
+ */
453
+ export const calendarTaskDetailOperationsDeleteCalendarTask = (options) => (options.client ?? client).delete({
454
+ security: [{ name: 'Authorization', type: 'apiKey' }],
455
+ url: '/calendar-tasks/{calendarTaskId}',
456
+ ...options
457
+ });
458
+ export const calendarTaskDetailOperationsGetCalendarTask = (options) => (options.client ?? client).get({
459
+ security: [{ name: 'Authorization', type: 'apiKey' }],
460
+ url: '/calendar-tasks/{calendarTaskId}',
461
+ ...options
462
+ });
463
+ /**
464
+ * Update a task. `If-Match` makes the write conditional on the etag the caller read; a mismatch is 412.
465
+ */
466
+ export const calendarTaskDetailOperationsUpdateCalendarTask = (options) => (options.client ?? client).patch({
467
+ security: [{ name: 'Authorization', type: 'apiKey' }],
468
+ url: '/calendar-tasks/{calendarTaskId}',
469
+ ...options,
470
+ headers: {
471
+ 'Content-Type': 'application/json',
472
+ ...options.headers
473
+ }
474
+ });
427
475
  /**
428
476
  * List the caller's calendar collections. Provisions the account config's default collection when it has none, so a first read never comes back empty and no client has to know how a calendar gets made.
429
477
  */
@@ -783,6 +831,34 @@ export const outboxDetailOperationsSendOutboxMessage = (options) => (options.cli
783
831
  url: '/outbox/{outboxMessageId}/send',
784
832
  ...options
785
833
  });
834
+ /**
835
+ * Read the caller's settings.
836
+ */
837
+ export const userSettingsOperationsGetUserSettings = (options) => (options?.client ?? client).get({
838
+ security: [{ name: 'Authorization', type: 'apiKey' }],
839
+ url: '/settings',
840
+ ...options
841
+ });
842
+ /**
843
+ * Change the caller's settings. Answers with every setting as it now stands.
844
+ */
845
+ export const userSettingsOperationsUpdateUserSettings = (options) => (options.client ?? client).patch({
846
+ security: [{ name: 'Authorization', type: 'apiKey' }],
847
+ url: '/settings',
848
+ ...options,
849
+ headers: {
850
+ 'Content-Type': 'application/json',
851
+ ...options.headers
852
+ }
853
+ });
854
+ /**
855
+ * Clear the chosen default invitation sender. Invitations then go out from the account an event is on. Answers with every setting as it now stands.
856
+ */
857
+ export const userSettingsOperationsClearDefaultInvitationSender = (options) => (options?.client ?? client).delete({
858
+ security: [{ name: 'Authorization', type: 'apiKey' }],
859
+ url: '/settings/default-invitation-sender',
860
+ ...options
861
+ });
786
862
  /**
787
863
  * Read the self-update resource: the running version, the outcome of the most recent manifest check, and the state of the current or last run. With `refresh=true`, records a check request on the control volume for the updater to pick up and answers with the stored state as it stands; the caller watches `check.lastCheckedAt` for the updater's answer. Owner-only, and absent (404) unless a manifest URL is configured (RFC 037 D7, D8).
788
864
  */