@valiantys/atlassian-app-frontend 1.0.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 (66) hide show
  1. package/README.md +726 -0
  2. package/atlassian-app-forge-CTaVjJLt.js +1 -0
  3. package/atlassian-app-forge-DdtDadi2.mjs +117 -0
  4. package/atlassian-app-frontend.api.json +8829 -0
  5. package/atlassian-app-frontend.api.md +740 -0
  6. package/atlassian-app-standalone-DJOVbfp6.js +1 -0
  7. package/atlassian-app-standalone-DyyH6WPO.mjs +111 -0
  8. package/examples/backend/index.ts +44 -0
  9. package/examples/backend/lib/forge-functions.d.ts +3 -0
  10. package/examples/backend/lib/forge-functions.ts +23 -0
  11. package/examples/backend/lib/handler-functions.d.ts +58 -0
  12. package/examples/backend/lib/handler-functions.ts +72 -0
  13. package/examples/backend/lib/standalone-functions.d.ts +3 -0
  14. package/examples/backend/lib/standalone-functions.ts +17 -0
  15. package/examples/client-sample-.env +5 -0
  16. package/examples/hello-world/app.d.ts +2 -0
  17. package/examples/hello-world/app.tsx +77 -0
  18. package/examples/hello-world/example-box.d.ts +8 -0
  19. package/examples/hello-world/example-box.tsx +22 -0
  20. package/examples/hello-world/example-components/forge-storage-example.d.ts +1 -0
  21. package/examples/hello-world/example-components/forge-storage-example.tsx +66 -0
  22. package/examples/hello-world/example-components/hello-with-loading-spinner.d.ts +1 -0
  23. package/examples/hello-world/example-components/hello-with-loading-spinner.tsx +24 -0
  24. package/examples/hello-world/example-components/hello.d.ts +1 -0
  25. package/examples/hello-world/example-components/hello.spec.tsx +39 -0
  26. package/examples/hello-world/example-components/hello.tsx +13 -0
  27. package/examples/hello-world/example-components/host-router-example.d.ts +1 -0
  28. package/examples/hello-world/example-components/host-router-example.tsx +13 -0
  29. package/examples/hello-world/example-components/issue-types-example-backend.d.ts +4 -0
  30. package/examples/hello-world/example-components/issue-types-example-backend.tsx +37 -0
  31. package/examples/hello-world/example-components/issue-types-example.d.ts +4 -0
  32. package/examples/hello-world/example-components/issue-types-example.tsx +40 -0
  33. package/examples/hello-world/example-components/list-assets.d.ts +1 -0
  34. package/examples/hello-world/example-components/list-assets.tsx +38 -0
  35. package/examples/hello-world/example-components/open-modal-example.d.ts +1 -0
  36. package/examples/hello-world/example-components/open-modal-example.tsx +47 -0
  37. package/examples/hello-world/example-components/view-context-example.d.ts +1 -0
  38. package/examples/hello-world/example-components/view-context-example.tsx +17 -0
  39. package/examples/hello-world/example-components/who-am-i.d.ts +1 -0
  40. package/examples/hello-world/example-components/who-am-i.tsx +13 -0
  41. package/examples/hello-world/main.d.ts +0 -0
  42. package/examples/hello-world/main.tsx +11 -0
  43. package/examples/hello-world/styles.css +1 -0
  44. package/examples/hello-world-modal/app.d.ts +2 -0
  45. package/examples/hello-world-modal/app.tsx +30 -0
  46. package/examples/hello-world-modal/hello.d.ts +1 -0
  47. package/examples/hello-world-modal/hello.tsx +15 -0
  48. package/examples/hello-world-modal/main.d.ts +0 -0
  49. package/examples/hello-world-modal/main.tsx +11 -0
  50. package/examples/hello-world-modal/styles.css +1 -0
  51. package/examples/hello-world-remote/app.d.ts +2 -0
  52. package/examples/hello-world-remote/app.tsx +23 -0
  53. package/examples/hello-world-remote/invoke-remote-example.d.ts +13 -0
  54. package/examples/hello-world-remote/invoke-remote-example.tsx +40 -0
  55. package/examples/hello-world-remote/main.d.ts +0 -0
  56. package/examples/hello-world-remote/main.tsx +11 -0
  57. package/examples/hello-world-remote/styles.css +1 -0
  58. package/examples/manifest.yml.example +49 -0
  59. package/index-CBKhl1FP.mjs +22 -0
  60. package/index-CP8emE0q.js +1 -0
  61. package/index.d.ts +654 -0
  62. package/index.js +2 -0
  63. package/index.mjs +1145 -0
  64. package/package.json +54 -0
  65. package/style.css +1 -0
  66. package/tsdoc-metadata.json +11 -0
@@ -0,0 +1,740 @@
1
+ ## API Report File for "@valiantys/atlassian-app-frontend"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import { Context } from 'react';
8
+ import { default as default_2 } from 'react';
9
+ import { Dispatch } from 'react';
10
+ import { FlagAction } from '@forge/bridge/out/flag/flag';
11
+ import { FlagAppearance } from '@forge/bridge/out/flag/flag';
12
+ import { FlagOptions } from '@forge/bridge/out/flag/flag';
13
+ import { FullContext } from '@forge/bridge/out/types';
14
+ import { HeadingSize } from '@atlaskit/heading/dist/types/heading.partial';
15
+ import { History as History_2 } from 'history';
16
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
17
+ import { PropsWithChildren } from 'react';
18
+ import { ReactElement } from 'react';
19
+ import { ReactNode } from 'react';
20
+ import { SetStateAction } from 'react';
21
+
22
+ // @public (undocumented)
23
+ export interface AccountContext {
24
+ // (undocumented)
25
+ accountId: string;
26
+ }
27
+
28
+ // @public (undocumented)
29
+ export type ActionsType = FlagAction[];
30
+
31
+ // @public (undocumented)
32
+ export function addAuthHeader(authToken: string, headers: HeadersInit): {
33
+ Authorization: string;
34
+ };
35
+
36
+ // @public (undocumented)
37
+ export type APIResponse = Pick<Response, 'json' | 'text' | 'ok' | 'status' | 'statusText' | 'headers'>;
38
+
39
+ // @public (undocumented)
40
+ export type AppearanceTypes = FlagAppearance;
41
+
42
+ // @public (undocumented)
43
+ export interface AppFlagAction {
44
+ // (undocumented)
45
+ id: string | number;
46
+ // (undocumented)
47
+ props?: AppFlagTypes;
48
+ // (undocumented)
49
+ type: AppFlagActions;
50
+ }
51
+
52
+ // @public (undocumented)
53
+ export type AppFlagActions = 'add' | 'remove';
54
+
55
+ // @public (undocumented)
56
+ export const AppFlagsDispatchContext: Context<Dispatch<AppFlagAction> | undefined>;
57
+
58
+ // @public (undocumented)
59
+ export function AppFlagsProviderAtlasKit({ children, }: {
60
+ children: ReactNode;
61
+ }): JSX_2.Element;
62
+
63
+ // @public (undocumented)
64
+ export type AppFlagTypes = FlagOptions;
65
+
66
+ // @public (undocumented)
67
+ export function AtlassianApp({ children, appName, doCheckWorkspace, embeddedConfig, standaloneConfig, }: PropsWithChildren<AtlassianAppConfig>): JSX_2.Element;
68
+
69
+ // @public (undocumented)
70
+ export interface AtlassianAppConfig {
71
+ appName: string;
72
+ doCheckWorkspace?: boolean;
73
+ embeddedConfig?: {
74
+ invokeRemoteImpl?: InvokeRemoteSignature;
75
+ useAtlasKitFlags?: boolean;
76
+ };
77
+ standaloneConfig?: {
78
+ oauthConfig?: OAuthProviderProps & {
79
+ doCheckResource?: boolean;
80
+ };
81
+ initialMockViewContext?: Partial<FullContext>;
82
+ backendUrl?: string;
83
+ remoteUrl?: string;
84
+ modalOpenerConfig?: {
85
+ resourceMap?: Record<string, string>;
86
+ defaultUrl: string;
87
+ };
88
+ modalContextConfig?: {
89
+ openerOrigin: string;
90
+ };
91
+ };
92
+ }
93
+
94
+ // @public (undocumented)
95
+ export function AtlassianAppTest({ mockContext, invoke, invokeRemote, jiraFetchService, confluenceFetchService, bitbucketFetchService, hostRouter, children, }: PropsWithChildren<AtlassianAppTestProps>): JSX_2.Element;
96
+
97
+ // @public (undocumented)
98
+ export interface AtlassianAppTestProps {
99
+ // (undocumented)
100
+ bitbucketFetchService?: AtlassianProductFetchService<'bitbucket'>;
101
+ // (undocumented)
102
+ confluenceFetchService?: AtlassianProductFetchService<'confluence'>;
103
+ // (undocumented)
104
+ hostRouter: HostRouter;
105
+ // (undocumented)
106
+ invoke: InvokeSignature;
107
+ // (undocumented)
108
+ invokeRemote: InvokeRemoteSignature;
109
+ // (undocumented)
110
+ jiraFetchService?: AtlassianProductFetchService<'jira'>;
111
+ // (undocumented)
112
+ mockContext: FullContext;
113
+ }
114
+
115
+ // @public (undocumented)
116
+ export function atlassianOAuthBitbucketFetch(authToken: string): AtlassianProductFetchService<'bitbucket'>;
117
+
118
+ // @public (undocumented)
119
+ export function atlassianOAuthConfluenceFetch(authToken: string, cloudId: string): AtlassianProductFetchService<'confluence'>;
120
+
121
+ // @public (undocumented)
122
+ export function atlassianOAuthJiraFetch(authToken: string, cloudId: string): AtlassianProductFetchService<'jira'>;
123
+
124
+ // @public (undocumented)
125
+ export function atlassianOAuthRawFetch<P extends Product>(authToken: string, domain: string, productType: P): AtlassianProductFetchService<P>;
126
+
127
+ // @public (undocumented)
128
+ export type AtlassianOAuthScopes = 'read:me' | 'read:jira-user' | 'read:jira-work' | 'read:servicedesk-request' | 'write:servicedesk-request' | 'read:cmdb-schema:jira' | 'write:cmdb-schema:jira' | 'read:cmdb-type:jira' | 'write:cmdb-type:jira' | 'read:cmdb-object:jira' | 'write:cmdb-object:jira' | 'delete:cmdb-object:jira' | 'read:cmdb-attribute:jira' | 'write:cmdb-attribute:jira' | 'read:cmdb-icon:jira';
129
+
130
+ // @public (undocumented)
131
+ export interface AtlassianProductFetchService<P extends Product> {
132
+ // (undocumented)
133
+ fetch: <T>(request: FetchRequest, body?: Record<string, any>) => Promise<T>;
134
+ // (undocumented)
135
+ fullUrl: (path: string) => string;
136
+ // (undocumented)
137
+ productType: P;
138
+ // (undocumented)
139
+ rawFetch: (url: FetchRoute, init: RequestInit) => Promise<APIResponse>;
140
+ // (undocumented)
141
+ route: (template: TemplateStringsArray, ...parameters: (string | number | URLSearchParams | FetchRoute)[]) => FetchRoute;
142
+ }
143
+
144
+ // @public (undocumented)
145
+ export interface AtlassianUserResource {
146
+ // (undocumented)
147
+ avatarUrl: string;
148
+ // (undocumented)
149
+ id: string;
150
+ // (undocumented)
151
+ name: string;
152
+ // (undocumented)
153
+ scopes: string[];
154
+ // (undocumented)
155
+ url: string;
156
+ }
157
+
158
+ // @public (undocumented)
159
+ export class AtlassianUserResourceService {
160
+ // (undocumented)
161
+ checkUserChosenResource(authToken: string, resourceId?: string): Promise<{
162
+ hasChosen: true;
163
+ resource: {
164
+ name: string;
165
+ id: string;
166
+ };
167
+ } | {
168
+ hasChosen: false;
169
+ resources: {
170
+ name: string;
171
+ id: string;
172
+ }[];
173
+ }>;
174
+ // (undocumented)
175
+ getAtlassianUserResources(authToken: string): Promise<AtlassianUserResource[]>;
176
+ // (undocumented)
177
+ readonly userResourcesUrl = "https://api.atlassian.com/oauth/token/accessible-resources";
178
+ }
179
+
180
+ // @public (undocumented)
181
+ export class AtlassianUserWorkspaceService {
182
+ constructor(fetchSvc: AtlassianProductFetchService<'jira'>);
183
+ // (undocumented)
184
+ checkUserChosenWorkspace(workspaceId?: string): Promise<WorkspaceChoices>;
185
+ // Warning: (ae-forgotten-export) The symbol "AssetsWorkspace" needs to be exported by the entry point index.d.ts
186
+ //
187
+ // (undocumented)
188
+ getAllUserWorkspaces(): Promise<AssetsWorkspace[]>;
189
+ // (undocumented)
190
+ readonly workspaceApiUrl: string;
191
+ }
192
+
193
+ // Warning: (ae-forgotten-export) The symbol "BackendAdapterProviderProps" needs to be exported by the entry point index.d.ts
194
+ //
195
+ // @public (undocumented)
196
+ export function BackendAdapterProvider({ children, invokeImplementation, }: BackendAdapterProviderProps): JSX_2.Element;
197
+
198
+ // @public (undocumented)
199
+ export function bearerAuthFetch<T>(authToken: string, url: string, method: FetchMethod, body?: Record<string, unknown>, responseType?: 'json' | 'text', headers?: Record<string, string>): Promise<T>;
200
+
201
+ // @public (undocumented)
202
+ export function bearerAuthFetchRaw(authToken: string, url: string, init: RequestInit): Promise<Response>;
203
+
204
+ // @public (undocumented)
205
+ export class CommonResolverPaths {
206
+ // (undocumented)
207
+ static getOauthToken: string;
208
+ }
209
+
210
+ // @public (undocumented)
211
+ export function defaultProps(makeMockFunction: () => any): AtlassianAppTestProps;
212
+
213
+ // @public (undocumented)
214
+ export function FeatureChosenResourceCheck({ checkResource, children, }: FeatureChosenResourceCheckProps): ReactElement;
215
+
216
+ // @public (undocumented)
217
+ export interface FeatureChosenResourceCheckProps {
218
+ // (undocumented)
219
+ checkResource: (resourceId?: string) => Promise<{
220
+ hasChosen: true;
221
+ } | {
222
+ hasChosen: false;
223
+ resources: Resource[];
224
+ }>;
225
+ // (undocumented)
226
+ children: ReactElement;
227
+ }
228
+
229
+ // @public (undocumented)
230
+ export function FeatureChosenWorkspaceCheck({ appName, children, }: PropsWithChildren<FeatureChosenWorkspaceCheckProps>): ReactElement;
231
+
232
+ // @public (undocumented)
233
+ export interface FeatureChosenWorkspaceCheckProps {
234
+ // (undocumented)
235
+ appName?: string;
236
+ }
237
+
238
+ // @public (undocumented)
239
+ export class FetchError {
240
+ constructor(message: string);
241
+ // (undocumented)
242
+ message: string;
243
+ }
244
+
245
+ // @public (undocumented)
246
+ export type FetchMethod = 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH';
247
+
248
+ // @public (undocumented)
249
+ export interface FetchRequest {
250
+ // (undocumented)
251
+ allowExperimental?: boolean;
252
+ // (undocumented)
253
+ method: FetchMethod;
254
+ // (undocumented)
255
+ responseType?: 'json' | 'text';
256
+ // (undocumented)
257
+ url: FetchRoute;
258
+ }
259
+
260
+ // @public (undocumented)
261
+ export type FetchRoute = {
262
+ readonly value: string;
263
+ };
264
+
265
+ // @public (undocumented)
266
+ export interface ForgeRequest<T, U extends AccountContext = AccountContext> {
267
+ // (undocumented)
268
+ context: U;
269
+ // (undocumented)
270
+ payload: T;
271
+ }
272
+
273
+ // @public (undocumented)
274
+ export type ForgeResolverFunction<P, R, C extends AccountContext = AccountContext> = (request: ForgeRequest<P, C>) => Promise<R> | R;
275
+
276
+ // @public (undocumented)
277
+ export function getAtlassianOAuthToken(grant_type: string, client_id: string, client_secret: string, code: string, redirect_uri: string): Promise<unknown>;
278
+
279
+ // @public (undocumented)
280
+ export function getAtlassianUserDetails(authToken: string): Promise<OAuthUser>;
281
+
282
+ // @public (undocumented)
283
+ export function getOauthFetchInvokeImpl(urlBase: string, // serverUrl + ':' + serverPort + '/api/'
284
+ authToken: string, resourceId: string): InvokeSignature;
285
+
286
+ // @public (undocumented)
287
+ export interface GlobalPageContext extends AccountContext {
288
+ // (undocumented)
289
+ cloudId: string;
290
+ // (undocumented)
291
+ environmentId: string;
292
+ // (undocumented)
293
+ environmentType: string;
294
+ // (undocumented)
295
+ extension: {
296
+ type: string;
297
+ };
298
+ // (undocumented)
299
+ installContext: string;
300
+ // (undocumented)
301
+ localId: string;
302
+ // (undocumented)
303
+ moduleKey: string;
304
+ // (undocumented)
305
+ siteUrl: string;
306
+ }
307
+
308
+ // @public (undocumented)
309
+ export interface HostRouter {
310
+ // (undocumented)
311
+ navigate(url: string): Promise<void>;
312
+ // (undocumented)
313
+ open(url: string): Promise<void>;
314
+ // (undocumented)
315
+ reload(): Promise<void>;
316
+ }
317
+
318
+ // Warning: (ae-forgotten-export) The symbol "HostRouterProviderProps" needs to be exported by the entry point index.d.ts
319
+ //
320
+ // @public (undocumented)
321
+ export function HostRouterProvider({ children, hostRouter, }: HostRouterProviderProps): JSX_2.Element;
322
+
323
+ // @public (undocumented)
324
+ export interface IframeProps {
325
+ // (undocumented)
326
+ height?: string;
327
+ // (undocumented)
328
+ link: string;
329
+ // (undocumented)
330
+ title?: string;
331
+ // (undocumented)
332
+ width?: string;
333
+ }
334
+
335
+ // @public (undocumented)
336
+ export type InvokePayload = {
337
+ [key in number | string]: unknown;
338
+ };
339
+
340
+ // @public (undocumented)
341
+ export interface InvokeRemoteResponse<T> {
342
+ // (undocumented)
343
+ body?: T;
344
+ // (undocumented)
345
+ headers?: Record<string, string>;
346
+ // (undocumented)
347
+ status: number;
348
+ }
349
+
350
+ // @public (undocumented)
351
+ export type InvokeRemoteSignature = <T, U>(input: {
352
+ path: string;
353
+ method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
354
+ headers?: Record<string, string>;
355
+ body?: U;
356
+ }) => Promise<InvokeRemoteResponse<T>>;
357
+
358
+ // @public (undocumented)
359
+ export type InvokeSignature = <T = unknown, U = InvokePayload>(action: string, data?: U) => Promise<T>;
360
+
361
+ // @public (undocumented)
362
+ export const IS_STANDALONE: boolean;
363
+
364
+ // @public (undocumented)
365
+ export interface IssueContext extends AccountContext {
366
+ // (undocumented)
367
+ extension: {
368
+ issue: {
369
+ key: string;
370
+ };
371
+ };
372
+ }
373
+
374
+ // @public (undocumented)
375
+ export interface JiraIssueExtensionData {
376
+ // (undocumented)
377
+ issue: {
378
+ key: string;
379
+ id: string;
380
+ type: string;
381
+ typeId: string;
382
+ };
383
+ // (undocumented)
384
+ project: {
385
+ id: string;
386
+ key: string;
387
+ type: string;
388
+ };
389
+ // (undocumented)
390
+ type: string;
391
+ }
392
+
393
+ // @public (undocumented)
394
+ export function JiraWorkspaceProvider({ children, workspaceId, }: PropsWithChildren<{
395
+ workspaceId?: string;
396
+ }>): JSX_2.Element;
397
+
398
+ // @public (undocumented)
399
+ export function jsonFetch<T, U = Record<string, unknown>>(url: string, method: FetchMethod, headers?: Record<string, string>, body?: U, responseType?: 'json' | 'text'): Promise<T>;
400
+
401
+ // @public (undocumented)
402
+ export class MockViewContext implements ViewContext {
403
+ constructor(context: FullContext);
404
+ // (undocumented)
405
+ close(_payload?: unknown): Promise<void>;
406
+ // (undocumented)
407
+ context: FullContext;
408
+ // (undocumented)
409
+ createHistory(): Promise<History_2>;
410
+ // (undocumented)
411
+ getContext(): Promise<FullContext>;
412
+ // (undocumented)
413
+ refresh(): Promise<void>;
414
+ // (undocumented)
415
+ submit(_payload: unknown): Promise<void>;
416
+ // (undocumented)
417
+ theme: {
418
+ enable(): Promise<void>;
419
+ };
420
+ }
421
+
422
+ // @public (undocumented)
423
+ export function ModalContent<T>({ children }: PropsWithChildren): JSX_2.Element;
424
+
425
+ // @public (undocumented)
426
+ export function ModalContentIframe<T>({ messageCallback, closeOnMouseOut, }: {
427
+ messageCallback?: (eventData: T, iframeProps?: IframeProps) => {
428
+ newHeight?: string;
429
+ };
430
+ closeOnMouseOut?: boolean;
431
+ }): JSX_2.Element;
432
+
433
+ // @public (undocumented)
434
+ export interface ModalContentService<T> {
435
+ // (undocumented)
436
+ close: (payload?: unknown) => void;
437
+ // (undocumented)
438
+ modalContextData?: T;
439
+ }
440
+
441
+ // @public
442
+ export function ModalDialogLayout({ title, buttonGroup, children, }: PropsWithChildren<ModalDialogLayoutProps>): JSX_2.Element;
443
+
444
+ // @public (undocumented)
445
+ export interface ModalDialogLayoutProps {
446
+ // (undocumented)
447
+ buttonGroup: default_2.ReactNode;
448
+ // (undocumented)
449
+ title: string;
450
+ }
451
+
452
+ // @public (undocumented)
453
+ export interface ModalOptions<C, P> {
454
+ // (undocumented)
455
+ closeOnEscape?: boolean;
456
+ // (undocumented)
457
+ closeOnOverlayClick?: boolean;
458
+ // (undocumented)
459
+ context?: C;
460
+ // (undocumented)
461
+ onClose?: (payload?: P) => any;
462
+ // (undocumented)
463
+ resource?: string | null;
464
+ // Warning: (ae-forgotten-export) The symbol "ModalSize" needs to be exported by the entry point index.d.ts
465
+ //
466
+ // (undocumented)
467
+ size?: ModalSize;
468
+ }
469
+
470
+ // @public (undocumented)
471
+ export interface ModalService {
472
+ // (undocumented)
473
+ open<C, P>(options: ModalOptions<C, P>): Promise<void>;
474
+ }
475
+
476
+ // Warning: (ae-forgotten-export) The symbol "ModalServiceProviderProps" needs to be exported by the entry point index.d.ts
477
+ //
478
+ // @public (undocumented)
479
+ export function ModalServiceProvider({ children, modalService, }: ModalServiceProviderProps): JSX_2.Element;
480
+
481
+ // @public (undocumented)
482
+ export class ModalViewContext extends MockViewContext {
483
+ constructor(context: FullContext, openerOrigin?: string);
484
+ // (undocumented)
485
+ close: (payload?: unknown) => Promise<void>;
486
+ // (undocumented)
487
+ context: FullContext;
488
+ }
489
+
490
+ // @public (undocumented)
491
+ export interface OAuth {
492
+ // (undocumented)
493
+ getAuthToken: () => string;
494
+ }
495
+
496
+ // @public (undocumented)
497
+ export function oauthFetchInvokeRemote(baseUrl: string, authToken?: string): InvokeRemoteSignature;
498
+
499
+ // @public (undocumented)
500
+ export function OAuthProvider({ children, ...config }: PropsWithChildren<OAuthProviderProps>): JSX_2.Element;
501
+
502
+ // @public (undocumented)
503
+ export interface OAuthProviderProps {
504
+ appName: string;
505
+ // (undocumented)
506
+ clientId: string;
507
+ // (undocumented)
508
+ codeTokenExchangeUrl: string;
509
+ // (undocumented)
510
+ oAuthScopes: AtlassianOAuthScopes[];
511
+ }
512
+
513
+ // @public (undocumented)
514
+ export interface OAuthUser {
515
+ // (undocumented)
516
+ account_id: string;
517
+ // (undocumented)
518
+ account_status: string;
519
+ // (undocumented)
520
+ account_type: string;
521
+ // (undocumented)
522
+ characteristics: {
523
+ not_mentionable: boolean;
524
+ };
525
+ // (undocumented)
526
+ email: string;
527
+ // (undocumented)
528
+ email_verified: boolean;
529
+ // (undocumented)
530
+ extended_profile: {
531
+ job_title: string;
532
+ organization: string;
533
+ location: string;
534
+ phone_numbers: number[];
535
+ };
536
+ // (undocumented)
537
+ last_updated: string;
538
+ // (undocumented)
539
+ locale: string;
540
+ // (undocumented)
541
+ name: string;
542
+ // (undocumented)
543
+ nickname: string;
544
+ // (undocumented)
545
+ picture: string;
546
+ // (undocumented)
547
+ zoneinfo: string;
548
+ }
549
+
550
+ // @public (undocumented)
551
+ export interface PagedResponseValues<T> {
552
+ // (undocumented)
553
+ isLast: boolean;
554
+ // (undocumented)
555
+ maxResults: number;
556
+ // (undocumented)
557
+ startAt: number;
558
+ // (undocumented)
559
+ total: number;
560
+ // (undocumented)
561
+ values: T[];
562
+ }
563
+
564
+ // @public (undocumented)
565
+ export function PageLoadingView({ label, loadingError, labelSize, }: {
566
+ label: string;
567
+ loadingError?: string;
568
+ labelSize?: HeadingSize;
569
+ }): JSX_2.Element;
570
+
571
+ // @public (undocumented)
572
+ export type Product = 'jira' | 'bitbucket' | 'confluence' | 'connected-data';
573
+
574
+ // Warning: (ae-forgotten-export) The symbol "RemoteAdapterProviderProps" needs to be exported by the entry point index.d.ts
575
+ //
576
+ // @public (undocumented)
577
+ export function RemoteAdapterProvider({ children, invokeRemoteImplementation, }: RemoteAdapterProviderProps): JSX_2.Element;
578
+
579
+ // Warning: (ae-forgotten-export) The symbol "RequestBitbucketProviderProps" needs to be exported by the entry point index.d.ts
580
+ //
581
+ // @public (undocumented)
582
+ export function RequestBitbucketProvider({ children, requestBitbucketImplementation, }: RequestBitbucketProviderProps): JSX_2.Element;
583
+
584
+ // Warning: (ae-forgotten-export) The symbol "RequestConfluenceProviderProps" needs to be exported by the entry point index.d.ts
585
+ //
586
+ // @public (undocumented)
587
+ export function RequestConfluenceProvider({ children, requestConfluenceImplementation, }: RequestConfluenceProviderProps): JSX_2.Element;
588
+
589
+ // Warning: (ae-forgotten-export) The symbol "RequestJiraProviderProps" needs to be exported by the entry point index.d.ts
590
+ //
591
+ // @public (undocumented)
592
+ export function RequestJiraProvider({ children, requestJiraImplementation, }: RequestJiraProviderProps): JSX_2.Element;
593
+
594
+ // @public (undocumented)
595
+ export interface RequestObject {
596
+ // Warning: (ae-forgotten-export) The symbol "InvokePayload_2" needs to be exported by the entry point index.d.ts
597
+ //
598
+ // (undocumented)
599
+ context: InvokePayload_2['context'];
600
+ // (undocumented)
601
+ payload: RequestPayload;
602
+ }
603
+
604
+ // @public (undocumented)
605
+ export type RequestPayload = {
606
+ [key in number | string]: unknown;
607
+ };
608
+
609
+ // Warning: (ae-forgotten-export) The symbol "Response_2" needs to be exported by the entry point index.d.ts
610
+ //
611
+ // @public (undocumented)
612
+ export type ResolverFunction = (request: RequestObject) => Promise<Response_2> | Response_2;
613
+
614
+ // @public (undocumented)
615
+ export interface Resource {
616
+ // (undocumented)
617
+ id: string;
618
+ // (undocumented)
619
+ name: string;
620
+ }
621
+
622
+ // @public (undocumented)
623
+ export interface ResponseObject {
624
+ // (undocumented)
625
+ [key: string]: unknown;
626
+ }
627
+
628
+ // @public (undocumented)
629
+ export function route(template: TemplateStringsArray, ...parameters: (string | number | URLSearchParams | FetchRoute)[]): FetchRoute;
630
+
631
+ // @public (undocumented)
632
+ export function useAppFlagsDispatch(): Dispatch<AppFlagAction>;
633
+
634
+ // @public (undocumented)
635
+ export function useAppFlagsDispatchMethods(): {
636
+ addFlag: (props: AppFlagTypes) => void;
637
+ removeFlag: (flagId: string) => void;
638
+ addErrorFlag: (flagId: string, title: string, error?: unknown, actions?: ActionsType) => void;
639
+ };
640
+
641
+ // Warning: (ae-forgotten-export) The symbol "BackendAdapterService" needs to be exported by the entry point index.d.ts
642
+ //
643
+ // @public (undocumented)
644
+ export const useBackendAdapter: () => BackendAdapterService;
645
+
646
+ // @public (undocumented)
647
+ export const useHostRouter: () => HostRouter;
648
+
649
+ // Warning: (ae-forgotten-export) The symbol "defaultErrorHandler" needs to be exported by the entry point index.d.ts
650
+ //
651
+ // @public
652
+ export function useLoadDataEffect<T>(requestFunc: () => Promise<T>, errorHandler?: typeof defaultErrorHandler): {
653
+ data: T | undefined;
654
+ loading: boolean;
655
+ error: string | undefined;
656
+ setData: Dispatch<SetStateAction<T | undefined>>;
657
+ setLoading: Dispatch<SetStateAction<boolean>>;
658
+ setError: Dispatch<SetStateAction<string | undefined>>;
659
+ manualTrigger: () => Promise<T | undefined>;
660
+ };
661
+
662
+ // @public (undocumented)
663
+ export function useModalContentService<T>(): ModalContentService<T>;
664
+
665
+ // @public (undocumented)
666
+ export const useModalService: () => ModalService;
667
+
668
+ // @public (undocumented)
669
+ export const useOAuth: () => OAuth;
670
+
671
+ // Warning: (ae-forgotten-export) The symbol "RemoteAdapterService" needs to be exported by the entry point index.d.ts
672
+ //
673
+ // @public (undocumented)
674
+ export const useRemoteAdapter: () => RemoteAdapterService;
675
+
676
+ // @public (undocumented)
677
+ export const useRequestBitbucket: () => AtlassianProductFetchService<"bitbucket">;
678
+
679
+ // @public (undocumented)
680
+ export const useRequestConfluence: () => AtlassianProductFetchService<"confluence">;
681
+
682
+ // @public (undocumented)
683
+ export const useRequestJira: () => AtlassianProductFetchService<"jira">;
684
+
685
+ // @public (undocumented)
686
+ export const useViewContext: () => ViewContext;
687
+
688
+ // @public (undocumented)
689
+ export const useWorkspaceId: () => string | undefined;
690
+
691
+ // @public (undocumented)
692
+ export interface ViewContext {
693
+ close(payload?: unknown): Promise<void>;
694
+ // (undocumented)
695
+ createHistory(): Promise<History_2>;
696
+ // (undocumented)
697
+ getContext(): Promise<FullContext>;
698
+ // (undocumented)
699
+ refresh(): Promise<void>;
700
+ submit(payload: unknown): Promise<void>;
701
+ // (undocumented)
702
+ theme: {
703
+ enable(): Promise<void>;
704
+ };
705
+ }
706
+
707
+ // Warning: (ae-forgotten-export) The symbol "ViewContextProviderProps" needs to be exported by the entry point index.d.ts
708
+ //
709
+ // @public (undocumented)
710
+ export function ViewContextProvider({ children, viewContext, }: ViewContextProviderProps): JSX_2.Element;
711
+
712
+ // @public (undocumented)
713
+ export class WindowHostRouter implements HostRouter {
714
+ // (undocumented)
715
+ navigate(url: string): Promise<void>;
716
+ // (undocumented)
717
+ open(url: string): Promise<void>;
718
+ // (undocumented)
719
+ reload(): Promise<void>;
720
+ }
721
+
722
+ // @public (undocumented)
723
+ export class WindowModalService implements ModalService {
724
+ constructor(defaultUrl: string, resourceMap?: Record<string, string>);
725
+ // (undocumented)
726
+ open<C, P>(options: ModalOptions<C, P>): Promise<void>;
727
+ }
728
+
729
+ // @public (undocumented)
730
+ export type WorkspaceChoices = {
731
+ hasChosen: true;
732
+ workspace: string;
733
+ } | {
734
+ hasChosen: false;
735
+ workspaces: AssetsWorkspace[];
736
+ };
737
+
738
+ // (No @packageDocumentation comment for this package)
739
+
740
+ ```