openlayer 0.8.0 → 0.9.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 +17 -0
- data/README.md +1 -1
- data/lib/openlayer/client.rb +4 -0
- data/lib/openlayer/integrations/google_conversational_search_tracer.rb +319 -25
- data/lib/openlayer/models/workspace_retrieve_params.rb +14 -0
- data/lib/openlayer/models/workspace_retrieve_response.rb +169 -0
- data/lib/openlayer/models/workspace_update_params.rb +38 -0
- data/lib/openlayer/models/workspace_update_response.rb +169 -0
- data/lib/openlayer/models/workspaces/api_key_create_params.rb +24 -0
- data/lib/openlayer/models/workspaces/api_key_create_response.rb +61 -0
- data/lib/openlayer/models/workspaces/invite_create_params.rb +43 -0
- data/lib/openlayer/models/workspaces/invite_create_response.rb +172 -0
- data/lib/openlayer/models/workspaces/invite_list_params.rb +32 -0
- data/lib/openlayer/models/workspaces/invite_list_response.rb +214 -0
- data/lib/openlayer/models.rb +6 -0
- data/lib/openlayer/resources/workspaces/api_keys.rb +40 -0
- data/lib/openlayer/resources/workspaces/invites.rb +68 -0
- data/lib/openlayer/resources/workspaces.rb +70 -0
- data/lib/openlayer/version.rb +1 -1
- data/lib/openlayer.rb +13 -0
- data/rbi/openlayer/client.rbi +3 -0
- data/rbi/openlayer/models/workspace_retrieve_params.rbi +30 -0
- data/rbi/openlayer/models/workspace_retrieve_response.rbi +293 -0
- data/rbi/openlayer/models/workspace_update_params.rbi +68 -0
- data/rbi/openlayer/models/workspace_update_response.rbi +292 -0
- data/rbi/openlayer/models/workspaces/api_key_create_params.rbi +48 -0
- data/rbi/openlayer/models/workspaces/api_key_create_response.rbi +82 -0
- data/rbi/openlayer/models/workspaces/invite_create_params.rbi +105 -0
- data/rbi/openlayer/models/workspaces/invite_create_response.rbi +347 -0
- data/rbi/openlayer/models/workspaces/invite_list_params.rbi +62 -0
- data/rbi/openlayer/models/workspaces/invite_list_response.rbi +420 -0
- data/rbi/openlayer/models.rbi +6 -0
- data/rbi/openlayer/resources/workspaces/api_keys.rbi +31 -0
- data/rbi/openlayer/resources/workspaces/invites.rbi +53 -0
- data/rbi/openlayer/resources/workspaces.rbi +55 -0
- data/sig/openlayer/client.rbs +2 -0
- data/sig/openlayer/models/workspace_retrieve_params.rbs +15 -0
- data/sig/openlayer/models/workspace_retrieve_response.rbs +156 -0
- data/sig/openlayer/models/workspace_update_params.rbs +38 -0
- data/sig/openlayer/models/workspace_update_response.rbs +156 -0
- data/sig/openlayer/models/workspaces/api_key_create_params.rbs +25 -0
- data/sig/openlayer/models/workspaces/api_key_create_response.rbs +47 -0
- data/sig/openlayer/models/workspaces/invite_create_params.rbs +51 -0
- data/sig/openlayer/models/workspaces/invite_create_response.rbs +149 -0
- data/sig/openlayer/models/workspaces/invite_list_params.rbs +34 -0
- data/sig/openlayer/models/workspaces/invite_list_response.rbs +186 -0
- data/sig/openlayer/models.rbs +6 -0
- data/sig/openlayer/resources/workspaces/api_keys.rbs +15 -0
- data/sig/openlayer/resources/workspaces/invites.rbs +23 -0
- data/sig/openlayer/resources/workspaces.rbs +24 -0
- metadata +41 -2
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
module Openlayer
|
|
2
|
+
module Models
|
|
3
|
+
type workspace_retrieve_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
creator_id: String?,
|
|
7
|
+
date_created: Time,
|
|
8
|
+
date_updated: Time,
|
|
9
|
+
invite_count: Integer,
|
|
10
|
+
member_count: Integer,
|
|
11
|
+
name: String,
|
|
12
|
+
period_end_date: Time?,
|
|
13
|
+
period_start_date: Time?,
|
|
14
|
+
project_count: Integer,
|
|
15
|
+
slug: String,
|
|
16
|
+
status: Openlayer::Models::WorkspaceRetrieveResponse::status,
|
|
17
|
+
invite_code: String,
|
|
18
|
+
monthly_usage: ::Array[Openlayer::Models::WorkspaceRetrieveResponse::MonthlyUsage],
|
|
19
|
+
saml_only_access: bool,
|
|
20
|
+
wildcard_domains: ::Array[String]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
class WorkspaceRetrieveResponse < Openlayer::Internal::Type::BaseModel
|
|
24
|
+
attr_accessor name: String
|
|
25
|
+
|
|
26
|
+
attr_accessor slug: String
|
|
27
|
+
|
|
28
|
+
attr_reader saml_only_access: bool?
|
|
29
|
+
|
|
30
|
+
def saml_only_access=: (bool) -> bool
|
|
31
|
+
|
|
32
|
+
attr_reader wildcard_domains: ::Array[String]?
|
|
33
|
+
|
|
34
|
+
def wildcard_domains=: (::Array[String]) -> ::Array[String]
|
|
35
|
+
|
|
36
|
+
attr_accessor id: String
|
|
37
|
+
|
|
38
|
+
attr_accessor creator_id: String?
|
|
39
|
+
|
|
40
|
+
attr_accessor date_created: Time
|
|
41
|
+
|
|
42
|
+
attr_accessor date_updated: Time
|
|
43
|
+
|
|
44
|
+
attr_accessor invite_count: Integer
|
|
45
|
+
|
|
46
|
+
attr_accessor member_count: Integer
|
|
47
|
+
|
|
48
|
+
attr_accessor period_end_date: Time?
|
|
49
|
+
|
|
50
|
+
attr_accessor period_start_date: Time?
|
|
51
|
+
|
|
52
|
+
attr_accessor project_count: Integer
|
|
53
|
+
|
|
54
|
+
attr_accessor status: Openlayer::Models::WorkspaceRetrieveResponse::status
|
|
55
|
+
|
|
56
|
+
attr_reader monthly_usage: ::Array[Openlayer::Models::WorkspaceRetrieveResponse::MonthlyUsage]?
|
|
57
|
+
|
|
58
|
+
def monthly_usage=: (
|
|
59
|
+
::Array[Openlayer::Models::WorkspaceRetrieveResponse::MonthlyUsage]
|
|
60
|
+
) -> ::Array[Openlayer::Models::WorkspaceRetrieveResponse::MonthlyUsage]
|
|
61
|
+
|
|
62
|
+
def initialize: (
|
|
63
|
+
id: String,
|
|
64
|
+
creator_id: String?,
|
|
65
|
+
date_created: Time,
|
|
66
|
+
date_updated: Time,
|
|
67
|
+
invite_count: Integer,
|
|
68
|
+
member_count: Integer,
|
|
69
|
+
name: String,
|
|
70
|
+
period_end_date: Time?,
|
|
71
|
+
period_start_date: Time?,
|
|
72
|
+
project_count: Integer,
|
|
73
|
+
slug: String,
|
|
74
|
+
status: Openlayer::Models::WorkspaceRetrieveResponse::status,
|
|
75
|
+
?monthly_usage: ::Array[Openlayer::Models::WorkspaceRetrieveResponse::MonthlyUsage],
|
|
76
|
+
?saml_only_access: bool,
|
|
77
|
+
?wildcard_domains: ::Array[String]
|
|
78
|
+
) -> void
|
|
79
|
+
|
|
80
|
+
def to_hash: -> {
|
|
81
|
+
id: String,
|
|
82
|
+
creator_id: String?,
|
|
83
|
+
date_created: Time,
|
|
84
|
+
date_updated: Time,
|
|
85
|
+
invite_count: Integer,
|
|
86
|
+
member_count: Integer,
|
|
87
|
+
name: String,
|
|
88
|
+
period_end_date: Time?,
|
|
89
|
+
period_start_date: Time?,
|
|
90
|
+
project_count: Integer,
|
|
91
|
+
slug: String,
|
|
92
|
+
status: Openlayer::Models::WorkspaceRetrieveResponse::status,
|
|
93
|
+
invite_code: String,
|
|
94
|
+
monthly_usage: ::Array[Openlayer::Models::WorkspaceRetrieveResponse::MonthlyUsage],
|
|
95
|
+
saml_only_access: bool,
|
|
96
|
+
wildcard_domains: ::Array[String]
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
type status =
|
|
100
|
+
:active
|
|
101
|
+
| :past_due
|
|
102
|
+
| :unpaid
|
|
103
|
+
| :canceled
|
|
104
|
+
| :incomplete
|
|
105
|
+
| :incomplete_expired
|
|
106
|
+
| :trialing
|
|
107
|
+
| :paused
|
|
108
|
+
|
|
109
|
+
module Status
|
|
110
|
+
extend Openlayer::Internal::Type::Enum
|
|
111
|
+
|
|
112
|
+
ACTIVE: :active
|
|
113
|
+
PAST_DUE: :past_due
|
|
114
|
+
UNPAID: :unpaid
|
|
115
|
+
CANCELED: :canceled
|
|
116
|
+
INCOMPLETE: :incomplete
|
|
117
|
+
INCOMPLETE_EXPIRED: :incomplete_expired
|
|
118
|
+
TRIALING: :trialing
|
|
119
|
+
PAUSED: :paused
|
|
120
|
+
|
|
121
|
+
def self?.values: -> ::Array[Openlayer::Models::WorkspaceRetrieveResponse::status]
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
type monthly_usage =
|
|
125
|
+
{
|
|
126
|
+
execution_time_ms: Integer?,
|
|
127
|
+
month_year: Date,
|
|
128
|
+
prediction_count: Integer
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
class MonthlyUsage < Openlayer::Internal::Type::BaseModel
|
|
132
|
+
attr_accessor execution_time_ms: Integer?
|
|
133
|
+
|
|
134
|
+
attr_reader month_year: Date?
|
|
135
|
+
|
|
136
|
+
def month_year=: (Date) -> Date
|
|
137
|
+
|
|
138
|
+
attr_reader prediction_count: Integer?
|
|
139
|
+
|
|
140
|
+
def prediction_count=: (Integer) -> Integer
|
|
141
|
+
|
|
142
|
+
def initialize: (
|
|
143
|
+
?execution_time_ms: Integer?,
|
|
144
|
+
?month_year: Date,
|
|
145
|
+
?prediction_count: Integer
|
|
146
|
+
) -> void
|
|
147
|
+
|
|
148
|
+
def to_hash: -> {
|
|
149
|
+
execution_time_ms: Integer?,
|
|
150
|
+
month_year: Date,
|
|
151
|
+
prediction_count: Integer
|
|
152
|
+
}
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
module Openlayer
|
|
2
|
+
module Models
|
|
3
|
+
type workspace_update_params =
|
|
4
|
+
{ invite_code: String, name: String, slug: String }
|
|
5
|
+
& Openlayer::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class WorkspaceUpdateParams < Openlayer::Internal::Type::BaseModel
|
|
8
|
+
extend Openlayer::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Openlayer::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_reader invite_code: String?
|
|
12
|
+
|
|
13
|
+
def invite_code=: (String) -> String
|
|
14
|
+
|
|
15
|
+
attr_reader name: String?
|
|
16
|
+
|
|
17
|
+
def name=: (String) -> String
|
|
18
|
+
|
|
19
|
+
attr_reader slug: String?
|
|
20
|
+
|
|
21
|
+
def slug=: (String) -> String
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
?invite_code: String,
|
|
25
|
+
?name: String,
|
|
26
|
+
?slug: String,
|
|
27
|
+
?request_options: Openlayer::request_opts
|
|
28
|
+
) -> void
|
|
29
|
+
|
|
30
|
+
def to_hash: -> {
|
|
31
|
+
invite_code: String,
|
|
32
|
+
name: String,
|
|
33
|
+
slug: String,
|
|
34
|
+
request_options: Openlayer::RequestOptions
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
module Openlayer
|
|
2
|
+
module Models
|
|
3
|
+
type workspace_update_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
creator_id: String?,
|
|
7
|
+
date_created: Time,
|
|
8
|
+
date_updated: Time,
|
|
9
|
+
invite_count: Integer,
|
|
10
|
+
member_count: Integer,
|
|
11
|
+
name: String,
|
|
12
|
+
period_end_date: Time?,
|
|
13
|
+
period_start_date: Time?,
|
|
14
|
+
project_count: Integer,
|
|
15
|
+
slug: String,
|
|
16
|
+
status: Openlayer::Models::WorkspaceUpdateResponse::status,
|
|
17
|
+
invite_code: String,
|
|
18
|
+
monthly_usage: ::Array[Openlayer::Models::WorkspaceUpdateResponse::MonthlyUsage],
|
|
19
|
+
saml_only_access: bool,
|
|
20
|
+
wildcard_domains: ::Array[String]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
class WorkspaceUpdateResponse < Openlayer::Internal::Type::BaseModel
|
|
24
|
+
attr_accessor name: String
|
|
25
|
+
|
|
26
|
+
attr_accessor slug: String
|
|
27
|
+
|
|
28
|
+
attr_reader saml_only_access: bool?
|
|
29
|
+
|
|
30
|
+
def saml_only_access=: (bool) -> bool
|
|
31
|
+
|
|
32
|
+
attr_reader wildcard_domains: ::Array[String]?
|
|
33
|
+
|
|
34
|
+
def wildcard_domains=: (::Array[String]) -> ::Array[String]
|
|
35
|
+
|
|
36
|
+
attr_accessor id: String
|
|
37
|
+
|
|
38
|
+
attr_accessor creator_id: String?
|
|
39
|
+
|
|
40
|
+
attr_accessor date_created: Time
|
|
41
|
+
|
|
42
|
+
attr_accessor date_updated: Time
|
|
43
|
+
|
|
44
|
+
attr_accessor invite_count: Integer
|
|
45
|
+
|
|
46
|
+
attr_accessor member_count: Integer
|
|
47
|
+
|
|
48
|
+
attr_accessor period_end_date: Time?
|
|
49
|
+
|
|
50
|
+
attr_accessor period_start_date: Time?
|
|
51
|
+
|
|
52
|
+
attr_accessor project_count: Integer
|
|
53
|
+
|
|
54
|
+
attr_accessor status: Openlayer::Models::WorkspaceUpdateResponse::status
|
|
55
|
+
|
|
56
|
+
attr_reader monthly_usage: ::Array[Openlayer::Models::WorkspaceUpdateResponse::MonthlyUsage]?
|
|
57
|
+
|
|
58
|
+
def monthly_usage=: (
|
|
59
|
+
::Array[Openlayer::Models::WorkspaceUpdateResponse::MonthlyUsage]
|
|
60
|
+
) -> ::Array[Openlayer::Models::WorkspaceUpdateResponse::MonthlyUsage]
|
|
61
|
+
|
|
62
|
+
def initialize: (
|
|
63
|
+
id: String,
|
|
64
|
+
creator_id: String?,
|
|
65
|
+
date_created: Time,
|
|
66
|
+
date_updated: Time,
|
|
67
|
+
invite_count: Integer,
|
|
68
|
+
member_count: Integer,
|
|
69
|
+
name: String,
|
|
70
|
+
period_end_date: Time?,
|
|
71
|
+
period_start_date: Time?,
|
|
72
|
+
project_count: Integer,
|
|
73
|
+
slug: String,
|
|
74
|
+
status: Openlayer::Models::WorkspaceUpdateResponse::status,
|
|
75
|
+
?monthly_usage: ::Array[Openlayer::Models::WorkspaceUpdateResponse::MonthlyUsage],
|
|
76
|
+
?saml_only_access: bool,
|
|
77
|
+
?wildcard_domains: ::Array[String]
|
|
78
|
+
) -> void
|
|
79
|
+
|
|
80
|
+
def to_hash: -> {
|
|
81
|
+
id: String,
|
|
82
|
+
creator_id: String?,
|
|
83
|
+
date_created: Time,
|
|
84
|
+
date_updated: Time,
|
|
85
|
+
invite_count: Integer,
|
|
86
|
+
member_count: Integer,
|
|
87
|
+
name: String,
|
|
88
|
+
period_end_date: Time?,
|
|
89
|
+
period_start_date: Time?,
|
|
90
|
+
project_count: Integer,
|
|
91
|
+
slug: String,
|
|
92
|
+
status: Openlayer::Models::WorkspaceUpdateResponse::status,
|
|
93
|
+
invite_code: String,
|
|
94
|
+
monthly_usage: ::Array[Openlayer::Models::WorkspaceUpdateResponse::MonthlyUsage],
|
|
95
|
+
saml_only_access: bool,
|
|
96
|
+
wildcard_domains: ::Array[String]
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
type status =
|
|
100
|
+
:active
|
|
101
|
+
| :past_due
|
|
102
|
+
| :unpaid
|
|
103
|
+
| :canceled
|
|
104
|
+
| :incomplete
|
|
105
|
+
| :incomplete_expired
|
|
106
|
+
| :trialing
|
|
107
|
+
| :paused
|
|
108
|
+
|
|
109
|
+
module Status
|
|
110
|
+
extend Openlayer::Internal::Type::Enum
|
|
111
|
+
|
|
112
|
+
ACTIVE: :active
|
|
113
|
+
PAST_DUE: :past_due
|
|
114
|
+
UNPAID: :unpaid
|
|
115
|
+
CANCELED: :canceled
|
|
116
|
+
INCOMPLETE: :incomplete
|
|
117
|
+
INCOMPLETE_EXPIRED: :incomplete_expired
|
|
118
|
+
TRIALING: :trialing
|
|
119
|
+
PAUSED: :paused
|
|
120
|
+
|
|
121
|
+
def self?.values: -> ::Array[Openlayer::Models::WorkspaceUpdateResponse::status]
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
type monthly_usage =
|
|
125
|
+
{
|
|
126
|
+
execution_time_ms: Integer?,
|
|
127
|
+
month_year: Date,
|
|
128
|
+
prediction_count: Integer
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
class MonthlyUsage < Openlayer::Internal::Type::BaseModel
|
|
132
|
+
attr_accessor execution_time_ms: Integer?
|
|
133
|
+
|
|
134
|
+
attr_reader month_year: Date?
|
|
135
|
+
|
|
136
|
+
def month_year=: (Date) -> Date
|
|
137
|
+
|
|
138
|
+
attr_reader prediction_count: Integer?
|
|
139
|
+
|
|
140
|
+
def prediction_count=: (Integer) -> Integer
|
|
141
|
+
|
|
142
|
+
def initialize: (
|
|
143
|
+
?execution_time_ms: Integer?,
|
|
144
|
+
?month_year: Date,
|
|
145
|
+
?prediction_count: Integer
|
|
146
|
+
) -> void
|
|
147
|
+
|
|
148
|
+
def to_hash: -> {
|
|
149
|
+
execution_time_ms: Integer?,
|
|
150
|
+
month_year: Date,
|
|
151
|
+
prediction_count: Integer
|
|
152
|
+
}
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Openlayer
|
|
2
|
+
module Models
|
|
3
|
+
module Workspaces
|
|
4
|
+
type api_key_create_params =
|
|
5
|
+
{ name: String? } & Openlayer::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class APIKeyCreateParams < Openlayer::Internal::Type::BaseModel
|
|
8
|
+
extend Openlayer::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Openlayer::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor name: String?
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
?name: String?,
|
|
15
|
+
?request_options: Openlayer::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
name: String?,
|
|
20
|
+
request_options: Openlayer::RequestOptions
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
module Openlayer
|
|
2
|
+
module Models
|
|
3
|
+
module Workspaces
|
|
4
|
+
type api_key_create_response =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
date_created: Time,
|
|
8
|
+
date_last_used: Time?,
|
|
9
|
+
date_updated: Time,
|
|
10
|
+
secure_key: String,
|
|
11
|
+
name: String?
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class APIKeyCreateResponse < Openlayer::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor name: String?
|
|
16
|
+
|
|
17
|
+
attr_accessor id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor date_created: Time
|
|
20
|
+
|
|
21
|
+
attr_accessor date_last_used: Time?
|
|
22
|
+
|
|
23
|
+
attr_accessor date_updated: Time
|
|
24
|
+
|
|
25
|
+
attr_accessor secure_key: String
|
|
26
|
+
|
|
27
|
+
def initialize: (
|
|
28
|
+
id: String,
|
|
29
|
+
date_created: Time,
|
|
30
|
+
date_last_used: Time?,
|
|
31
|
+
date_updated: Time,
|
|
32
|
+
secure_key: String,
|
|
33
|
+
?name: String?
|
|
34
|
+
) -> void
|
|
35
|
+
|
|
36
|
+
def to_hash: -> {
|
|
37
|
+
id: String,
|
|
38
|
+
date_created: Time,
|
|
39
|
+
date_last_used: Time?,
|
|
40
|
+
date_updated: Time,
|
|
41
|
+
secure_key: String,
|
|
42
|
+
name: String?
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
module Openlayer
|
|
2
|
+
module Models
|
|
3
|
+
module Workspaces
|
|
4
|
+
type invite_create_params =
|
|
5
|
+
{
|
|
6
|
+
emails: ::Array[String],
|
|
7
|
+
role: Openlayer::Models::Workspaces::InviteCreateParams::role
|
|
8
|
+
}
|
|
9
|
+
& Openlayer::Internal::Type::request_parameters
|
|
10
|
+
|
|
11
|
+
class InviteCreateParams < Openlayer::Internal::Type::BaseModel
|
|
12
|
+
extend Openlayer::Internal::Type::RequestParameters::Converter
|
|
13
|
+
include Openlayer::Internal::Type::RequestParameters
|
|
14
|
+
|
|
15
|
+
attr_reader emails: ::Array[String]?
|
|
16
|
+
|
|
17
|
+
def emails=: (::Array[String]) -> ::Array[String]
|
|
18
|
+
|
|
19
|
+
attr_reader role: Openlayer::Models::Workspaces::InviteCreateParams::role?
|
|
20
|
+
|
|
21
|
+
def role=: (
|
|
22
|
+
Openlayer::Models::Workspaces::InviteCreateParams::role
|
|
23
|
+
) -> Openlayer::Models::Workspaces::InviteCreateParams::role
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
?emails: ::Array[String],
|
|
27
|
+
?role: Openlayer::Models::Workspaces::InviteCreateParams::role,
|
|
28
|
+
?request_options: Openlayer::request_opts
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
emails: ::Array[String],
|
|
33
|
+
role: Openlayer::Models::Workspaces::InviteCreateParams::role,
|
|
34
|
+
request_options: Openlayer::RequestOptions
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type role = :ADMIN | :MEMBER | :VIEWER
|
|
38
|
+
|
|
39
|
+
module Role
|
|
40
|
+
extend Openlayer::Internal::Type::Enum
|
|
41
|
+
|
|
42
|
+
ADMIN: :ADMIN
|
|
43
|
+
MEMBER: :MEMBER
|
|
44
|
+
VIEWER: :VIEWER
|
|
45
|
+
|
|
46
|
+
def self?.values: -> ::Array[Openlayer::Models::Workspaces::InviteCreateParams::role]
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
module Openlayer
|
|
2
|
+
module Models
|
|
3
|
+
module Workspaces
|
|
4
|
+
type invite_create_response =
|
|
5
|
+
{
|
|
6
|
+
items: ::Array[Openlayer::Models::Workspaces::InviteCreateResponse::Item]
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class InviteCreateResponse < Openlayer::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor items: ::Array[Openlayer::Models::Workspaces::InviteCreateResponse::Item]
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
items: ::Array[Openlayer::Models::Workspaces::InviteCreateResponse::Item]
|
|
14
|
+
) -> void
|
|
15
|
+
|
|
16
|
+
def to_hash: -> {
|
|
17
|
+
items: ::Array[Openlayer::Models::Workspaces::InviteCreateResponse::Item]
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
type item =
|
|
21
|
+
{
|
|
22
|
+
id: String,
|
|
23
|
+
creator: Openlayer::Models::Workspaces::InviteCreateResponse::Item::Creator,
|
|
24
|
+
date_created: Time,
|
|
25
|
+
email: String,
|
|
26
|
+
role: Openlayer::Models::Workspaces::InviteCreateResponse::Item::role,
|
|
27
|
+
status: Openlayer::Models::Workspaces::InviteCreateResponse::Item::status,
|
|
28
|
+
workspace: Openlayer::Models::Workspaces::InviteCreateResponse::Item::Workspace
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
class Item < Openlayer::Internal::Type::BaseModel
|
|
32
|
+
attr_accessor creator: Openlayer::Models::Workspaces::InviteCreateResponse::Item::Creator
|
|
33
|
+
|
|
34
|
+
attr_accessor email: String
|
|
35
|
+
|
|
36
|
+
attr_accessor role: Openlayer::Models::Workspaces::InviteCreateResponse::Item::role
|
|
37
|
+
|
|
38
|
+
attr_accessor status: Openlayer::Models::Workspaces::InviteCreateResponse::Item::status
|
|
39
|
+
|
|
40
|
+
attr_accessor id: String
|
|
41
|
+
|
|
42
|
+
attr_accessor date_created: Time
|
|
43
|
+
|
|
44
|
+
attr_accessor workspace: Openlayer::Models::Workspaces::InviteCreateResponse::Item::Workspace
|
|
45
|
+
|
|
46
|
+
def initialize: (
|
|
47
|
+
id: String,
|
|
48
|
+
creator: Openlayer::Models::Workspaces::InviteCreateResponse::Item::Creator,
|
|
49
|
+
date_created: Time,
|
|
50
|
+
email: String,
|
|
51
|
+
role: Openlayer::Models::Workspaces::InviteCreateResponse::Item::role,
|
|
52
|
+
status: Openlayer::Models::Workspaces::InviteCreateResponse::Item::status,
|
|
53
|
+
workspace: Openlayer::Models::Workspaces::InviteCreateResponse::Item::Workspace
|
|
54
|
+
) -> void
|
|
55
|
+
|
|
56
|
+
def to_hash: -> {
|
|
57
|
+
id: String,
|
|
58
|
+
creator: Openlayer::Models::Workspaces::InviteCreateResponse::Item::Creator,
|
|
59
|
+
date_created: Time,
|
|
60
|
+
email: String,
|
|
61
|
+
role: Openlayer::Models::Workspaces::InviteCreateResponse::Item::role,
|
|
62
|
+
status: Openlayer::Models::Workspaces::InviteCreateResponse::Item::status,
|
|
63
|
+
workspace: Openlayer::Models::Workspaces::InviteCreateResponse::Item::Workspace
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
type creator = { id: String, name: String?, username: String? }
|
|
67
|
+
|
|
68
|
+
class Creator < Openlayer::Internal::Type::BaseModel
|
|
69
|
+
attr_accessor name: String?
|
|
70
|
+
|
|
71
|
+
attr_accessor username: String?
|
|
72
|
+
|
|
73
|
+
attr_reader id: String?
|
|
74
|
+
|
|
75
|
+
def id=: (String) -> String
|
|
76
|
+
|
|
77
|
+
def initialize: (
|
|
78
|
+
?id: String,
|
|
79
|
+
?name: String?,
|
|
80
|
+
?username: String?
|
|
81
|
+
) -> void
|
|
82
|
+
|
|
83
|
+
def to_hash: -> { id: String, name: String?, username: String? }
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
type role = :ADMIN | :MEMBER | :VIEWER
|
|
87
|
+
|
|
88
|
+
module Role
|
|
89
|
+
extend Openlayer::Internal::Type::Enum
|
|
90
|
+
|
|
91
|
+
ADMIN: :ADMIN
|
|
92
|
+
MEMBER: :MEMBER
|
|
93
|
+
VIEWER: :VIEWER
|
|
94
|
+
|
|
95
|
+
def self?.values: -> ::Array[Openlayer::Models::Workspaces::InviteCreateResponse::Item::role]
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
type status = :accepted | :pending
|
|
99
|
+
|
|
100
|
+
module Status
|
|
101
|
+
extend Openlayer::Internal::Type::Enum
|
|
102
|
+
|
|
103
|
+
ACCEPTED: :accepted
|
|
104
|
+
PENDING: :pending
|
|
105
|
+
|
|
106
|
+
def self?.values: -> ::Array[Openlayer::Models::Workspaces::InviteCreateResponse::Item::status]
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
type workspace =
|
|
110
|
+
{
|
|
111
|
+
id: String,
|
|
112
|
+
date_created: Time,
|
|
113
|
+
member_count: Integer,
|
|
114
|
+
name: String,
|
|
115
|
+
slug: String
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
class Workspace < Openlayer::Internal::Type::BaseModel
|
|
119
|
+
attr_accessor name: String
|
|
120
|
+
|
|
121
|
+
attr_accessor slug: String
|
|
122
|
+
|
|
123
|
+
attr_accessor id: String
|
|
124
|
+
|
|
125
|
+
attr_accessor date_created: Time
|
|
126
|
+
|
|
127
|
+
attr_accessor member_count: Integer
|
|
128
|
+
|
|
129
|
+
def initialize: (
|
|
130
|
+
id: String,
|
|
131
|
+
date_created: Time,
|
|
132
|
+
member_count: Integer,
|
|
133
|
+
name: String,
|
|
134
|
+
slug: String
|
|
135
|
+
) -> void
|
|
136
|
+
|
|
137
|
+
def to_hash: -> {
|
|
138
|
+
id: String,
|
|
139
|
+
date_created: Time,
|
|
140
|
+
member_count: Integer,
|
|
141
|
+
name: String,
|
|
142
|
+
slug: String
|
|
143
|
+
}
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Openlayer
|
|
2
|
+
module Models
|
|
3
|
+
module Workspaces
|
|
4
|
+
type invite_list_params =
|
|
5
|
+
{ page: Integer, per_page: Integer }
|
|
6
|
+
& Openlayer::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class InviteListParams < Openlayer::Internal::Type::BaseModel
|
|
9
|
+
extend Openlayer::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Openlayer::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_reader page: Integer?
|
|
13
|
+
|
|
14
|
+
def page=: (Integer) -> Integer
|
|
15
|
+
|
|
16
|
+
attr_reader per_page: Integer?
|
|
17
|
+
|
|
18
|
+
def per_page=: (Integer) -> Integer
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
?page: Integer,
|
|
22
|
+
?per_page: Integer,
|
|
23
|
+
?request_options: Openlayer::request_opts
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
page: Integer,
|
|
28
|
+
per_page: Integer,
|
|
29
|
+
request_options: Openlayer::RequestOptions
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|