@mobilerun/sdk 6.0.1 → 6.1.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.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/resources/assistant/conversations.d.mts +1 -0
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +1 -0
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/connect/connect.d.mts +2 -2
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +2 -2
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +22 -1
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +22 -1
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +8 -0
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +8 -0
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/credentials/credentials.d.mts +20 -0
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +20 -0
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +4 -0
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +4 -0
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/index.d.mts +1 -0
- package/resources/credentials/index.d.mts.map +1 -1
- package/resources/credentials/index.d.ts +1 -0
- package/resources/credentials/index.d.ts.map +1 -1
- package/resources/credentials/index.js +5 -3
- package/resources/credentials/index.js.map +1 -1
- package/resources/credentials/index.mjs +1 -0
- package/resources/credentials/index.mjs.map +1 -1
- package/resources/credentials/onepassword/index.d.mts +3 -0
- package/resources/credentials/onepassword/index.d.mts.map +1 -0
- package/resources/credentials/onepassword/index.d.ts +3 -0
- package/resources/credentials/onepassword/index.d.ts.map +1 -0
- package/resources/credentials/onepassword/index.js +9 -0
- package/resources/credentials/onepassword/index.js.map +1 -0
- package/resources/credentials/onepassword/index.mjs +4 -0
- package/resources/credentials/onepassword/index.mjs.map +1 -0
- package/resources/credentials/onepassword/onepassword.d.mts +65 -0
- package/resources/credentials/onepassword/onepassword.d.mts.map +1 -0
- package/resources/credentials/onepassword/onepassword.d.ts +65 -0
- package/resources/credentials/onepassword/onepassword.d.ts.map +1 -0
- package/resources/credentials/onepassword/onepassword.js +35 -0
- package/resources/credentials/onepassword/onepassword.js.map +1 -0
- package/resources/credentials/onepassword/onepassword.mjs +30 -0
- package/resources/credentials/onepassword/onepassword.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/index.d.mts +3 -0
- package/resources/credentials/onepassword/vaults/index.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/index.d.ts +3 -0
- package/resources/credentials/onepassword/vaults/index.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/index.js +9 -0
- package/resources/credentials/onepassword/vaults/index.js.map +1 -0
- package/resources/credentials/onepassword/vaults/index.mjs +4 -0
- package/resources/credentials/onepassword/vaults/index.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.mts +27 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.ts +27 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.js +17 -0
- package/resources/credentials/onepassword/vaults/items/fields.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.mjs +13 -0
- package/resources/credentials/onepassword/vaults/items/fields.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.d.mts +3 -0
- package/resources/credentials/onepassword/vaults/items/index.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.d.ts +3 -0
- package/resources/credentials/onepassword/vaults/items/index.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.js +9 -0
- package/resources/credentials/onepassword/vaults/items/index.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.mjs +4 -0
- package/resources/credentials/onepassword/vaults/items/index.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.d.mts +34 -0
- package/resources/credentials/onepassword/vaults/items/items.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.d.ts +34 -0
- package/resources/credentials/onepassword/vaults/items/items.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.js +24 -0
- package/resources/credentials/onepassword/vaults/items/items.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.mjs +19 -0
- package/resources/credentials/onepassword/vaults/items/items.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items.d.mts +2 -0
- package/resources/credentials/onepassword/vaults/items.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items.d.ts +2 -0
- package/resources/credentials/onepassword/vaults/items.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items.js +6 -0
- package/resources/credentials/onepassword/vaults/items.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items.mjs +3 -0
- package/resources/credentials/onepassword/vaults/items.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.d.mts +10 -0
- package/resources/credentials/onepassword/vaults/vaults.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.d.ts +10 -0
- package/resources/credentials/onepassword/vaults/vaults.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.js +17 -0
- package/resources/credentials/onepassword/vaults/vaults.js.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.mjs +12 -0
- package/resources/credentials/onepassword/vaults/vaults.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults.d.mts +2 -0
- package/resources/credentials/onepassword/vaults.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults.d.ts +2 -0
- package/resources/credentials/onepassword/vaults.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults.js +6 -0
- package/resources/credentials/onepassword/vaults.js.map +1 -0
- package/resources/credentials/onepassword/vaults.mjs +3 -0
- package/resources/credentials/onepassword/vaults.mjs.map +1 -0
- package/resources/credentials/onepassword.d.mts +2 -0
- package/resources/credentials/onepassword.d.mts.map +1 -0
- package/resources/credentials/onepassword.d.ts +2 -0
- package/resources/credentials/onepassword.d.ts.map +1 -0
- package/resources/credentials/onepassword.js +6 -0
- package/resources/credentials/onepassword.js.map +1 -0
- package/resources/credentials/onepassword.mjs +3 -0
- package/resources/credentials/onepassword.mjs.map +1 -0
- package/resources/credentials/packages/credentials/credentials.d.mts +32 -32
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +32 -32
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js +0 -8
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs +0 -8
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +48 -0
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +48 -0
- package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/index.d.mts +1 -1
- package/resources/credentials/packages/credentials/index.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/index.d.ts +1 -1
- package/resources/credentials/packages/credentials/index.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/index.js.map +1 -1
- package/resources/credentials/packages/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/index.d.mts +2 -1
- package/resources/credentials/packages/index.d.mts.map +1 -1
- package/resources/credentials/packages/index.d.ts +2 -1
- package/resources/credentials/packages/index.d.ts.map +1 -1
- package/resources/credentials/packages/index.js +3 -1
- package/resources/credentials/packages/index.js.map +1 -1
- package/resources/credentials/packages/index.mjs +1 -0
- package/resources/credentials/packages/index.mjs.map +1 -1
- package/resources/credentials/packages/links.d.mts +65 -0
- package/resources/credentials/packages/links.d.mts.map +1 -0
- package/resources/credentials/packages/links.d.ts +65 -0
- package/resources/credentials/packages/links.d.ts.map +1 -0
- package/resources/credentials/packages/links.js +16 -0
- package/resources/credentials/packages/links.js.map +1 -0
- package/resources/credentials/packages/links.mjs +12 -0
- package/resources/credentials/packages/links.mjs.map +1 -0
- package/resources/credentials/packages/packages.d.mts +22 -2
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +22 -2
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +4 -0
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +4 -0
- package/resources/credentials/packages/packages.mjs.map +1 -1
- package/resources/devices/apps.d.mts +2 -2
- package/resources/devices/apps.d.ts +2 -2
- package/resources/devices/devices.d.mts +43 -28
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +43 -28
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +23 -19
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +23 -19
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +1 -1
- package/resources/devices/keyboard.d.ts +1 -1
- package/resources/devices/language.d.mts +6 -4
- package/resources/devices/language.d.mts.map +1 -1
- package/resources/devices/language.d.ts +6 -4
- package/resources/devices/language.d.ts.map +1 -1
- package/resources/devices/language.js +3 -2
- package/resources/devices/language.js.map +1 -1
- package/resources/devices/language.mjs +3 -2
- package/resources/devices/language.mjs.map +1 -1
- package/resources/devices/state.d.mts +1 -0
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +1 -0
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/mailboxes/messages.d.mts +13 -0
- package/resources/mailboxes/messages.d.mts.map +1 -1
- package/resources/mailboxes/messages.d.ts +13 -0
- package/resources/mailboxes/messages.d.ts.map +1 -1
- package/resources/mailboxes/messages.js +2 -2
- package/resources/mailboxes/messages.js.map +1 -1
- package/resources/mailboxes/messages.mjs +2 -2
- package/resources/mailboxes/messages.mjs.map +1 -1
- package/resources/messages/conversations.d.mts +6 -0
- package/resources/messages/conversations.d.mts.map +1 -1
- package/resources/messages/conversations.d.ts +6 -0
- package/resources/messages/conversations.d.ts.map +1 -1
- package/resources/messages/messages.d.mts +16 -0
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +16 -0
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +15 -1
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +15 -1
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/tasks/tasks.d.mts +4 -2
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +4 -2
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs.map +1 -1
- package/src/resources/assistant/conversations.ts +2 -0
- package/src/resources/connect/connect.ts +2 -0
- package/src/resources/connect/index.ts +1 -0
- package/src/resources/connect/proxies.ts +27 -0
- package/src/resources/credentials/credentials.ts +51 -0
- package/src/resources/credentials/index.ts +7 -0
- package/src/resources/credentials/onepassword/index.ts +10 -0
- package/src/resources/credentials/onepassword/onepassword.ts +101 -0
- package/src/resources/credentials/onepassword/vaults/index.ts +4 -0
- package/src/resources/credentials/onepassword/vaults/items/fields.ts +40 -0
- package/src/resources/credentials/onepassword/vaults/items/index.ts +4 -0
- package/src/resources/credentials/onepassword/vaults/items/items.ts +55 -0
- package/src/resources/credentials/onepassword/vaults/items.ts +3 -0
- package/src/resources/credentials/onepassword/vaults/vaults.ts +15 -0
- package/src/resources/credentials/onepassword/vaults.ts +3 -0
- package/src/resources/credentials/onepassword.ts +3 -0
- package/src/resources/credentials/packages/credentials/credentials.ts +58 -55
- package/src/resources/credentials/packages/credentials/fields.ts +99 -0
- package/src/resources/credentials/packages/credentials/index.ts +0 -2
- package/src/resources/credentials/packages/index.ts +1 -2
- package/src/resources/credentials/packages/links.ts +122 -0
- package/src/resources/credentials/packages/packages.ts +43 -4
- package/src/resources/devices/apps.ts +2 -2
- package/src/resources/devices/devices.ts +48 -37
- package/src/resources/devices/keyboard.ts +1 -1
- package/src/resources/devices/language.ts +6 -4
- package/src/resources/devices/state.ts +2 -0
- package/src/resources/mailboxes/messages.ts +17 -2
- package/src/resources/messages/conversations.ts +6 -0
- package/src/resources/messages/messages.ts +16 -0
- package/src/resources/numbers/messages.ts +15 -1
- package/src/resources/tasks/tasks.ts +4 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
6
|
+
import { path } from '../../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Links extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Link a 1Password item to a credential
|
|
11
|
+
*/
|
|
12
|
+
create(
|
|
13
|
+
packageName: string,
|
|
14
|
+
body: LinkCreateParams,
|
|
15
|
+
options?: RequestOptions,
|
|
16
|
+
): APIPromise<LinkCreateResponse> {
|
|
17
|
+
return this._client.post(path`/credentials/packages/${packageName}/links`, { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface LinkCreateResponse {
|
|
22
|
+
data: LinkCreateResponse.Data;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export namespace LinkCreateResponse {
|
|
26
|
+
export interface Data {
|
|
27
|
+
createdBy: string | null;
|
|
28
|
+
|
|
29
|
+
credentialName: string;
|
|
30
|
+
|
|
31
|
+
fields: Array<Data.Field>;
|
|
32
|
+
|
|
33
|
+
ownerId: string;
|
|
34
|
+
|
|
35
|
+
packageName: string;
|
|
36
|
+
|
|
37
|
+
secretPath: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated Deprecated: use createdBy (same value — the creating actor). Null
|
|
41
|
+
* for credentials created before rollout.
|
|
42
|
+
*/
|
|
43
|
+
userId: string | null;
|
|
44
|
+
|
|
45
|
+
link?: Data.Link;
|
|
46
|
+
|
|
47
|
+
source?: 'mobilerun' | 'onepassword';
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export namespace Data {
|
|
51
|
+
export interface Field {
|
|
52
|
+
fieldType:
|
|
53
|
+
| 'email'
|
|
54
|
+
| 'username'
|
|
55
|
+
| 'password'
|
|
56
|
+
| 'api_token'
|
|
57
|
+
| 'phone_number'
|
|
58
|
+
| 'two_factor_secret'
|
|
59
|
+
| 'backup_codes';
|
|
60
|
+
|
|
61
|
+
value: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface Link {
|
|
65
|
+
fieldMap: Array<Link.FieldMap>;
|
|
66
|
+
|
|
67
|
+
itemId: string;
|
|
68
|
+
|
|
69
|
+
itemTitle: string;
|
|
70
|
+
|
|
71
|
+
provider: 'onepassword';
|
|
72
|
+
|
|
73
|
+
vaultId: string;
|
|
74
|
+
|
|
75
|
+
vaultName: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export namespace Link {
|
|
79
|
+
export interface FieldMap {
|
|
80
|
+
fieldId: string;
|
|
81
|
+
|
|
82
|
+
fieldType:
|
|
83
|
+
| 'email'
|
|
84
|
+
| 'username'
|
|
85
|
+
| 'password'
|
|
86
|
+
| 'api_token'
|
|
87
|
+
| 'phone_number'
|
|
88
|
+
| 'two_factor_secret'
|
|
89
|
+
| 'backup_codes';
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface LinkCreateParams {
|
|
96
|
+
credentialName: string;
|
|
97
|
+
|
|
98
|
+
fieldMap: Array<LinkCreateParams.FieldMap>;
|
|
99
|
+
|
|
100
|
+
itemId: string;
|
|
101
|
+
|
|
102
|
+
vaultId: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export namespace LinkCreateParams {
|
|
106
|
+
export interface FieldMap {
|
|
107
|
+
fieldId: string;
|
|
108
|
+
|
|
109
|
+
fieldType:
|
|
110
|
+
| 'email'
|
|
111
|
+
| 'username'
|
|
112
|
+
| 'password'
|
|
113
|
+
| 'api_token'
|
|
114
|
+
| 'phone_number'
|
|
115
|
+
| 'two_factor_secret'
|
|
116
|
+
| 'backup_codes';
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export declare namespace Links {
|
|
121
|
+
export { type LinkCreateResponse as LinkCreateResponse, type LinkCreateParams as LinkCreateParams };
|
|
122
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as LinksAPI from './links';
|
|
5
|
+
import { LinkCreateParams, LinkCreateResponse, Links } from './links';
|
|
4
6
|
import * as CredentialsAPI from './credentials/credentials';
|
|
5
7
|
import {
|
|
6
8
|
CredentialCreateParams,
|
|
7
9
|
CredentialCreateResponse,
|
|
8
10
|
CredentialDeleteParams,
|
|
9
11
|
CredentialDeleteResponse,
|
|
10
|
-
CredentialRetrieveParams,
|
|
11
|
-
CredentialRetrieveResponse,
|
|
12
12
|
Credentials,
|
|
13
13
|
} from './credentials/credentials';
|
|
14
14
|
import { APIPromise } from '../../../core/api-promise';
|
|
@@ -17,6 +17,7 @@ import { path } from '../../../internal/utils/path';
|
|
|
17
17
|
|
|
18
18
|
export class Packages extends APIResource {
|
|
19
19
|
credentials: CredentialsAPI.Credentials = new CredentialsAPI.Credentials(this._client);
|
|
20
|
+
links: LinksAPI.Links = new LinksAPI.Links(this._client);
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
23
|
* Creates a new package (identified by `packageName`) under which credentials can
|
|
@@ -82,6 +83,10 @@ export namespace PackageListResponse {
|
|
|
82
83
|
* for credentials created before rollout.
|
|
83
84
|
*/
|
|
84
85
|
userId: string | null;
|
|
86
|
+
|
|
87
|
+
link?: Data.Link;
|
|
88
|
+
|
|
89
|
+
source?: 'mobilerun' | 'onepassword';
|
|
85
90
|
}
|
|
86
91
|
|
|
87
92
|
export namespace Data {
|
|
@@ -97,6 +102,35 @@ export namespace PackageListResponse {
|
|
|
97
102
|
|
|
98
103
|
value: string;
|
|
99
104
|
}
|
|
105
|
+
|
|
106
|
+
export interface Link {
|
|
107
|
+
fieldMap: Array<Link.FieldMap>;
|
|
108
|
+
|
|
109
|
+
itemId: string;
|
|
110
|
+
|
|
111
|
+
itemTitle: string;
|
|
112
|
+
|
|
113
|
+
provider: 'onepassword';
|
|
114
|
+
|
|
115
|
+
vaultId: string;
|
|
116
|
+
|
|
117
|
+
vaultName: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export namespace Link {
|
|
121
|
+
export interface FieldMap {
|
|
122
|
+
fieldId: string;
|
|
123
|
+
|
|
124
|
+
fieldType:
|
|
125
|
+
| 'email'
|
|
126
|
+
| 'username'
|
|
127
|
+
| 'password'
|
|
128
|
+
| 'api_token'
|
|
129
|
+
| 'phone_number'
|
|
130
|
+
| 'two_factor_secret'
|
|
131
|
+
| 'backup_codes';
|
|
132
|
+
}
|
|
133
|
+
}
|
|
100
134
|
}
|
|
101
135
|
}
|
|
102
136
|
|
|
@@ -115,6 +149,7 @@ export interface PackageCreateParams {
|
|
|
115
149
|
}
|
|
116
150
|
|
|
117
151
|
Packages.Credentials = Credentials;
|
|
152
|
+
Packages.Links = Links;
|
|
118
153
|
|
|
119
154
|
export declare namespace Packages {
|
|
120
155
|
export {
|
|
@@ -127,10 +162,14 @@ export declare namespace Packages {
|
|
|
127
162
|
export {
|
|
128
163
|
Credentials as Credentials,
|
|
129
164
|
type CredentialCreateResponse as CredentialCreateResponse,
|
|
130
|
-
type CredentialRetrieveResponse as CredentialRetrieveResponse,
|
|
131
165
|
type CredentialDeleteResponse as CredentialDeleteResponse,
|
|
132
166
|
type CredentialCreateParams as CredentialCreateParams,
|
|
133
|
-
type CredentialRetrieveParams as CredentialRetrieveParams,
|
|
134
167
|
type CredentialDeleteParams as CredentialDeleteParams,
|
|
135
168
|
};
|
|
169
|
+
|
|
170
|
+
export {
|
|
171
|
+
Links as Links,
|
|
172
|
+
type LinkCreateResponse as LinkCreateResponse,
|
|
173
|
+
type LinkCreateParams as LinkCreateParams,
|
|
174
|
+
};
|
|
136
175
|
}
|
|
@@ -256,8 +256,8 @@ export namespace AppListInstallsResponse {
|
|
|
256
256
|
startedAt: string;
|
|
257
257
|
|
|
258
258
|
/**
|
|
259
|
-
* On iOS
|
|
260
|
-
*
|
|
259
|
+
* On some iOS devices, succeeded means the device accepted the install command;
|
|
260
|
+
* the install may still be running on the device.
|
|
261
261
|
*/
|
|
262
262
|
status: 'running' | 'succeeded' | 'failed';
|
|
263
263
|
|
|
@@ -163,9 +163,9 @@ export class Devices extends APIResource {
|
|
|
163
163
|
* token.
|
|
164
164
|
*/
|
|
165
165
|
create(params: DeviceCreateParams, options?: RequestOptions): APIPromise<DeviceCreateResponse> {
|
|
166
|
-
const { billing, query_country, deviceType, profileId, ...body } = params;
|
|
166
|
+
const { billing, query_country, deviceType, profileId, template, ...body } = params;
|
|
167
167
|
return this._client.post('/devices', {
|
|
168
|
-
query: { billing, country: query_country, deviceType, profileId },
|
|
168
|
+
query: { billing, country: query_country, deviceType, profileId, template },
|
|
169
169
|
body,
|
|
170
170
|
...options,
|
|
171
171
|
});
|
|
@@ -231,7 +231,10 @@ export class Devices extends APIResource {
|
|
|
231
231
|
|
|
232
232
|
/**
|
|
233
233
|
* Triggers a reboot of the device. The device transitions through its reboot
|
|
234
|
-
* lifecycle and becomes ready again once the restart completes.
|
|
234
|
+
* lifecycle and becomes ready again once the restart completes. Only devices whose
|
|
235
|
+
* capabilities report `reboot=true` can be rebooted. Personal (BYOD) devices
|
|
236
|
+
* cannot be rebooted remotely: the request is refused with 400
|
|
237
|
+
* `DEVICE_TOOL_UNSUPPORTED` and nothing happens on the device.
|
|
235
238
|
*/
|
|
236
239
|
reboot(deviceID: string, options?: RequestOptions): APIPromise<void> {
|
|
237
240
|
return this._client.post(path`/devices/${deviceID}/reboot`, {
|
|
@@ -241,16 +244,13 @@ export class Devices extends APIResource {
|
|
|
241
244
|
}
|
|
242
245
|
|
|
243
246
|
/**
|
|
244
|
-
* Resets the device.
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
* mode only when it is the one their capabilities advertise, and always accept a
|
|
252
|
-
* reset without a mode. The device transitions through its reset lifecycle before
|
|
253
|
-
* becoming ready again.
|
|
247
|
+
* Resets the device. `mode` selects what is erased: `full` (factory reset: apps,
|
|
248
|
+
* accounts, storage, new identity) or `identity` (new fingerprint, apps and data
|
|
249
|
+
* kept). Without `mode` the reset is `full`, or `identity` on devices with
|
|
250
|
+
* `factoryReset=false`. A mode or `preserve` value the device does not support is
|
|
251
|
+
* refused with 400 `DEVICE_TOOL_UNSUPPORTED`. `preserve` restores the latest
|
|
252
|
+
* proxy, location, locale or timezone set through the API after the reset; omitted
|
|
253
|
+
* or empty preserves nothing. The device becomes ready again after the reset.
|
|
254
254
|
*/
|
|
255
255
|
reset(
|
|
256
256
|
deviceID: string,
|
|
@@ -265,9 +265,9 @@ export class Devices extends APIResource {
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
/**
|
|
268
|
-
* Wakes a parked device:
|
|
269
|
-
*
|
|
270
|
-
*
|
|
268
|
+
* Wakes a parked device: it first checks that the device can run again, then the
|
|
269
|
+
* same device starts and per-minute billing resumes. On a device that is not
|
|
270
|
+
* parked, the request does nothing.
|
|
271
271
|
*/
|
|
272
272
|
resume(deviceID: string, options?: RequestOptions): APIPromise<void> {
|
|
273
273
|
return this._client.post(path`/devices/${deviceID}/resume`, {
|
|
@@ -323,9 +323,13 @@ export class Devices extends APIResource {
|
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
/**
|
|
326
|
-
* Terminates the device and releases its resources.
|
|
327
|
-
*
|
|
328
|
-
*
|
|
326
|
+
* Terminates the device and releases its resources. For a personal (BYOD) device
|
|
327
|
+
* the owner (API key or user) can instead remove the phone from the account so
|
|
328
|
+
* anyone can pair it again; the phone must be disconnected first, otherwise the
|
|
329
|
+
* request is rejected with 409 BYOD_DEVICE_CONNECTED. Other subscription-billed
|
|
330
|
+
* devices cannot be terminated with this request; it is rejected with 401. The
|
|
331
|
+
* `terminateAt` and `previousDeviceId` body fields are reserved for internal use;
|
|
332
|
+
* requests that set them are rejected with 401.
|
|
329
333
|
*/
|
|
330
334
|
terminate(
|
|
331
335
|
deviceID: string,
|
|
@@ -550,8 +554,6 @@ export namespace DeviceFingerprintResponse {
|
|
|
550
554
|
|
|
551
555
|
hardware?: string;
|
|
552
556
|
|
|
553
|
-
imageRepository?: string;
|
|
554
|
-
|
|
555
557
|
manufacturer?: string;
|
|
556
558
|
|
|
557
559
|
model?: string;
|
|
@@ -607,6 +609,8 @@ export namespace DeviceRetrieveCapabilitiesResponse {
|
|
|
607
609
|
|
|
608
610
|
proxy: boolean;
|
|
609
611
|
|
|
612
|
+
reboot: boolean;
|
|
613
|
+
|
|
610
614
|
recording: boolean;
|
|
611
615
|
|
|
612
616
|
reset: boolean;
|
|
@@ -761,18 +765,27 @@ export interface DeviceCreateParams {
|
|
|
761
765
|
query_country?: string;
|
|
762
766
|
|
|
763
767
|
/**
|
|
764
|
-
* Query param:
|
|
765
|
-
*
|
|
766
|
-
*
|
|
767
|
-
*
|
|
768
|
+
* Query param: Device type: android_cloud_phone (cloud Android phone), ios_phone
|
|
769
|
+
* or device_slot. Any other value is rejected with 422. Not every device type is
|
|
770
|
+
* available for creation; an unavailable type returns DEVICE_TYPE_UNAVAILABLE
|
|
771
|
+
* (422).
|
|
768
772
|
*/
|
|
769
|
-
deviceType?:
|
|
773
|
+
deviceType?: 'android_cloud_phone' | 'ios_phone' | 'device_slot';
|
|
770
774
|
|
|
771
775
|
/**
|
|
772
776
|
* Query param: Profile ID to use as device spec
|
|
773
777
|
*/
|
|
774
778
|
profileId?: string;
|
|
775
779
|
|
|
780
|
+
/**
|
|
781
|
+
* Query param: Optional device template, e.g. onboarding. The device gets the
|
|
782
|
+
* template's Android version and preinstalled apps and is ready in seconds when a
|
|
783
|
+
* prepared phone is available; otherwise it boots with the same setup. Country,
|
|
784
|
+
* name and proxy still come from this request. Cannot be combined with profileId,
|
|
785
|
+
* apps or androidVersion. Omit it to create from the request alone.
|
|
786
|
+
*/
|
|
787
|
+
template?: string;
|
|
788
|
+
|
|
776
789
|
/**
|
|
777
790
|
* Body param
|
|
778
791
|
*/
|
|
@@ -901,8 +914,7 @@ export interface DeviceListParams {
|
|
|
901
914
|
pageSize?: number;
|
|
902
915
|
|
|
903
916
|
/**
|
|
904
|
-
* Filter by the device's platform as served in the platform field
|
|
905
|
-
* announced, else type-derived).
|
|
917
|
+
* Filter by the device's platform as served in the platform field.
|
|
906
918
|
*/
|
|
907
919
|
platform?: 'android' | 'ios';
|
|
908
920
|
|
|
@@ -933,16 +945,9 @@ export interface DeviceListParams {
|
|
|
933
945
|
> | null;
|
|
934
946
|
|
|
935
947
|
/**
|
|
936
|
-
*
|
|
937
|
-
* Availability depends on the deployment.
|
|
948
|
+
* Filter by device type.
|
|
938
949
|
*/
|
|
939
|
-
type?:
|
|
940
|
-
| 'android_cloud_phone'
|
|
941
|
-
| 'android_physical_phone'
|
|
942
|
-
| 'ios_stealth_phone'
|
|
943
|
-
| 'android_emulator'
|
|
944
|
-
| 'ios_simulator'
|
|
945
|
-
| 'device_slot';
|
|
950
|
+
type?: 'android_cloud_phone' | 'ios_phone' | 'device_slot';
|
|
946
951
|
}
|
|
947
952
|
|
|
948
953
|
export interface DeviceFingerprintParams {
|
|
@@ -957,6 +962,12 @@ export interface DeviceResetParams {
|
|
|
957
962
|
* capabilities report factoryReset=false.
|
|
958
963
|
*/
|
|
959
964
|
mode?: 'full' | 'identity';
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* Device configuration to restore after the reset: the latest value set through
|
|
968
|
+
* the API. Omitted, null or empty preserves nothing.
|
|
969
|
+
*/
|
|
970
|
+
preserve?: Array<'proxy' | 'location' | 'locale' | 'timezone'> | null;
|
|
960
971
|
}
|
|
961
972
|
|
|
962
973
|
export interface DeviceSetNameParams {
|
|
@@ -108,7 +108,7 @@ export interface KeyboardWriteParams {
|
|
|
108
108
|
completionMode?: 'accepted' | 'committed';
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
|
-
* Body param: Per-character mistake rate for
|
|
111
|
+
* Body param: Per-character mistake rate for humanized typing. -1 uses server
|
|
112
112
|
* default.
|
|
113
113
|
*/
|
|
114
114
|
errorRate?: number;
|
|
@@ -31,8 +31,9 @@ export class Language extends APIResource {
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Sets the device language/locale to the BCP-47 locale in the request body. An
|
|
34
|
-
* optional restart flag applies the change immediately by restarting the
|
|
35
|
-
* instead of waiting for the next reboot
|
|
34
|
+
* optional restart flag applies the change immediately by restarting the Android
|
|
35
|
+
* system framework (open apps are closed) instead of waiting for the next reboot;
|
|
36
|
+
* some devices ignore it.
|
|
36
37
|
*/
|
|
37
38
|
set(deviceID: string, params: LanguageSetParams, options?: RequestOptions): APIPromise<void> {
|
|
38
39
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -73,8 +74,9 @@ export interface LanguageSetParams {
|
|
|
73
74
|
locale: string;
|
|
74
75
|
|
|
75
76
|
/**
|
|
76
|
-
* Body param: Restart
|
|
77
|
-
*
|
|
77
|
+
* Body param: Restart the Android system framework so the locale change takes full
|
|
78
|
+
* effect immediately; open apps are closed. Without it, the change may not fully
|
|
79
|
+
* apply until the next reboot. Some devices ignore this flag.
|
|
78
80
|
*/
|
|
79
81
|
restart?: boolean;
|
|
80
82
|
|
|
@@ -22,8 +22,8 @@ export class Messages extends APIResource {
|
|
|
22
22
|
params: MessageRetrieveParams,
|
|
23
23
|
options?: RequestOptions,
|
|
24
24
|
): APIPromise<MessageRetrieveResponse> {
|
|
25
|
-
const { mailboxId } = params;
|
|
26
|
-
return this._client.get(path`/mailboxes/${mailboxId}/messages/${messageID}`, options);
|
|
25
|
+
const { mailboxId, ...query } = params;
|
|
26
|
+
return this._client.get(path`/mailboxes/${mailboxId}/messages/${messageID}`, { query, ...options });
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -71,6 +71,13 @@ export namespace MessageRetrieveResponse {
|
|
|
71
71
|
subject: string | null;
|
|
72
72
|
|
|
73
73
|
textBody: string | null;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Raw HTML part as received. Present only with includeHtml=true; null when the
|
|
77
|
+
* mail has no HTML part or it exceeds 1 MiB (UTF-8 bytes). Untrusted content:
|
|
78
|
+
* render only in an isolated sandboxed frame, never inline.
|
|
79
|
+
*/
|
|
80
|
+
htmlBody?: string | null;
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
export namespace Data {
|
|
@@ -109,7 +116,15 @@ export namespace MessageListResponse {
|
|
|
109
116
|
}
|
|
110
117
|
|
|
111
118
|
export interface MessageRetrieveParams {
|
|
119
|
+
/**
|
|
120
|
+
* Path param
|
|
121
|
+
*/
|
|
112
122
|
mailboxId: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Query param: Return the raw HTML part as htmlBody (untrusted; render isolated).
|
|
126
|
+
*/
|
|
127
|
+
includeHtml?: 'true' | 'false';
|
|
113
128
|
}
|
|
114
129
|
|
|
115
130
|
export interface MessageListParams {
|
|
@@ -55,6 +55,12 @@ export namespace ConversationListResponse {
|
|
|
55
55
|
|
|
56
56
|
occurredAt: string;
|
|
57
57
|
|
|
58
|
+
/**
|
|
59
|
+
* Message status. Outbound messages move queued → sending → sent, or end at
|
|
60
|
+
* failed. `sent` means the mobile network accepted the message and is the final
|
|
61
|
+
* success status. `delivered` and `sent_unconfirmed` are kept for compatibility;
|
|
62
|
+
* current lines return no carrier delivery report, so neither is emitted.
|
|
63
|
+
*/
|
|
58
64
|
status:
|
|
59
65
|
| 'received'
|
|
60
66
|
| 'queued'
|
|
@@ -68,6 +68,12 @@ export namespace MessageRetrieveResponse {
|
|
|
68
68
|
|
|
69
69
|
providerCode: string | null;
|
|
70
70
|
|
|
71
|
+
/**
|
|
72
|
+
* Message status. Outbound messages move queued → sending → sent, or end at
|
|
73
|
+
* failed. `sent` means the mobile network accepted the message and is the final
|
|
74
|
+
* success status. `delivered` and `sent_unconfirmed` are kept for compatibility;
|
|
75
|
+
* current lines return no carrier delivery report, so neither is emitted.
|
|
76
|
+
*/
|
|
71
77
|
status:
|
|
72
78
|
| 'received'
|
|
73
79
|
| 'queued'
|
|
@@ -118,6 +124,12 @@ export namespace MessageListResponse {
|
|
|
118
124
|
|
|
119
125
|
providerCode: string | null;
|
|
120
126
|
|
|
127
|
+
/**
|
|
128
|
+
* Message status. Outbound messages move queued → sending → sent, or end at
|
|
129
|
+
* failed. `sent` means the mobile network accepted the message and is the final
|
|
130
|
+
* success status. `delivered` and `sent_unconfirmed` are kept for compatibility;
|
|
131
|
+
* current lines return no carrier delivery report, so neither is emitted.
|
|
132
|
+
*/
|
|
121
133
|
status:
|
|
122
134
|
| 'received'
|
|
123
135
|
| 'queued'
|
|
@@ -151,6 +163,10 @@ export interface MessageListParams {
|
|
|
151
163
|
|
|
152
164
|
peerNumber?: string;
|
|
153
165
|
|
|
166
|
+
/**
|
|
167
|
+
* Filter by message status. `delivered` and `sent_unconfirmed` are kept for
|
|
168
|
+
* compatibility and are not emitted on current lines.
|
|
169
|
+
*/
|
|
154
170
|
status?:
|
|
155
171
|
| 'all'
|
|
156
172
|
| 'received'
|
|
@@ -82,6 +82,12 @@ export namespace MessageListResponse {
|
|
|
82
82
|
|
|
83
83
|
peerNumber: string | null;
|
|
84
84
|
|
|
85
|
+
/**
|
|
86
|
+
* Message status. Outbound messages move queued → sending → sent, or end at
|
|
87
|
+
* failed. `sent` means the mobile network accepted the message and is the final
|
|
88
|
+
* success status. `delivered` and `sent_unconfirmed` are kept for compatibility;
|
|
89
|
+
* current lines return no carrier delivery report, so neither is emitted.
|
|
90
|
+
*/
|
|
85
91
|
status:
|
|
86
92
|
| 'received'
|
|
87
93
|
| 'queued'
|
|
@@ -128,6 +134,12 @@ export namespace MessageSendResponse {
|
|
|
128
134
|
|
|
129
135
|
peerNumber: string | null;
|
|
130
136
|
|
|
137
|
+
/**
|
|
138
|
+
* Message status. Outbound messages move queued → sending → sent, or end at
|
|
139
|
+
* failed. `sent` means the mobile network accepted the message and is the final
|
|
140
|
+
* success status. `delivered` and `sent_unconfirmed` are kept for compatibility;
|
|
141
|
+
* current lines return no carrier delivery report, so neither is emitted.
|
|
142
|
+
*/
|
|
131
143
|
status:
|
|
132
144
|
| 'received'
|
|
133
145
|
| 'queued'
|
|
@@ -171,7 +183,9 @@ export interface MessageSendParams {
|
|
|
171
183
|
to: string;
|
|
172
184
|
|
|
173
185
|
/**
|
|
174
|
-
*
|
|
186
|
+
* @deprecated Deprecated: best effort and ignored on most lines. Hosted SIM
|
|
187
|
+
* numbers return no carrier delivery report, so their messages end at `sent` and
|
|
188
|
+
* no `sms.send.delivered` event follows. Defaults to false.
|
|
175
189
|
*/
|
|
176
190
|
deliveryReport?: boolean;
|
|
177
191
|
}
|
|
@@ -1096,7 +1096,8 @@ export interface TaskRunParams {
|
|
|
1096
1096
|
|
|
1097
1097
|
/**
|
|
1098
1098
|
* The LLM model identifier to use for the task (e.g.
|
|
1099
|
-
* 'mobilerun/mobile-agent-fast')
|
|
1099
|
+
* 'mobilerun/mobile-agent-fast'). When omitted with reasoning=false, the fast-mode
|
|
1100
|
+
* default model is used.
|
|
1100
1101
|
*/
|
|
1101
1102
|
llmModel?: string;
|
|
1102
1103
|
|
|
@@ -1183,7 +1184,8 @@ export interface TaskRunStreamedParams {
|
|
|
1183
1184
|
|
|
1184
1185
|
/**
|
|
1185
1186
|
* The LLM model identifier to use for the task (e.g.
|
|
1186
|
-
* 'mobilerun/mobile-agent-fast')
|
|
1187
|
+
* 'mobilerun/mobile-agent-fast'). When omitted with reasoning=false, the fast-mode
|
|
1188
|
+
* default model is used.
|
|
1187
1189
|
*/
|
|
1188
1190
|
llmModel?: string;
|
|
1189
1191
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.0
|
|
1
|
+
export const VERSION = '6.1.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.0
|
|
1
|
+
export declare const VERSION = "6.1.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.0
|
|
1
|
+
export declare const VERSION = "6.1.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '6.0
|
|
1
|
+
export const VERSION = '6.1.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|