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.
Files changed (80) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/index.d.mts +1 -0
  12. package/resources/index.d.mts.map +1 -1
  13. package/resources/index.d.ts +1 -0
  14. package/resources/index.d.ts.map +1 -1
  15. package/resources/index.js +3 -1
  16. package/resources/index.js.map +1 -1
  17. package/resources/index.mjs +1 -0
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/inference-pipelines/inference-pipelines.d.mts +14 -14
  20. package/resources/inference-pipelines/inference-pipelines.d.mts.map +1 -1
  21. package/resources/inference-pipelines/inference-pipelines.d.ts +14 -14
  22. package/resources/inference-pipelines/inference-pipelines.d.ts.map +1 -1
  23. package/resources/projects/inference-pipelines.d.mts +31 -31
  24. package/resources/projects/inference-pipelines.d.mts.map +1 -1
  25. package/resources/projects/inference-pipelines.d.ts +31 -31
  26. package/resources/projects/inference-pipelines.d.ts.map +1 -1
  27. package/resources/workspaces/api-keys.d.mts +52 -0
  28. package/resources/workspaces/api-keys.d.mts.map +1 -0
  29. package/resources/workspaces/api-keys.d.ts +52 -0
  30. package/resources/workspaces/api-keys.d.ts.map +1 -0
  31. package/resources/workspaces/api-keys.js +23 -0
  32. package/resources/workspaces/api-keys.js.map +1 -0
  33. package/resources/workspaces/api-keys.mjs +19 -0
  34. package/resources/workspaces/api-keys.mjs.map +1 -0
  35. package/resources/workspaces/index.d.mts +4 -0
  36. package/resources/workspaces/index.d.mts.map +1 -0
  37. package/resources/workspaces/index.d.ts +4 -0
  38. package/resources/workspaces/index.d.ts.map +1 -0
  39. package/resources/workspaces/index.js +11 -0
  40. package/resources/workspaces/index.js.map +1 -0
  41. package/resources/workspaces/index.mjs +5 -0
  42. package/resources/workspaces/index.mjs.map +1 -0
  43. package/resources/workspaces/invites.d.mts +152 -0
  44. package/resources/workspaces/invites.d.mts.map +1 -0
  45. package/resources/workspaces/invites.d.ts +152 -0
  46. package/resources/workspaces/invites.d.ts.map +1 -0
  47. package/resources/workspaces/invites.js +36 -0
  48. package/resources/workspaces/invites.js.map +1 -0
  49. package/resources/workspaces/invites.mjs +32 -0
  50. package/resources/workspaces/invites.mjs.map +1 -0
  51. package/resources/workspaces/workspaces.d.mts +173 -0
  52. package/resources/workspaces/workspaces.d.mts.map +1 -0
  53. package/resources/workspaces/workspaces.d.ts +173 -0
  54. package/resources/workspaces/workspaces.d.ts.map +1 -0
  55. package/resources/workspaces/workspaces.js +48 -0
  56. package/resources/workspaces/workspaces.js.map +1 -0
  57. package/resources/workspaces/workspaces.mjs +43 -0
  58. package/resources/workspaces/workspaces.mjs.map +1 -0
  59. package/resources/workspaces.d.mts +2 -0
  60. package/resources/workspaces.d.mts.map +1 -0
  61. package/resources/workspaces.d.ts +2 -0
  62. package/resources/workspaces.d.ts.map +1 -0
  63. package/resources/workspaces.js +6 -0
  64. package/resources/workspaces.js.map +1 -0
  65. package/resources/workspaces.mjs +3 -0
  66. package/resources/workspaces.mjs.map +1 -0
  67. package/src/client.ts +15 -0
  68. package/src/resources/index.ts +6 -0
  69. package/src/resources/inference-pipelines/inference-pipelines.ts +24 -24
  70. package/src/resources/projects/inference-pipelines.ts +46 -46
  71. package/src/resources/workspaces/api-keys.ts +69 -0
  72. package/src/resources/workspaces/index.ts +16 -0
  73. package/src/resources/workspaces/invites.ts +210 -0
  74. package/src/resources/workspaces/workspaces.ts +267 -0
  75. package/src/resources/workspaces.ts +3 -0
  76. package/src/version.ts +1 -1
  77. package/version.d.mts +1 -1
  78. package/version.d.ts +1 -1
  79. package/version.js +1 -1
  80. package/version.mjs +1 -1
@@ -0,0 +1,32 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
4
+ export class Invites extends APIResource {
5
+ /**
6
+ * Invite users to a workspace.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const invite = await client.workspaces.invites.create(
11
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
12
+ * );
13
+ * ```
14
+ */
15
+ create(workspaceID, body = {}, options) {
16
+ return this._client.post(path `/workspaces/${workspaceID}/invites`, { body, ...options });
17
+ }
18
+ /**
19
+ * Retrieve a list of invites in a workspace.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const invites = await client.workspaces.invites.list(
24
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
25
+ * );
26
+ * ```
27
+ */
28
+ list(workspaceID, query = {}, options) {
29
+ return this._client.get(path `/workspaces/${workspaceID}/invites`, { query, ...options });
30
+ }
31
+ }
32
+ //# sourceMappingURL=invites.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invites.mjs","sourceRoot":"","sources":["../../src/resources/workspaces/invites.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,MAAM,CACJ,WAAmB,EACnB,OAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAe,WAAW,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CACF,WAAmB,EACnB,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,WAAW,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF"}
@@ -0,0 +1,173 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as APIKeysAPI from "./api-keys.mjs";
3
+ import { APIKeyCreateParams, APIKeyCreateResponse, APIKeys } from "./api-keys.mjs";
4
+ import * as InvitesAPI from "./invites.mjs";
5
+ import { InviteCreateParams, InviteCreateResponse, InviteListParams, InviteListResponse, Invites } from "./invites.mjs";
6
+ import { APIPromise } from "../../core/api-promise.mjs";
7
+ import { RequestOptions } from "../../internal/request-options.mjs";
8
+ export declare class Workspaces extends APIResource {
9
+ invites: InvitesAPI.Invites;
10
+ apiKeys: APIKeysAPI.APIKeys;
11
+ /**
12
+ * Retrieve a workspace by its ID.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const workspace = await client.workspaces.retrieve(
17
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
18
+ * );
19
+ * ```
20
+ */
21
+ retrieve(workspaceID: string, options?: RequestOptions): APIPromise<WorkspaceRetrieveResponse>;
22
+ /**
23
+ * Update a workspace.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const workspace = await client.workspaces.update(
28
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
29
+ * );
30
+ * ```
31
+ */
32
+ update(workspaceID: string, body?: WorkspaceUpdateParams | null | undefined, options?: RequestOptions): APIPromise<WorkspaceUpdateResponse>;
33
+ }
34
+ export interface WorkspaceRetrieveResponse {
35
+ /**
36
+ * The workspace id.
37
+ */
38
+ id: string;
39
+ /**
40
+ * The workspace creator id.
41
+ */
42
+ creatorId: string | null;
43
+ /**
44
+ * The workspace creation date.
45
+ */
46
+ dateCreated: string;
47
+ /**
48
+ * The workspace last updated date.
49
+ */
50
+ dateUpdated: string;
51
+ /**
52
+ * The number of invites in the workspace.
53
+ */
54
+ inviteCount: number;
55
+ /**
56
+ * The number of members in the workspace.
57
+ */
58
+ memberCount: number;
59
+ /**
60
+ * The workspace name.
61
+ */
62
+ name: string;
63
+ /**
64
+ * The end date of the current billing period.
65
+ */
66
+ periodEndDate: string | null;
67
+ /**
68
+ * The start date of the current billing period.
69
+ */
70
+ periodStartDate: string | null;
71
+ /**
72
+ * The number of projects in the workspace.
73
+ */
74
+ projectCount: number;
75
+ /**
76
+ * The workspace slug.
77
+ */
78
+ slug: string;
79
+ status: 'active' | 'past_due' | 'unpaid' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'trialing' | 'paused';
80
+ monthlyUsage?: Array<WorkspaceRetrieveResponse.MonthlyUsage>;
81
+ /**
82
+ * Whether the workspace only allows SAML authentication.
83
+ */
84
+ samlOnlyAccess?: boolean;
85
+ wildcardDomains?: Array<string>;
86
+ }
87
+ export declare namespace WorkspaceRetrieveResponse {
88
+ interface MonthlyUsage {
89
+ executionTimeMs?: number | null;
90
+ monthYear?: string;
91
+ predictionCount?: number;
92
+ }
93
+ }
94
+ export interface WorkspaceUpdateResponse {
95
+ /**
96
+ * The workspace id.
97
+ */
98
+ id: string;
99
+ /**
100
+ * The workspace creator id.
101
+ */
102
+ creatorId: string | null;
103
+ /**
104
+ * The workspace creation date.
105
+ */
106
+ dateCreated: string;
107
+ /**
108
+ * The workspace last updated date.
109
+ */
110
+ dateUpdated: string;
111
+ /**
112
+ * The number of invites in the workspace.
113
+ */
114
+ inviteCount: number;
115
+ /**
116
+ * The number of members in the workspace.
117
+ */
118
+ memberCount: number;
119
+ /**
120
+ * The workspace name.
121
+ */
122
+ name: string;
123
+ /**
124
+ * The end date of the current billing period.
125
+ */
126
+ periodEndDate: string | null;
127
+ /**
128
+ * The start date of the current billing period.
129
+ */
130
+ periodStartDate: string | null;
131
+ /**
132
+ * The number of projects in the workspace.
133
+ */
134
+ projectCount: number;
135
+ /**
136
+ * The workspace slug.
137
+ */
138
+ slug: string;
139
+ status: 'active' | 'past_due' | 'unpaid' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'trialing' | 'paused';
140
+ monthlyUsage?: Array<WorkspaceUpdateResponse.MonthlyUsage>;
141
+ /**
142
+ * Whether the workspace only allows SAML authentication.
143
+ */
144
+ samlOnlyAccess?: boolean;
145
+ wildcardDomains?: Array<string>;
146
+ }
147
+ export declare namespace WorkspaceUpdateResponse {
148
+ interface MonthlyUsage {
149
+ executionTimeMs?: number | null;
150
+ monthYear?: string;
151
+ predictionCount?: number;
152
+ }
153
+ }
154
+ export interface WorkspaceUpdateParams {
155
+ /**
156
+ * The workspace invite code.
157
+ */
158
+ inviteCode?: string;
159
+ /**
160
+ * The workspace name.
161
+ */
162
+ name?: string;
163
+ /**
164
+ * The workspace slug.
165
+ */
166
+ slug?: string;
167
+ }
168
+ export declare namespace Workspaces {
169
+ export { type WorkspaceRetrieveResponse as WorkspaceRetrieveResponse, type WorkspaceUpdateResponse as WorkspaceUpdateResponse, type WorkspaceUpdateParams as WorkspaceUpdateParams, };
170
+ export { Invites as Invites, type InviteCreateResponse as InviteCreateResponse, type InviteListResponse as InviteListResponse, type InviteCreateParams as InviteCreateParams, type InviteListParams as InviteListParams, };
171
+ export { APIKeys as APIKeys, type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyCreateParams as APIKeyCreateParams, };
172
+ }
173
+ //# sourceMappingURL=workspaces.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.d.mts","sourceRoot":"","sources":["../../src/resources/workspaces/workspaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,OAAO,EAAE;OACrD,KAAK,UAAU;OACf,EACL,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,OAAO,EACR;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,OAAO,EAAE,UAAU,CA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G;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAKD,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,173 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as APIKeysAPI from "./api-keys.js";
3
+ import { APIKeyCreateParams, APIKeyCreateResponse, APIKeys } from "./api-keys.js";
4
+ import * as InvitesAPI from "./invites.js";
5
+ import { InviteCreateParams, InviteCreateResponse, InviteListParams, InviteListResponse, Invites } from "./invites.js";
6
+ import { APIPromise } from "../../core/api-promise.js";
7
+ import { RequestOptions } from "../../internal/request-options.js";
8
+ export declare class Workspaces extends APIResource {
9
+ invites: InvitesAPI.Invites;
10
+ apiKeys: APIKeysAPI.APIKeys;
11
+ /**
12
+ * Retrieve a workspace by its ID.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const workspace = await client.workspaces.retrieve(
17
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
18
+ * );
19
+ * ```
20
+ */
21
+ retrieve(workspaceID: string, options?: RequestOptions): APIPromise<WorkspaceRetrieveResponse>;
22
+ /**
23
+ * Update a workspace.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const workspace = await client.workspaces.update(
28
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
29
+ * );
30
+ * ```
31
+ */
32
+ update(workspaceID: string, body?: WorkspaceUpdateParams | null | undefined, options?: RequestOptions): APIPromise<WorkspaceUpdateResponse>;
33
+ }
34
+ export interface WorkspaceRetrieveResponse {
35
+ /**
36
+ * The workspace id.
37
+ */
38
+ id: string;
39
+ /**
40
+ * The workspace creator id.
41
+ */
42
+ creatorId: string | null;
43
+ /**
44
+ * The workspace creation date.
45
+ */
46
+ dateCreated: string;
47
+ /**
48
+ * The workspace last updated date.
49
+ */
50
+ dateUpdated: string;
51
+ /**
52
+ * The number of invites in the workspace.
53
+ */
54
+ inviteCount: number;
55
+ /**
56
+ * The number of members in the workspace.
57
+ */
58
+ memberCount: number;
59
+ /**
60
+ * The workspace name.
61
+ */
62
+ name: string;
63
+ /**
64
+ * The end date of the current billing period.
65
+ */
66
+ periodEndDate: string | null;
67
+ /**
68
+ * The start date of the current billing period.
69
+ */
70
+ periodStartDate: string | null;
71
+ /**
72
+ * The number of projects in the workspace.
73
+ */
74
+ projectCount: number;
75
+ /**
76
+ * The workspace slug.
77
+ */
78
+ slug: string;
79
+ status: 'active' | 'past_due' | 'unpaid' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'trialing' | 'paused';
80
+ monthlyUsage?: Array<WorkspaceRetrieveResponse.MonthlyUsage>;
81
+ /**
82
+ * Whether the workspace only allows SAML authentication.
83
+ */
84
+ samlOnlyAccess?: boolean;
85
+ wildcardDomains?: Array<string>;
86
+ }
87
+ export declare namespace WorkspaceRetrieveResponse {
88
+ interface MonthlyUsage {
89
+ executionTimeMs?: number | null;
90
+ monthYear?: string;
91
+ predictionCount?: number;
92
+ }
93
+ }
94
+ export interface WorkspaceUpdateResponse {
95
+ /**
96
+ * The workspace id.
97
+ */
98
+ id: string;
99
+ /**
100
+ * The workspace creator id.
101
+ */
102
+ creatorId: string | null;
103
+ /**
104
+ * The workspace creation date.
105
+ */
106
+ dateCreated: string;
107
+ /**
108
+ * The workspace last updated date.
109
+ */
110
+ dateUpdated: string;
111
+ /**
112
+ * The number of invites in the workspace.
113
+ */
114
+ inviteCount: number;
115
+ /**
116
+ * The number of members in the workspace.
117
+ */
118
+ memberCount: number;
119
+ /**
120
+ * The workspace name.
121
+ */
122
+ name: string;
123
+ /**
124
+ * The end date of the current billing period.
125
+ */
126
+ periodEndDate: string | null;
127
+ /**
128
+ * The start date of the current billing period.
129
+ */
130
+ periodStartDate: string | null;
131
+ /**
132
+ * The number of projects in the workspace.
133
+ */
134
+ projectCount: number;
135
+ /**
136
+ * The workspace slug.
137
+ */
138
+ slug: string;
139
+ status: 'active' | 'past_due' | 'unpaid' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'trialing' | 'paused';
140
+ monthlyUsage?: Array<WorkspaceUpdateResponse.MonthlyUsage>;
141
+ /**
142
+ * Whether the workspace only allows SAML authentication.
143
+ */
144
+ samlOnlyAccess?: boolean;
145
+ wildcardDomains?: Array<string>;
146
+ }
147
+ export declare namespace WorkspaceUpdateResponse {
148
+ interface MonthlyUsage {
149
+ executionTimeMs?: number | null;
150
+ monthYear?: string;
151
+ predictionCount?: number;
152
+ }
153
+ }
154
+ export interface WorkspaceUpdateParams {
155
+ /**
156
+ * The workspace invite code.
157
+ */
158
+ inviteCode?: string;
159
+ /**
160
+ * The workspace name.
161
+ */
162
+ name?: string;
163
+ /**
164
+ * The workspace slug.
165
+ */
166
+ slug?: string;
167
+ }
168
+ export declare namespace Workspaces {
169
+ export { type WorkspaceRetrieveResponse as WorkspaceRetrieveResponse, type WorkspaceUpdateResponse as WorkspaceUpdateResponse, type WorkspaceUpdateParams as WorkspaceUpdateParams, };
170
+ export { Invites as Invites, type InviteCreateResponse as InviteCreateResponse, type InviteListResponse as InviteListResponse, type InviteCreateParams as InviteCreateParams, type InviteListParams as InviteListParams, };
171
+ export { APIKeys as APIKeys, type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyCreateParams as APIKeyCreateParams, };
172
+ }
173
+ //# sourceMappingURL=workspaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../src/resources/workspaces/workspaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,OAAO,EAAE;OACrD,KAAK,UAAU;OACf,EACL,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,OAAO,EACR;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;OASG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAI9F;;;;;;;;;OASG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;CAGvC;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,YAAY,EA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AY,CAAC,CAAC;IAE3D;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,YAAY;QAC3B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEhC,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAKD,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Workspaces = void 0;
5
+ const tslib_1 = require("../../internal/tslib.js");
6
+ const resource_1 = require("../../core/resource.js");
7
+ const APIKeysAPI = tslib_1.__importStar(require("./api-keys.js"));
8
+ const api_keys_1 = require("./api-keys.js");
9
+ const InvitesAPI = tslib_1.__importStar(require("./invites.js"));
10
+ const invites_1 = require("./invites.js");
11
+ const path_1 = require("../../internal/utils/path.js");
12
+ class Workspaces extends resource_1.APIResource {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.invites = new InvitesAPI.Invites(this._client);
16
+ this.apiKeys = new APIKeysAPI.APIKeys(this._client);
17
+ }
18
+ /**
19
+ * Retrieve a workspace by its ID.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const workspace = await client.workspaces.retrieve(
24
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
25
+ * );
26
+ * ```
27
+ */
28
+ retrieve(workspaceID, options) {
29
+ return this._client.get((0, path_1.path) `/workspaces/${workspaceID}`, options);
30
+ }
31
+ /**
32
+ * Update a workspace.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const workspace = await client.workspaces.update(
37
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
38
+ * );
39
+ * ```
40
+ */
41
+ update(workspaceID, body = {}, options) {
42
+ return this._client.put((0, path_1.path) `/workspaces/${workspaceID}`, { body, ...options });
43
+ }
44
+ }
45
+ exports.Workspaces = Workspaces;
46
+ Workspaces.Invites = invites_1.Invites;
47
+ Workspaces.APIKeys = api_keys_1.APIKeys;
48
+ //# sourceMappingURL=workspaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../src/resources/workspaces/workspaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,kEAAyC;AACzC,4CAA+E;AAC/E,iEAAwC;AACxC,0CAMmB;AAGnB,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IAA3C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiCrE,CAAC;IA/BC;;;;;;;;;OASG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,WAAmB,EACnB,OAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AAnCD,gCAmCC;AA+LD,UAAU,CAAC,OAAO,GAAG,iBAAO,CAAC;AAC7B,UAAU,CAAC,OAAO,GAAG,kBAAO,CAAC"}
@@ -0,0 +1,43 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import * as APIKeysAPI from "./api-keys.mjs";
4
+ import { APIKeys } from "./api-keys.mjs";
5
+ import * as InvitesAPI from "./invites.mjs";
6
+ import { Invites, } from "./invites.mjs";
7
+ import { path } from "../../internal/utils/path.mjs";
8
+ export class Workspaces extends APIResource {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.invites = new InvitesAPI.Invites(this._client);
12
+ this.apiKeys = new APIKeysAPI.APIKeys(this._client);
13
+ }
14
+ /**
15
+ * Retrieve a workspace by its ID.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const workspace = await client.workspaces.retrieve(
20
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
21
+ * );
22
+ * ```
23
+ */
24
+ retrieve(workspaceID, options) {
25
+ return this._client.get(path `/workspaces/${workspaceID}`, options);
26
+ }
27
+ /**
28
+ * Update a workspace.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const workspace = await client.workspaces.update(
33
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
34
+ * );
35
+ * ```
36
+ */
37
+ update(workspaceID, body = {}, options) {
38
+ return this._client.put(path `/workspaces/${workspaceID}`, { body, ...options });
39
+ }
40
+ }
41
+ Workspaces.Invites = Invites;
42
+ Workspaces.APIKeys = APIKeys;
43
+ //# sourceMappingURL=workspaces.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.mjs","sourceRoot":"","sources":["../../src/resources/workspaces/workspaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAA4C,OAAO,EAAE;OACrD,KAAK,UAAU;OACf,EAKL,OAAO,GACR;OAGM,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IAA3C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiCrE,CAAC;IA/BC;;;;;;;;;OASG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,WAAmB,EACnB,OAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AA+LD,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC;AAC7B,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./workspaces/index.mjs";
2
+ //# sourceMappingURL=workspaces.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.d.mts","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./workspaces/index.js";
2
+ //# sourceMappingURL=workspaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./workspaces/index.js"), exports);
6
+ //# sourceMappingURL=workspaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gEAAmC"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./workspaces/index.mjs";
3
+ //# sourceMappingURL=workspaces.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.mjs","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
package/src/client.ts CHANGED
@@ -34,6 +34,12 @@ import {
34
34
  Projects,
35
35
  } from './resources/projects/projects';
36
36
  import { Storage } from './resources/storage/storage';
37
+ import {
38
+ WorkspaceRetrieveResponse,
39
+ WorkspaceUpdateParams,
40
+ WorkspaceUpdateResponse,
41
+ Workspaces,
42
+ } from './resources/workspaces/workspaces';
37
43
  import { type Fetch } from './internal/builtin-types';
38
44
  import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
39
45
  import { FinalRequestOptions, RequestOptions } from './internal/request-options';
@@ -722,6 +728,7 @@ export class Openlayer {
722
728
  static toFile = Uploads.toFile;
723
729
 
724
730
  projects: API.Projects = new API.Projects(this);
731
+ workspaces: API.Workspaces = new API.Workspaces(this);
725
732
  commits: API.Commits = new API.Commits(this);
726
733
  inferencePipelines: API.InferencePipelines = new API.InferencePipelines(this);
727
734
  storage: API.Storage = new API.Storage(this);
@@ -729,6 +736,7 @@ export class Openlayer {
729
736
  }
730
737
 
731
738
  Openlayer.Projects = Projects;
739
+ Openlayer.Workspaces = Workspaces;
732
740
  Openlayer.Commits = Commits;
733
741
  Openlayer.InferencePipelines = InferencePipelines;
734
742
  Openlayer.Storage = Storage;
@@ -745,6 +753,13 @@ export declare namespace Openlayer {
745
753
  type ProjectListParams as ProjectListParams,
746
754
  };
747
755
 
756
+ export {
757
+ Workspaces as Workspaces,
758
+ type WorkspaceRetrieveResponse as WorkspaceRetrieveResponse,
759
+ type WorkspaceUpdateResponse as WorkspaceUpdateResponse,
760
+ type WorkspaceUpdateParams as WorkspaceUpdateParams,
761
+ };
762
+
748
763
  export { Commits as Commits, type CommitRetrieveResponse as CommitRetrieveResponse };
749
764
 
750
765
  export {
@@ -17,3 +17,9 @@ export {
17
17
  } from './projects/projects';
18
18
  export { Storage } from './storage/storage';
19
19
  export { Tests, type TestEvaluateResponse, type TestEvaluateParams } from './tests';
20
+ export {
21
+ Workspaces,
22
+ type WorkspaceRetrieveResponse,
23
+ type WorkspaceUpdateResponse,
24
+ type WorkspaceUpdateParams,
25
+ } from './workspaces/workspaces';