dub 0.10.5 → 0.12.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.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crystalline/module.rb +4 -0
  3. data/lib/crystalline/utils.rb +13 -0
  4. data/lib/open_api_sdk/analytics.rb +1 -1
  5. data/lib/open_api_sdk/commissions.rb +2 -2
  6. data/lib/open_api_sdk/customers.rb +4 -241
  7. data/lib/open_api_sdk/domains.rb +6 -6
  8. data/lib/open_api_sdk/embed_tokens.rb +1 -1
  9. data/lib/open_api_sdk/events.rb +1 -1
  10. data/lib/open_api_sdk/folders.rb +4 -4
  11. data/lib/open_api_sdk/links.rb +10 -10
  12. data/lib/open_api_sdk/models/operations/banpartner_requestbody.rb +41 -0
  13. data/lib/open_api_sdk/models/operations/banpartner_requestbody.rbi +17 -0
  14. data/lib/open_api_sdk/models/operations/banpartner_responsebody.rb +33 -0
  15. data/lib/open_api_sdk/models/operations/banpartner_responsebody.rbi +13 -0
  16. data/lib/open_api_sdk/models/operations/createfolder_requestbody.rb +6 -2
  17. data/lib/open_api_sdk/models/operations/createfolder_requestbody.rbi +2 -0
  18. data/lib/open_api_sdk/models/operations/createlink_requestbody.rb +1 -1
  19. data/lib/open_api_sdk/models/operations/createpartner_responsebody.rb +52 -24
  20. data/lib/open_api_sdk/models/operations/createpartner_responsebody.rbi +24 -10
  21. data/lib/open_api_sdk/models/operations/listcommissions_partner.rb +6 -2
  22. data/lib/open_api_sdk/models/operations/listcommissions_partner.rbi +2 -0
  23. data/lib/open_api_sdk/models/operations/listcommissions_request.rb +6 -2
  24. data/lib/open_api_sdk/models/operations/listcommissions_request.rbi +2 -0
  25. data/lib/open_api_sdk/models/operations/listevents_request.rb +6 -2
  26. data/lib/open_api_sdk/models/operations/listevents_request.rbi +2 -0
  27. data/lib/open_api_sdk/models/operations/listpartners_queryparam_sortby.rb +11 -6
  28. data/lib/open_api_sdk/models/operations/listpartners_request.rb +3 -7
  29. data/lib/open_api_sdk/models/operations/listpartners_request.rbi +0 -2
  30. data/lib/open_api_sdk/models/operations/listpartners_responsebody.rb +52 -24
  31. data/lib/open_api_sdk/models/operations/listpartners_responsebody.rbi +24 -10
  32. data/lib/open_api_sdk/models/operations/queryparam_groupby.rb +6 -1
  33. data/lib/open_api_sdk/models/operations/reason.rb +26 -0
  34. data/lib/open_api_sdk/models/operations/reason.rbi +11 -0
  35. data/lib/open_api_sdk/models/operations/requestbody.rb +1 -1
  36. data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +6 -2
  37. data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rbi +2 -0
  38. data/lib/open_api_sdk/models/operations/retrievelinks_request.rb +2 -2
  39. data/lib/open_api_sdk/models/operations/retrievepartneranalytics_request.rb +10 -10
  40. data/lib/open_api_sdk/models/operations/retrievepartneranalytics_request.rbi +4 -4
  41. data/lib/open_api_sdk/models/operations/tracklead_requestbody.rb +1 -1
  42. data/lib/open_api_sdk/models/operations/updatecommission_partner.rb +6 -2
  43. data/lib/open_api_sdk/models/operations/updatecommission_partner.rbi +2 -0
  44. data/lib/open_api_sdk/models/operations/updatefolder_requestbody.rb +6 -2
  45. data/lib/open_api_sdk/models/operations/updatefolder_requestbody.rbi +2 -0
  46. data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +1 -1
  47. data/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb +1 -1
  48. data/lib/open_api_sdk/models/operations.rb +3 -6
  49. data/lib/open_api_sdk/models/shared/analyticstopurls.rb +1 -1
  50. data/lib/open_api_sdk/models/shared/applicationformdata.rb +37 -0
  51. data/lib/open_api_sdk/models/shared/applicationformdata.rbi +15 -0
  52. data/lib/open_api_sdk/models/shared/commissioncreatedevent_partner.rb +6 -2
  53. data/lib/open_api_sdk/models/shared/commissioncreatedevent_partner.rbi +2 -0
  54. data/lib/open_api_sdk/models/shared/folderschema.rb +6 -2
  55. data/lib/open_api_sdk/models/shared/folderschema.rbi +2 -0
  56. data/lib/open_api_sdk/models/shared/leadcreatedevent_link.rb +15 -11
  57. data/lib/open_api_sdk/models/shared/leadcreatedevent_link.rbi +6 -4
  58. data/lib/open_api_sdk/models/shared/leadevent_link.rb +15 -11
  59. data/lib/open_api_sdk/models/shared/leadevent_link.rbi +6 -4
  60. data/lib/open_api_sdk/models/shared/link.rb +15 -11
  61. data/lib/open_api_sdk/models/shared/link.rbi +6 -4
  62. data/lib/open_api_sdk/models/shared/linkclickedevent_link.rb +15 -11
  63. data/lib/open_api_sdk/models/shared/linkclickedevent_link.rbi +6 -4
  64. data/lib/open_api_sdk/models/shared/linkschema.rb +7 -3
  65. data/lib/open_api_sdk/models/shared/linkschema.rbi +2 -0
  66. data/lib/open_api_sdk/models/shared/{tagschema.rb → linktagschema.rb} +1 -1
  67. data/lib/open_api_sdk/models/shared/{tagschema.rbi → linktagschema.rbi} +2 -2
  68. data/lib/open_api_sdk/models/shared/linkwebhookevent_link.rb +15 -11
  69. data/lib/open_api_sdk/models/shared/linkwebhookevent_link.rbi +6 -4
  70. data/lib/open_api_sdk/models/shared/partner.rb +6 -2
  71. data/lib/open_api_sdk/models/shared/partner.rbi +2 -0
  72. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent.rb +45 -0
  73. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent.rbi +19 -0
  74. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_data.rb +45 -0
  75. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_data.rbi +19 -0
  76. data/lib/open_api_sdk/models/{operations/createcustomer_type.rb → shared/partnerapplicationsubmittedevent_event.rb} +3 -4
  77. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_event.rbi +11 -0
  78. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_partner.rb +89 -0
  79. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_partner.rbi +41 -0
  80. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_status.rb +28 -0
  81. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_status.rbi +11 -0
  82. data/lib/open_api_sdk/models/shared/partnerenrolledevent_data.rb +52 -24
  83. data/lib/open_api_sdk/models/shared/partnerenrolledevent_data.rbi +24 -10
  84. data/lib/open_api_sdk/models/shared/salecreatedevent_link.rb +15 -11
  85. data/lib/open_api_sdk/models/shared/salecreatedevent_link.rbi +6 -4
  86. data/lib/open_api_sdk/models/shared/salecreatedevent_partner.rb +6 -2
  87. data/lib/open_api_sdk/models/shared/salecreatedevent_partner.rbi +2 -0
  88. data/lib/open_api_sdk/models/shared/saleevent_link.rb +15 -11
  89. data/lib/open_api_sdk/models/shared/saleevent_link.rbi +6 -4
  90. data/lib/open_api_sdk/models/shared/workspaceschema.rb +10 -2
  91. data/lib/open_api_sdk/models/shared/workspaceschema.rbi +4 -0
  92. data/lib/open_api_sdk/models/shared.rb +7 -1
  93. data/lib/open_api_sdk/partners.rb +241 -6
  94. data/lib/open_api_sdk/qr_codes.rb +1 -1
  95. data/lib/open_api_sdk/sdkconfiguration.rb +3 -3
  96. data/lib/open_api_sdk/tags.rb +10 -10
  97. data/lib/open_api_sdk/track.rb +2 -2
  98. data/lib/open_api_sdk/workspaces.rb +2 -2
  99. metadata +22 -16
  100. data/lib/open_api_sdk/models/operations/createcustomer_discount.rb +0 -61
  101. data/lib/open_api_sdk/models/operations/createcustomer_discount.rbi +0 -27
  102. data/lib/open_api_sdk/models/operations/createcustomer_link.rb +0 -53
  103. data/lib/open_api_sdk/models/operations/createcustomer_link.rbi +0 -23
  104. data/lib/open_api_sdk/models/operations/createcustomer_partner.rb +0 -45
  105. data/lib/open_api_sdk/models/operations/createcustomer_partner.rbi +0 -19
  106. data/lib/open_api_sdk/models/operations/createcustomer_requestbody.rb +0 -49
  107. data/lib/open_api_sdk/models/operations/createcustomer_requestbody.rbi +0 -21
  108. data/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb +0 -81
  109. data/lib/open_api_sdk/models/operations/createcustomer_responsebody.rbi +0 -37
  110. data/lib/open_api_sdk/models/operations/createcustomer_type.rbi +0 -11
@@ -72,7 +72,7 @@ module OpenApiSDK
72
72
  hook_ctx = SDKHooks::HookContext.new(
73
73
  config: @sdk_configuration,
74
74
  base_url: base_url,
75
- oauth2_scopes: [],
75
+ oauth2_scopes: nil,
76
76
  operation_id: 'createPartner',
77
77
  security_source: @sdk_configuration.security_source
78
78
  )
@@ -298,7 +298,7 @@ module OpenApiSDK
298
298
  hook_ctx = SDKHooks::HookContext.new(
299
299
  config: @sdk_configuration,
300
300
  base_url: base_url,
301
- oauth2_scopes: [],
301
+ oauth2_scopes: nil,
302
302
  operation_id: 'listPartners',
303
303
  security_source: @sdk_configuration.security_source
304
304
  )
@@ -533,7 +533,7 @@ module OpenApiSDK
533
533
  hook_ctx = SDKHooks::HookContext.new(
534
534
  config: @sdk_configuration,
535
535
  base_url: base_url,
536
- oauth2_scopes: [],
536
+ oauth2_scopes: nil,
537
537
  operation_id: 'createPartnerLink',
538
538
  security_source: @sdk_configuration.security_source
539
539
  )
@@ -759,7 +759,7 @@ module OpenApiSDK
759
759
  hook_ctx = SDKHooks::HookContext.new(
760
760
  config: @sdk_configuration,
761
761
  base_url: base_url,
762
- oauth2_scopes: [],
762
+ oauth2_scopes: nil,
763
763
  operation_id: 'retrieveLinks',
764
764
  security_source: @sdk_configuration.security_source
765
765
  )
@@ -994,7 +994,7 @@ module OpenApiSDK
994
994
  hook_ctx = SDKHooks::HookContext.new(
995
995
  config: @sdk_configuration,
996
996
  base_url: base_url,
997
- oauth2_scopes: [],
997
+ oauth2_scopes: nil,
998
998
  operation_id: 'upsertPartnerLink',
999
999
  security_source: @sdk_configuration.security_source
1000
1000
  )
@@ -1220,7 +1220,7 @@ module OpenApiSDK
1220
1220
  hook_ctx = SDKHooks::HookContext.new(
1221
1221
  config: @sdk_configuration,
1222
1222
  base_url: base_url,
1223
- oauth2_scopes: [],
1223
+ oauth2_scopes: nil,
1224
1224
  operation_id: 'retrievePartnerAnalytics',
1225
1225
  security_source: @sdk_configuration.security_source
1226
1226
  )
@@ -1420,5 +1420,240 @@ module OpenApiSDK
1420
1420
 
1421
1421
  end
1422
1422
  end
1423
+
1424
+
1425
+ sig { params(request: T.nilable(Models::Operations::BanPartnerRequestBody), timeout_ms: T.nilable(Integer)).returns(Models::Operations::BanPartnerResponseBody) }
1426
+ def ban(request: nil, timeout_ms: nil)
1427
+ # ban - Ban a partner
1428
+ # Ban a partner from your program. This will disable all links and mark all commissions as canceled.
1429
+ url, params = @sdk_configuration.get_server_details
1430
+ base_url = Utils.template_url(url, params)
1431
+ url = "#{base_url}/partners/ban"
1432
+ headers = {}
1433
+ headers = T.cast(headers, T::Hash[String, String])
1434
+ req_content_type, data, form = Utils.serialize_request_body(request, false, true, :request, :json)
1435
+ headers['content-type'] = req_content_type
1436
+
1437
+ if form
1438
+ body = Utils.encode_form(form)
1439
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
1440
+ body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
1441
+ else
1442
+ body = data
1443
+ end
1444
+ headers['Accept'] = 'application/json'
1445
+ headers['user-agent'] = @sdk_configuration.user_agent
1446
+
1447
+ security = @sdk_configuration.security_source&.call
1448
+
1449
+ timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
1450
+ timeout ||= @sdk_configuration.timeout
1451
+
1452
+
1453
+ connection = @sdk_configuration.client
1454
+
1455
+ hook_ctx = SDKHooks::HookContext.new(
1456
+ config: @sdk_configuration,
1457
+ base_url: base_url,
1458
+ oauth2_scopes: nil,
1459
+ operation_id: 'banPartner',
1460
+ security_source: @sdk_configuration.security_source
1461
+ )
1462
+
1463
+ error = T.let(nil, T.nilable(StandardError))
1464
+ http_response = T.let(nil, T.nilable(Faraday::Response))
1465
+
1466
+
1467
+ begin
1468
+ http_response = T.must(connection).post(url) do |req|
1469
+ req.body = body
1470
+ req.headers.merge!(headers)
1471
+ req.options.timeout = timeout unless timeout.nil?
1472
+ Utils.configure_request_security(req, security)
1473
+
1474
+ @sdk_configuration.hooks.before_request(
1475
+ hook_ctx: SDKHooks::BeforeRequestHookContext.new(
1476
+ hook_ctx: hook_ctx
1477
+ ),
1478
+ request: req
1479
+ )
1480
+ end
1481
+ rescue StandardError => e
1482
+ error = e
1483
+ ensure
1484
+ if http_response.nil? || Utils.error_status?(http_response.status)
1485
+ http_response = @sdk_configuration.hooks.after_error(
1486
+ error: error,
1487
+ hook_ctx: SDKHooks::AfterErrorHookContext.new(
1488
+ hook_ctx: hook_ctx
1489
+ ),
1490
+ response: http_response
1491
+ )
1492
+ else
1493
+ http_response = @sdk_configuration.hooks.after_success(
1494
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
1495
+ hook_ctx: hook_ctx
1496
+ ),
1497
+ response: http_response
1498
+ )
1499
+ end
1500
+
1501
+ if http_response.nil?
1502
+ raise error if !error.nil?
1503
+ raise 'no response'
1504
+ end
1505
+ end
1506
+
1507
+ content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
1508
+ if Utils.match_status_code(http_response.status, ['200'])
1509
+ if Utils.match_content_type(content_type, 'application/json')
1510
+ @sdk_configuration.hooks.after_success(
1511
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
1512
+ hook_ctx: hook_ctx
1513
+ ),
1514
+ response: http_response
1515
+ )
1516
+ response_data = http_response.env.response_body
1517
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Operations::BanPartnerResponseBody)
1518
+
1519
+ return obj
1520
+ else
1521
+ raise ::OpenApiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1522
+ end
1523
+ elsif Utils.match_status_code(http_response.status, ['400'])
1524
+ if Utils.match_content_type(content_type, 'application/json')
1525
+ @sdk_configuration.hooks.after_success(
1526
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
1527
+ hook_ctx: hook_ctx
1528
+ ),
1529
+ response: http_response
1530
+ )
1531
+ response_data = http_response.env.response_body
1532
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadRequest)
1533
+ raise obj
1534
+ else
1535
+ raise ::OpenApiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1536
+ end
1537
+ elsif Utils.match_status_code(http_response.status, ['401'])
1538
+ if Utils.match_content_type(content_type, 'application/json')
1539
+ @sdk_configuration.hooks.after_success(
1540
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
1541
+ hook_ctx: hook_ctx
1542
+ ),
1543
+ response: http_response
1544
+ )
1545
+ response_data = http_response.env.response_body
1546
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::Unauthorized)
1547
+ raise obj
1548
+ else
1549
+ raise ::OpenApiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1550
+ end
1551
+ elsif Utils.match_status_code(http_response.status, ['403'])
1552
+ if Utils.match_content_type(content_type, 'application/json')
1553
+ @sdk_configuration.hooks.after_success(
1554
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
1555
+ hook_ctx: hook_ctx
1556
+ ),
1557
+ response: http_response
1558
+ )
1559
+ response_data = http_response.env.response_body
1560
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::Forbidden)
1561
+ raise obj
1562
+ else
1563
+ raise ::OpenApiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1564
+ end
1565
+ elsif Utils.match_status_code(http_response.status, ['404'])
1566
+ if Utils.match_content_type(content_type, 'application/json')
1567
+ @sdk_configuration.hooks.after_success(
1568
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
1569
+ hook_ctx: hook_ctx
1570
+ ),
1571
+ response: http_response
1572
+ )
1573
+ response_data = http_response.env.response_body
1574
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotFound)
1575
+ raise obj
1576
+ else
1577
+ raise ::OpenApiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1578
+ end
1579
+ elsif Utils.match_status_code(http_response.status, ['409'])
1580
+ if Utils.match_content_type(content_type, 'application/json')
1581
+ @sdk_configuration.hooks.after_success(
1582
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
1583
+ hook_ctx: hook_ctx
1584
+ ),
1585
+ response: http_response
1586
+ )
1587
+ response_data = http_response.env.response_body
1588
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::Conflict)
1589
+ raise obj
1590
+ else
1591
+ raise ::OpenApiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1592
+ end
1593
+ elsif Utils.match_status_code(http_response.status, ['410'])
1594
+ if Utils.match_content_type(content_type, 'application/json')
1595
+ @sdk_configuration.hooks.after_success(
1596
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
1597
+ hook_ctx: hook_ctx
1598
+ ),
1599
+ response: http_response
1600
+ )
1601
+ response_data = http_response.env.response_body
1602
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::InviteExpired)
1603
+ raise obj
1604
+ else
1605
+ raise ::OpenApiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1606
+ end
1607
+ elsif Utils.match_status_code(http_response.status, ['422'])
1608
+ if Utils.match_content_type(content_type, 'application/json')
1609
+ @sdk_configuration.hooks.after_success(
1610
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
1611
+ hook_ctx: hook_ctx
1612
+ ),
1613
+ response: http_response
1614
+ )
1615
+ response_data = http_response.env.response_body
1616
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UnprocessableEntity)
1617
+ raise obj
1618
+ else
1619
+ raise ::OpenApiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1620
+ end
1621
+ elsif Utils.match_status_code(http_response.status, ['429'])
1622
+ if Utils.match_content_type(content_type, 'application/json')
1623
+ @sdk_configuration.hooks.after_success(
1624
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
1625
+ hook_ctx: hook_ctx
1626
+ ),
1627
+ response: http_response
1628
+ )
1629
+ response_data = http_response.env.response_body
1630
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::RateLimitExceeded)
1631
+ raise obj
1632
+ else
1633
+ raise ::OpenApiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1634
+ end
1635
+ elsif Utils.match_status_code(http_response.status, ['500'])
1636
+ if Utils.match_content_type(content_type, 'application/json')
1637
+ @sdk_configuration.hooks.after_success(
1638
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
1639
+ hook_ctx: hook_ctx
1640
+ ),
1641
+ response: http_response
1642
+ )
1643
+ response_data = http_response.env.response_body
1644
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::InternalServerError)
1645
+ raise obj
1646
+ else
1647
+ raise ::OpenApiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1648
+ end
1649
+ elsif Utils.match_status_code(http_response.status, ['4XX'])
1650
+ raise ::OpenApiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
1651
+ elsif Utils.match_status_code(http_response.status, ['5XX'])
1652
+ raise ::OpenApiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
1653
+ else
1654
+ raise ::OpenApiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
1655
+
1656
+ end
1657
+ end
1423
1658
  end
1424
1659
  end
@@ -63,7 +63,7 @@ module OpenApiSDK
63
63
  hook_ctx = SDKHooks::HookContext.new(
64
64
  config: @sdk_configuration,
65
65
  base_url: base_url,
66
- oauth2_scopes: [],
66
+ oauth2_scopes: nil,
67
67
  operation_id: 'getQRCode',
68
68
  security_source: @sdk_configuration.security_source
69
69
  )
@@ -89,9 +89,9 @@ module OpenApiSDK
89
89
  end
90
90
  @language = 'ruby'
91
91
  @openapi_doc_version = '0.0.1'
92
- @sdk_version = '0.10.5'
93
- @gen_version = '2.722.2'
94
- @user_agent = 'speakeasy-sdk/ruby 0.10.5 2.722.2 0.0.1 dub'
92
+ @sdk_version = '0.12.0'
93
+ @gen_version = '2.763.3'
94
+ @user_agent = 'speakeasy-sdk/ruby 0.12.0 2.763.3 0.0.1 dub'
95
95
  end
96
96
 
97
97
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -39,7 +39,7 @@ module OpenApiSDK
39
39
  end
40
40
 
41
41
 
42
- sig { params(request: T.nilable(Models::Operations::CreateTagRequestBody), timeout_ms: T.nilable(Integer)).returns(Models::Shared::TagSchema) }
42
+ sig { params(request: T.nilable(Models::Operations::CreateTagRequestBody), timeout_ms: T.nilable(Integer)).returns(Models::Shared::LinkTagSchema) }
43
43
  def create(request: nil, timeout_ms: nil)
44
44
  # create - Create a tag
45
45
  # Create a tag for the authenticated workspace.
@@ -72,7 +72,7 @@ module OpenApiSDK
72
72
  hook_ctx = SDKHooks::HookContext.new(
73
73
  config: @sdk_configuration,
74
74
  base_url: base_url,
75
- oauth2_scopes: [],
75
+ oauth2_scopes: nil,
76
76
  operation_id: 'createTag',
77
77
  security_source: @sdk_configuration.security_source
78
78
  )
@@ -131,7 +131,7 @@ module OpenApiSDK
131
131
  response: http_response
132
132
  )
133
133
  response_data = http_response.env.response_body
134
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::TagSchema)
134
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::LinkTagSchema)
135
135
 
136
136
  return obj
137
137
  else
@@ -274,7 +274,7 @@ module OpenApiSDK
274
274
  end
275
275
 
276
276
 
277
- sig { params(request: Models::Operations::GetTagsRequest, timeout_ms: T.nilable(Integer)).returns(T::Array[Models::Shared::TagSchema]) }
277
+ sig { params(request: Models::Operations::GetTagsRequest, timeout_ms: T.nilable(Integer)).returns(T::Array[Models::Shared::LinkTagSchema]) }
278
278
  def list(request:, timeout_ms: nil)
279
279
  # list - Retrieve a list of tags
280
280
  # Retrieve a list of tags for the authenticated workspace.
@@ -298,7 +298,7 @@ module OpenApiSDK
298
298
  hook_ctx = SDKHooks::HookContext.new(
299
299
  config: @sdk_configuration,
300
300
  base_url: base_url,
301
- oauth2_scopes: [],
301
+ oauth2_scopes: nil,
302
302
  operation_id: 'getTags',
303
303
  security_source: @sdk_configuration.security_source
304
304
  )
@@ -357,7 +357,7 @@ module OpenApiSDK
357
357
  response: http_response
358
358
  )
359
359
  response_data = http_response.env.response_body
360
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Shared::TagSchema))
360
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Shared::LinkTagSchema))
361
361
 
362
362
  return obj
363
363
  else
@@ -500,7 +500,7 @@ module OpenApiSDK
500
500
  end
501
501
 
502
502
 
503
- sig { params(id: ::String, request_body: T.nilable(Models::Operations::UpdateTagRequestBody), timeout_ms: T.nilable(Integer)).returns(Models::Shared::TagSchema) }
503
+ sig { params(id: ::String, request_body: T.nilable(Models::Operations::UpdateTagRequestBody), timeout_ms: T.nilable(Integer)).returns(Models::Shared::LinkTagSchema) }
504
504
  def update(id:, request_body: nil, timeout_ms: nil)
505
505
  # update - Update a tag
506
506
  # Update a tag in the workspace.
@@ -542,7 +542,7 @@ module OpenApiSDK
542
542
  hook_ctx = SDKHooks::HookContext.new(
543
543
  config: @sdk_configuration,
544
544
  base_url: base_url,
545
- oauth2_scopes: [],
545
+ oauth2_scopes: nil,
546
546
  operation_id: 'updateTag',
547
547
  security_source: @sdk_configuration.security_source
548
548
  )
@@ -601,7 +601,7 @@ module OpenApiSDK
601
601
  response: http_response
602
602
  )
603
603
  response_data = http_response.env.response_body
604
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::TagSchema)
604
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::LinkTagSchema)
605
605
 
606
606
  return obj
607
607
  else
@@ -775,7 +775,7 @@ module OpenApiSDK
775
775
  hook_ctx = SDKHooks::HookContext.new(
776
776
  config: @sdk_configuration,
777
777
  base_url: base_url,
778
- oauth2_scopes: [],
778
+ oauth2_scopes: nil,
779
779
  operation_id: 'deleteTag',
780
780
  security_source: @sdk_configuration.security_source
781
781
  )
@@ -72,7 +72,7 @@ module OpenApiSDK
72
72
  hook_ctx = SDKHooks::HookContext.new(
73
73
  config: @sdk_configuration,
74
74
  base_url: base_url,
75
- oauth2_scopes: [],
75
+ oauth2_scopes: nil,
76
76
  operation_id: 'trackLead',
77
77
  security_source: @sdk_configuration.security_source
78
78
  )
@@ -307,7 +307,7 @@ module OpenApiSDK
307
307
  hook_ctx = SDKHooks::HookContext.new(
308
308
  config: @sdk_configuration,
309
309
  base_url: base_url,
310
- oauth2_scopes: [],
310
+ oauth2_scopes: nil,
311
311
  operation_id: 'trackSale',
312
312
  security_source: @sdk_configuration.security_source
313
313
  )
@@ -67,7 +67,7 @@ module OpenApiSDK
67
67
  hook_ctx = SDKHooks::HookContext.new(
68
68
  config: @sdk_configuration,
69
69
  base_url: base_url,
70
- oauth2_scopes: [],
70
+ oauth2_scopes: nil,
71
71
  operation_id: 'getWorkspace',
72
72
  security_source: @sdk_configuration.security_source
73
73
  )
@@ -310,7 +310,7 @@ module OpenApiSDK
310
310
  hook_ctx = SDKHooks::HookContext.new(
311
311
  config: @sdk_configuration,
312
312
  base_url: base_url,
313
- oauth2_scopes: [],
313
+ oauth2_scopes: nil,
314
314
  operation_id: 'updateWorkspace',
315
315
  security_source: @sdk_configuration.security_source
316
316
  )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.5
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-06 00:00:00.000000000 Z
11
+ date: 2025-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -282,6 +282,10 @@ files:
282
282
  - lib/open_api_sdk/models/operations/accesslevel.rbi
283
283
  - lib/open_api_sdk/models/operations/bannedreason.rb
284
284
  - lib/open_api_sdk/models/operations/bannedreason.rbi
285
+ - lib/open_api_sdk/models/operations/banpartner_requestbody.rb
286
+ - lib/open_api_sdk/models/operations/banpartner_requestbody.rbi
287
+ - lib/open_api_sdk/models/operations/banpartner_responsebody.rb
288
+ - lib/open_api_sdk/models/operations/banpartner_responsebody.rbi
285
289
  - lib/open_api_sdk/models/operations/bulkcreatelinks_tagids.rb
286
290
  - lib/open_api_sdk/models/operations/bulkcreatelinks_tagids.rbi
287
291
  - lib/open_api_sdk/models/operations/bulkcreatelinks_tagnames.rb
@@ -308,18 +312,6 @@ files:
308
312
  - lib/open_api_sdk/models/operations/click.rbi
309
313
  - lib/open_api_sdk/models/operations/color.rb
310
314
  - lib/open_api_sdk/models/operations/color.rbi
311
- - lib/open_api_sdk/models/operations/createcustomer_discount.rb
312
- - lib/open_api_sdk/models/operations/createcustomer_discount.rbi
313
- - lib/open_api_sdk/models/operations/createcustomer_link.rb
314
- - lib/open_api_sdk/models/operations/createcustomer_link.rbi
315
- - lib/open_api_sdk/models/operations/createcustomer_partner.rb
316
- - lib/open_api_sdk/models/operations/createcustomer_partner.rbi
317
- - lib/open_api_sdk/models/operations/createcustomer_requestbody.rb
318
- - lib/open_api_sdk/models/operations/createcustomer_requestbody.rbi
319
- - lib/open_api_sdk/models/operations/createcustomer_responsebody.rb
320
- - lib/open_api_sdk/models/operations/createcustomer_responsebody.rbi
321
- - lib/open_api_sdk/models/operations/createcustomer_type.rb
322
- - lib/open_api_sdk/models/operations/createcustomer_type.rbi
323
315
  - lib/open_api_sdk/models/operations/createdomain_requestbody.rb
324
316
  - lib/open_api_sdk/models/operations/createdomain_requestbody.rbi
325
317
  - lib/open_api_sdk/models/operations/createfolder_requestbody.rb
@@ -532,6 +524,8 @@ files:
532
524
  - lib/open_api_sdk/models/operations/queryparam_tagnames.rbi
533
525
  - lib/open_api_sdk/models/operations/queryparam_trigger.rb
534
526
  - lib/open_api_sdk/models/operations/queryparam_trigger.rbi
527
+ - lib/open_api_sdk/models/operations/reason.rb
528
+ - lib/open_api_sdk/models/operations/reason.rbi
535
529
  - lib/open_api_sdk/models/operations/registerdomain_requestbody.rb
536
530
  - lib/open_api_sdk/models/operations/registerdomain_requestbody.rbi
537
531
  - lib/open_api_sdk/models/operations/registerdomain_responsebody.rb
@@ -703,6 +697,8 @@ files:
703
697
  - lib/open_api_sdk/models/shared/analyticstopurls.rbi
704
698
  - lib/open_api_sdk/models/shared/analyticstriggers.rb
705
699
  - lib/open_api_sdk/models/shared/analyticstriggers.rbi
700
+ - lib/open_api_sdk/models/shared/applicationformdata.rb
701
+ - lib/open_api_sdk/models/shared/applicationformdata.rbi
706
702
  - lib/open_api_sdk/models/shared/bannedreason.rb
707
703
  - lib/open_api_sdk/models/shared/bannedreason.rbi
708
704
  - lib/open_api_sdk/models/shared/city.rb
@@ -787,6 +783,8 @@ files:
787
783
  - lib/open_api_sdk/models/shared/linkerrorschema.rbi
788
784
  - lib/open_api_sdk/models/shared/linkschema.rb
789
785
  - lib/open_api_sdk/models/shared/linkschema.rbi
786
+ - lib/open_api_sdk/models/shared/linktagschema.rb
787
+ - lib/open_api_sdk/models/shared/linktagschema.rbi
790
788
  - lib/open_api_sdk/models/shared/linkwebhookevent.rb
791
789
  - lib/open_api_sdk/models/shared/linkwebhookevent.rbi
792
790
  - lib/open_api_sdk/models/shared/linkwebhookevent_event.rb
@@ -805,6 +803,16 @@ files:
805
803
  - lib/open_api_sdk/models/shared/partneranalyticstimeseries.rbi
806
804
  - lib/open_api_sdk/models/shared/partneranalyticstoplinks.rb
807
805
  - lib/open_api_sdk/models/shared/partneranalyticstoplinks.rbi
806
+ - lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent.rb
807
+ - lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent.rbi
808
+ - lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_data.rb
809
+ - lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_data.rbi
810
+ - lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_event.rb
811
+ - lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_event.rbi
812
+ - lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_partner.rb
813
+ - lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_partner.rbi
814
+ - lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_status.rb
815
+ - lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_status.rbi
808
816
  - lib/open_api_sdk/models/shared/partnerenrolledevent.rb
809
817
  - lib/open_api_sdk/models/shared/partnerenrolledevent.rbi
810
818
  - lib/open_api_sdk/models/shared/partnerenrolledevent_data.rb
@@ -859,8 +867,6 @@ files:
859
867
  - lib/open_api_sdk/models/shared/security.rbi
860
868
  - lib/open_api_sdk/models/shared/status.rb
861
869
  - lib/open_api_sdk/models/shared/status.rbi
862
- - lib/open_api_sdk/models/shared/tagschema.rb
863
- - lib/open_api_sdk/models/shared/tagschema.rbi
864
870
  - lib/open_api_sdk/models/shared/testvariants.rb
865
871
  - lib/open_api_sdk/models/shared/testvariants.rbi
866
872
  - lib/open_api_sdk/models/shared/three.rb
@@ -1,61 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
-
7
- module OpenApiSDK
8
- module Models
9
- module Operations
10
-
11
-
12
- class CreateCustomerDiscount
13
- extend T::Sig
14
- include Crystalline::MetadataFields
15
-
16
-
17
- field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id'), required: true } }
18
-
19
- field :amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('amount'), required: true } }
20
-
21
- field :type, Models::Operations::CreateCustomerType, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type'), required: true, 'decoder': Utils.enum_from_string(Models::Operations::CreateCustomerType, false) } }
22
-
23
- field :max_duration, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('maxDuration'), required: true } }
24
-
25
- field :coupon_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponId'), required: true } }
26
-
27
- field :coupon_test_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponTestId'), required: true } }
28
-
29
- field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
30
-
31
- field :partners_count, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnersCount') } }
32
-
33
- sig { params(id: ::String, amount: ::Float, type: Models::Operations::CreateCustomerType, max_duration: T.nilable(::Float), coupon_id: T.nilable(::String), coupon_test_id: T.nilable(::String), description: T.nilable(::String), partners_count: T.nilable(::Float)).void }
34
- def initialize(id:, amount:, type:, max_duration: nil, coupon_id: nil, coupon_test_id: nil, description: nil, partners_count: nil)
35
- @id = id
36
- @amount = amount
37
- @type = type
38
- @max_duration = max_duration
39
- @coupon_id = coupon_id
40
- @coupon_test_id = coupon_test_id
41
- @description = description
42
- @partners_count = partners_count
43
- end
44
-
45
- sig { params(other: T.untyped).returns(T::Boolean) }
46
- def ==(other)
47
- return false unless other.is_a? self.class
48
- return false unless @id == other.id
49
- return false unless @amount == other.amount
50
- return false unless @type == other.type
51
- return false unless @max_duration == other.max_duration
52
- return false unless @coupon_id == other.coupon_id
53
- return false unless @coupon_test_id == other.coupon_test_id
54
- return false unless @description == other.description
55
- return false unless @partners_count == other.partners_count
56
- true
57
- end
58
- end
59
- end
60
- end
61
- end
@@ -1,27 +0,0 @@
1
- # typed: true
2
- # frozen_string_literal: true
3
-
4
-
5
- class OpenApiSDK::Models::Operations::CreateCustomerDiscount
6
- extend ::Crystalline::MetadataFields::ClassMethods
7
- end
8
-
9
-
10
- class OpenApiSDK::Models::Operations::CreateCustomerDiscount
11
- def id(); end
12
- def id=(str_); end
13
- def amount(); end
14
- def amount=(str_); end
15
- def type(); end
16
- def type=(str_); end
17
- def max_duration(); end
18
- def max_duration=(str_); end
19
- def coupon_id(); end
20
- def coupon_id=(str_); end
21
- def coupon_test_id(); end
22
- def coupon_test_id=(str_); end
23
- def description(); end
24
- def description=(str_); end
25
- def partners_count(); end
26
- def partners_count=(str_); end
27
- end