@pitcher/js-api 1.21.0-beta.8 → 1.21.0

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 (177) hide show
  1. package/js-api.esm.js +274 -92
  2. package/js-api.esm.js.map +1 -1
  3. package/js-api.umd.min.js +9 -9
  4. package/js-api.umd.min.js.map +1 -1
  5. package/lib/api/canvases/canvases.queries.d.ts +5 -5
  6. package/lib/apps/browser/stores/api.d.ts +215 -84
  7. package/lib/apps/browser/stores/app.d.ts +7 -26
  8. package/lib/apps/browser/stores/upload.d.ts +34 -24
  9. package/lib/apps/browser/util/file.d.ts +2 -2
  10. package/lib/apps/canvas-builder/composables/useCanvas.d.ts +550 -460
  11. package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +86 -74
  12. package/lib/apps/canvas-builder/composables/useCanvasHooks.d.ts +4 -4
  13. package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +3 -3
  14. package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +3 -3
  15. package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +24 -17
  16. package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +2 -2
  17. package/lib/apps/canvas-builder/composables/useCollapsibles.d.ts +3 -3
  18. package/lib/apps/canvas-builder/composables/useComponentPermissions.d.ts +2 -2
  19. package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +6 -4
  20. package/lib/apps/canvas-builder/composables/useInstalledEmbeddables.d.ts +4 -1
  21. package/lib/apps/canvas-builder/composables/useRecommendations.d.ts +4 -4
  22. package/lib/apps/canvas-builder/composables/useSectionPopularity.d.ts +2 -2
  23. package/lib/apps/canvas-builder/types/canvas.d.ts +19 -18
  24. package/lib/apps/canvas-builder/types/recommendations.types.d.ts +3 -3
  25. package/lib/apps/canvas-builder/util/canvas.util.d.ts +5 -4
  26. package/lib/apps/content-selector/appTypes.d.ts +1 -0
  27. package/lib/apps/content-selector/stores/app.d.ts +8 -1
  28. package/lib/components/CFileViewer/CFileViewer.use.d.ts +2 -4
  29. package/lib/components/CFileViewer/CFileViewerFullScreen.use.d.ts +1 -1
  30. package/lib/components/canvases/CanvasesManagementBulk.use.d.ts +5 -5
  31. package/lib/components/filters/filter.util.d.ts +1 -1
  32. package/lib/components/savedCanvases/CSavedCanvasesManagementShareCanvas.use.d.ts +2 -2
  33. package/lib/composables/instanceTagsActions.use.d.ts +14 -0
  34. package/lib/composables/recentFiles.use.d.ts +1 -1
  35. package/lib/composables/suggestedTags.use.d.ts +3 -0
  36. package/lib/composables/tableColumnsSettings.use.d.ts +25 -0
  37. package/lib/composables/useCanvasOverlay.d.ts +20 -0
  38. package/lib/composables/useConfirmation.d.ts +1 -0
  39. package/lib/composables/useElementHeightResize.d.ts +5 -0
  40. package/lib/composables/useFiles.d.ts +11 -0
  41. package/lib/constants/pitcherSettings.const.d.ts +4 -0
  42. package/lib/main.lib.d.ts +27 -20
  43. package/lib/sdk/api/HighLevelApi.d.ts +106 -12
  44. package/lib/sdk/api/modules/admin/canvas.admin.d.ts +31 -15
  45. package/lib/sdk/api/modules/admin/env.admin.d.ts +3 -2
  46. package/lib/sdk/api/modules/admin/files.admin.d.ts +43 -4
  47. package/lib/sdk/api/modules/admin/index.d.ts +52 -5
  48. package/lib/sdk/api/modules/admin/metadataTemplates.admin.d.ts +1 -2
  49. package/lib/sdk/api/modules/admin/types.admin.d.ts +117 -3
  50. package/lib/sdk/api/modules/canvas.d.ts +12 -14
  51. package/lib/sdk/api/modules/dsr/env.dsr.d.ts +4 -3
  52. package/lib/sdk/api/modules/dsr/index.d.ts +14 -3
  53. package/lib/sdk/api/modules/dsr/loading.dsr.d.ts +6 -0
  54. package/lib/sdk/api/modules/env.d.ts +16 -0
  55. package/lib/sdk/api/modules/favorites.d.ts +9 -0
  56. package/lib/sdk/api/modules/feedback.d.ts +3 -0
  57. package/lib/sdk/api/modules/files.d.ts +3 -3
  58. package/lib/sdk/api/modules/folders.d.ts +29 -0
  59. package/lib/sdk/api/modules/open.d.ts +6 -0
  60. package/lib/sdk/api/modules/sync.d.ts +1 -2
  61. package/lib/sdk/api/modules/ui/app-errors.ui.d.ts +12 -0
  62. package/lib/sdk/api/modules/ui/canvas.ui.d.ts +75 -2
  63. package/lib/sdk/api/modules/ui/content.ui.d.ts +50 -0
  64. package/lib/sdk/api/modules/ui/index.d.ts +149 -13
  65. package/lib/sdk/api/modules/ui/loading.ui.d.ts +15 -0
  66. package/lib/sdk/api/modules/ui/location.ui.d.ts +17 -0
  67. package/lib/sdk/api/modules/ui/post-call.ui.d.ts +25 -0
  68. package/lib/sdk/api/modules/ui/types.ui.d.ts +69 -6
  69. package/lib/sdk/api/modules/users.d.ts +4 -0
  70. package/lib/sdk/interfaces.d.ts +119 -2
  71. package/lib/sdk/main.d.ts +275 -141
  72. package/lib/sdk/payload.types.d.ts +134 -2
  73. package/lib/theme/light.d.ts +12 -0
  74. package/lib/types/app.d.ts +11 -0
  75. package/lib/types/call.d.ts +2 -2
  76. package/lib/types/files.d.ts +27 -1
  77. package/lib/types/filter.d.ts +5 -0
  78. package/lib/types/instanceSettings.types.d.ts +8 -2
  79. package/lib/types/launchDarkly.types.d.ts +4 -4
  80. package/lib/types/organizationSettings.types.d.ts +4 -0
  81. package/lib/types/recentFiles.types.d.ts +4 -1
  82. package/lib/types/users.d.ts +13 -0
  83. package/lib/util/fullscreen.util.d.ts +1 -1
  84. package/lib/util/string.d.ts +1 -0
  85. package/package.json +1 -1
  86. package/types/openapi/index.d.ts +23 -17
  87. package/types/openapi/models/AccessTypeEnum.d.ts +3 -1
  88. package/types/openapi/models/App.d.ts +1 -0
  89. package/types/openapi/models/AppRelease.d.ts +1 -0
  90. package/types/openapi/models/AppsDBEntry.d.ts +4 -0
  91. package/types/openapi/models/AppsDBEntryRequest.d.ts +3 -0
  92. package/types/openapi/models/Canvas.d.ts +10 -15
  93. package/types/openapi/models/CanvasCreate.d.ts +14 -12
  94. package/types/openapi/models/CanvasCreateRequest.d.ts +6 -5
  95. package/types/openapi/models/CanvasRecommendedFile.d.ts +6 -0
  96. package/types/openapi/models/CanvasRetrieve.d.ts +15 -13
  97. package/types/openapi/models/CanvasSection.d.ts +5 -2
  98. package/types/openapi/models/CanvasUpdate.d.ts +14 -12
  99. package/types/openapi/models/CanvasUpdateRequest.d.ts +5 -4
  100. package/types/openapi/models/CollaborationRoleEnum.d.ts +0 -4
  101. package/types/openapi/models/ContentDistributionGroupCreate.d.ts +1 -0
  102. package/types/openapi/models/DeletedApp.d.ts +1 -0
  103. package/types/openapi/models/{CanvasList.d.ts → DeletedCanvas.d.ts} +13 -9
  104. package/types/openapi/models/DeletedContentDistributionGroup.d.ts +1 -0
  105. package/types/openapi/models/DeletedEnvironment.d.ts +1 -0
  106. package/types/openapi/models/DeletedFavorite.d.ts +1 -0
  107. package/types/openapi/models/DeletedFile.d.ts +6 -0
  108. package/types/openapi/models/DeletedFolder.d.ts +4 -3
  109. package/types/openapi/models/DeletedInstance.d.ts +1 -0
  110. package/types/openapi/models/DeletedInstanceAssignmentGroup.d.ts +1 -0
  111. package/types/openapi/models/DeletedMetadataTemplate.d.ts +1 -0
  112. package/types/openapi/models/DeletedRegion.d.ts +1 -0
  113. package/types/openapi/models/Environment.d.ts +1 -0
  114. package/types/openapi/models/Favorite.d.ts +1 -0
  115. package/types/openapi/models/File.d.ts +6 -0
  116. package/types/openapi/models/FileCreate.d.ts +8 -0
  117. package/types/openapi/models/FileCreateRequest.d.ts +3 -0
  118. package/types/openapi/models/FilePermission.d.ts +4 -0
  119. package/types/openapi/models/FilePermissionRequest.d.ts +4 -0
  120. package/types/openapi/models/FileRetrieve.d.ts +8 -0
  121. package/types/openapi/models/FileRevision.d.ts +8 -0
  122. package/types/openapi/models/FileRevisionRequest.d.ts +3 -0
  123. package/types/openapi/models/FileUpdate.d.ts +8 -0
  124. package/types/openapi/models/FileUpdateRequest.d.ts +3 -0
  125. package/types/openapi/models/FileVersion.d.ts +5 -0
  126. package/types/openapi/models/Folder.d.ts +4 -3
  127. package/types/openapi/models/FolderCanvas.d.ts +11 -0
  128. package/types/openapi/models/FolderCreate.d.ts +8 -7
  129. package/types/openapi/models/FolderCreateRequest.d.ts +4 -2
  130. package/types/openapi/models/FolderFile.d.ts +3 -0
  131. package/types/openapi/models/FolderFolder.d.ts +5 -1
  132. package/types/openapi/models/FolderRetrieve.d.ts +8 -8
  133. package/types/openapi/models/FolderRule.d.ts +7 -0
  134. package/types/openapi/models/FolderRuleRequest.d.ts +7 -0
  135. package/types/openapi/models/FolderUpdate.d.ts +8 -8
  136. package/types/openapi/models/FolderUpdateRequest.d.ts +3 -0
  137. package/types/openapi/models/Instance.d.ts +1 -0
  138. package/types/openapi/models/InstanceUpdate.d.ts +1 -0
  139. package/types/openapi/models/MetadataTemplate.d.ts +1 -0
  140. package/types/openapi/models/OfflineSyncFolder.d.ts +17 -0
  141. package/types/openapi/models/OperatorEnum.d.ts +64 -0
  142. package/types/openapi/models/PaginatedCanvasList.d.ts +8 -0
  143. package/types/openapi/models/PaginatedFileRevisionList.d.ts +8 -0
  144. package/types/openapi/models/PaginatedOfflineSyncFolderList.d.ts +8 -0
  145. package/types/openapi/models/PatchedCanvasUpdateRequest.d.ts +5 -4
  146. package/types/openapi/models/PatchedFileRequest.d.ts +3 -0
  147. package/types/openapi/models/PatchedFileRevisionRequest.d.ts +3 -0
  148. package/types/openapi/models/PatchedFileUpdateRequest.d.ts +3 -0
  149. package/types/openapi/models/PatchedFolderUpdateRequest.d.ts +3 -0
  150. package/types/openapi/models/Region.d.ts +1 -0
  151. package/types/openapi/models/SearchFile.d.ts +3 -0
  152. package/types/openapi/models/SharedLink.d.ts +6 -5
  153. package/types/openapi/models/SharedLinkCanvas.d.ts +11 -0
  154. package/types/openapi/models/SharedLinkCanvasRequest.d.ts +8 -0
  155. package/types/openapi/models/SharedLinkCreate.d.ts +6 -5
  156. package/types/openapi/models/{SharedLinkInstanceSerialzier.d.ts → SharedLinkInstance.d.ts} +1 -1
  157. package/types/openapi/models/SharedLinkInstanceRequest.d.ts +5 -0
  158. package/types/openapi/models/{SharedLinkOrganizationSerialzier.d.ts → SharedLinkOrganization.d.ts} +1 -1
  159. package/types/openapi/models/SharedLinkOrganizationRequest.d.ts +6 -0
  160. package/lib/apps/canvas-builder/util/tsUtils.d.ts +0 -3
  161. package/lib/composables/useDetailsView.d.ts +0 -19
  162. package/lib/types/templateActions.d.ts +0 -10
  163. package/lib/util/gesture.util.d.ts +0 -6
  164. package/types/openapi/models/AppsDBGlobalEntry.d.ts +0 -8
  165. package/types/openapi/models/AppsDBGlobalEntryRequest.d.ts +0 -3
  166. package/types/openapi/models/AppsDBUserEntry.d.ts +0 -9
  167. package/types/openapi/models/AppsDBUserEntryRequest.d.ts +0 -3
  168. package/types/openapi/models/CanvasSectionRetrieve.d.ts +0 -7
  169. package/types/openapi/models/CanvasSectionRetrieveRequest.d.ts +0 -5
  170. package/types/openapi/models/FileRequest.d.ts +0 -13
  171. package/types/openapi/models/InstanceStorageCredentials.d.ts +0 -6
  172. package/types/openapi/models/MiniAccount.d.ts +0 -4
  173. package/types/openapi/models/PSPDFKitAuthPayload.d.ts +0 -3
  174. package/types/openapi/models/PSPDFKitAuthPayloadRequest.d.ts +0 -3
  175. package/types/openapi/models/PSPDFKitToken.d.ts +0 -7
  176. package/types/openapi/models/PSPDFKitTokenRequest.d.ts +0 -3
  177. package/types/openapi/models/PaginatedCanvasListList.d.ts +0 -8
@@ -1,7 +1,8 @@
1
1
  import { SelectedPage as ContentSelectorSelectedPage, SelectedFile as ContentSelectorSelectedFile } from '@content-selector/stores/app';
2
+ import { Selection } from '@content-selector/appTypes';
2
3
  import { CanvasSection, ComponentNode, EmbeddableProps, SfEvent } from '../../../../main.lib';
3
4
  import { Mutable } from '../../../../types/ts';
4
- import { Canvas, User } from '../../../../../types/openapi';
5
+ import { CanvasRetrieve, User } from '../../../../../types/openapi';
5
6
  import { OpenRequestPayload } from '../../../payload.types';
6
7
 
7
8
  export declare const UI_MESSAGE: "UI_MESSAGE";
@@ -13,12 +14,14 @@ export declare const UI_API_METHOD_TYPES: {
13
14
  readonly UI_TOAST: "ui_toast";
14
15
  readonly UI_CAPTURE_APP_ERROR: "ui_capture_app_error";
15
16
  readonly UI_UPDATE_CANVAS: "ui_update_canvas";
17
+ readonly UI_OPEN_CANVAS_OVERLAY: "ui_open_canvas_overlay";
16
18
  readonly UI_UPDATE_LOCATION: "ui_update_location";
17
19
  readonly UI_PRESELECT_SFDC_MEETING_ID: "ui_preselect_sfdc_meeting_id";
18
20
  readonly UI_SET_POSTCALL_STYLE: "ui_set_postcall_style";
19
21
  readonly UI_ENABLE_POSTCALL_SUBMIT: "ui_enable_postcall_submit";
20
22
  readonly UI_DISABLE_POSTCALL_SUBMIT: "ui_disable_postcall_submit";
21
23
  readonly UI_COMPLETE_POSTCALL: "ui_complete_postcall";
24
+ readonly UI_STOP_MEETING: "ui_stop_meeting";
22
25
  readonly UI_CANVAS_NAVIGATE_NEXT_PAGE: "ui_canvas_navigate_next_page";
23
26
  readonly UI_CANVAS_NAVIGATE_PREVIOUS_PAGE: "ui_canvas_navigate_previous_page";
24
27
  readonly UI_CANVAS_NAVIGATE_PAGE: "ui_canvas_navigate_page";
@@ -34,38 +37,76 @@ export declare const UI_MESSAGE_TYPES: {
34
37
  };
35
38
  export declare const UI_NATIVE_MESSAGE_TYPES: readonly ["ui_app_set_data", "ui_app_update_data", "ui_canvas_updated"];
36
39
  export type UiBroadcastRequest = Record<string, any>;
37
- export type UiSelectContentRequest = Record<string, never>;
40
+ export type UiSelectContentRequest = {
41
+ /** Array of selections */
42
+ selections?: Selection[];
43
+ };
38
44
  export type UiSelectContentResponse = {
45
+ /** User action result */
39
46
  user_action: 'cancelled' | 'selected';
47
+ /** Selected content */
40
48
  content?: (ContentSelectorSelectedFile | ContentSelectorSelectedPage)[];
41
49
  };
50
+ /**
51
+ * Error object to send to Pitcher sentry instance
52
+ */
42
53
  export type UiCaptureAppErrorRequest = Record<string, any>;
43
- export type UiUpdateCanvasRequest = Mutable<Canvas> & {
54
+ export type UiUpdateCanvasRequest = Mutable<CanvasRetrieve> & {
55
+ /** Comma-separated list of field keys to return from the server */
44
56
  fields?: string;
45
57
  };
46
58
  export type UiOpenRequest = OpenRequestPayload;
47
59
  export type UiCompletePostcallRequest = {
60
+ /** Indicates if the postcall was successfully submitted */
48
61
  was_successfully_submitted?: boolean;
49
62
  };
50
63
  export type UiSetPostcallStyleRequest = Record<string, any>;
51
64
  export type UiAppResizeRequest = {
65
+ /** Requested height as the number of pixels */
52
66
  height: number;
53
67
  };
54
68
  export type UiCanvasNavigatePageReuqest = {
69
+ /** The id of the component we want to navigate to */
55
70
  page: ComponentNode['id'];
56
71
  };
57
72
  export interface UiToastRequest {
73
+ /**
74
+ * Type of the toast, influences the default icon
75
+ * @defaultValue **REQUIRED**
76
+ */
58
77
  type: 'info' | 'error' | 'warning' | 'success' | 'loading';
78
+ /**
79
+ * Text to show inside the toast
80
+ * @defaultValue **REQUIRED**
81
+ */
59
82
  message: string;
83
+ /**
84
+ * Optional, value in milliseconds
85
+ * @defaultValue 3500
86
+ */
60
87
  duration?: number;
88
+ /**
89
+ * Visibility of the close button, default is true
90
+ * @defaultValue true
91
+ */
61
92
  closable?: boolean;
93
+ /**
94
+ * Toast won't be hidden as long as it is hovered
95
+ * @defaultValue true
96
+ */
62
97
  keepAliveOnHover?: boolean;
98
+ /**
99
+ * Set to `false` to hide the icon
100
+ * @defaultValue true
101
+ */
63
102
  showIcon?: boolean;
64
103
  }
65
104
  export interface UiPreselectSfdcMeetingIdRequest {
105
+ /** Salesforce Meeting ID */
66
106
  eventId: string;
67
107
  }
68
108
  export interface UiPreselectSfdcMeetingIdResponse {
109
+ /** Salesforce Event */
69
110
  event: SfEvent | null;
70
111
  }
71
112
  export type UiMessagePayloads = {
@@ -76,36 +117,58 @@ export type UiMessagePayloads = {
76
117
  [UI_MESSAGE_TYPES.UI_SECTION_LIST_UPDATED]: UiSectionListUpdatedPayload;
77
118
  };
78
119
  export type UiMessageEnvelope<T extends (typeof UI_MESSAGE_TYPES)[keyof typeof UI_MESSAGE_TYPES] = (typeof UI_MESSAGE_TYPES)[keyof typeof UI_MESSAGE_TYPES]> = {
120
+ /** Message type */
79
121
  type: T;
122
+ /** Message body */
80
123
  body: UiMessagePayloads[T];
81
124
  };
82
125
  export type UiMeetingCanceledPayload = {
126
+ /** Account ID */
83
127
  accountId?: string;
128
+ /** Event ID */
84
129
  eventId?: string;
85
130
  };
86
131
  export type UiAppSetDataPayload = {
132
+ /** Client name */
87
133
  client: string | null;
134
+ /** Platform name */
88
135
  platform: string | undefined;
136
+ /** User information */
89
137
  user: User | null;
138
+ /** Edit mode status */
90
139
  is_edit_mode: boolean;
140
+ /** Call status */
91
141
  in_call: boolean;
92
- canvas: Canvas;
142
+ /** Canvas data */
143
+ canvas: CanvasRetrieve;
144
+ /** Section used in canvas */
93
145
  used_in_section: CanvasSection | null;
146
+ /** Component ID */
94
147
  component_id: string;
148
+ /** Embeddable settings */
95
149
  settings: EmbeddableProps['settings'] | null;
150
+ /** Width of the canvas */
96
151
  width: string | undefined;
152
+ /** Height of the canvas */
97
153
  height: string | undefined;
154
+ /** Display mode */
98
155
  display_mode: string | undefined;
99
156
  };
100
157
  export type UiAppUpdateDataPayload = {
158
+ /** Call status */
101
159
  in_call: boolean;
160
+ /** Edit mode status */
102
161
  is_edit_mode: boolean;
103
162
  };
104
163
  export type UiCanvasUpdatedPayload = {
105
- canvas: Canvas;
164
+ /** Canvas data */
165
+ canvas: CanvasRetrieve;
106
166
  };
107
167
  export type UiSectionListUpdatedPayload = {
168
+ /** List of section IDs */
108
169
  section_list_ids: string[];
170
+ /** Section list component ID */
109
171
  section_list_component_id: string;
110
- canvas: Canvas | null;
172
+ /** Canvas data */
173
+ canvas: CanvasRetrieve | null;
111
174
  };
@@ -3,5 +3,9 @@ import { PaginatedData } from '../../../types/paginatedData';
3
3
  import { User } from '../../../../types/openapi';
4
4
 
5
5
  export declare function getUsers(payload?: GetUsersParams): Promise<PaginatedData<User>>;
6
+ /**
7
+ * Ask for a refreshed Salesforce token. In case the token hasn't expired yet, this method will return the same token as the current one found in the (`getEnv`)[#getenv] result.
8
+ * @returns Promise resolving to an object containing the token
9
+ */
6
10
  export declare function refreshServiceToken(payload?: RefreshServiceTokenRequest): Promise<RefreshServiceTokenResponse>;
7
11
  export declare function refreshAccessToken(): any;
@@ -1,5 +1,5 @@
1
1
  import { Emitter } from './utils/eventEmitter';
2
- import { Favorite, File, User, Canvas } from '../../types/openapi';
2
+ import { Favorite, File, User, CanvasRetrieve } from '../../types/openapi';
3
3
  import { PitcherOrg } from '../types/organization.types';
4
4
  import { PitcherInstance } from '../types/instance.types';
5
5
  import { PaginatedData } from '../types/paginatedData';
@@ -111,54 +111,171 @@ export declare enum PitcherExternalEventName {
111
111
  OPEN_CANVAS = "open_canvas",
112
112
  START_CALL = "start_call"
113
113
  }
114
+ /**
115
+ * Base interface for update location actions.
116
+ */
114
117
  interface UpdateLocation {
118
+ /**
119
+ * The action to be performed.
120
+ */
115
121
  action: string;
116
122
  }
123
+ /**
124
+ * Represents a route in the location.
125
+ */
117
126
  export interface LocationRoute {
127
+ /**
128
+ * The path of the route.
129
+ */
118
130
  path: string;
131
+ /**
132
+ * The query parameters of the route.
133
+ */
119
134
  query: Record<string, any>;
135
+ /**
136
+ * Indicates if the route is being restored.
137
+ */
120
138
  is_restoring: boolean;
139
+ /**
140
+ * Indicates if the route is mounted.
141
+ */
121
142
  is_mounted: boolean;
122
143
  }
144
+ /**
145
+ * A record of location routes.
146
+ */
123
147
  export type LocationRoutes = Record<string, LocationRoute>;
148
+ /**
149
+ * Interface for the 'register' update location action.
150
+ */
124
151
  export interface UpdateLocationOnRegister extends UpdateLocation {
152
+ /**
153
+ * The action type.
154
+ */
125
155
  action: 'register';
156
+ /**
157
+ * The child application identifier.
158
+ */
126
159
  child_app: string;
160
+ /**
161
+ * The parent application identifier (optional).
162
+ */
127
163
  parent_app?: string;
164
+ /**
165
+ * The path of the route (optional).
166
+ */
128
167
  path?: string;
168
+ /**
169
+ * The query parameters of the route (optional).
170
+ */
129
171
  query?: Record<string, any>;
130
172
  }
173
+ /**
174
+ * Interface for the 'unregister' update location action.
175
+ */
131
176
  export interface UpdateLocationOnUnregister extends UpdateLocation {
177
+ /**
178
+ * The action type.
179
+ */
132
180
  action: 'unregister';
181
+ /**
182
+ * The application identifier.
183
+ */
133
184
  app: string;
134
185
  }
186
+ /**
187
+ * Interface for the 'update' update location action.
188
+ */
135
189
  export interface UpdateLocationOnUpdate extends UpdateLocation {
190
+ /**
191
+ * The action type.
192
+ */
136
193
  action: 'update';
194
+ /**
195
+ * The routes to be updated.
196
+ */
137
197
  routes: Record<string, Omit<LocationRoute, 'is_restoring' | 'is_mounted'>>;
138
198
  }
199
+ /**
200
+ * Interface for the 'mounted' update location action.
201
+ */
139
202
  export interface UpdateLocationOnMounted extends UpdateLocation {
203
+ /**
204
+ * The action type.
205
+ */
140
206
  action: 'mounted';
207
+ /**
208
+ * The application identifier.
209
+ */
141
210
  app: string;
142
211
  }
212
+ /**
213
+ * Interface for the 'restore' update location action.
214
+ */
143
215
  export interface UpdateLocationOnRestore extends UpdateLocation {
216
+ /**
217
+ * The action type.
218
+ */
144
219
  action: 'restore';
220
+ /**
221
+ * The routes to be restored.
222
+ */
145
223
  routes: Record<string, Omit<LocationRoute, 'is_mounted'>>;
146
224
  }
225
+ /**
226
+ * Interface for the 'restore_completed' update location action.
227
+ */
147
228
  export interface UpdateLocationOnRestoreCompleted extends UpdateLocation {
229
+ /**
230
+ * The action type.
231
+ */
148
232
  action: 'restore_completed';
233
+ /**
234
+ * The application identifier.
235
+ */
149
236
  app: string;
237
+ /**
238
+ * The path of the route.
239
+ */
150
240
  path: string;
241
+ /**
242
+ * The query parameters of the route.
243
+ */
151
244
  query: Record<string, any>;
152
245
  }
246
+ /**
247
+ * Interface for the 'get_routes_request' update location action.
248
+ */
153
249
  export interface UpdateLocationOnGetRoutesRequest extends UpdateLocation {
250
+ /**
251
+ * The action type.
252
+ */
154
253
  action: 'get_routes_request';
254
+ /**
255
+ * The application identifier.
256
+ */
155
257
  app: string;
156
258
  }
259
+ /**
260
+ * Interface for the 'get_routes_response' update location action.
261
+ */
157
262
  export interface UpdateLocationOnGetRoutesResponse extends UpdateLocation {
263
+ /**
264
+ * The action type.
265
+ */
158
266
  action: 'get_routes_response';
267
+ /**
268
+ * The application identifier.
269
+ */
159
270
  app: string;
271
+ /**
272
+ * The routes in the response.
273
+ */
160
274
  routes: LocationRoutes;
161
275
  }
276
+ /**
277
+ * Union type for all update location pitcher events.
278
+ */
162
279
  export type UpdateLocationPitcherEvent = UpdateLocationOnUnregister | UpdateLocationOnRestore | UpdateLocationOnUpdate | UpdateLocationOnRegister | UpdateLocationOnRestoreCompleted | UpdateLocationOnMounted | UpdateLocationOnGetRoutesRequest | UpdateLocationOnGetRoutesResponse;
163
280
  export interface PitcherEventMap {
164
281
  [PitcherEventName.ENV_CHANGED]: PitcherEnv;
@@ -204,7 +321,7 @@ export interface PitcherEventMap {
204
321
  */
205
322
  [PitcherEventName.EXITED_FULLSCREEN]: void;
206
323
  [PitcherEventName.CANVAS_UPDATED]: Record<string, any>;
207
- [PitcherEventName.CANVAS_UPDATED_SUCCESS]: Partial<Canvas>;
324
+ [PitcherEventName.CANVAS_UPDATED_SUCCESS]: Partial<CanvasRetrieve>;
208
325
  [PitcherEventName.UPDATE_LOCATION]: UpdateLocationPitcherEvent;
209
326
  [PitcherEventName.FILE_CLOSED]: {
210
327
  file_id?: string;