1 | import type { Except } from 'type-fest';
|
2 | import type { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types';
|
3 | type AppSignedRequestSys = Except<BasicMetaSysProps, 'version' | 'id'> & {
|
4 | appDefinition: SysLink;
|
5 | space: SysLink;
|
6 | environment: SysLink;
|
7 | };
|
8 | export type AppSignedRequestProps = {
|
9 | |
10 |
|
11 |
|
12 | sys: AppSignedRequestSys;
|
13 |
|
14 | additionalHeaders: {
|
15 | 'x-contentful-signature': string;
|
16 | 'x-contentful-signed-headers': string;
|
17 | 'x-contentful-timestamp': string;
|
18 | 'x-contentful-space-id': string;
|
19 | 'x-contentful-environment-id': string;
|
20 | 'x-contentful-user-id': string;
|
21 | };
|
22 | };
|
23 | export type CreateAppSignedRequestProps = {
|
24 |
|
25 | method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'PATCH' | 'HEAD';
|
26 |
|
27 | path: string;
|
28 |
|
29 | body?: string;
|
30 |
|
31 | headers?: Record<string, string>;
|
32 | };
|
33 | export interface AppSignedRequest extends AppSignedRequestProps, DefaultElements<AppSignedRequestProps> {
|
34 | }
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 | export declare function wrapAppSignedRequest(_makeRequest: MakeRequest, data: AppSignedRequestProps): AppSignedRequest;
|
42 | export {};
|