@onkernel/sdk 0.66.0 → 0.68.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 +39 -0
- package/client.d.mts +6 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -3
- package/client.d.ts.map +1 -1
- package/client.js +6 -1
- package/client.js.map +1 -1
- package/client.mjs +6 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +16 -4
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +16 -4
- package/core/pagination.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/api-keys.d.mts +48 -2
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +48 -2
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +15 -2
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +15 -2
- package/resources/api-keys.mjs.map +1 -1
- package/resources/auth/connections.d.mts +20 -20
- package/resources/auth/connections.d.ts +20 -20
- package/resources/browser-pools.d.mts +7 -7
- package/resources/browser-pools.d.ts +7 -7
- package/resources/browser-pools.js +1 -1
- package/resources/browser-pools.mjs +1 -1
- package/resources/browsers/browsers.d.mts +2 -2
- package/resources/browsers/browsers.d.ts +2 -2
- package/resources/credentials.d.mts +1 -2
- package/resources/credentials.d.mts.map +1 -1
- package/resources/credentials.d.ts +1 -2
- package/resources/credentials.d.ts.map +1 -1
- package/resources/credentials.js +1 -2
- package/resources/credentials.js.map +1 -1
- package/resources/credentials.mjs +1 -2
- package/resources/credentials.mjs.map +1 -1
- package/resources/extensions.d.mts +1 -1
- package/resources/extensions.d.ts +1 -1
- package/resources/extensions.js +1 -1
- package/resources/extensions.mjs +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/proxies.d.mts +3 -3
- package/resources/proxies.d.ts +3 -3
- package/resources/proxies.js +3 -3
- package/resources/proxies.mjs +3 -3
- package/src/client.ts +13 -0
- package/src/core/pagination.ts +18 -4
- package/src/resources/api-keys.ts +67 -2
- package/src/resources/auth/connections.ts +20 -20
- package/src/resources/browser-pools.ts +7 -7
- package/src/resources/browsers/browsers.ts +2 -2
- package/src/resources/credentials.ts +1 -2
- package/src/resources/extensions.ts +1 -1
- package/src/resources/index.ts +2 -0
- package/src/resources/proxies.ts +3 -3
- 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
package/core/pagination.js
CHANGED
|
@@ -91,14 +91,26 @@ class OffsetPagination extends AbstractPage {
|
|
|
91
91
|
return super.hasNextPage();
|
|
92
92
|
}
|
|
93
93
|
nextPageRequestOptions() {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
// X-Next-Offset is the absolute start of the next page, or 0 on the last
|
|
95
|
+
// page (the API's stop sentinel). The old code added the current page
|
|
96
|
+
// length on top, skipping a full page per iteration. Only a positive
|
|
97
|
+
// offset advances; 0 is a value the server affirmatively sent to mean
|
|
98
|
+
// "no more", so we stop on it (matching the Go SDK pager).
|
|
99
|
+
const offset = this.next_offset;
|
|
100
|
+
if (offset == null) {
|
|
101
|
+
if (this.has_more) {
|
|
102
|
+
throw new error_1.KernelError('Server reported X-Has-More: true without an X-Next-Offset header; refusing to silently truncate pagination');
|
|
103
|
+
}
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
if (offset === 0) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
97
109
|
return {
|
|
98
110
|
...this.options,
|
|
99
111
|
query: {
|
|
100
112
|
...(0, values_1.maybeObj)(this.options.query),
|
|
101
|
-
offset
|
|
113
|
+
offset,
|
|
102
114
|
},
|
|
103
115
|
};
|
|
104
116
|
}
|
package/core/pagination.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../src/core/pagination.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;AAEtF,sCAAsC;AAEtC,gDAAyD;AAEzD,kDAA2C;AAE3C,wDAA4F;AAI5F,MAAsB,YAAY;IAOhC,YAAY,MAAc,EAAE,QAAkB,EAAE,IAAa,EAAE,OAA4B;QAN3F,uCAAgB;QAOd,+BAAA,IAAI,wBAAW,MAAM,MAAA,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAMD,WAAW;QACT,MAAM,KAAK,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvC,IAAI,CAAC,KAAK,CAAC,MAAM;YAAE,OAAO,KAAK,CAAC;QAChC,OAAO,IAAI,CAAC,sBAAsB,EAAE,IAAI,IAAI,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,WAAW;QACf,MAAM,WAAW,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAClD,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,mBAAW,CACnB,uFAAuF,CACxF,CAAC;QACJ,CAAC;QAED,OAAO,MAAM,+BAAA,IAAI,4BAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,WAAkB,EAAE,WAAW,CAAC,CAAC;IACjF,CAAC;IAED,KAAK,CAAC,CAAC,SAAS;QACd,IAAI,IAAI,GAAS,IAAI,CAAC;QACtB,MAAM,IAAI,CAAC;QACX,OAAO,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YAC1B,IAAI,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;YAChC,MAAM,IAAI,CAAC;QACb,CAAC;IACH,CAAC;IAED,KAAK,CAAC,CAAC,wCA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AC/B,MAAM;aACP;SACF,CAAC;IACJ,CAAC;CACF;AA3DD,4CA2DC"}
|
package/core/pagination.mjs
CHANGED
|
@@ -86,14 +86,26 @@ export class OffsetPagination extends AbstractPage {
|
|
|
86
86
|
return super.hasNextPage();
|
|
87
87
|
}
|
|
88
88
|
nextPageRequestOptions() {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
// X-Next-Offset is the absolute start of the next page, or 0 on the last
|
|
90
|
+
// page (the API's stop sentinel). The old code added the current page
|
|
91
|
+
// length on top, skipping a full page per iteration. Only a positive
|
|
92
|
+
// offset advances; 0 is a value the server affirmatively sent to mean
|
|
93
|
+
// "no more", so we stop on it (matching the Go SDK pager).
|
|
94
|
+
const offset = this.next_offset;
|
|
95
|
+
if (offset == null) {
|
|
96
|
+
if (this.has_more) {
|
|
97
|
+
throw new KernelError('Server reported X-Has-More: true without an X-Next-Offset header; refusing to silently truncate pagination');
|
|
98
|
+
}
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
if (offset === 0) {
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
92
104
|
return {
|
|
93
105
|
...this.options,
|
|
94
106
|
query: {
|
|
95
107
|
...maybeObj(this.options.query),
|
|
96
|
-
offset
|
|
108
|
+
offset,
|
|
97
109
|
},
|
|
98
110
|
};
|
|
99
111
|
}
|
package/core/pagination.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.mjs","sourceRoot":"","sources":["../src/core/pagination.ts"],"names":[],"mappings":"AAAA,sFAAsF;;;AAEtF,OAAO,EAAE,WAAW,EAAE,oBAAgB;AAEtC,OAAO,EAAE,oBAAoB,EAAE,8BAA0B;AAEzD,OAAO,EAAE,UAAU,EAAE,0BAAsB;AAE3C,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,qCAAiC;AAI5F,MAAM,OAAgB,YAAY;IAOhC,YAAY,MAAc,EAAE,QAAkB,E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QACxB,IAAI,CAAC,QAAQ,GAAG,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,IAAI,IAAI,CAAC;QACpF,IAAI,CAAC,WAAW,GAAG,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,IAAI,IAAI,CAAC;IAC5F,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;IAC1B,CAAC;IAEQ,WAAW;QAClB,IAAI,IAAI,CAAC,QAAQ,KAAK,KAAK,EAAE,CAAC;YAC5B,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;IAC7B,CAAC;IAED,sBAAsB;QACpB,yEAAyE;QACzE,sEAAsE;QACtE,qEAAqE;QACrE,sEAAsE;QACtE,2DAA2D;QAC3D,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC;QAChC,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;YACnB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAClB,MAAM,IAAI,WAAW,CACnB,4GAA4G,CAC7G,CAAC;YACJ,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,MAAM,KAAK,CAAC,EAAE,CAAC;YACjB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO;YACL,GAAG,IAAI,CAAC,OAAO;YACf,KAAK,EAAE;gBACL,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;gBAC/B,MAAM;aACP;SACF,CAAC;IACJ,CAAC;CACF"}
|
package/package.json
CHANGED
package/resources/api-keys.d.mts
CHANGED
|
@@ -26,7 +26,7 @@ export declare class APIKeys extends APIResource {
|
|
|
26
26
|
* const apiKey = await client.apiKeys.retrieve('id');
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<APIKey>;
|
|
29
|
+
retrieve(id: string, query?: APIKeyRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<APIKey>;
|
|
30
30
|
/**
|
|
31
31
|
* Update an API key's name.
|
|
32
32
|
*
|
|
@@ -59,6 +59,17 @@ export declare class APIKeys extends APIResource {
|
|
|
59
59
|
* ```
|
|
60
60
|
*/
|
|
61
61
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Rotate an API key. Issues a new key that copies the name and project of the
|
|
64
|
+
* rotated key, and schedules the rotated key to expire after a grace period so
|
|
65
|
+
* in-flight callers can swap over. The new plaintext key is returned once.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const createdAPIKey = await client.apiKeys.rotate('id');
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
rotate(id: string, body?: APIKeyRotateParams | null | undefined, options?: RequestOptions): APIPromise<CreatedAPIKey>;
|
|
62
73
|
}
|
|
63
74
|
export type APIKeysOffsetPagination = OffsetPagination<APIKey>;
|
|
64
75
|
export interface APIKey {
|
|
@@ -71,6 +82,11 @@ export interface APIKey {
|
|
|
71
82
|
*/
|
|
72
83
|
created_at: string;
|
|
73
84
|
created_by: APIKey.CreatedBy;
|
|
85
|
+
/**
|
|
86
|
+
* When the API key was deleted (soft-deleted). Null for keys that have not been
|
|
87
|
+
* deleted.
|
|
88
|
+
*/
|
|
89
|
+
deleted_at: string | null;
|
|
74
90
|
/**
|
|
75
91
|
* When the API key expires
|
|
76
92
|
*/
|
|
@@ -132,6 +148,13 @@ export interface APIKeyCreateParams {
|
|
|
132
148
|
*/
|
|
133
149
|
project_id?: string | null;
|
|
134
150
|
}
|
|
151
|
+
export interface APIKeyRetrieveParams {
|
|
152
|
+
/**
|
|
153
|
+
* When true, return the API key even if it has been deleted (soft-deleted), for
|
|
154
|
+
* audit purposes. Defaults to false, which returns 404 for a deleted key.
|
|
155
|
+
*/
|
|
156
|
+
include_deleted?: boolean;
|
|
157
|
+
}
|
|
135
158
|
export interface APIKeyUpdateParams {
|
|
136
159
|
/**
|
|
137
160
|
* New API key name
|
|
@@ -139,6 +162,11 @@ export interface APIKeyUpdateParams {
|
|
|
139
162
|
name: string;
|
|
140
163
|
}
|
|
141
164
|
export interface APIKeyListParams extends OffsetPaginationParams {
|
|
165
|
+
/**
|
|
166
|
+
* Deprecated: use status=all instead. When true, include deleted (soft-deleted)
|
|
167
|
+
* API keys in the results for audit purposes.
|
|
168
|
+
*/
|
|
169
|
+
include_deleted?: boolean;
|
|
142
170
|
/**
|
|
143
171
|
* Case-insensitive substring match against API key name, creator, and project. API
|
|
144
172
|
* key identifiers and masked keys match by exact value or prefix.
|
|
@@ -152,8 +180,26 @@ export interface APIKeyListParams extends OffsetPaginationParams {
|
|
|
152
180
|
* Sort direction for API keys.
|
|
153
181
|
*/
|
|
154
182
|
sort_direction?: 'asc' | 'desc';
|
|
183
|
+
/**
|
|
184
|
+
* Filter API keys by status. "active" returns keys that are not deleted (default;
|
|
185
|
+
* expired-but-not-deleted keys are still included), "deleted" returns only
|
|
186
|
+
* soft-deleted keys, "all" returns both.
|
|
187
|
+
*/
|
|
188
|
+
status?: 'active' | 'deleted' | 'all';
|
|
189
|
+
}
|
|
190
|
+
export interface APIKeyRotateParams {
|
|
191
|
+
/**
|
|
192
|
+
* Lifetime in days for the new key, up to 3650. Omit to reuse the rotated key's
|
|
193
|
+
* original lifetime, or never-expires if it had none.
|
|
194
|
+
*/
|
|
195
|
+
days_to_expire?: number | null;
|
|
196
|
+
/**
|
|
197
|
+
* Grace period in days before the rotated key expires. Use 0 to expire it
|
|
198
|
+
* immediately. Omit for the default grace period of 7 days.
|
|
199
|
+
*/
|
|
200
|
+
expire_in_days?: number | null;
|
|
155
201
|
}
|
|
156
202
|
export declare namespace APIKeys {
|
|
157
|
-
export { type APIKey as APIKey, type CreatedAPIKey as CreatedAPIKey, type APIKeysOffsetPagination as APIKeysOffsetPagination, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyUpdateParams as APIKeyUpdateParams, type APIKeyListParams as APIKeyListParams, };
|
|
203
|
+
export { type APIKey as APIKey, type CreatedAPIKey as CreatedAPIKey, type APIKeysOffsetPagination as APIKeysOffsetPagination, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyRetrieveParams as APIKeyRetrieveParams, type APIKeyUpdateParams as APIKeyUpdateParams, type APIKeyListParams as APIKeyListParams, type APIKeyRotateParams as APIKeyRotateParams, };
|
|
158
204
|
}
|
|
159
205
|
//# sourceMappingURL=api-keys.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.d.mts","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,+BAA2B;AAEhG,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAIrF;;;;;;;;OAQG;IACH,QAAQ,
|
|
1
|
+
{"version":3,"file":"api-keys.d.mts","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,+BAA2B;AAEhG,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;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,GAAG,IAAI,CAAC;IAE/B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
package/resources/api-keys.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare class APIKeys extends APIResource {
|
|
|
26
26
|
* const apiKey = await client.apiKeys.retrieve('id');
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<APIKey>;
|
|
29
|
+
retrieve(id: string, query?: APIKeyRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<APIKey>;
|
|
30
30
|
/**
|
|
31
31
|
* Update an API key's name.
|
|
32
32
|
*
|
|
@@ -59,6 +59,17 @@ export declare class APIKeys extends APIResource {
|
|
|
59
59
|
* ```
|
|
60
60
|
*/
|
|
61
61
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Rotate an API key. Issues a new key that copies the name and project of the
|
|
64
|
+
* rotated key, and schedules the rotated key to expire after a grace period so
|
|
65
|
+
* in-flight callers can swap over. The new plaintext key is returned once.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const createdAPIKey = await client.apiKeys.rotate('id');
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
rotate(id: string, body?: APIKeyRotateParams | null | undefined, options?: RequestOptions): APIPromise<CreatedAPIKey>;
|
|
62
73
|
}
|
|
63
74
|
export type APIKeysOffsetPagination = OffsetPagination<APIKey>;
|
|
64
75
|
export interface APIKey {
|
|
@@ -71,6 +82,11 @@ export interface APIKey {
|
|
|
71
82
|
*/
|
|
72
83
|
created_at: string;
|
|
73
84
|
created_by: APIKey.CreatedBy;
|
|
85
|
+
/**
|
|
86
|
+
* When the API key was deleted (soft-deleted). Null for keys that have not been
|
|
87
|
+
* deleted.
|
|
88
|
+
*/
|
|
89
|
+
deleted_at: string | null;
|
|
74
90
|
/**
|
|
75
91
|
* When the API key expires
|
|
76
92
|
*/
|
|
@@ -132,6 +148,13 @@ export interface APIKeyCreateParams {
|
|
|
132
148
|
*/
|
|
133
149
|
project_id?: string | null;
|
|
134
150
|
}
|
|
151
|
+
export interface APIKeyRetrieveParams {
|
|
152
|
+
/**
|
|
153
|
+
* When true, return the API key even if it has been deleted (soft-deleted), for
|
|
154
|
+
* audit purposes. Defaults to false, which returns 404 for a deleted key.
|
|
155
|
+
*/
|
|
156
|
+
include_deleted?: boolean;
|
|
157
|
+
}
|
|
135
158
|
export interface APIKeyUpdateParams {
|
|
136
159
|
/**
|
|
137
160
|
* New API key name
|
|
@@ -139,6 +162,11 @@ export interface APIKeyUpdateParams {
|
|
|
139
162
|
name: string;
|
|
140
163
|
}
|
|
141
164
|
export interface APIKeyListParams extends OffsetPaginationParams {
|
|
165
|
+
/**
|
|
166
|
+
* Deprecated: use status=all instead. When true, include deleted (soft-deleted)
|
|
167
|
+
* API keys in the results for audit purposes.
|
|
168
|
+
*/
|
|
169
|
+
include_deleted?: boolean;
|
|
142
170
|
/**
|
|
143
171
|
* Case-insensitive substring match against API key name, creator, and project. API
|
|
144
172
|
* key identifiers and masked keys match by exact value or prefix.
|
|
@@ -152,8 +180,26 @@ export interface APIKeyListParams extends OffsetPaginationParams {
|
|
|
152
180
|
* Sort direction for API keys.
|
|
153
181
|
*/
|
|
154
182
|
sort_direction?: 'asc' | 'desc';
|
|
183
|
+
/**
|
|
184
|
+
* Filter API keys by status. "active" returns keys that are not deleted (default;
|
|
185
|
+
* expired-but-not-deleted keys are still included), "deleted" returns only
|
|
186
|
+
* soft-deleted keys, "all" returns both.
|
|
187
|
+
*/
|
|
188
|
+
status?: 'active' | 'deleted' | 'all';
|
|
189
|
+
}
|
|
190
|
+
export interface APIKeyRotateParams {
|
|
191
|
+
/**
|
|
192
|
+
* Lifetime in days for the new key, up to 3650. Omit to reuse the rotated key's
|
|
193
|
+
* original lifetime, or never-expires if it had none.
|
|
194
|
+
*/
|
|
195
|
+
days_to_expire?: number | null;
|
|
196
|
+
/**
|
|
197
|
+
* Grace period in days before the rotated key expires. Use 0 to expire it
|
|
198
|
+
* immediately. Omit for the default grace period of 7 days.
|
|
199
|
+
*/
|
|
200
|
+
expire_in_days?: number | null;
|
|
155
201
|
}
|
|
156
202
|
export declare namespace APIKeys {
|
|
157
|
-
export { type APIKey as APIKey, type CreatedAPIKey as CreatedAPIKey, type APIKeysOffsetPagination as APIKeysOffsetPagination, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyUpdateParams as APIKeyUpdateParams, type APIKeyListParams as APIKeyListParams, };
|
|
203
|
+
export { type APIKey as APIKey, type CreatedAPIKey as CreatedAPIKey, type APIKeysOffsetPagination as APIKeysOffsetPagination, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyRetrieveParams as APIKeyRetrieveParams, type APIKeyUpdateParams as APIKeyUpdateParams, type APIKeyListParams as APIKeyListParams, type APIKeyRotateParams as APIKeyRotateParams, };
|
|
158
204
|
}
|
|
159
205
|
//# sourceMappingURL=api-keys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.d.ts","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAA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B;AAED,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBAAiB,SAAQ,sBAAsB;IAC9D;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,GAAG,MAAM,GAAG,YAAY,CAAC;IAE/C;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEhC;;;;OAIG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAC;CACvC;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
package/resources/api-keys.js
CHANGED
|
@@ -32,8 +32,8 @@ class APIKeys extends resource_1.APIResource {
|
|
|
32
32
|
* const apiKey = await client.apiKeys.retrieve('id');
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
|
-
retrieve(id, options) {
|
|
36
|
-
return this._client.get((0, path_1.path) `/org/api_keys/${id}`, options);
|
|
35
|
+
retrieve(id, query = {}, options) {
|
|
36
|
+
return this._client.get((0, path_1.path) `/org/api_keys/${id}`, { query, ...options });
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* Update an API key's name.
|
|
@@ -76,6 +76,19 @@ class APIKeys extends resource_1.APIResource {
|
|
|
76
76
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Rotate an API key. Issues a new key that copies the name and project of the
|
|
81
|
+
* rotated key, and schedules the rotated key to expire after a grace period so
|
|
82
|
+
* in-flight callers can swap over. The new plaintext key is returned once.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* const createdAPIKey = await client.apiKeys.rotate('id');
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
rotate(id, body = {}, options) {
|
|
90
|
+
return this._client.post((0, path_1.path) `/org/api_keys/${id}/rotate`, { body, ...options });
|
|
91
|
+
}
|
|
79
92
|
}
|
|
80
93
|
exports.APIKeys = APIKeys;
|
|
81
94
|
//# sourceMappingURL=api-keys.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.js","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAgG;AAChG,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,
|
|
1
|
+
{"version":3,"file":"api-keys.js","sourceRoot":"","sources":["../src/resources/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OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,EAAU,EACV,OAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF;AAhGD,0BAgGC"}
|
package/resources/api-keys.mjs
CHANGED
|
@@ -29,8 +29,8 @@ export class APIKeys extends APIResource {
|
|
|
29
29
|
* const apiKey = await client.apiKeys.retrieve('id');
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
retrieve(id, options) {
|
|
33
|
-
return this._client.get(path `/org/api_keys/${id}`, options);
|
|
32
|
+
retrieve(id, query = {}, options) {
|
|
33
|
+
return this._client.get(path `/org/api_keys/${id}`, { query, ...options });
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* Update an API key's name.
|
|
@@ -73,5 +73,18 @@ export class APIKeys extends APIResource {
|
|
|
73
73
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Rotate an API key. Issues a new key that copies the name and project of the
|
|
78
|
+
* rotated key, and schedules the rotated key to expire after a grace period so
|
|
79
|
+
* in-flight callers can swap over. The new plaintext key is returned once.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const createdAPIKey = await client.apiKeys.rotate('id');
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
rotate(id, body = {}, options) {
|
|
87
|
+
return this._client.post(path `/org/api_keys/${id}/rotate`, { body, ...options });
|
|
88
|
+
}
|
|
76
89
|
}
|
|
77
90
|
//# sourceMappingURL=api-keys.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.mjs","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,gBAAgB,EAA4C,+BAA2B;AAChG,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,
|
|
1
|
+
{"version":3,"file":"api-keys.mjs","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,gBAAgB,EAA4C,+BAA2B;AAChG,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CACN,EAAU,EACV,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAU,EAAE,IAAwB,EAAE,OAAwB;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,iBAAiB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CAAA,gBAAwB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,iBAAiB,EAAE,EAAE,EAAE;YACpD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,EAAU,EACV,OAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,iBAAiB,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF"}
|
|
@@ -561,8 +561,8 @@ export interface ManagedAuthCreateRequest {
|
|
|
561
561
|
*/
|
|
562
562
|
login_url?: string;
|
|
563
563
|
/**
|
|
564
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
565
|
-
*
|
|
564
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
565
|
+
* project as the resource referencing it.
|
|
566
566
|
*/
|
|
567
567
|
proxy?: ManagedAuthCreateRequest.Proxy;
|
|
568
568
|
/**
|
|
@@ -603,8 +603,8 @@ export declare namespace ManagedAuthCreateRequest {
|
|
|
603
603
|
provider?: string;
|
|
604
604
|
}
|
|
605
605
|
/**
|
|
606
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
607
|
-
*
|
|
606
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
607
|
+
* project as the resource referencing it.
|
|
608
608
|
*/
|
|
609
609
|
interface Proxy {
|
|
610
610
|
/**
|
|
@@ -659,8 +659,8 @@ export interface ManagedAuthUpdateRequest {
|
|
|
659
659
|
*/
|
|
660
660
|
login_url?: string;
|
|
661
661
|
/**
|
|
662
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
663
|
-
*
|
|
662
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
663
|
+
* project as the resource referencing it.
|
|
664
664
|
*/
|
|
665
665
|
proxy?: ManagedAuthUpdateRequest.Proxy;
|
|
666
666
|
/**
|
|
@@ -699,8 +699,8 @@ export declare namespace ManagedAuthUpdateRequest {
|
|
|
699
699
|
provider?: string;
|
|
700
700
|
}
|
|
701
701
|
/**
|
|
702
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
703
|
-
*
|
|
702
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
703
|
+
* project as the resource referencing it.
|
|
704
704
|
*/
|
|
705
705
|
interface Proxy {
|
|
706
706
|
/**
|
|
@@ -1003,8 +1003,8 @@ export interface ConnectionCreateParams {
|
|
|
1003
1003
|
*/
|
|
1004
1004
|
login_url?: string;
|
|
1005
1005
|
/**
|
|
1006
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1007
|
-
*
|
|
1006
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1007
|
+
* project as the resource referencing it.
|
|
1008
1008
|
*/
|
|
1009
1009
|
proxy?: ConnectionCreateParams.Proxy;
|
|
1010
1010
|
/**
|
|
@@ -1045,8 +1045,8 @@ export declare namespace ConnectionCreateParams {
|
|
|
1045
1045
|
provider?: string;
|
|
1046
1046
|
}
|
|
1047
1047
|
/**
|
|
1048
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1049
|
-
*
|
|
1048
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1049
|
+
* project as the resource referencing it.
|
|
1050
1050
|
*/
|
|
1051
1051
|
interface Proxy {
|
|
1052
1052
|
/**
|
|
@@ -1098,8 +1098,8 @@ export interface ConnectionUpdateParams {
|
|
|
1098
1098
|
*/
|
|
1099
1099
|
login_url?: string;
|
|
1100
1100
|
/**
|
|
1101
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1102
|
-
*
|
|
1101
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1102
|
+
* project as the resource referencing it.
|
|
1103
1103
|
*/
|
|
1104
1104
|
proxy?: ConnectionUpdateParams.Proxy;
|
|
1105
1105
|
/**
|
|
@@ -1138,8 +1138,8 @@ export declare namespace ConnectionUpdateParams {
|
|
|
1138
1138
|
provider?: string;
|
|
1139
1139
|
}
|
|
1140
1140
|
/**
|
|
1141
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1142
|
-
*
|
|
1141
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1142
|
+
* project as the resource referencing it.
|
|
1143
1143
|
*/
|
|
1144
1144
|
interface Proxy {
|
|
1145
1145
|
/**
|
|
@@ -1164,8 +1164,8 @@ export interface ConnectionListParams extends OffsetPaginationParams {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
export interface ConnectionLoginParams {
|
|
1166
1166
|
/**
|
|
1167
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1168
|
-
*
|
|
1167
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1168
|
+
* project as the resource referencing it.
|
|
1169
1169
|
*/
|
|
1170
1170
|
proxy?: ConnectionLoginParams.Proxy;
|
|
1171
1171
|
/**
|
|
@@ -1176,8 +1176,8 @@ export interface ConnectionLoginParams {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
export declare namespace ConnectionLoginParams {
|
|
1178
1178
|
/**
|
|
1179
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1180
|
-
*
|
|
1179
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1180
|
+
* project as the resource referencing it.
|
|
1181
1181
|
*/
|
|
1182
1182
|
interface Proxy {
|
|
1183
1183
|
/**
|
|
@@ -561,8 +561,8 @@ export interface ManagedAuthCreateRequest {
|
|
|
561
561
|
*/
|
|
562
562
|
login_url?: string;
|
|
563
563
|
/**
|
|
564
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
565
|
-
*
|
|
564
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
565
|
+
* project as the resource referencing it.
|
|
566
566
|
*/
|
|
567
567
|
proxy?: ManagedAuthCreateRequest.Proxy;
|
|
568
568
|
/**
|
|
@@ -603,8 +603,8 @@ export declare namespace ManagedAuthCreateRequest {
|
|
|
603
603
|
provider?: string;
|
|
604
604
|
}
|
|
605
605
|
/**
|
|
606
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
607
|
-
*
|
|
606
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
607
|
+
* project as the resource referencing it.
|
|
608
608
|
*/
|
|
609
609
|
interface Proxy {
|
|
610
610
|
/**
|
|
@@ -659,8 +659,8 @@ export interface ManagedAuthUpdateRequest {
|
|
|
659
659
|
*/
|
|
660
660
|
login_url?: string;
|
|
661
661
|
/**
|
|
662
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
663
|
-
*
|
|
662
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
663
|
+
* project as the resource referencing it.
|
|
664
664
|
*/
|
|
665
665
|
proxy?: ManagedAuthUpdateRequest.Proxy;
|
|
666
666
|
/**
|
|
@@ -699,8 +699,8 @@ export declare namespace ManagedAuthUpdateRequest {
|
|
|
699
699
|
provider?: string;
|
|
700
700
|
}
|
|
701
701
|
/**
|
|
702
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
703
|
-
*
|
|
702
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
703
|
+
* project as the resource referencing it.
|
|
704
704
|
*/
|
|
705
705
|
interface Proxy {
|
|
706
706
|
/**
|
|
@@ -1003,8 +1003,8 @@ export interface ConnectionCreateParams {
|
|
|
1003
1003
|
*/
|
|
1004
1004
|
login_url?: string;
|
|
1005
1005
|
/**
|
|
1006
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1007
|
-
*
|
|
1006
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1007
|
+
* project as the resource referencing it.
|
|
1008
1008
|
*/
|
|
1009
1009
|
proxy?: ConnectionCreateParams.Proxy;
|
|
1010
1010
|
/**
|
|
@@ -1045,8 +1045,8 @@ export declare namespace ConnectionCreateParams {
|
|
|
1045
1045
|
provider?: string;
|
|
1046
1046
|
}
|
|
1047
1047
|
/**
|
|
1048
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1049
|
-
*
|
|
1048
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1049
|
+
* project as the resource referencing it.
|
|
1050
1050
|
*/
|
|
1051
1051
|
interface Proxy {
|
|
1052
1052
|
/**
|
|
@@ -1098,8 +1098,8 @@ export interface ConnectionUpdateParams {
|
|
|
1098
1098
|
*/
|
|
1099
1099
|
login_url?: string;
|
|
1100
1100
|
/**
|
|
1101
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1102
|
-
*
|
|
1101
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1102
|
+
* project as the resource referencing it.
|
|
1103
1103
|
*/
|
|
1104
1104
|
proxy?: ConnectionUpdateParams.Proxy;
|
|
1105
1105
|
/**
|
|
@@ -1138,8 +1138,8 @@ export declare namespace ConnectionUpdateParams {
|
|
|
1138
1138
|
provider?: string;
|
|
1139
1139
|
}
|
|
1140
1140
|
/**
|
|
1141
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1142
|
-
*
|
|
1141
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1142
|
+
* project as the resource referencing it.
|
|
1143
1143
|
*/
|
|
1144
1144
|
interface Proxy {
|
|
1145
1145
|
/**
|
|
@@ -1164,8 +1164,8 @@ export interface ConnectionListParams extends OffsetPaginationParams {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
export interface ConnectionLoginParams {
|
|
1166
1166
|
/**
|
|
1167
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1168
|
-
*
|
|
1167
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1168
|
+
* project as the resource referencing it.
|
|
1169
1169
|
*/
|
|
1170
1170
|
proxy?: ConnectionLoginParams.Proxy;
|
|
1171
1171
|
/**
|
|
@@ -1176,8 +1176,8 @@ export interface ConnectionLoginParams {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
export declare namespace ConnectionLoginParams {
|
|
1178
1178
|
/**
|
|
1179
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1180
|
-
*
|
|
1179
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1180
|
+
* project as the resource referencing it.
|
|
1181
1181
|
*/
|
|
1182
1182
|
interface Proxy {
|
|
1183
1183
|
/**
|