-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapps.ts
More file actions
88 lines (74 loc) · 1.9 KB
/
apps.ts
File metadata and controls
88 lines (74 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../core/resource';
import * as Shared from './shared';
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from '../core/pagination';
import { RequestOptions } from '../internal/request-options';
/**
* List applications and versions.
*/
export class Apps extends APIResource {
/**
* List applications. Optionally filter by app name and/or version label.
*/
list(
query: AppListParams | null | undefined = {},
options?: RequestOptions,
): PagePromise<AppListResponsesOffsetPagination, AppListResponse> {
return this._client.getAPIList('/apps', OffsetPagination<AppListResponse>, { query, ...options });
}
}
export type AppListResponsesOffsetPagination = OffsetPagination<AppListResponse>;
/**
* Summary of an application version.
*/
export interface AppListResponse {
/**
* Unique identifier for the app version
*/
id: string;
/**
* List of actions available on the app
*/
actions: Array<Shared.AppAction>;
/**
* Name of the application
*/
app_name: string;
/**
* Deployment ID
*/
deployment: string;
/**
* Environment variables configured for this app version
*/
env_vars: { [key: string]: string };
/**
* Deployment region code
*/
region: 'aws.us-east-1a';
/**
* Version label for the application
*/
version: string;
}
export interface AppListParams extends OffsetPaginationParams {
/**
* Filter results by application name.
*/
app_name?: string;
/**
* Search apps by name.
*/
query?: string;
/**
* Filter results by version label.
*/
version?: string;
}
export declare namespace Apps {
export {
type AppListResponse as AppListResponse,
type AppListResponsesOffsetPagination as AppListResponsesOffsetPagination,
type AppListParams as AppListParams,
};
}