Skip to content

Commit 8032ad8

Browse files
feat: Scope name uniqueness to project for profiles, session_pools, extensions, credentials
1 parent 588318c commit 8032ad8

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 112
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-86e061884d273a27064593a0de3a4ba366a12a1001181741addb4f781be18ec9.yml
3-
openapi_spec_hash: e0a4ddf4a3302599376756127099488c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-b51c72a040c8dfea9c0693de6631feabfffe42922d5feb60b4ac0ee5c83bb8f4.yml
3+
openapi_spec_hash: 8b671cfe4debe8d9ad7c39ba5b0eaf6d
44
config_hash: 08d55086449943a8fec212b870061a3f

browserpool.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ type BrowserPoolBrowserPoolConfig struct {
187187
// If true, launches the browser in kiosk mode to hide address bar and tabs in live
188188
// view.
189189
KioskMode bool `json:"kiosk_mode"`
190-
// Optional name for the browser pool. Must be unique within the organization.
190+
// Optional name for the browser pool. Must be unique within the project.
191191
Name string `json:"name"`
192192
// Profile selection for the browser session. Provide either id or name. If
193193
// specified, the matching profile will be loaded into the browser session.
@@ -335,7 +335,7 @@ type BrowserPoolNewParams struct {
335335
// If true, launches the browser in kiosk mode to hide address bar and tabs in live
336336
// view.
337337
KioskMode param.Opt[bool] `json:"kiosk_mode,omitzero"`
338-
// Optional name for the browser pool. Must be unique within the organization.
338+
// Optional name for the browser pool. Must be unique within the project.
339339
Name param.Opt[string] `json:"name,omitzero"`
340340
// Optional proxy to associate to the browser session. Must reference a proxy
341341
// belonging to the caller's org.
@@ -396,7 +396,7 @@ type BrowserPoolUpdateParams struct {
396396
// If true, launches the browser in kiosk mode to hide address bar and tabs in live
397397
// view.
398398
KioskMode param.Opt[bool] `json:"kiosk_mode,omitzero"`
399-
// Optional name for the browser pool. Must be unique within the organization.
399+
// Optional name for the browser pool. Must be unique within the project.
400400
Name param.Opt[string] `json:"name,omitzero"`
401401
// Optional proxy to associate to the browser session. Must reference a proxy
402402
// belonging to the caller's org.

credential.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func (r *CredentialService) TotpCode(ctx context.Context, idOrName string, opts
133133
type CreateCredentialRequestParam struct {
134134
// Target domain this credential is for
135135
Domain string `json:"domain" api:"required"`
136-
// Unique name for the credential within the organization
136+
// Unique name for the credential within the project
137137
Name string `json:"name" api:"required"`
138138
// Field name to value mapping (e.g., username, password)
139139
Values map[string]string `json:"values,omitzero" api:"required"`
@@ -164,7 +164,7 @@ type Credential struct {
164164
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
165165
// Target domain this credential is for
166166
Domain string `json:"domain" api:"required"`
167-
// Unique name for the credential within the organization
167+
// Unique name for the credential within the project
168168
Name string `json:"name" api:"required"`
169169
// When the credential was last updated
170170
UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"`

extension.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ type ExtensionListResponse struct {
108108
// Timestamp when the extension was last used
109109
LastUsedAt time.Time `json:"last_used_at" api:"nullable" format:"date-time"`
110110
// Optional, easier-to-reference name for the extension. Must be unique within the
111-
// organization.
111+
// project.
112112
Name string `json:"name" api:"nullable"`
113113
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
114114
JSON struct {
@@ -139,7 +139,7 @@ type ExtensionUploadResponse struct {
139139
// Timestamp when the extension was last used
140140
LastUsedAt time.Time `json:"last_used_at" api:"nullable" format:"date-time"`
141141
// Optional, easier-to-reference name for the extension. Must be unique within the
142-
// organization.
142+
// project.
143143
Name string `json:"name" api:"nullable"`
144144
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
145145
JSON struct {
@@ -190,7 +190,7 @@ const (
190190
type ExtensionUploadParams struct {
191191
// ZIP file containing the browser extension.
192192
File io.Reader `json:"file,omitzero" api:"required" format:"binary"`
193-
// Optional unique name within the organization to reference this extension.
193+
// Optional unique name within the project to reference this extension.
194194
Name param.Opt[string] `json:"name,omitzero"`
195195
paramObj
196196
}

profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (r *ProfileService) Download(ctx context.Context, idOrName string, opts ...
110110
}
111111

112112
type ProfileNewParams struct {
113-
// Optional name of the profile. Must be unique within the organization.
113+
// Optional name of the profile. Must be unique within the project.
114114
Name param.Opt[string] `json:"name,omitzero"`
115115
paramObj
116116
}

0 commit comments

Comments
 (0)