openai 0.116.0 → 0.117.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/openai/models/admin/organization/workload_identity_provider.rb +158 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_create_params.rb +143 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_delete_params.rb +24 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_deleted.rb +32 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_list_params.rb +58 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_retrieve_params.rb +24 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_update_params.rb +143 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb +161 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_create_params.rb +144 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_delete_params.rb +32 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_deleted.rb +34 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_list_params.rb +85 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_retrieve_params.rb +32 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_update_params.rb +134 -0
- data/lib/openai/models/beta/chatkit/chat_session_workflow_param.rb +5 -3
- data/lib/openai/models/beta/chatkit_workflow.rb +5 -3
- data/lib/openai/resources/admin/organization/workload_identity_providers/federation_rules.rb +198 -0
- data/lib/openai/resources/admin/organization/workload_identity_providers.rb +148 -0
- data/lib/openai/resources/admin/organization.rb +6 -0
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +16 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider.rbi +288 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_create_params.rbi +311 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_delete_params.rbi +57 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_deleted.rbi +64 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_list_params.rbi +111 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_retrieve_params.rbi +57 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_update_params.rbi +317 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule.rbi +276 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_create_params.rbi +282 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_delete_params.rbi +72 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_deleted.rbi +68 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_list_params.rbi +153 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_retrieve_params.rbi +72 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_update_params.rbi +281 -0
- data/rbi/openai/models/beta/chatkit/chat_session_workflow_param.rbi +1 -1
- data/rbi/openai/models/beta/chatkit_workflow.rbi +1 -1
- data/rbi/openai/resources/admin/organization/workload_identity_providers/federation_rules.rbi +148 -0
- data/rbi/openai/resources/admin/organization/workload_identity_providers.rbi +123 -0
- data/rbi/openai/resources/admin/organization.rbi +3 -0
- data/sig/openai/models/admin/organization/external_key_create_params.rbs +9 -9
- data/sig/openai/models/admin/organization/workload_identity_provider.rbs +136 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_create_params.rbs +140 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_delete_params.rbs +30 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_deleted.rbs +34 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_list_params.rbs +59 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_retrieve_params.rbs +30 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_update_params.rbs +145 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule.rbs +124 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_create_params.rbs +126 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_delete_params.rbs +37 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_deleted.rbs +36 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_list_params.rbs +73 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_retrieve_params.rbs +37 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_update_params.rbs +123 -0
- data/sig/openai/models/audio/transcription_create_params.rbs +3 -3
- data/sig/openai/models/audio/voice_create_params.rbs +6 -6
- data/sig/openai/models/beta/assistant_create_params.rbs +14 -2
- data/sig/openai/models/beta/chatkit/chat_session_workflow_param.rbs +1 -1
- data/sig/openai/models/beta/chatkit_workflow.rbs +1 -1
- data/sig/openai/models/beta/thread_create_and_run_params.rbs +14 -2
- data/sig/openai/models/beta/thread_create_params.rbs +14 -2
- data/sig/openai/models/decision_create_params.rbs +42 -0
- data/sig/openai/models/eval_create_params.rbs +29 -2
- data/sig/openai/models/evals/run_create_params.rbs +53 -2
- data/sig/openai/resources/admin/organization/external_keys.rbs +3 -3
- data/sig/openai/resources/admin/organization/workload_identity_providers/federation_rules.rbs +61 -0
- data/sig/openai/resources/admin/organization/workload_identity_providers.rbs +58 -0
- data/sig/openai/resources/admin/organization.rbs +2 -0
- data/sig/openai/resources/audio/transcriptions.rbs +2 -2
- data/sig/openai/resources/audio/voices.rbs +2 -2
- data/sig/openai/resources/decisions.rbs +14 -0
- data/sig/openai/resources/evals.rbs +8 -1
- metadata +49 -1
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Resources
|
|
5
|
+
|
|
6
|
+
class Admin
|
|
7
|
+
|
|
8
|
+
class Organization
|
|
9
|
+
|
|
10
|
+
class WorkloadIdentityProviders
|
|
11
|
+
|
|
12
|
+
sig { returns(OpenAI::Resources::Admin::Organization::WorkloadIdentityProviders::FederationRules) }
|
|
13
|
+
attr_reader :federation_rules
|
|
14
|
+
|
|
15
|
+
# Register an OIDC provider for keyless project service-account authentication.
|
|
16
|
+
sig {
|
|
17
|
+
params(
|
|
18
|
+
audience: String,
|
|
19
|
+
issuer: String,
|
|
20
|
+
name: String,
|
|
21
|
+
attribute_transformations: T::Array[
|
|
22
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviderCreateParams::AttributeTransformation::OrHash
|
|
23
|
+
],
|
|
24
|
+
description: String,
|
|
25
|
+
enabled: T::Boolean,
|
|
26
|
+
verification: T.any(
|
|
27
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviderCreateParams::Verification::Discovery::OrHash,
|
|
28
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviderCreateParams::Verification::UploadedJwks::OrHash
|
|
29
|
+
),
|
|
30
|
+
type: Symbol,
|
|
31
|
+
request_options: OpenAI::RequestOptions::OrHash
|
|
32
|
+
)
|
|
33
|
+
.returns(OpenAI::Admin::Organization::WorkloadIdentityProvider)
|
|
34
|
+
}
|
|
35
|
+
def create(
|
|
36
|
+
audience:,
|
|
37
|
+
issuer:,
|
|
38
|
+
name:,
|
|
39
|
+
attribute_transformations: nil,
|
|
40
|
+
description: nil,
|
|
41
|
+
enabled: nil,
|
|
42
|
+
verification: nil,
|
|
43
|
+
type: :oidc,
|
|
44
|
+
request_options: {}
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Retrieve an OIDC provider in the authenticated organization.
|
|
49
|
+
sig {
|
|
50
|
+
params(workload_identity_provider_id: String, request_options: OpenAI::RequestOptions::OrHash).returns(
|
|
51
|
+
OpenAI::Admin::Organization::WorkloadIdentityProvider
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
def retrieve(workload_identity_provider_id, request_options: {})
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Update supplied provider fields, preserving omitted fields.
|
|
58
|
+
sig {
|
|
59
|
+
params(
|
|
60
|
+
workload_identity_provider_id: String,
|
|
61
|
+
attribute_transformations: T::Array[
|
|
62
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviderUpdateParams::AttributeTransformation::OrHash
|
|
63
|
+
],
|
|
64
|
+
audience: String,
|
|
65
|
+
description: T.nilable(String),
|
|
66
|
+
enabled: T::Boolean,
|
|
67
|
+
issuer: String,
|
|
68
|
+
name: String,
|
|
69
|
+
verification: T.any(
|
|
70
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviderUpdateParams::Verification::DiscoveryVerificationParam::OrHash,
|
|
71
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviderUpdateParams::Verification::UploadedJwksVerificationParam::OrHash
|
|
72
|
+
),
|
|
73
|
+
request_options: OpenAI::RequestOptions::OrHash
|
|
74
|
+
)
|
|
75
|
+
.returns(OpenAI::Admin::Organization::WorkloadIdentityProvider)
|
|
76
|
+
}
|
|
77
|
+
def update(
|
|
78
|
+
workload_identity_provider_id,
|
|
79
|
+
attribute_transformations: nil,
|
|
80
|
+
audience: nil,
|
|
81
|
+
description: nil,
|
|
82
|
+
enabled: nil,
|
|
83
|
+
issuer: nil,
|
|
84
|
+
name: nil,
|
|
85
|
+
verification: nil,
|
|
86
|
+
request_options: {}
|
|
87
|
+
)
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# List OIDC providers in the authenticated Admin API key's organization.
|
|
91
|
+
sig {
|
|
92
|
+
params(
|
|
93
|
+
after: String,
|
|
94
|
+
limit: Integer,
|
|
95
|
+
order: OpenAI::Admin::Organization::WorkloadIdentityProviderListParams::Order::OrSymbol,
|
|
96
|
+
request_options: OpenAI::RequestOptions::OrHash
|
|
97
|
+
)
|
|
98
|
+
.returns(OpenAI::Internal::CursorPage[OpenAI::Admin::Organization::WorkloadIdentityProvider])
|
|
99
|
+
}
|
|
100
|
+
def list(after: nil, limit: nil, order: nil, request_options: {})
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Delete a provider after deleting all its federation rules.
|
|
104
|
+
sig {
|
|
105
|
+
params(workload_identity_provider_id: String, request_options: OpenAI::RequestOptions::OrHash).returns(
|
|
106
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviderDeleted
|
|
107
|
+
)
|
|
108
|
+
}
|
|
109
|
+
def delete(workload_identity_provider_id, request_options: {})
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# @api private
|
|
113
|
+
sig { params(client: OpenAI::Client).returns(T.attached_class) }
|
|
114
|
+
def self.new(client:)
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
end
|
|
123
|
+
end
|
|
@@ -50,6 +50,9 @@ module OpenAI
|
|
|
50
50
|
sig { returns(OpenAI::Resources::Admin::Organization::Projects) }
|
|
51
51
|
attr_reader :projects
|
|
52
52
|
|
|
53
|
+
sig { returns(OpenAI::Resources::Admin::Organization::WorkloadIdentityProviders) }
|
|
54
|
+
attr_reader :workload_identity_providers
|
|
55
|
+
|
|
53
56
|
# @api private
|
|
54
57
|
sig { params(client: OpenAI::Client).returns(T.attached_class) }
|
|
55
58
|
def self.new(client:)
|
|
@@ -22,7 +22,7 @@ module OpenAI
|
|
|
22
22
|
name: String,
|
|
23
23
|
role_arn: String,
|
|
24
24
|
type: :aws,
|
|
25
|
-
?purpose:
|
|
25
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Aws::purpose
|
|
26
26
|
}
|
|
27
27
|
| {
|
|
28
28
|
audience: String,
|
|
@@ -36,7 +36,7 @@ module OpenAI
|
|
|
36
36
|
workload_identity_project_number: String,
|
|
37
37
|
workload_identity_provider_id: String,
|
|
38
38
|
?kms_key_version: String,
|
|
39
|
-
?purpose:
|
|
39
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Gcp::purpose
|
|
40
40
|
}
|
|
41
41
|
| {
|
|
42
42
|
key_name: String,
|
|
@@ -45,7 +45,7 @@ module OpenAI
|
|
|
45
45
|
type: :azure,
|
|
46
46
|
vault_uri: String,
|
|
47
47
|
?key_version: String,
|
|
48
|
-
?purpose:
|
|
48
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Azure::purpose
|
|
49
49
|
}
|
|
50
50
|
) -> (OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::body
|
|
51
51
|
| {
|
|
@@ -54,7 +54,7 @@ module OpenAI
|
|
|
54
54
|
name: String,
|
|
55
55
|
role_arn: String,
|
|
56
56
|
type: :aws,
|
|
57
|
-
?purpose:
|
|
57
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Aws::purpose
|
|
58
58
|
}
|
|
59
59
|
| {
|
|
60
60
|
audience: String,
|
|
@@ -68,7 +68,7 @@ module OpenAI
|
|
|
68
68
|
workload_identity_project_number: String,
|
|
69
69
|
workload_identity_provider_id: String,
|
|
70
70
|
?kms_key_version: String,
|
|
71
|
-
?purpose:
|
|
71
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Gcp::purpose
|
|
72
72
|
}
|
|
73
73
|
| {
|
|
74
74
|
key_name: String,
|
|
@@ -77,7 +77,7 @@ module OpenAI
|
|
|
77
77
|
type: :azure,
|
|
78
78
|
vault_uri: String,
|
|
79
79
|
?key_version: String,
|
|
80
|
-
?purpose:
|
|
80
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Azure::purpose
|
|
81
81
|
})
|
|
82
82
|
|
|
83
83
|
def initialize: (
|
|
@@ -88,7 +88,7 @@ module OpenAI
|
|
|
88
88
|
name: String,
|
|
89
89
|
role_arn: String,
|
|
90
90
|
type: :aws,
|
|
91
|
-
?purpose:
|
|
91
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Aws::purpose
|
|
92
92
|
}
|
|
93
93
|
| {
|
|
94
94
|
audience: String,
|
|
@@ -102,7 +102,7 @@ module OpenAI
|
|
|
102
102
|
workload_identity_project_number: String,
|
|
103
103
|
workload_identity_provider_id: String,
|
|
104
104
|
?kms_key_version: String,
|
|
105
|
-
?purpose:
|
|
105
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Gcp::purpose
|
|
106
106
|
}
|
|
107
107
|
| {
|
|
108
108
|
key_name: String,
|
|
@@ -111,7 +111,7 @@ module OpenAI
|
|
|
111
111
|
type: :azure,
|
|
112
112
|
vault_uri: String,
|
|
113
113
|
?key_version: String,
|
|
114
|
-
?purpose:
|
|
114
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Azure::purpose
|
|
115
115
|
},
|
|
116
116
|
?request_options: OpenAI::request_opts
|
|
117
117
|
) -> void
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Admin
|
|
4
|
+
module Organization
|
|
5
|
+
type workload_identity_provider =
|
|
6
|
+
{
|
|
7
|
+
id: String,
|
|
8
|
+
attribute_transformations: ::Array[OpenAI::Admin::Organization::WorkloadIdentityProvider::AttributeTransformation],
|
|
9
|
+
audience: String,
|
|
10
|
+
created_at: Integer,
|
|
11
|
+
description: String?,
|
|
12
|
+
enabled: bool,
|
|
13
|
+
issuer: String,
|
|
14
|
+
name: String,
|
|
15
|
+
?object: :"organization.workload_identity_provider",
|
|
16
|
+
?type: :oidc,
|
|
17
|
+
updated_at: Integer,
|
|
18
|
+
verification: OpenAI::Models::Admin::Organization::WorkloadIdentityProvider::verification
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
class WorkloadIdentityProvider < OpenAI::Internal::Type::BaseModel
|
|
22
|
+
attr_accessor id: String
|
|
23
|
+
|
|
24
|
+
attr_accessor attribute_transformations: ::Array[OpenAI::Admin::Organization::WorkloadIdentityProvider::AttributeTransformation]
|
|
25
|
+
|
|
26
|
+
attr_accessor audience: String
|
|
27
|
+
|
|
28
|
+
attr_accessor created_at: Integer
|
|
29
|
+
|
|
30
|
+
attr_accessor description: String?
|
|
31
|
+
|
|
32
|
+
attr_accessor enabled: bool
|
|
33
|
+
|
|
34
|
+
attr_accessor issuer: String
|
|
35
|
+
|
|
36
|
+
attr_accessor name: String
|
|
37
|
+
|
|
38
|
+
attr_accessor object: :"organization.workload_identity_provider"
|
|
39
|
+
|
|
40
|
+
attr_accessor type: :oidc
|
|
41
|
+
|
|
42
|
+
attr_accessor updated_at: Integer
|
|
43
|
+
|
|
44
|
+
attr_accessor verification: OpenAI::Models::Admin::Organization::WorkloadIdentityProvider::verification
|
|
45
|
+
|
|
46
|
+
def initialize: (
|
|
47
|
+
id: String,
|
|
48
|
+
attribute_transformations: ::Array[OpenAI::Admin::Organization::WorkloadIdentityProvider::AttributeTransformation],
|
|
49
|
+
audience: String,
|
|
50
|
+
created_at: Integer,
|
|
51
|
+
description: String?,
|
|
52
|
+
enabled: bool,
|
|
53
|
+
issuer: String,
|
|
54
|
+
name: String,
|
|
55
|
+
updated_at: Integer,
|
|
56
|
+
verification: OpenAI::Models::Admin::Organization::WorkloadIdentityProvider::verification,
|
|
57
|
+
?object: :"organization.workload_identity_provider",
|
|
58
|
+
?type: :oidc
|
|
59
|
+
) -> void
|
|
60
|
+
|
|
61
|
+
def to_hash: -> {
|
|
62
|
+
id: String,
|
|
63
|
+
attribute_transformations: ::Array[OpenAI::Admin::Organization::WorkloadIdentityProvider::AttributeTransformation],
|
|
64
|
+
audience: String,
|
|
65
|
+
created_at: Integer,
|
|
66
|
+
description: String?,
|
|
67
|
+
enabled: bool,
|
|
68
|
+
issuer: String,
|
|
69
|
+
name: String,
|
|
70
|
+
?object: :"organization.workload_identity_provider",
|
|
71
|
+
?type: :oidc,
|
|
72
|
+
updated_at: Integer,
|
|
73
|
+
verification: OpenAI::Models::Admin::Organization::WorkloadIdentityProvider::verification
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
type attribute_transformation =
|
|
77
|
+
{ attribute: String, expression: String }
|
|
78
|
+
|
|
79
|
+
class AttributeTransformation < OpenAI::Internal::Type::BaseModel
|
|
80
|
+
attr_accessor attribute: String
|
|
81
|
+
|
|
82
|
+
attr_accessor expression: String
|
|
83
|
+
|
|
84
|
+
def initialize: (attribute: String, expression: String) -> void
|
|
85
|
+
|
|
86
|
+
def to_hash: -> { attribute: String, expression: String }
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
type verification =
|
|
90
|
+
OpenAI::Admin::Organization::WorkloadIdentityProvider::Verification::Discovery
|
|
91
|
+
| OpenAI::Admin::Organization::WorkloadIdentityProvider::Verification::UploadedJwks
|
|
92
|
+
|
|
93
|
+
module Verification
|
|
94
|
+
extend OpenAI::Internal::Type::Union
|
|
95
|
+
|
|
96
|
+
type discovery = { discovery_url: String?, ?type: :discovery }
|
|
97
|
+
|
|
98
|
+
class Discovery < OpenAI::Internal::Type::BaseModel
|
|
99
|
+
attr_accessor discovery_url: String?
|
|
100
|
+
|
|
101
|
+
attr_accessor type: :discovery
|
|
102
|
+
|
|
103
|
+
def initialize: (
|
|
104
|
+
discovery_url: String?,
|
|
105
|
+
?type: :discovery
|
|
106
|
+
) -> void
|
|
107
|
+
|
|
108
|
+
def to_hash: -> { discovery_url: String?, ?type: :discovery }
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
type uploaded_jwks =
|
|
112
|
+
{ jwks: ::Hash[Symbol, top], ?type: :uploaded_jwks }
|
|
113
|
+
|
|
114
|
+
class UploadedJwks < OpenAI::Internal::Type::BaseModel
|
|
115
|
+
attr_accessor jwks: ::Hash[Symbol, top]
|
|
116
|
+
|
|
117
|
+
attr_accessor type: :uploaded_jwks
|
|
118
|
+
|
|
119
|
+
def initialize: (
|
|
120
|
+
jwks: ::Hash[Symbol, top],
|
|
121
|
+
?type: :uploaded_jwks
|
|
122
|
+
) -> void
|
|
123
|
+
|
|
124
|
+
def to_hash: -> {
|
|
125
|
+
jwks: ::Hash[Symbol, top],
|
|
126
|
+
?type: :uploaded_jwks
|
|
127
|
+
}
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
def self?.variants: -> ::Array[OpenAI::Models::Admin::Organization::WorkloadIdentityProvider::verification]
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Admin
|
|
4
|
+
module Organization
|
|
5
|
+
type workload_identity_provider_create_params =
|
|
6
|
+
{
|
|
7
|
+
audience: String,
|
|
8
|
+
issuer: String,
|
|
9
|
+
name: String,
|
|
10
|
+
?type: :oidc,
|
|
11
|
+
?attribute_transformations: ::Array[OpenAI::Admin::Organization::WorkloadIdentityProviderCreateParams::AttributeTransformation],
|
|
12
|
+
?description: String,
|
|
13
|
+
?enabled: bool,
|
|
14
|
+
?verification: OpenAI::Models::Admin::Organization::WorkloadIdentityProviderCreateParams::verification,
|
|
15
|
+
?request_options: OpenAI::request_opts
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
class WorkloadIdentityProviderCreateParams < OpenAI::Internal::Type::BaseModel
|
|
19
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
20
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
21
|
+
|
|
22
|
+
attr_accessor audience: String
|
|
23
|
+
|
|
24
|
+
attr_accessor issuer: String
|
|
25
|
+
|
|
26
|
+
attr_accessor name: String
|
|
27
|
+
|
|
28
|
+
attr_accessor type: :oidc
|
|
29
|
+
|
|
30
|
+
attr_reader attribute_transformations: ::Array[OpenAI::Admin::Organization::WorkloadIdentityProviderCreateParams::AttributeTransformation]?
|
|
31
|
+
|
|
32
|
+
def attribute_transformations=: (
|
|
33
|
+
::Array[OpenAI::Admin::Organization::WorkloadIdentityProviderCreateParams::AttributeTransformation]
|
|
34
|
+
) -> ::Array[OpenAI::Admin::Organization::WorkloadIdentityProviderCreateParams::AttributeTransformation]
|
|
35
|
+
|
|
36
|
+
attr_reader description: String?
|
|
37
|
+
|
|
38
|
+
def description=: (String) -> String
|
|
39
|
+
|
|
40
|
+
attr_reader enabled: bool?
|
|
41
|
+
|
|
42
|
+
def enabled=: (bool) -> bool
|
|
43
|
+
|
|
44
|
+
attr_reader verification: OpenAI::Models::Admin::Organization::WorkloadIdentityProviderCreateParams::verification?
|
|
45
|
+
|
|
46
|
+
def verification=: (
|
|
47
|
+
OpenAI::Models::Admin::Organization::WorkloadIdentityProviderCreateParams::verification
|
|
48
|
+
| { discovery_url: String?, type: :discovery }
|
|
49
|
+
| { jwks: ::Hash[Symbol, top], type: :uploaded_jwks }
|
|
50
|
+
) -> (OpenAI::Models::Admin::Organization::WorkloadIdentityProviderCreateParams::verification
|
|
51
|
+
| { discovery_url: String?, type: :discovery }
|
|
52
|
+
| { jwks: ::Hash[Symbol, top], type: :uploaded_jwks })
|
|
53
|
+
|
|
54
|
+
def initialize: (
|
|
55
|
+
audience: String,
|
|
56
|
+
issuer: String,
|
|
57
|
+
name: String,
|
|
58
|
+
?attribute_transformations: ::Array[OpenAI::Admin::Organization::WorkloadIdentityProviderCreateParams::AttributeTransformation],
|
|
59
|
+
?description: String,
|
|
60
|
+
?enabled: bool,
|
|
61
|
+
?verification: OpenAI::Models::Admin::Organization::WorkloadIdentityProviderCreateParams::verification
|
|
62
|
+
| { discovery_url: String?, type: :discovery }
|
|
63
|
+
| { jwks: ::Hash[Symbol, top], type: :uploaded_jwks },
|
|
64
|
+
?type: :oidc,
|
|
65
|
+
?request_options: OpenAI::request_opts
|
|
66
|
+
) -> void
|
|
67
|
+
|
|
68
|
+
def to_hash: -> {
|
|
69
|
+
audience: String,
|
|
70
|
+
issuer: String,
|
|
71
|
+
name: String,
|
|
72
|
+
?type: :oidc,
|
|
73
|
+
?attribute_transformations: ::Array[OpenAI::Admin::Organization::WorkloadIdentityProviderCreateParams::AttributeTransformation],
|
|
74
|
+
?description: String,
|
|
75
|
+
?enabled: bool,
|
|
76
|
+
?verification: OpenAI::Models::Admin::Organization::WorkloadIdentityProviderCreateParams::verification,
|
|
77
|
+
?request_options: OpenAI::RequestOptions
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
type attribute_transformation =
|
|
81
|
+
{ attribute: String, expression: String }
|
|
82
|
+
|
|
83
|
+
class AttributeTransformation < OpenAI::Internal::Type::BaseModel
|
|
84
|
+
attr_accessor attribute: String
|
|
85
|
+
|
|
86
|
+
attr_accessor expression: String
|
|
87
|
+
|
|
88
|
+
def initialize: (attribute: String, expression: String) -> void
|
|
89
|
+
|
|
90
|
+
def to_hash: -> { attribute: String, expression: String }
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
type verification =
|
|
94
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviderCreateParams::Verification::Discovery
|
|
95
|
+
| OpenAI::Admin::Organization::WorkloadIdentityProviderCreateParams::Verification::UploadedJwks
|
|
96
|
+
|
|
97
|
+
module Verification
|
|
98
|
+
extend OpenAI::Internal::Type::Union
|
|
99
|
+
|
|
100
|
+
type discovery = { discovery_url: String?, ?type: :discovery }
|
|
101
|
+
|
|
102
|
+
class Discovery < OpenAI::Internal::Type::BaseModel
|
|
103
|
+
attr_accessor discovery_url: String?
|
|
104
|
+
|
|
105
|
+
attr_accessor type: :discovery
|
|
106
|
+
|
|
107
|
+
def initialize: (
|
|
108
|
+
discovery_url: String?,
|
|
109
|
+
?type: :discovery
|
|
110
|
+
) -> void
|
|
111
|
+
|
|
112
|
+
def to_hash: -> { discovery_url: String?, ?type: :discovery }
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
type uploaded_jwks =
|
|
116
|
+
{ jwks: ::Hash[Symbol, top], ?type: :uploaded_jwks }
|
|
117
|
+
|
|
118
|
+
class UploadedJwks < OpenAI::Internal::Type::BaseModel
|
|
119
|
+
attr_accessor jwks: ::Hash[Symbol, top]
|
|
120
|
+
|
|
121
|
+
attr_accessor type: :uploaded_jwks
|
|
122
|
+
|
|
123
|
+
def initialize: (
|
|
124
|
+
jwks: ::Hash[Symbol, top],
|
|
125
|
+
?type: :uploaded_jwks
|
|
126
|
+
) -> void
|
|
127
|
+
|
|
128
|
+
def to_hash: -> {
|
|
129
|
+
jwks: ::Hash[Symbol, top],
|
|
130
|
+
?type: :uploaded_jwks
|
|
131
|
+
}
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
def self?.variants: -> ::Array[OpenAI::Models::Admin::Organization::WorkloadIdentityProviderCreateParams::verification]
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Admin
|
|
4
|
+
module Organization
|
|
5
|
+
type workload_identity_provider_delete_params =
|
|
6
|
+
{
|
|
7
|
+
workload_identity_provider_id: String,
|
|
8
|
+
?request_options: OpenAI::request_opts
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class WorkloadIdentityProviderDeleteParams < OpenAI::Internal::Type::BaseModel
|
|
12
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
13
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
14
|
+
|
|
15
|
+
attr_accessor workload_identity_provider_id: String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
workload_identity_provider_id: String,
|
|
19
|
+
?request_options: OpenAI::request_opts
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
workload_identity_provider_id: String,
|
|
24
|
+
?request_options: OpenAI::RequestOptions
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Admin
|
|
4
|
+
module Organization
|
|
5
|
+
type workload_identity_provider_deleted =
|
|
6
|
+
{
|
|
7
|
+
id: String,
|
|
8
|
+
deleted: bool,
|
|
9
|
+
?object: :"organization.workload_identity_provider.deleted"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class WorkloadIdentityProviderDeleted < OpenAI::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor id: String
|
|
14
|
+
|
|
15
|
+
attr_accessor deleted: bool
|
|
16
|
+
|
|
17
|
+
attr_accessor object: :"organization.workload_identity_provider.deleted"
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
id: String,
|
|
21
|
+
deleted: bool,
|
|
22
|
+
?object: :"organization.workload_identity_provider.deleted"
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
id: String,
|
|
27
|
+
deleted: bool,
|
|
28
|
+
?object: :"organization.workload_identity_provider.deleted"
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Admin
|
|
4
|
+
module Organization
|
|
5
|
+
type workload_identity_provider_list_params =
|
|
6
|
+
{
|
|
7
|
+
?after: String,
|
|
8
|
+
?limit: Integer,
|
|
9
|
+
?order: OpenAI::Models::Admin::Organization::WorkloadIdentityProviderListParams::order,
|
|
10
|
+
?request_options: OpenAI::request_opts
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class WorkloadIdentityProviderListParams < OpenAI::Internal::Type::BaseModel
|
|
14
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_reader after: String?
|
|
18
|
+
|
|
19
|
+
def after=: (String) -> String
|
|
20
|
+
|
|
21
|
+
attr_reader limit: Integer?
|
|
22
|
+
|
|
23
|
+
def limit=: (Integer) -> Integer
|
|
24
|
+
|
|
25
|
+
attr_reader order: OpenAI::Models::Admin::Organization::WorkloadIdentityProviderListParams::order?
|
|
26
|
+
|
|
27
|
+
def order=: (
|
|
28
|
+
OpenAI::Models::Admin::Organization::WorkloadIdentityProviderListParams::order
|
|
29
|
+
) -> OpenAI::Models::Admin::Organization::WorkloadIdentityProviderListParams::order
|
|
30
|
+
|
|
31
|
+
def initialize: (
|
|
32
|
+
?after: String,
|
|
33
|
+
?limit: Integer,
|
|
34
|
+
?order: OpenAI::Models::Admin::Organization::WorkloadIdentityProviderListParams::order,
|
|
35
|
+
?request_options: OpenAI::request_opts
|
|
36
|
+
) -> void
|
|
37
|
+
|
|
38
|
+
def to_hash: -> {
|
|
39
|
+
?after: String,
|
|
40
|
+
?limit: Integer,
|
|
41
|
+
?order: OpenAI::Models::Admin::Organization::WorkloadIdentityProviderListParams::order,
|
|
42
|
+
?request_options: OpenAI::RequestOptions
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
type order = :asc | :desc
|
|
46
|
+
|
|
47
|
+
module Order
|
|
48
|
+
extend OpenAI::Internal::Type::Union
|
|
49
|
+
|
|
50
|
+
def self?.variants: -> ::Array[OpenAI::Models::Admin::Organization::WorkloadIdentityProviderListParams::order]
|
|
51
|
+
|
|
52
|
+
ASC: :asc
|
|
53
|
+
DESC: :desc
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Admin
|
|
4
|
+
module Organization
|
|
5
|
+
type workload_identity_provider_retrieve_params =
|
|
6
|
+
{
|
|
7
|
+
workload_identity_provider_id: String,
|
|
8
|
+
?request_options: OpenAI::request_opts
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class WorkloadIdentityProviderRetrieveParams < OpenAI::Internal::Type::BaseModel
|
|
12
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
13
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
14
|
+
|
|
15
|
+
attr_accessor workload_identity_provider_id: String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
workload_identity_provider_id: String,
|
|
19
|
+
?request_options: OpenAI::request_opts
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
workload_identity_provider_id: String,
|
|
24
|
+
?request_options: OpenAI::RequestOptions
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|