schematichq 1.4.16 → 1.5.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/.fern/metadata.json +4 -4
- data/.fern/replay.lock +21 -3
- data/.fernignore +1 -0
- data/CONTRIBUTING.md +2 -2
- data/README.md +23 -0
- data/WASM_VERSION +1 -1
- data/lib/schematic/accesstokens/client.rb +1 -1
- data/lib/schematic/accounts/client.rb +21 -21
- data/lib/schematic/accounts/types/update_onboarding_state_request_body.rb +2 -0
- data/lib/schematic/billing/client.rb +120 -24
- data/lib/schematic/billing/types/create_billing_subscription_request_body.rb +2 -0
- data/lib/schematic/billing/types/list_company_billing_profiles_params.rb +20 -0
- data/lib/schematic/billing/types/list_company_billing_profiles_request.rb +19 -0
- data/lib/schematic/billing/types/list_company_billing_profiles_response.rb +13 -0
- data/lib/schematic/billing/types/update_company_billing_profile_request_body.rb +23 -0
- data/lib/schematic/billing/types/update_company_billing_profile_response.rb +13 -0
- data/lib/schematic/catalogs/client.rb +10 -10
- data/lib/schematic/checkout/client.rb +9 -9
- data/lib/schematic/client.rb +1 -1
- data/lib/schematic/companies/client.rb +43 -43
- data/lib/schematic/components/client.rb +8 -8
- data/lib/schematic/componentspublic/client.rb +1 -1
- data/lib/schematic/credits/client.rb +372 -41
- data/lib/schematic/credits/types/count_credit_spend_policies_params.rb +24 -0
- data/lib/schematic/credits/types/count_credit_spend_policies_request.rb +23 -0
- data/lib/schematic/credits/types/count_credit_spend_policies_response.rb +13 -0
- data/lib/schematic/credits/types/create_company_credit_grant.rb +2 -0
- data/lib/schematic/credits/types/create_credit_spend_policy_request_body.rb +19 -0
- data/lib/schematic/credits/types/create_credit_spend_policy_response.rb +13 -0
- data/lib/schematic/credits/types/delete_credit_spend_policy_response.rb +13 -0
- data/lib/schematic/credits/types/get_credit_spend_policy_response.rb +13 -0
- data/lib/schematic/credits/types/list_credit_spend_policies_params.rb +24 -0
- data/lib/schematic/credits/types/list_credit_spend_policies_request.rb +23 -0
- data/lib/schematic/credits/types/list_credit_spend_policies_response.rb +13 -0
- data/lib/schematic/credits/types/release_credit_reservation_response.rb +13 -0
- data/lib/schematic/credits/types/reserve_credits_request_body.rb +19 -0
- data/lib/schematic/credits/types/reserve_credits_response.rb +13 -0
- data/lib/schematic/credits/types/update_credit_spend_policy_request_body.rb +15 -0
- data/lib/schematic/credits/types/update_credit_spend_policy_response.rb +13 -0
- data/lib/schematic/dataexports/client.rb +3 -3
- data/lib/schematic/datastream/client.rb +5 -2
- data/lib/schematic/datastream/resource_cache.rb +2 -4
- data/lib/schematic/datastream/websocket_client.rb +59 -1
- data/lib/schematic/entitlements/client.rb +25 -25
- data/lib/schematic/events/client.rb +107 -6
- data/lib/schematic/events/types/delete_otlp_environment_settings_response.rb +13 -0
- data/lib/schematic/events/types/get_otlp_environment_settings_response.rb +13 -0
- data/lib/schematic/events/types/upsert_otlp_environment_settings_request_body.rb +19 -0
- data/lib/schematic/events/types/upsert_otlp_environment_settings_response.rb +13 -0
- data/lib/schematic/features/client.rb +57 -17
- data/lib/schematic/features/types/check_and_reserve_flag_request_body.rb +21 -0
- data/lib/schematic/features/types/check_and_reserve_flag_response.rb +13 -0
- data/lib/schematic/insights/client.rb +6 -6
- data/lib/schematic/integrationsapi/client.rb +178 -9
- data/lib/schematic/integrationsapi/types/claim_stripe_sandbox_keys_request_body.rb +11 -0
- data/lib/schematic/integrationsapi/types/claim_stripe_sandbox_keys_response.rb +13 -0
- data/lib/schematic/integrationsapi/types/get_stripe_sandbox_claim_link_response.rb +13 -0
- data/lib/schematic/integrationsapi/types/get_stripe_sandbox_keys_response.rb +13 -0
- data/lib/schematic/integrationsapi/types/install_stripe_claimable_sandbox_response.rb +13 -0
- data/lib/schematic/integrationsapi/types/install_stripe_sandbox_request_body.rb +17 -0
- data/lib/schematic/integrationsapi/types/list_stripe_sandbox_countries_response.rb +13 -0
- data/lib/schematic/internal/multipart/multipart_form_data.rb +8 -3
- data/lib/schematic/internal/types/model.rb +14 -6
- data/lib/schematic/licenses/client.rb +3 -3
- data/lib/schematic/planbundle/client.rb +3 -3
- data/lib/schematic/plangroups/client.rb +3 -3
- data/lib/schematic/plangroups/types/create_plan_group_request_body.rb +2 -0
- data/lib/schematic/plangroups/types/update_plan_group_request_body.rb +2 -0
- data/lib/schematic/planmigrations/client.rb +11 -11
- data/lib/schematic/plans/client.rb +24 -18
- data/lib/schematic/plans/types/count_plans_params.rb +2 -0
- data/lib/schematic/plans/types/count_plans_request.rb +2 -0
- data/lib/schematic/plans/types/list_plans_params.rb +2 -0
- data/lib/schematic/plans/types/list_plans_request.rb +2 -0
- data/lib/schematic/scheduledcheckout/client.rb +4 -4
- data/lib/schematic/schematic_client.rb +15 -2
- data/lib/schematic/types/billing_arrears_anchor.rb +12 -0
- data/lib/schematic/types/billing_arrears_cadence.rb +12 -0
- data/lib/schematic/types/billing_credit_grant_response_data.rb +8 -0
- data/lib/schematic/types/billing_plan_credit_grant_response_data.rb +12 -0
- data/lib/schematic/types/check_and_reserve_flag_response_data.rb +39 -0
- data/lib/schematic/types/checkout_data_response_data.rb +4 -0
- data/lib/schematic/types/claimed_stripe_sandbox_keys_response_data.rb +13 -0
- data/lib/schematic/types/company_billing_profile_response_data.rb +35 -0
- data/lib/schematic/types/company_detail_response_data.rb +4 -0
- data/lib/schematic/types/company_override_response_data.rb +4 -0
- data/lib/schematic/types/company_plan_credit_grant_view.rb +12 -0
- data/lib/schematic/types/create_billing_plan_credit_grant_request_body.rb +12 -0
- data/lib/schematic/types/credit_company_grant_view.rb +14 -0
- data/lib/schematic/types/credit_reservation_response_data.rb +25 -0
- data/lib/schematic/types/credit_spend_policy_response_data.rb +25 -0
- data/lib/schematic/types/credit_spend_policy_scope.rb +13 -0
- data/lib/schematic/types/credit_usage_reason.rb +2 -0
- data/lib/schematic/types/event_body_inference.rb +2 -0
- data/lib/schematic/types/event_body_track.rb +2 -0
- data/lib/schematic/types/event_detail_response_data.rb +2 -0
- data/lib/schematic/types/event_response_data.rb +2 -0
- data/lib/schematic/types/flag_check_reservation_response_data.rb +23 -0
- data/lib/schematic/types/get_onboarding_state_resp.rb +6 -0
- data/lib/schematic/types/issue_temporary_access_token_response_data.rb +3 -1
- data/lib/schematic/types/onboarding_requirement.rb +1 -0
- data/lib/schematic/types/onboarding_roadmap_view.rb +11 -0
- data/lib/schematic/types/otlp_environment_settings_response_data.rb +23 -0
- data/lib/schematic/types/plan_credit_grant_view.rb +12 -0
- data/lib/schematic/types/plan_group_detail_response_data.rb +2 -0
- data/lib/schematic/types/plan_group_response_data.rb +2 -0
- data/lib/schematic/types/rule_condition_detail_response_data.rb +2 -0
- data/lib/schematic/types/rule_condition_plan_version_response_data.rb +15 -0
- data/lib/schematic/types/rules_engine_schema_version.rb +1 -1
- data/lib/schematic/types/rulesengine_company.rb +2 -0
- data/lib/schematic/types/rulesengine_credit_postpaid_config.rb +9 -0
- data/lib/schematic/types/slack_connect_invite_status.rb +15 -0
- data/lib/schematic/types/slack_connect_invite_view.rb +15 -0
- data/lib/schematic/types/stripe_integration_config.rb +6 -0
- data/lib/schematic/types/stripe_sandbox_claim_link.rb +15 -0
- data/lib/schematic/types/stripe_sandbox_countries_response_data.rb +9 -0
- data/lib/schematic/types/stripe_sandbox_install_response_data.rb +21 -0
- data/lib/schematic/types/stripe_sandbox_keys_response_data.rb +13 -0
- data/lib/schematic/types/temporary_access_token_issuer_type.rb +12 -0
- data/lib/schematic/types/temporary_access_token_response_data.rb +3 -1
- data/lib/schematic/types/update_billing_plan_credit_grant_request_body.rb +12 -0
- data/lib/schematic/types/webhook_event_detail_response_data.rb +2 -0
- data/lib/schematic/types/webhook_event_response_data.rb +2 -0
- data/lib/schematic/version.rb +1 -1
- data/lib/schematic/wasm/rulesengine.wasm +0 -0
- data/lib/schematic/webhooks/client.rb +10 -10
- data/lib/schematic.rb +56 -4
- data/reference.md +1345 -44
- data/testapp/app.rb +13 -2
- metadata +55 -3
- data/lib/schematic/types/release_credit_lease_request_body.rb +0 -23
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CreditSpendPolicyResponseData < Internal::Types::Model
|
|
6
|
+
field :billing_credit_id, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :company_id, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :created_at, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :label, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :max_per_draw, -> { Integer }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :scope_type, -> { Schematic::Types::CreditSpendPolicyScope }, optional: false, nullable: false
|
|
19
|
+
|
|
20
|
+
field :updated_at, -> { String }, optional: false, nullable: false
|
|
21
|
+
|
|
22
|
+
field :user_id, -> { String }, optional: true, nullable: false
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class EventBodyInference < Internal::Types::Model
|
|
6
|
+
field :cache_creation_input_tokens, -> { Integer }, optional: true, nullable: false
|
|
7
|
+
|
|
6
8
|
field :cached_input_tokens, -> { Integer }, optional: true, nullable: false
|
|
7
9
|
|
|
8
10
|
field :company, -> { Internal::Types::Hash[String, String] }, optional: false, nullable: false
|
|
@@ -11,6 +11,8 @@ module Schematic
|
|
|
11
11
|
|
|
12
12
|
field :quantity, -> { Integer }, optional: true, nullable: false
|
|
13
13
|
|
|
14
|
+
field :reservation_id, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
14
16
|
field :traits, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :user, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
|
|
@@ -39,6 +39,8 @@ module Schematic
|
|
|
39
39
|
|
|
40
40
|
field :quantity, -> { Integer }, optional: false, nullable: false
|
|
41
41
|
|
|
42
|
+
field :reservation_id, -> { String }, optional: true, nullable: false
|
|
43
|
+
|
|
42
44
|
field :sent_at, -> { String }, optional: true, nullable: false
|
|
43
45
|
|
|
44
46
|
field :status, -> { Schematic::Types::EventStatus }, optional: false, nullable: false
|
|
@@ -33,6 +33,8 @@ module Schematic
|
|
|
33
33
|
|
|
34
34
|
field :quantity, -> { Integer }, optional: false, nullable: false
|
|
35
35
|
|
|
36
|
+
field :reservation_id, -> { String }, optional: true, nullable: false
|
|
37
|
+
|
|
36
38
|
field :sent_at, -> { String }, optional: true, nullable: false
|
|
37
39
|
|
|
38
40
|
field :status, -> { Schematic::Types::EventStatus }, optional: false, nullable: false
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class FlagCheckReservationResponseData < Internal::Types::Model
|
|
6
|
+
field :company_id, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :consumption_rate, -> { Integer }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :credit_type_id, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :credits_reserved, -> { Integer }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :event_subtype, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :expires_at, -> { String }, optional: false, nullable: false
|
|
17
|
+
|
|
18
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
19
|
+
|
|
20
|
+
field :quantity_reserved, -> { Integer }, optional: false, nullable: false
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -5,6 +5,8 @@ module Schematic
|
|
|
5
5
|
class GetOnboardingStateResp < Internal::Types::Model
|
|
6
6
|
field :agent_connected_at, -> { String }, optional: true, nullable: false
|
|
7
7
|
|
|
8
|
+
field :country, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
8
10
|
field :dismissed_at, -> { String }, optional: true, nullable: false
|
|
9
11
|
|
|
10
12
|
field :environment_id, -> { String }, optional: true, nullable: false
|
|
@@ -17,6 +19,10 @@ module Schematic
|
|
|
17
19
|
|
|
18
20
|
field :requirements, -> { Internal::Types::Array[Schematic::Types::OnboardingRequirementView] }, optional: false, nullable: false
|
|
19
21
|
|
|
22
|
+
field :roadmap, -> { Schematic::Types::OnboardingRoadmapView }, optional: true, nullable: false
|
|
23
|
+
|
|
24
|
+
field :slack_connect, -> { Schematic::Types::SlackConnectInviteView }, optional: true, nullable: false
|
|
25
|
+
|
|
20
26
|
field :stripe_import, -> { Schematic::Types::OnboardingStripeImport }, optional: true, nullable: false
|
|
21
27
|
|
|
22
28
|
field :suggested_next, -> { Internal::Types::Array[Schematic::Types::OnboardingRequirement] }, optional: false, nullable: false
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class IssueTemporaryAccessTokenResponseData < Internal::Types::Model
|
|
6
|
-
field :api_key_id, -> { String }, optional:
|
|
6
|
+
field :api_key_id, -> { String }, optional: true, nullable: false
|
|
7
7
|
|
|
8
8
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
9
9
|
|
|
@@ -13,6 +13,8 @@ module Schematic
|
|
|
13
13
|
|
|
14
14
|
field :id, -> { String }, optional: false, nullable: false
|
|
15
15
|
|
|
16
|
+
field :issuer_type, -> { Schematic::Types::TemporaryAccessTokenIssuerType }, optional: false, nullable: false
|
|
17
|
+
|
|
16
18
|
field :resource_type, -> { String }, optional: false, nullable: false
|
|
17
19
|
|
|
18
20
|
field :token, -> { String }, optional: false, nullable: false
|
|
@@ -9,6 +9,7 @@ module Schematic
|
|
|
9
9
|
CONNECT_BILLING = "connect_billing"
|
|
10
10
|
CREATE_API_KEY = "create_api_key"
|
|
11
11
|
FIRST_FLAG_CHECK = "first_flag_check"
|
|
12
|
+
GENERATE_ROADMAP = "generate_roadmap"
|
|
12
13
|
IMPORT_COMPANIES = "import_companies"
|
|
13
14
|
MODEL_PACKAGING = "model_packaging"
|
|
14
15
|
SEND_EVENTS = "send_events"
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class OnboardingRoadmapView < Internal::Types::Model
|
|
6
|
+
field :published_at, -> { String }, optional: true, nullable: false
|
|
7
|
+
|
|
8
|
+
field :slug, -> { String }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class OtlpEnvironmentSettingsResponseData < Internal::Types::Model
|
|
6
|
+
field :company_attribute, -> { String }, optional: true, nullable: false
|
|
7
|
+
|
|
8
|
+
field :company_key, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :created_at, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :environment_id, -> { String }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :tool_events_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :updated_at, -> { String }, optional: false, nullable: false
|
|
17
|
+
|
|
18
|
+
field :user_attribute, -> { String }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :user_key, -> { String }, optional: true, nullable: false
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class PlanCreditGrantView < Internal::Types::Model
|
|
6
|
+
field :billing_credit_arrears_anchor, -> { Schematic::Types::BillingArrearsAnchor }, optional: true, nullable: false
|
|
7
|
+
|
|
8
|
+
field :billing_credit_arrears_cadence, -> { Schematic::Types::BillingArrearsCadence }, optional: true, nullable: false
|
|
9
|
+
|
|
6
10
|
field :billing_credit_auto_topup_amount, -> { Integer }, optional: true, nullable: false
|
|
7
11
|
|
|
8
12
|
field :billing_credit_auto_topup_amount_type, -> { String }, optional: true, nullable: false
|
|
@@ -25,6 +29,14 @@ module Schematic
|
|
|
25
29
|
|
|
26
30
|
field :billing_credit_can_buy_bundles, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
27
31
|
|
|
32
|
+
field :billing_credit_overdraft_limit, -> { Integer }, optional: true, nullable: false
|
|
33
|
+
|
|
34
|
+
field :billing_credit_postpaid_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
35
|
+
|
|
36
|
+
field :billing_credit_postpaid_rate_per_unit, -> { Integer }, optional: true, nullable: false
|
|
37
|
+
|
|
38
|
+
field :billing_credit_postpaid_rate_per_unit_decimal, -> { String }, optional: true, nullable: false
|
|
39
|
+
|
|
28
40
|
field :company_credit_amount, -> { Integer }, optional: false, nullable: false
|
|
29
41
|
|
|
30
42
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
@@ -69,6 +69,8 @@ module Schematic
|
|
|
69
69
|
|
|
70
70
|
field :trial_days, -> { Integer }, optional: true, nullable: false
|
|
71
71
|
|
|
72
|
+
field :trial_eligibility_per_plan, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
73
|
+
|
|
72
74
|
field :trial_expiry_plan, -> { Schematic::Types::PlanGroupPlanDetailResponseData }, optional: true, nullable: false
|
|
73
75
|
|
|
74
76
|
field :trial_expiry_plan_id, -> { String }, optional: true, nullable: false
|
|
@@ -53,6 +53,8 @@ module Schematic
|
|
|
53
53
|
|
|
54
54
|
field :trial_days, -> { Integer }, optional: true, nullable: false
|
|
55
55
|
|
|
56
|
+
field :trial_eligibility_per_plan, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
57
|
+
|
|
56
58
|
field :trial_expiry_plan_id, -> { String }, optional: true, nullable: false
|
|
57
59
|
|
|
58
60
|
field :trial_expiry_plan_price_id, -> { String }, optional: true, nullable: false
|
|
@@ -29,6 +29,8 @@ module Schematic
|
|
|
29
29
|
|
|
30
30
|
field :operator, -> { Schematic::Types::ComparableOperator }, optional: false, nullable: false
|
|
31
31
|
|
|
32
|
+
field :plan_versions, -> { Internal::Types::Array[Schematic::Types::RuleConditionPlanVersionResponseData] }, optional: true, nullable: false
|
|
33
|
+
|
|
32
34
|
field :resource_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
33
35
|
|
|
34
36
|
field :resources, -> { Internal::Types::Array[Schematic::Types::PreviewObjectResponseData] }, optional: false, nullable: false
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class RuleConditionPlanVersionResponseData < Internal::Types::Model
|
|
6
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :status, -> { Schematic::Types::PlanVersionStatus }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :version, -> { Integer }, optional: false, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -11,6 +11,8 @@ module Schematic
|
|
|
11
11
|
|
|
12
12
|
field :credit_balances, -> { Internal::Types::Hash[String, Integer] }, optional: false, nullable: false
|
|
13
13
|
|
|
14
|
+
field :credit_postpaid, -> { Internal::Types::Hash[String, Schematic::Types::RulesengineCreditPostpaidConfig] }, optional: true, nullable: false
|
|
15
|
+
|
|
14
16
|
field :entitlements, -> { Internal::Types::Array[Schematic::Types::RulesengineFeatureEntitlement] }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :environment_id, -> { String }, optional: false, nullable: false
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
module SlackConnectInviteStatus
|
|
6
|
+
extend Schematic::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
ACCEPTED = "accepted"
|
|
9
|
+
DECLINED = "declined"
|
|
10
|
+
DISMISSED = "dismissed"
|
|
11
|
+
EXPIRED = "expired"
|
|
12
|
+
PENDING = "pending"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class SlackConnectInviteView < Internal::Types::Model
|
|
6
|
+
field :can_resend_at, -> { String }, optional: true, nullable: false
|
|
7
|
+
|
|
8
|
+
field :email, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :sent_at, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :status, -> { Schematic::Types::SlackConnectInviteStatus }, optional: false, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -7,6 +7,12 @@ module Schematic
|
|
|
7
7
|
|
|
8
8
|
field :account_name, -> { String }, optional: true, nullable: false
|
|
9
9
|
|
|
10
|
+
field :claimable_sandbox_expires_at, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :claimable_sandbox_id, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :claimable_sandbox_status, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
10
16
|
field :company_update_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
11
17
|
|
|
12
18
|
field :is_sandbox, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class StripeSandboxClaimLink < Internal::Types::Model
|
|
6
|
+
field :claim_url, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :expires_at, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :sandbox_id, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :status, -> { String }, optional: false, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class StripeSandboxInstallResponseData < Internal::Types::Model
|
|
6
|
+
field :api_keys, -> { Schematic::Types::StripeSandboxKeysResponseData }, optional: true, nullable: false
|
|
7
|
+
|
|
8
|
+
field :claim_url, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :claim_url_expires_at, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :expires_at, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :install, -> { Schematic::Types::IntegrationInstallResponseData }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :sandbox_id, -> { String }, optional: false, nullable: false
|
|
17
|
+
|
|
18
|
+
field :stripe_account_id, -> { String }, optional: false, nullable: false
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class StripeSandboxKeysResponseData < Internal::Types::Model
|
|
6
|
+
field :mcp, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :publishable, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :secret, -> { String }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class TemporaryAccessTokenResponseData < Internal::Types::Model
|
|
6
|
-
field :api_key_id, -> { String }, optional:
|
|
6
|
+
field :api_key_id, -> { String }, optional: true, nullable: false
|
|
7
7
|
|
|
8
8
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
9
9
|
|
|
@@ -13,6 +13,8 @@ module Schematic
|
|
|
13
13
|
|
|
14
14
|
field :id, -> { String }, optional: false, nullable: false
|
|
15
15
|
|
|
16
|
+
field :issuer_type, -> { Schematic::Types::TemporaryAccessTokenIssuerType }, optional: false, nullable: false
|
|
17
|
+
|
|
16
18
|
field :resource_type, -> { String }, optional: false, nullable: false
|
|
17
19
|
|
|
18
20
|
field :updated_at, -> { String }, optional: false, nullable: false
|
|
@@ -5,6 +5,10 @@ module Schematic
|
|
|
5
5
|
class UpdateBillingPlanCreditGrantRequestBody < Internal::Types::Model
|
|
6
6
|
field :apply_to_existing, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
7
7
|
|
|
8
|
+
field :arrears_anchor, -> { Schematic::Types::BillingArrearsAnchor }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :arrears_cadence, -> { Schematic::Types::BillingArrearsCadence }, optional: true, nullable: false
|
|
11
|
+
|
|
8
12
|
field :auto_topup_amount, -> { Integer }, optional: true, nullable: false
|
|
9
13
|
|
|
10
14
|
field :auto_topup_amount_type, -> { String }, optional: true, nullable: false
|
|
@@ -39,6 +43,14 @@ module Schematic
|
|
|
39
43
|
|
|
40
44
|
field :license_id, -> { String }, optional: true, nullable: false
|
|
41
45
|
|
|
46
|
+
field :overdraft_limit, -> { Integer }, optional: true, nullable: false
|
|
47
|
+
|
|
48
|
+
field :postpaid_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
49
|
+
|
|
50
|
+
field :postpaid_rate_per_unit, -> { Integer }, optional: true, nullable: false
|
|
51
|
+
|
|
52
|
+
field :postpaid_rate_per_unit_decimal, -> { String }, optional: true, nullable: false
|
|
53
|
+
|
|
42
54
|
field :reset_cadence, -> { Schematic::Types::BillingPlanCreditGrantResetCadence }, optional: false, nullable: false
|
|
43
55
|
|
|
44
56
|
field :reset_start, -> { Schematic::Types::BillingPlanCreditGrantResetStart }, optional: false, nullable: false
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class WebhookEventDetailResponseData < Internal::Types::Model
|
|
6
|
+
field :attempt_count, -> { Integer }, optional: false, nullable: false
|
|
7
|
+
|
|
6
8
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
7
9
|
|
|
8
10
|
field :id, -> { String }, optional: false, nullable: false
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class WebhookEventResponseData < Internal::Types::Model
|
|
6
|
+
field :attempt_count, -> { Integer }, optional: false, nullable: false
|
|
7
|
+
|
|
6
8
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
7
9
|
|
|
8
10
|
field :id, -> { String }, optional: false, nullable: false
|
data/lib/schematic/version.rb
CHANGED
|
Binary file
|
|
@@ -56,7 +56,7 @@ module Schematic
|
|
|
56
56
|
end
|
|
57
57
|
code = response.code.to_i
|
|
58
58
|
if code.between?(200, 299)
|
|
59
|
-
Schematic::Webhooks::Types::ListWebhookEventsResponse.load(response.body)
|
|
59
|
+
(response.body.to_s.empty? ? nil : Schematic::Webhooks::Types::ListWebhookEventsResponse.load(response.body))
|
|
60
60
|
else
|
|
61
61
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
62
62
|
raise error_class.new(response.body, code: code)
|
|
@@ -91,7 +91,7 @@ module Schematic
|
|
|
91
91
|
end
|
|
92
92
|
code = response.code.to_i
|
|
93
93
|
if code.between?(200, 299)
|
|
94
|
-
Schematic::Webhooks::Types::GetWebhookEventResponse.load(response.body)
|
|
94
|
+
(response.body.to_s.empty? ? nil : Schematic::Webhooks::Types::GetWebhookEventResponse.load(response.body))
|
|
95
95
|
else
|
|
96
96
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
97
97
|
raise error_class.new(response.body, code: code)
|
|
@@ -144,7 +144,7 @@ module Schematic
|
|
|
144
144
|
end
|
|
145
145
|
code = response.code.to_i
|
|
146
146
|
if code.between?(200, 299)
|
|
147
|
-
Schematic::Webhooks::Types::CountWebhookEventsResponse.load(response.body)
|
|
147
|
+
(response.body.to_s.empty? ? nil : Schematic::Webhooks::Types::CountWebhookEventsResponse.load(response.body))
|
|
148
148
|
else
|
|
149
149
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
150
150
|
raise error_class.new(response.body, code: code)
|
|
@@ -191,7 +191,7 @@ module Schematic
|
|
|
191
191
|
end
|
|
192
192
|
code = response.code.to_i
|
|
193
193
|
if code.between?(200, 299)
|
|
194
|
-
Schematic::Webhooks::Types::ListWebhooksResponse.load(response.body)
|
|
194
|
+
(response.body.to_s.empty? ? nil : Schematic::Webhooks::Types::ListWebhooksResponse.load(response.body))
|
|
195
195
|
else
|
|
196
196
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
197
197
|
raise error_class.new(response.body, code: code)
|
|
@@ -230,7 +230,7 @@ module Schematic
|
|
|
230
230
|
end
|
|
231
231
|
code = response.code.to_i
|
|
232
232
|
if code.between?(200, 299)
|
|
233
|
-
Schematic::Webhooks::Types::CreateWebhookResponse.load(response.body)
|
|
233
|
+
(response.body.to_s.empty? ? nil : Schematic::Webhooks::Types::CreateWebhookResponse.load(response.body))
|
|
234
234
|
else
|
|
235
235
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
236
236
|
raise error_class.new(response.body, code: code)
|
|
@@ -265,7 +265,7 @@ module Schematic
|
|
|
265
265
|
end
|
|
266
266
|
code = response.code.to_i
|
|
267
267
|
if code.between?(200, 299)
|
|
268
|
-
Schematic::Webhooks::Types::GetWebhookResponse.load(response.body)
|
|
268
|
+
(response.body.to_s.empty? ? nil : Schematic::Webhooks::Types::GetWebhookResponse.load(response.body))
|
|
269
269
|
else
|
|
270
270
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
271
271
|
raise error_class.new(response.body, code: code)
|
|
@@ -305,7 +305,7 @@ module Schematic
|
|
|
305
305
|
end
|
|
306
306
|
code = response.code.to_i
|
|
307
307
|
if code.between?(200, 299)
|
|
308
|
-
Schematic::Webhooks::Types::UpdateWebhookResponse.load(response.body)
|
|
308
|
+
(response.body.to_s.empty? ? nil : Schematic::Webhooks::Types::UpdateWebhookResponse.load(response.body))
|
|
309
309
|
else
|
|
310
310
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
311
311
|
raise error_class.new(response.body, code: code)
|
|
@@ -340,7 +340,7 @@ module Schematic
|
|
|
340
340
|
end
|
|
341
341
|
code = response.code.to_i
|
|
342
342
|
if code.between?(200, 299)
|
|
343
|
-
Schematic::Webhooks::Types::DeleteWebhookResponse.load(response.body)
|
|
343
|
+
(response.body.to_s.empty? ? nil : Schematic::Webhooks::Types::DeleteWebhookResponse.load(response.body))
|
|
344
344
|
else
|
|
345
345
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
346
346
|
raise error_class.new(response.body, code: code)
|
|
@@ -383,7 +383,7 @@ module Schematic
|
|
|
383
383
|
end
|
|
384
384
|
code = response.code.to_i
|
|
385
385
|
if code.between?(200, 299)
|
|
386
|
-
Schematic::Webhooks::Types::SendTestWebhookActionResponse.load(response.body)
|
|
386
|
+
(response.body.to_s.empty? ? nil : Schematic::Webhooks::Types::SendTestWebhookActionResponse.load(response.body))
|
|
387
387
|
else
|
|
388
388
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
389
389
|
raise error_class.new(response.body, code: code)
|
|
@@ -430,7 +430,7 @@ module Schematic
|
|
|
430
430
|
end
|
|
431
431
|
code = response.code.to_i
|
|
432
432
|
if code.between?(200, 299)
|
|
433
|
-
Schematic::Webhooks::Types::CountWebhooksResponse.load(response.body)
|
|
433
|
+
(response.body.to_s.empty? ? nil : Schematic::Webhooks::Types::CountWebhooksResponse.load(response.body))
|
|
434
434
|
else
|
|
435
435
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
436
436
|
raise error_class.new(response.body, code: code)
|