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,161 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Admin
|
|
6
|
+
module Organization
|
|
7
|
+
module WorkloadIdentityProviders
|
|
8
|
+
# @see OpenAI::Resources::Admin::Organization::WorkloadIdentityProviders::FederationRules#create
|
|
9
|
+
class FederationRule < OpenAI::Internal::Type::BaseModel
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute attribute_matchers
|
|
16
|
+
#
|
|
17
|
+
# @return [Hash{Symbol=>String, Boolean, Integer, Float}]
|
|
18
|
+
required(
|
|
19
|
+
:attribute_matchers,
|
|
20
|
+
-> {
|
|
21
|
+
OpenAI::Internal::Type::HashOf[
|
|
22
|
+
union: OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRule::AttributeMatcher
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
# @!attribute created_at
|
|
28
|
+
#
|
|
29
|
+
# @return [Integer]
|
|
30
|
+
required :created_at, Integer
|
|
31
|
+
|
|
32
|
+
# @!attribute description
|
|
33
|
+
#
|
|
34
|
+
# @return [String, nil]
|
|
35
|
+
required :description, String, nil?: true
|
|
36
|
+
|
|
37
|
+
# @!attribute enabled
|
|
38
|
+
#
|
|
39
|
+
# @return [Boolean]
|
|
40
|
+
required :enabled, OpenAI::Internal::Type::Boolean
|
|
41
|
+
|
|
42
|
+
# @!attribute name
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
required :name, String, nil?: true
|
|
46
|
+
|
|
47
|
+
# @!attribute object
|
|
48
|
+
#
|
|
49
|
+
# @return [Symbol, :"organization.workload_identity_federation_rule"]
|
|
50
|
+
required :object, const: :"organization.workload_identity_federation_rule"
|
|
51
|
+
|
|
52
|
+
# @!attribute permissions
|
|
53
|
+
#
|
|
54
|
+
# @return [OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::Permissions::ServiceAccountDefault, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::Permissions::Restricted]
|
|
55
|
+
required(
|
|
56
|
+
:permissions,
|
|
57
|
+
union: -> { OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRule::Permissions }
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
# @!attribute project_id
|
|
61
|
+
#
|
|
62
|
+
# @return [String]
|
|
63
|
+
required :project_id, String
|
|
64
|
+
|
|
65
|
+
# @!attribute service_account_id
|
|
66
|
+
#
|
|
67
|
+
# @return [String]
|
|
68
|
+
required :service_account_id, String
|
|
69
|
+
|
|
70
|
+
# @!attribute updated_at
|
|
71
|
+
#
|
|
72
|
+
# @return [Integer]
|
|
73
|
+
required :updated_at, Integer
|
|
74
|
+
|
|
75
|
+
# @!attribute workload_identity_provider_id
|
|
76
|
+
#
|
|
77
|
+
# @return [String]
|
|
78
|
+
required :workload_identity_provider_id, String
|
|
79
|
+
|
|
80
|
+
# @!method initialize(id:, attribute_matchers:, created_at:, description:, enabled:, name:, permissions:, project_id:, service_account_id:, updated_at:, workload_identity_provider_id:, object: :"organization.workload_identity_federation_rule")
|
|
81
|
+
# @param id [String]
|
|
82
|
+
# @param attribute_matchers [Hash{Symbol=>String, Boolean, Integer, Float}]
|
|
83
|
+
# @param created_at [Integer]
|
|
84
|
+
# @param description [String, nil]
|
|
85
|
+
# @param enabled [Boolean]
|
|
86
|
+
# @param name [String, nil]
|
|
87
|
+
# @param permissions [OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::Permissions::ServiceAccountDefault, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::Permissions::Restricted]
|
|
88
|
+
# @param project_id [String]
|
|
89
|
+
# @param service_account_id [String]
|
|
90
|
+
# @param updated_at [Integer]
|
|
91
|
+
# @param workload_identity_provider_id [String]
|
|
92
|
+
# @param object [Symbol, :"organization.workload_identity_federation_rule"]
|
|
93
|
+
|
|
94
|
+
module AttributeMatcher
|
|
95
|
+
extend OpenAI::Internal::Type::Union
|
|
96
|
+
|
|
97
|
+
variant String
|
|
98
|
+
|
|
99
|
+
variant OpenAI::Internal::Type::Boolean
|
|
100
|
+
|
|
101
|
+
variant Integer
|
|
102
|
+
|
|
103
|
+
variant Float
|
|
104
|
+
|
|
105
|
+
# @!method self.variants
|
|
106
|
+
# @return [Array(String, Boolean, Integer, Float)]
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# @see OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule#permissions
|
|
110
|
+
module Permissions
|
|
111
|
+
extend OpenAI::Internal::Type::Union
|
|
112
|
+
|
|
113
|
+
discriminator :type
|
|
114
|
+
|
|
115
|
+
variant(
|
|
116
|
+
:service_account_default,
|
|
117
|
+
-> {
|
|
118
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRule::Permissions::ServiceAccountDefault
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
variant(
|
|
123
|
+
:restricted,
|
|
124
|
+
-> { OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRule::Permissions::Restricted }
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
class ServiceAccountDefault < OpenAI::Internal::Type::BaseModel
|
|
128
|
+
# @!attribute type
|
|
129
|
+
#
|
|
130
|
+
# @return [Symbol, :service_account_default]
|
|
131
|
+
required :type, const: :service_account_default
|
|
132
|
+
|
|
133
|
+
# @!method initialize(type: :service_account_default)
|
|
134
|
+
# @param type [Symbol, :service_account_default]
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
class Restricted < OpenAI::Internal::Type::BaseModel
|
|
138
|
+
# @!attribute scopes
|
|
139
|
+
#
|
|
140
|
+
# @return [Array<String>]
|
|
141
|
+
required :scopes, OpenAI::Internal::Type::ArrayOf[String]
|
|
142
|
+
|
|
143
|
+
# @!attribute type
|
|
144
|
+
#
|
|
145
|
+
# @return [Symbol, :restricted]
|
|
146
|
+
required :type, const: :restricted
|
|
147
|
+
|
|
148
|
+
# @!method initialize(scopes:, type: :restricted)
|
|
149
|
+
# @param scopes [Array<String>]
|
|
150
|
+
# @param type [Symbol, :restricted]
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# @!method self.variants
|
|
154
|
+
# @return [Array(OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::Permissions::ServiceAccountDefault, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::Permissions::Restricted)]
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
end
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Admin
|
|
6
|
+
module Organization
|
|
7
|
+
module WorkloadIdentityProviders
|
|
8
|
+
# @see OpenAI::Resources::Admin::Organization::WorkloadIdentityProviders::FederationRules#create
|
|
9
|
+
class FederationRuleCreateParams < OpenAI::Internal::Type::BaseModel
|
|
10
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
# @!attribute workload_identity_provider_id
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :workload_identity_provider_id, String
|
|
17
|
+
|
|
18
|
+
# @!attribute attribute_matchers
|
|
19
|
+
#
|
|
20
|
+
# @return [Hash{Symbol=>String, Boolean, Integer, Float}]
|
|
21
|
+
required(
|
|
22
|
+
:attribute_matchers,
|
|
23
|
+
-> {
|
|
24
|
+
OpenAI::Internal::Type::HashOf[
|
|
25
|
+
union: OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRuleCreateParams::AttributeMatcher
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
# @!attribute project_id
|
|
31
|
+
#
|
|
32
|
+
# @return [String]
|
|
33
|
+
required :project_id, String
|
|
34
|
+
|
|
35
|
+
# @!attribute service_account_id
|
|
36
|
+
#
|
|
37
|
+
# @return [String]
|
|
38
|
+
required :service_account_id, String
|
|
39
|
+
|
|
40
|
+
# @!attribute description
|
|
41
|
+
#
|
|
42
|
+
# @return [String, nil]
|
|
43
|
+
optional :description, String
|
|
44
|
+
|
|
45
|
+
# @!attribute enabled
|
|
46
|
+
#
|
|
47
|
+
# @return [Boolean, nil]
|
|
48
|
+
optional :enabled, OpenAI::Internal::Type::Boolean
|
|
49
|
+
|
|
50
|
+
# @!attribute name
|
|
51
|
+
#
|
|
52
|
+
# @return [String, nil]
|
|
53
|
+
optional :name, String
|
|
54
|
+
|
|
55
|
+
# @!attribute permissions
|
|
56
|
+
#
|
|
57
|
+
# @return [OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleCreateParams::Permissions::ServiceAccountDefault, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleCreateParams::Permissions::Restricted, nil]
|
|
58
|
+
optional(
|
|
59
|
+
:permissions,
|
|
60
|
+
union: -> {
|
|
61
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRuleCreateParams::Permissions
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
# @!method initialize(workload_identity_provider_id:, attribute_matchers:, project_id:, service_account_id:, description: nil, enabled: nil, name: nil, permissions: nil, request_options: {})
|
|
66
|
+
# @param workload_identity_provider_id [String]
|
|
67
|
+
# @param attribute_matchers [Hash{Symbol=>String, Boolean, Integer, Float}]
|
|
68
|
+
# @param project_id [String]
|
|
69
|
+
# @param service_account_id [String]
|
|
70
|
+
# @param description [String]
|
|
71
|
+
# @param enabled [Boolean]
|
|
72
|
+
# @param name [String]
|
|
73
|
+
# @param permissions [OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleCreateParams::Permissions::ServiceAccountDefault, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleCreateParams::Permissions::Restricted]
|
|
74
|
+
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
75
|
+
|
|
76
|
+
module AttributeMatcher
|
|
77
|
+
extend OpenAI::Internal::Type::Union
|
|
78
|
+
|
|
79
|
+
variant String
|
|
80
|
+
|
|
81
|
+
variant OpenAI::Internal::Type::Boolean
|
|
82
|
+
|
|
83
|
+
variant Integer
|
|
84
|
+
|
|
85
|
+
variant Float
|
|
86
|
+
|
|
87
|
+
# @!method self.variants
|
|
88
|
+
# @return [Array(String, Boolean, Integer, Float)]
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
module Permissions
|
|
92
|
+
extend OpenAI::Internal::Type::Union
|
|
93
|
+
|
|
94
|
+
discriminator :type
|
|
95
|
+
|
|
96
|
+
variant(
|
|
97
|
+
:service_account_default,
|
|
98
|
+
-> {
|
|
99
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRuleCreateParams::Permissions::ServiceAccountDefault
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
variant(
|
|
104
|
+
:restricted,
|
|
105
|
+
-> {
|
|
106
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRuleCreateParams::Permissions::Restricted
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
class ServiceAccountDefault < OpenAI::Internal::Type::BaseModel
|
|
111
|
+
# @!attribute type
|
|
112
|
+
#
|
|
113
|
+
# @return [Symbol, :service_account_default]
|
|
114
|
+
required :type, const: :service_account_default
|
|
115
|
+
|
|
116
|
+
# @!method initialize(type: :service_account_default)
|
|
117
|
+
# @param type [Symbol, :service_account_default]
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
class Restricted < OpenAI::Internal::Type::BaseModel
|
|
121
|
+
# @!attribute scopes
|
|
122
|
+
#
|
|
123
|
+
# @return [Array<String>]
|
|
124
|
+
required :scopes, OpenAI::Internal::Type::ArrayOf[String]
|
|
125
|
+
|
|
126
|
+
# @!attribute type
|
|
127
|
+
#
|
|
128
|
+
# @return [Symbol, :restricted]
|
|
129
|
+
required :type, const: :restricted
|
|
130
|
+
|
|
131
|
+
# @!method initialize(scopes:, type: :restricted)
|
|
132
|
+
# @param scopes [Array<String>]
|
|
133
|
+
# @param type [Symbol, :restricted]
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# @!method self.variants
|
|
137
|
+
# @return [Array(OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleCreateParams::Permissions::ServiceAccountDefault, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleCreateParams::Permissions::Restricted)]
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Admin
|
|
6
|
+
module Organization
|
|
7
|
+
module WorkloadIdentityProviders
|
|
8
|
+
# @see OpenAI::Resources::Admin::Organization::WorkloadIdentityProviders::FederationRules#delete
|
|
9
|
+
class FederationRuleDeleteParams < OpenAI::Internal::Type::BaseModel
|
|
10
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
# @!attribute workload_identity_provider_id
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :workload_identity_provider_id, String
|
|
17
|
+
|
|
18
|
+
# @!attribute workload_identity_federation_rule_id
|
|
19
|
+
#
|
|
20
|
+
# @return [String]
|
|
21
|
+
required :workload_identity_federation_rule_id, String
|
|
22
|
+
|
|
23
|
+
# @!method initialize(workload_identity_provider_id:, workload_identity_federation_rule_id:, request_options: {})
|
|
24
|
+
# @param workload_identity_provider_id [String]
|
|
25
|
+
# @param workload_identity_federation_rule_id [String]
|
|
26
|
+
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_deleted.rb
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Admin
|
|
6
|
+
module Organization
|
|
7
|
+
module WorkloadIdentityProviders
|
|
8
|
+
# @see OpenAI::Resources::Admin::Organization::WorkloadIdentityProviders::FederationRules#delete
|
|
9
|
+
class FederationRuleDeleted < OpenAI::Internal::Type::BaseModel
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute deleted
|
|
16
|
+
#
|
|
17
|
+
# @return [Boolean]
|
|
18
|
+
required :deleted, OpenAI::Internal::Type::Boolean
|
|
19
|
+
|
|
20
|
+
# @!attribute object
|
|
21
|
+
#
|
|
22
|
+
# @return [Symbol, :"organization.workload_identity_federation_rule.deleted"]
|
|
23
|
+
required :object, const: :"organization.workload_identity_federation_rule.deleted"
|
|
24
|
+
|
|
25
|
+
# @!method initialize(id:, deleted:, object: :"organization.workload_identity_federation_rule.deleted")
|
|
26
|
+
# @param id [String]
|
|
27
|
+
# @param deleted [Boolean]
|
|
28
|
+
# @param object [Symbol, :"organization.workload_identity_federation_rule.deleted"]
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_list_params.rb
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Admin
|
|
6
|
+
module Organization
|
|
7
|
+
module WorkloadIdentityProviders
|
|
8
|
+
# @see OpenAI::Resources::Admin::Organization::WorkloadIdentityProviders::FederationRules#list
|
|
9
|
+
class FederationRuleListParams < OpenAI::Internal::Type::BaseModel
|
|
10
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
# @!attribute workload_identity_provider_id
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :workload_identity_provider_id, String
|
|
17
|
+
|
|
18
|
+
# @!attribute after
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
optional :after, String
|
|
22
|
+
|
|
23
|
+
# @!attribute limit
|
|
24
|
+
#
|
|
25
|
+
# @return [Integer, nil]
|
|
26
|
+
optional :limit, Integer
|
|
27
|
+
|
|
28
|
+
# @!attribute order
|
|
29
|
+
#
|
|
30
|
+
# @return [Symbol, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleListParams::Order, nil]
|
|
31
|
+
optional(
|
|
32
|
+
:order,
|
|
33
|
+
union: -> { OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRuleListParams::Order }
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
# @!attribute service_account_id
|
|
37
|
+
#
|
|
38
|
+
# @return [String, nil]
|
|
39
|
+
optional :service_account_id, String
|
|
40
|
+
|
|
41
|
+
# @!method initialize(workload_identity_provider_id:, after: nil, limit: nil, order: nil, service_account_id: nil, request_options: {})
|
|
42
|
+
# @param workload_identity_provider_id [String]
|
|
43
|
+
# @param after [String]
|
|
44
|
+
# @param limit [Integer]
|
|
45
|
+
# @param order [Symbol, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleListParams::Order]
|
|
46
|
+
# @param service_account_id [String]
|
|
47
|
+
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
48
|
+
|
|
49
|
+
module Order
|
|
50
|
+
extend OpenAI::Internal::Type::Union
|
|
51
|
+
|
|
52
|
+
variant(
|
|
53
|
+
const: -> {
|
|
54
|
+
OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleListParams::Order::ASC
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
variant(
|
|
59
|
+
const: -> {
|
|
60
|
+
OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleListParams::Order::DESC
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
# @!method self.variants
|
|
65
|
+
# @return [Array(Symbol)]
|
|
66
|
+
|
|
67
|
+
define_sorbet_constant!(:Variants) do
|
|
68
|
+
T.type_alias {
|
|
69
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRuleListParams::Order::TaggedSymbol
|
|
70
|
+
}
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# @!group
|
|
74
|
+
|
|
75
|
+
ASC = :asc
|
|
76
|
+
DESC = :desc
|
|
77
|
+
|
|
78
|
+
# @!endgroup
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Admin
|
|
6
|
+
module Organization
|
|
7
|
+
module WorkloadIdentityProviders
|
|
8
|
+
# @see OpenAI::Resources::Admin::Organization::WorkloadIdentityProviders::FederationRules#retrieve
|
|
9
|
+
class FederationRuleRetrieveParams < OpenAI::Internal::Type::BaseModel
|
|
10
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
# @!attribute workload_identity_provider_id
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :workload_identity_provider_id, String
|
|
17
|
+
|
|
18
|
+
# @!attribute workload_identity_federation_rule_id
|
|
19
|
+
#
|
|
20
|
+
# @return [String]
|
|
21
|
+
required :workload_identity_federation_rule_id, String
|
|
22
|
+
|
|
23
|
+
# @!method initialize(workload_identity_provider_id:, workload_identity_federation_rule_id:, request_options: {})
|
|
24
|
+
# @param workload_identity_provider_id [String]
|
|
25
|
+
# @param workload_identity_federation_rule_id [String]
|
|
26
|
+
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Admin
|
|
6
|
+
module Organization
|
|
7
|
+
module WorkloadIdentityProviders
|
|
8
|
+
# @see OpenAI::Resources::Admin::Organization::WorkloadIdentityProviders::FederationRules#update
|
|
9
|
+
class FederationRuleUpdateParams < OpenAI::Internal::Type::BaseModel
|
|
10
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
# @!attribute workload_identity_provider_id
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :workload_identity_provider_id, String
|
|
17
|
+
|
|
18
|
+
# @!attribute workload_identity_federation_rule_id
|
|
19
|
+
#
|
|
20
|
+
# @return [String]
|
|
21
|
+
required :workload_identity_federation_rule_id, String
|
|
22
|
+
|
|
23
|
+
# @!attribute attribute_matchers
|
|
24
|
+
#
|
|
25
|
+
# @return [Hash{Symbol=>String, Boolean, Integer, Float}, nil]
|
|
26
|
+
optional(
|
|
27
|
+
:attribute_matchers,
|
|
28
|
+
-> {
|
|
29
|
+
OpenAI::Internal::Type::HashOf[
|
|
30
|
+
union: OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::AttributeMatcher
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
# @!attribute description
|
|
36
|
+
#
|
|
37
|
+
# @return [String, nil]
|
|
38
|
+
optional :description, String, nil?: true
|
|
39
|
+
|
|
40
|
+
# @!attribute enabled
|
|
41
|
+
#
|
|
42
|
+
# @return [Boolean, nil]
|
|
43
|
+
optional :enabled, OpenAI::Internal::Type::Boolean
|
|
44
|
+
|
|
45
|
+
# @!attribute name
|
|
46
|
+
#
|
|
47
|
+
# @return [String, nil]
|
|
48
|
+
optional :name, String, nil?: true
|
|
49
|
+
|
|
50
|
+
# @!attribute permissions
|
|
51
|
+
#
|
|
52
|
+
# @return [OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::Permissions::DefaultPermissionsParam, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::Permissions::RestrictedPermissionsParam, nil]
|
|
53
|
+
optional(
|
|
54
|
+
:permissions,
|
|
55
|
+
union: -> {
|
|
56
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::Permissions
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
# @!method initialize(workload_identity_provider_id:, workload_identity_federation_rule_id:, attribute_matchers: nil, description: nil, enabled: nil, name: nil, permissions: nil, request_options: {})
|
|
61
|
+
# @param workload_identity_provider_id [String]
|
|
62
|
+
# @param workload_identity_federation_rule_id [String]
|
|
63
|
+
# @param attribute_matchers [Hash{Symbol=>String, Boolean, Integer, Float}]
|
|
64
|
+
# @param description [String, nil]
|
|
65
|
+
# @param enabled [Boolean]
|
|
66
|
+
# @param name [String, nil]
|
|
67
|
+
# @param permissions [OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::Permissions::DefaultPermissionsParam, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::Permissions::RestrictedPermissionsParam]
|
|
68
|
+
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
69
|
+
|
|
70
|
+
module AttributeMatcher
|
|
71
|
+
extend OpenAI::Internal::Type::Union
|
|
72
|
+
|
|
73
|
+
variant String
|
|
74
|
+
|
|
75
|
+
variant OpenAI::Internal::Type::Boolean
|
|
76
|
+
|
|
77
|
+
variant Integer
|
|
78
|
+
|
|
79
|
+
variant Float
|
|
80
|
+
|
|
81
|
+
# @!method self.variants
|
|
82
|
+
# @return [Array(String, Boolean, Integer, Float)]
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
module Permissions
|
|
86
|
+
extend OpenAI::Internal::Type::Union
|
|
87
|
+
|
|
88
|
+
variant(
|
|
89
|
+
-> {
|
|
90
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::Permissions::DefaultPermissionsParam
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
variant(
|
|
95
|
+
-> {
|
|
96
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::Permissions::RestrictedPermissionsParam
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
class DefaultPermissionsParam < OpenAI::Internal::Type::BaseModel
|
|
101
|
+
# @!attribute type
|
|
102
|
+
#
|
|
103
|
+
# @return [Symbol, :service_account_default]
|
|
104
|
+
required :type, const: :service_account_default
|
|
105
|
+
|
|
106
|
+
# @!method initialize(type: :service_account_default)
|
|
107
|
+
# @param type [Symbol, :service_account_default]
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
class RestrictedPermissionsParam < OpenAI::Internal::Type::BaseModel
|
|
111
|
+
# @!attribute scopes
|
|
112
|
+
#
|
|
113
|
+
# @return [Array<String>]
|
|
114
|
+
required :scopes, OpenAI::Internal::Type::ArrayOf[String]
|
|
115
|
+
|
|
116
|
+
# @!attribute type
|
|
117
|
+
#
|
|
118
|
+
# @return [Symbol, :restricted]
|
|
119
|
+
required :type, const: :restricted
|
|
120
|
+
|
|
121
|
+
# @!method initialize(scopes:, type: :restricted)
|
|
122
|
+
# @param scopes [Array<String>]
|
|
123
|
+
# @param type [Symbol, :restricted]
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# @!method self.variants
|
|
127
|
+
# @return [Array(OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::Permissions::DefaultPermissionsParam, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::Permissions::RestrictedPermissionsParam)]
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
end
|
|
@@ -15,7 +15,7 @@ module OpenAI
|
|
|
15
15
|
# State variables forwarded to the workflow. Keys may be up to 64 characters,
|
|
16
16
|
# values must be primitive types, and the map defaults to an empty object.
|
|
17
17
|
#
|
|
18
|
-
# @return [Hash{Symbol=>String, Boolean, Float}, nil]
|
|
18
|
+
# @return [Hash{Symbol=>String, Integer, Boolean, Float}, nil]
|
|
19
19
|
optional(
|
|
20
20
|
:state_variables,
|
|
21
21
|
-> {
|
|
@@ -42,7 +42,7 @@ module OpenAI
|
|
|
42
42
|
# @param id [String]
|
|
43
43
|
# Identifier for the workflow invoked by the session.
|
|
44
44
|
#
|
|
45
|
-
# @param state_variables [Hash{Symbol=>String, Boolean, Float}]
|
|
45
|
+
# @param state_variables [Hash{Symbol=>String, Integer, Boolean, Float}]
|
|
46
46
|
# State variables forwarded to the workflow. Keys may be up to 64 characters,
|
|
47
47
|
# values must be primitive types, and the map defaults to an empty object.
|
|
48
48
|
#
|
|
@@ -57,12 +57,14 @@ module OpenAI
|
|
|
57
57
|
|
|
58
58
|
variant String
|
|
59
59
|
|
|
60
|
+
variant Integer
|
|
61
|
+
|
|
60
62
|
variant OpenAI::Internal::Type::Boolean
|
|
61
63
|
|
|
62
64
|
variant Float
|
|
63
65
|
|
|
64
66
|
# @!method self.variants
|
|
65
|
-
# @return [Array(String, Boolean, Float)]
|
|
67
|
+
# @return [Array(String, Integer, Boolean, Float)]
|
|
66
68
|
end
|
|
67
69
|
|
|
68
70
|
# @see OpenAI::Models::Beta::ChatKit::ChatSessionWorkflowParam#tracing
|