openlayer 0.20.2 → 0.21.1
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 +17 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.d.mts +14 -14
- package/resources/inference-pipelines/inference-pipelines.d.mts.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.d.ts +14 -14
- package/resources/inference-pipelines/inference-pipelines.d.ts.map +1 -1
- package/resources/projects/inference-pipelines.d.mts +31 -31
- package/resources/projects/inference-pipelines.d.mts.map +1 -1
- package/resources/projects/inference-pipelines.d.ts +31 -31
- package/resources/projects/inference-pipelines.d.ts.map +1 -1
- package/resources/workspaces/api-keys.d.mts +52 -0
- package/resources/workspaces/api-keys.d.mts.map +1 -0
- package/resources/workspaces/api-keys.d.ts +52 -0
- package/resources/workspaces/api-keys.d.ts.map +1 -0
- package/resources/workspaces/api-keys.js +23 -0
- package/resources/workspaces/api-keys.js.map +1 -0
- package/resources/workspaces/api-keys.mjs +19 -0
- package/resources/workspaces/api-keys.mjs.map +1 -0
- package/resources/workspaces/index.d.mts +4 -0
- package/resources/workspaces/index.d.mts.map +1 -0
- package/resources/workspaces/index.d.ts +4 -0
- package/resources/workspaces/index.d.ts.map +1 -0
- package/resources/workspaces/index.js +11 -0
- package/resources/workspaces/index.js.map +1 -0
- package/resources/workspaces/index.mjs +5 -0
- package/resources/workspaces/index.mjs.map +1 -0
- package/resources/workspaces/invites.d.mts +152 -0
- package/resources/workspaces/invites.d.mts.map +1 -0
- package/resources/workspaces/invites.d.ts +152 -0
- package/resources/workspaces/invites.d.ts.map +1 -0
- package/resources/workspaces/invites.js +36 -0
- package/resources/workspaces/invites.js.map +1 -0
- package/resources/workspaces/invites.mjs +32 -0
- package/resources/workspaces/invites.mjs.map +1 -0
- package/resources/workspaces/workspaces.d.mts +173 -0
- package/resources/workspaces/workspaces.d.mts.map +1 -0
- package/resources/workspaces/workspaces.d.ts +173 -0
- package/resources/workspaces/workspaces.d.ts.map +1 -0
- package/resources/workspaces/workspaces.js +48 -0
- package/resources/workspaces/workspaces.js.map +1 -0
- package/resources/workspaces/workspaces.mjs +43 -0
- package/resources/workspaces/workspaces.mjs.map +1 -0
- package/resources/workspaces.d.mts +2 -0
- package/resources/workspaces.d.mts.map +1 -0
- package/resources/workspaces.d.ts +2 -0
- package/resources/workspaces.d.ts.map +1 -0
- package/resources/workspaces.js +6 -0
- package/resources/workspaces.js.map +1 -0
- package/resources/workspaces.mjs +3 -0
- package/resources/workspaces.mjs.map +1 -0
- package/src/client.ts +15 -0
- package/src/resources/index.ts +6 -0
- package/src/resources/inference-pipelines/inference-pipelines.ts +24 -24
- package/src/resources/projects/inference-pipelines.ts +46 -46
- package/src/resources/workspaces/api-keys.ts +69 -0
- package/src/resources/workspaces/index.ts +16 -0
- package/src/resources/workspaces/invites.ts +210 -0
- package/src/resources/workspaces/workspaces.ts +267 -0
- package/src/resources/workspaces.ts +3 -0
- 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,267 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as APIKeysAPI from './api-keys';
|
|
5
|
+
import { APIKeyCreateParams, APIKeyCreateResponse, APIKeys } from './api-keys';
|
|
6
|
+
import * as InvitesAPI from './invites';
|
|
7
|
+
import {
|
|
8
|
+
InviteCreateParams,
|
|
9
|
+
InviteCreateResponse,
|
|
10
|
+
InviteListParams,
|
|
11
|
+
InviteListResponse,
|
|
12
|
+
Invites,
|
|
13
|
+
} from './invites';
|
|
14
|
+
import { APIPromise } from '../../core/api-promise';
|
|
15
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
16
|
+
import { path } from '../../internal/utils/path';
|
|
17
|
+
|
|
18
|
+
export class Workspaces extends APIResource {
|
|
19
|
+
invites: InvitesAPI.Invites = new InvitesAPI.Invites(this._client);
|
|
20
|
+
apiKeys: APIKeysAPI.APIKeys = new APIKeysAPI.APIKeys(this._client);
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve a workspace by its ID.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const workspace = await client.workspaces.retrieve(
|
|
28
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
29
|
+
* );
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
retrieve(workspaceID: string, options?: RequestOptions): APIPromise<WorkspaceRetrieveResponse> {
|
|
33
|
+
return this._client.get(path`/workspaces/${workspaceID}`, options);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Update a workspace.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const workspace = await client.workspaces.update(
|
|
42
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
update(
|
|
47
|
+
workspaceID: string,
|
|
48
|
+
body: WorkspaceUpdateParams | null | undefined = {},
|
|
49
|
+
options?: RequestOptions,
|
|
50
|
+
): APIPromise<WorkspaceUpdateResponse> {
|
|
51
|
+
return this._client.put(path`/workspaces/${workspaceID}`, { body, ...options });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface WorkspaceRetrieveResponse {
|
|
56
|
+
/**
|
|
57
|
+
* The workspace id.
|
|
58
|
+
*/
|
|
59
|
+
id: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The workspace creator id.
|
|
63
|
+
*/
|
|
64
|
+
creatorId: string | null;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The workspace creation date.
|
|
68
|
+
*/
|
|
69
|
+
dateCreated: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The workspace last updated date.
|
|
73
|
+
*/
|
|
74
|
+
dateUpdated: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The number of invites in the workspace.
|
|
78
|
+
*/
|
|
79
|
+
inviteCount: number;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The number of members in the workspace.
|
|
83
|
+
*/
|
|
84
|
+
memberCount: number;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* The workspace name.
|
|
88
|
+
*/
|
|
89
|
+
name: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The end date of the current billing period.
|
|
93
|
+
*/
|
|
94
|
+
periodEndDate: string | null;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The start date of the current billing period.
|
|
98
|
+
*/
|
|
99
|
+
periodStartDate: string | null;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* The number of projects in the workspace.
|
|
103
|
+
*/
|
|
104
|
+
projectCount: number;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The workspace slug.
|
|
108
|
+
*/
|
|
109
|
+
slug: string;
|
|
110
|
+
|
|
111
|
+
status:
|
|
112
|
+
| 'active'
|
|
113
|
+
| 'past_due'
|
|
114
|
+
| 'unpaid'
|
|
115
|
+
| 'canceled'
|
|
116
|
+
| 'incomplete'
|
|
117
|
+
| 'incomplete_expired'
|
|
118
|
+
| 'trialing'
|
|
119
|
+
| 'paused';
|
|
120
|
+
|
|
121
|
+
monthlyUsage?: Array<WorkspaceRetrieveResponse.MonthlyUsage>;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Whether the workspace only allows SAML authentication.
|
|
125
|
+
*/
|
|
126
|
+
samlOnlyAccess?: boolean;
|
|
127
|
+
|
|
128
|
+
wildcardDomains?: Array<string>;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export namespace WorkspaceRetrieveResponse {
|
|
132
|
+
export interface MonthlyUsage {
|
|
133
|
+
executionTimeMs?: number | null;
|
|
134
|
+
|
|
135
|
+
monthYear?: string;
|
|
136
|
+
|
|
137
|
+
predictionCount?: number;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface WorkspaceUpdateResponse {
|
|
142
|
+
/**
|
|
143
|
+
* The workspace id.
|
|
144
|
+
*/
|
|
145
|
+
id: string;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* The workspace creator id.
|
|
149
|
+
*/
|
|
150
|
+
creatorId: string | null;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* The workspace creation date.
|
|
154
|
+
*/
|
|
155
|
+
dateCreated: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* The workspace last updated date.
|
|
159
|
+
*/
|
|
160
|
+
dateUpdated: string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The number of invites in the workspace.
|
|
164
|
+
*/
|
|
165
|
+
inviteCount: number;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* The number of members in the workspace.
|
|
169
|
+
*/
|
|
170
|
+
memberCount: number;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* The workspace name.
|
|
174
|
+
*/
|
|
175
|
+
name: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* The end date of the current billing period.
|
|
179
|
+
*/
|
|
180
|
+
periodEndDate: string | null;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* The start date of the current billing period.
|
|
184
|
+
*/
|
|
185
|
+
periodStartDate: string | null;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* The number of projects in the workspace.
|
|
189
|
+
*/
|
|
190
|
+
projectCount: number;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The workspace slug.
|
|
194
|
+
*/
|
|
195
|
+
slug: string;
|
|
196
|
+
|
|
197
|
+
status:
|
|
198
|
+
| 'active'
|
|
199
|
+
| 'past_due'
|
|
200
|
+
| 'unpaid'
|
|
201
|
+
| 'canceled'
|
|
202
|
+
| 'incomplete'
|
|
203
|
+
| 'incomplete_expired'
|
|
204
|
+
| 'trialing'
|
|
205
|
+
| 'paused';
|
|
206
|
+
|
|
207
|
+
monthlyUsage?: Array<WorkspaceUpdateResponse.MonthlyUsage>;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Whether the workspace only allows SAML authentication.
|
|
211
|
+
*/
|
|
212
|
+
samlOnlyAccess?: boolean;
|
|
213
|
+
|
|
214
|
+
wildcardDomains?: Array<string>;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export namespace WorkspaceUpdateResponse {
|
|
218
|
+
export interface MonthlyUsage {
|
|
219
|
+
executionTimeMs?: number | null;
|
|
220
|
+
|
|
221
|
+
monthYear?: string;
|
|
222
|
+
|
|
223
|
+
predictionCount?: number;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export interface WorkspaceUpdateParams {
|
|
228
|
+
/**
|
|
229
|
+
* The workspace invite code.
|
|
230
|
+
*/
|
|
231
|
+
inviteCode?: string;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* The workspace name.
|
|
235
|
+
*/
|
|
236
|
+
name?: string;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* The workspace slug.
|
|
240
|
+
*/
|
|
241
|
+
slug?: string;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
Workspaces.Invites = Invites;
|
|
245
|
+
Workspaces.APIKeys = APIKeys;
|
|
246
|
+
|
|
247
|
+
export declare namespace Workspaces {
|
|
248
|
+
export {
|
|
249
|
+
type WorkspaceRetrieveResponse as WorkspaceRetrieveResponse,
|
|
250
|
+
type WorkspaceUpdateResponse as WorkspaceUpdateResponse,
|
|
251
|
+
type WorkspaceUpdateParams as WorkspaceUpdateParams,
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
export {
|
|
255
|
+
Invites as Invites,
|
|
256
|
+
type InviteCreateResponse as InviteCreateResponse,
|
|
257
|
+
type InviteListResponse as InviteListResponse,
|
|
258
|
+
type InviteCreateParams as InviteCreateParams,
|
|
259
|
+
type InviteListParams as InviteListParams,
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
export {
|
|
263
|
+
APIKeys as APIKeys,
|
|
264
|
+
type APIKeyCreateResponse as APIKeyCreateResponse,
|
|
265
|
+
type APIKeyCreateParams as APIKeyCreateParams,
|
|
266
|
+
};
|
|
267
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.21.1'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.21.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.21.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.21.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|