@bubblelab/bubble-core 0.1.283 → 0.1.285

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 (86) hide show
  1. package/dist/bubble-bundle.d.ts +45 -25
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +3 -0
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubble-trigger/index.d.ts +2 -0
  6. package/dist/bubble-trigger/index.d.ts.map +1 -0
  7. package/dist/bubble-trigger/index.js +2 -0
  8. package/dist/bubble-trigger/index.js.map +1 -0
  9. package/dist/bubble-trigger/types.d.ts +87 -0
  10. package/dist/bubble-trigger/types.d.ts.map +1 -0
  11. package/dist/bubble-trigger/types.js +14 -0
  12. package/dist/bubble-trigger/types.js.map +1 -0
  13. package/dist/bubbles/service-bubble/clerk/clerk.d.ts +690 -0
  14. package/dist/bubbles/service-bubble/clerk/clerk.d.ts.map +1 -0
  15. package/dist/bubbles/service-bubble/clerk/clerk.js +573 -0
  16. package/dist/bubbles/service-bubble/clerk/clerk.js.map +1 -0
  17. package/dist/bubbles/service-bubble/clerk/clerk.schema.d.ts +653 -0
  18. package/dist/bubbles/service-bubble/clerk/clerk.schema.d.ts.map +1 -0
  19. package/dist/bubbles/service-bubble/clerk/clerk.schema.js +444 -0
  20. package/dist/bubbles/service-bubble/clerk/clerk.schema.js.map +1 -0
  21. package/dist/bubbles/service-bubble/clerk/index.d.ts +3 -0
  22. package/dist/bubbles/service-bubble/clerk/index.d.ts.map +1 -0
  23. package/dist/bubbles/service-bubble/clerk/index.js +3 -0
  24. package/dist/bubbles/service-bubble/clerk/index.js.map +1 -0
  25. package/dist/bubbles/service-bubble/google-sheets.d.ts +1811 -0
  26. package/dist/bubbles/service-bubble/google-sheets.d.ts.map +1 -0
  27. package/dist/bubbles/service-bubble/google-sheets.js +904 -0
  28. package/dist/bubbles/service-bubble/google-sheets.js.map +1 -0
  29. package/dist/bubbles/service-bubble/looker/index.d.ts +3 -0
  30. package/dist/bubbles/service-bubble/looker/index.d.ts.map +1 -0
  31. package/dist/bubbles/service-bubble/looker/index.js +3 -0
  32. package/dist/bubbles/service-bubble/looker/index.js.map +1 -0
  33. package/dist/bubbles/service-bubble/looker/looker.d.ts +768 -0
  34. package/dist/bubbles/service-bubble/looker/looker.d.ts.map +1 -0
  35. package/dist/bubbles/service-bubble/looker/looker.js +319 -0
  36. package/dist/bubbles/service-bubble/looker/looker.js.map +1 -0
  37. package/dist/bubbles/service-bubble/looker/looker.schema.d.ts +735 -0
  38. package/dist/bubbles/service-bubble/looker/looker.schema.d.ts.map +1 -0
  39. package/dist/bubbles/service-bubble/looker/looker.schema.js +264 -0
  40. package/dist/bubbles/service-bubble/looker/looker.schema.js.map +1 -0
  41. package/dist/bubbles/service-bubble/pylon/index.d.ts +3 -0
  42. package/dist/bubbles/service-bubble/pylon/index.d.ts.map +1 -0
  43. package/dist/bubbles/service-bubble/pylon/index.js +3 -0
  44. package/dist/bubbles/service-bubble/pylon/index.js.map +1 -0
  45. package/dist/bubbles/service-bubble/pylon/pylon.d.ts +435 -0
  46. package/dist/bubbles/service-bubble/pylon/pylon.d.ts.map +1 -0
  47. package/dist/bubbles/service-bubble/pylon/pylon.js +375 -0
  48. package/dist/bubbles/service-bubble/pylon/pylon.js.map +1 -0
  49. package/dist/bubbles/service-bubble/pylon/pylon.schema.d.ts +408 -0
  50. package/dist/bubbles/service-bubble/pylon/pylon.schema.d.ts.map +1 -0
  51. package/dist/bubbles/service-bubble/pylon/pylon.schema.js +249 -0
  52. package/dist/bubbles/service-bubble/pylon/pylon.schema.js.map +1 -0
  53. package/dist/bubbles/service-bubble/slack.d.ts +5869 -0
  54. package/dist/bubbles/service-bubble/slack.d.ts.map +1 -0
  55. package/dist/bubbles/service-bubble/slack.js +1536 -0
  56. package/dist/bubbles/service-bubble/slack.js.map +1 -0
  57. package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.d.ts +3 -0
  58. package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.d.ts.map +1 -0
  59. package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.js +3 -0
  60. package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.js.map +1 -0
  61. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts +160 -0
  62. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts.map +1 -0
  63. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.js +706 -0
  64. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.js.map +1 -0
  65. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.d.ts +93 -0
  66. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.d.ts.map +1 -0
  67. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.js +50 -0
  68. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.js.map +1 -0
  69. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +114 -0
  70. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +1 -0
  71. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +777 -0
  72. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +1 -0
  73. package/dist/bubbles.json +1337 -2
  74. package/dist/index.d.ts +1 -0
  75. package/dist/index.d.ts.map +1 -1
  76. package/dist/index.js +1 -0
  77. package/dist/index.js.map +1 -1
  78. package/dist/types/ai-models.d.ts +4 -0
  79. package/dist/types/ai-models.d.ts.map +1 -0
  80. package/dist/types/ai-models.js +16 -0
  81. package/dist/types/ai-models.js.map +1 -0
  82. package/dist/utils/param-helper.d.ts +2 -0
  83. package/dist/utils/param-helper.d.ts.map +1 -0
  84. package/dist/utils/param-helper.js +5 -0
  85. package/dist/utils/param-helper.js.map +1 -0
  86. package/package.json +2 -2
package/dist/bubbles.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": "2.0.0",
3
- "generatedAt": "2026-04-09T10:59:06.917Z",
4
- "totalCount": 83,
3
+ "generatedAt": "2026-04-10T06:04:23.352Z",
4
+ "totalCount": 84,
5
5
  "bubbles": [
6
6
  {
7
7
  "name": "hello-world",
@@ -89601,6 +89601,1341 @@
89601
89601
  "requiredCredentials": [
89602
89602
  "METABASE_CRED"
89603
89603
  ]
89604
+ },
89605
+ {
89606
+ "name": "clerk",
89607
+ "alias": "clerk",
89608
+ "type": "service",
89609
+ "shortDescription": "Clerk integration for user management, organizations, and billing",
89610
+ "useCase": "General purpose bubble for various workflow needs",
89611
+ "outputSchema": "Complex schema - see usage example for structure",
89612
+ "inputJsonSchema": {
89613
+ "anyOf": [
89614
+ {
89615
+ "type": "object",
89616
+ "properties": {
89617
+ "operation": {
89618
+ "type": "string",
89619
+ "enum": [
89620
+ "list_users"
89621
+ ],
89622
+ "description": "List users with optional filtering and pagination"
89623
+ },
89624
+ "limit": {
89625
+ "type": "integer",
89626
+ "minimum": 1,
89627
+ "maximum": 500,
89628
+ "default": 10,
89629
+ "description": "Maximum number of users to return (1-500)"
89630
+ },
89631
+ "offset": {
89632
+ "type": "integer",
89633
+ "minimum": 0,
89634
+ "default": 0,
89635
+ "description": "Number of users to skip for pagination"
89636
+ },
89637
+ "order_by": {
89638
+ "type": "string",
89639
+ "description": "Sort field (e.g. \"-created_at\" for newest first, \"+created_at\" for oldest)"
89640
+ },
89641
+ "query": {
89642
+ "type": "string",
89643
+ "description": "Search query across first name, last name, and email"
89644
+ },
89645
+ "email_address": {
89646
+ "type": "array",
89647
+ "items": {
89648
+ "type": "string"
89649
+ },
89650
+ "description": "Filter by specific email addresses"
89651
+ },
89652
+ "credentials": {
89653
+ "type": "object",
89654
+ "additionalProperties": {
89655
+ "type": "string"
89656
+ },
89657
+ "description": "Object mapping credential types to values (injected at runtime)"
89658
+ }
89659
+ },
89660
+ "required": [
89661
+ "operation"
89662
+ ],
89663
+ "additionalProperties": false
89664
+ },
89665
+ {
89666
+ "type": "object",
89667
+ "properties": {
89668
+ "operation": {
89669
+ "type": "string",
89670
+ "enum": [
89671
+ "get_user"
89672
+ ],
89673
+ "description": "Get a single user by their ID"
89674
+ },
89675
+ "user_id": {
89676
+ "type": "string",
89677
+ "minLength": 1,
89678
+ "description": "The Clerk user ID (e.g. \"user_abc123\")"
89679
+ },
89680
+ "credentials": {
89681
+ "type": "object",
89682
+ "additionalProperties": {
89683
+ "type": "string"
89684
+ },
89685
+ "description": "Object mapping credential types to values (injected at runtime)"
89686
+ }
89687
+ },
89688
+ "required": [
89689
+ "operation",
89690
+ "user_id"
89691
+ ],
89692
+ "additionalProperties": false
89693
+ },
89694
+ {
89695
+ "type": "object",
89696
+ "properties": {
89697
+ "operation": {
89698
+ "type": "string",
89699
+ "enum": [
89700
+ "create_user"
89701
+ ],
89702
+ "description": "Create a new user in Clerk"
89703
+ },
89704
+ "email_address": {
89705
+ "type": "array",
89706
+ "items": {
89707
+ "type": "string",
89708
+ "format": "email"
89709
+ },
89710
+ "minItems": 1,
89711
+ "description": "Email addresses for the new user"
89712
+ },
89713
+ "first_name": {
89714
+ "type": "string",
89715
+ "description": "First name"
89716
+ },
89717
+ "last_name": {
89718
+ "type": "string",
89719
+ "description": "Last name"
89720
+ },
89721
+ "username": {
89722
+ "type": "string",
89723
+ "description": "Username"
89724
+ },
89725
+ "password": {
89726
+ "type": "string",
89727
+ "description": "Password for the user"
89728
+ },
89729
+ "public_metadata": {
89730
+ "type": "object",
89731
+ "additionalProperties": {},
89732
+ "description": "Public metadata visible to frontend and backend"
89733
+ },
89734
+ "private_metadata": {
89735
+ "type": "object",
89736
+ "additionalProperties": {},
89737
+ "description": "Private metadata visible only to the backend"
89738
+ },
89739
+ "credentials": {
89740
+ "type": "object",
89741
+ "additionalProperties": {
89742
+ "type": "string"
89743
+ },
89744
+ "description": "Object mapping credential types to values (injected at runtime)"
89745
+ }
89746
+ },
89747
+ "required": [
89748
+ "operation",
89749
+ "email_address"
89750
+ ],
89751
+ "additionalProperties": false
89752
+ },
89753
+ {
89754
+ "type": "object",
89755
+ "properties": {
89756
+ "operation": {
89757
+ "type": "string",
89758
+ "enum": [
89759
+ "update_user"
89760
+ ],
89761
+ "description": "Update an existing user"
89762
+ },
89763
+ "user_id": {
89764
+ "type": "string",
89765
+ "minLength": 1,
89766
+ "description": "The Clerk user ID to update"
89767
+ },
89768
+ "first_name": {
89769
+ "type": "string",
89770
+ "description": "Updated first name"
89771
+ },
89772
+ "last_name": {
89773
+ "type": "string",
89774
+ "description": "Updated last name"
89775
+ },
89776
+ "username": {
89777
+ "type": "string",
89778
+ "description": "Updated username"
89779
+ },
89780
+ "public_metadata": {
89781
+ "type": "object",
89782
+ "additionalProperties": {},
89783
+ "description": "Updated public metadata"
89784
+ },
89785
+ "private_metadata": {
89786
+ "type": "object",
89787
+ "additionalProperties": {},
89788
+ "description": "Updated private metadata"
89789
+ },
89790
+ "credentials": {
89791
+ "type": "object",
89792
+ "additionalProperties": {
89793
+ "type": "string"
89794
+ },
89795
+ "description": "Object mapping credential types to values (injected at runtime)"
89796
+ }
89797
+ },
89798
+ "required": [
89799
+ "operation",
89800
+ "user_id"
89801
+ ],
89802
+ "additionalProperties": false
89803
+ },
89804
+ {
89805
+ "type": "object",
89806
+ "properties": {
89807
+ "operation": {
89808
+ "type": "string",
89809
+ "enum": [
89810
+ "delete_user"
89811
+ ],
89812
+ "description": "Delete a user by ID"
89813
+ },
89814
+ "user_id": {
89815
+ "type": "string",
89816
+ "minLength": 1,
89817
+ "description": "The Clerk user ID to delete"
89818
+ },
89819
+ "credentials": {
89820
+ "type": "object",
89821
+ "additionalProperties": {
89822
+ "type": "string"
89823
+ },
89824
+ "description": "Object mapping credential types to values (injected at runtime)"
89825
+ }
89826
+ },
89827
+ "required": [
89828
+ "operation",
89829
+ "user_id"
89830
+ ],
89831
+ "additionalProperties": false
89832
+ },
89833
+ {
89834
+ "type": "object",
89835
+ "properties": {
89836
+ "operation": {
89837
+ "type": "string",
89838
+ "enum": [
89839
+ "ban_user"
89840
+ ],
89841
+ "description": "Ban a user, preventing them from signing in"
89842
+ },
89843
+ "user_id": {
89844
+ "type": "string",
89845
+ "minLength": 1,
89846
+ "description": "The Clerk user ID to ban"
89847
+ },
89848
+ "credentials": {
89849
+ "type": "object",
89850
+ "additionalProperties": {
89851
+ "type": "string"
89852
+ },
89853
+ "description": "Object mapping credential types to values (injected at runtime)"
89854
+ }
89855
+ },
89856
+ "required": [
89857
+ "operation",
89858
+ "user_id"
89859
+ ],
89860
+ "additionalProperties": false
89861
+ },
89862
+ {
89863
+ "type": "object",
89864
+ "properties": {
89865
+ "operation": {
89866
+ "type": "string",
89867
+ "enum": [
89868
+ "unban_user"
89869
+ ],
89870
+ "description": "Unban a previously banned user"
89871
+ },
89872
+ "user_id": {
89873
+ "type": "string",
89874
+ "minLength": 1,
89875
+ "description": "The Clerk user ID to unban"
89876
+ },
89877
+ "credentials": {
89878
+ "type": "object",
89879
+ "additionalProperties": {
89880
+ "type": "string"
89881
+ },
89882
+ "description": "Object mapping credential types to values (injected at runtime)"
89883
+ }
89884
+ },
89885
+ "required": [
89886
+ "operation",
89887
+ "user_id"
89888
+ ],
89889
+ "additionalProperties": false
89890
+ },
89891
+ {
89892
+ "type": "object",
89893
+ "properties": {
89894
+ "operation": {
89895
+ "type": "string",
89896
+ "enum": [
89897
+ "list_organizations"
89898
+ ],
89899
+ "description": "List all organizations"
89900
+ },
89901
+ "limit": {
89902
+ "type": "integer",
89903
+ "minimum": 1,
89904
+ "maximum": 500,
89905
+ "default": 10,
89906
+ "description": "Maximum number of organizations to return"
89907
+ },
89908
+ "offset": {
89909
+ "type": "integer",
89910
+ "minimum": 0,
89911
+ "default": 0,
89912
+ "description": "Number of organizations to skip for pagination"
89913
+ },
89914
+ "credentials": {
89915
+ "type": "object",
89916
+ "additionalProperties": {
89917
+ "type": "string"
89918
+ },
89919
+ "description": "Object mapping credential types to values (injected at runtime)"
89920
+ }
89921
+ },
89922
+ "required": [
89923
+ "operation"
89924
+ ],
89925
+ "additionalProperties": false
89926
+ },
89927
+ {
89928
+ "type": "object",
89929
+ "properties": {
89930
+ "operation": {
89931
+ "type": "string",
89932
+ "enum": [
89933
+ "get_organization"
89934
+ ],
89935
+ "description": "Get a single organization by ID or slug"
89936
+ },
89937
+ "organization_id": {
89938
+ "type": "string",
89939
+ "minLength": 1,
89940
+ "description": "Organization ID or slug"
89941
+ },
89942
+ "credentials": {
89943
+ "type": "object",
89944
+ "additionalProperties": {
89945
+ "type": "string"
89946
+ },
89947
+ "description": "Object mapping credential types to values (injected at runtime)"
89948
+ }
89949
+ },
89950
+ "required": [
89951
+ "operation",
89952
+ "organization_id"
89953
+ ],
89954
+ "additionalProperties": false
89955
+ },
89956
+ {
89957
+ "type": "object",
89958
+ "properties": {
89959
+ "operation": {
89960
+ "type": "string",
89961
+ "enum": [
89962
+ "create_organization"
89963
+ ],
89964
+ "description": "Create a new organization"
89965
+ },
89966
+ "name": {
89967
+ "type": "string",
89968
+ "minLength": 1,
89969
+ "description": "Organization name"
89970
+ },
89971
+ "slug": {
89972
+ "type": "string",
89973
+ "description": "URL-friendly slug"
89974
+ },
89975
+ "created_by": {
89976
+ "type": "string",
89977
+ "description": "User ID of the organization creator"
89978
+ },
89979
+ "public_metadata": {
89980
+ "type": "object",
89981
+ "additionalProperties": {},
89982
+ "description": "Public metadata for the organization"
89983
+ },
89984
+ "private_metadata": {
89985
+ "type": "object",
89986
+ "additionalProperties": {},
89987
+ "description": "Private metadata for the organization"
89988
+ },
89989
+ "max_allowed_memberships": {
89990
+ "type": "integer",
89991
+ "description": "Maximum number of members allowed"
89992
+ },
89993
+ "credentials": {
89994
+ "type": "object",
89995
+ "additionalProperties": {
89996
+ "type": "string"
89997
+ },
89998
+ "description": "Object mapping credential types to values (injected at runtime)"
89999
+ }
90000
+ },
90001
+ "required": [
90002
+ "operation",
90003
+ "name"
90004
+ ],
90005
+ "additionalProperties": false
90006
+ },
90007
+ {
90008
+ "type": "object",
90009
+ "properties": {
90010
+ "operation": {
90011
+ "type": "string",
90012
+ "enum": [
90013
+ "update_organization"
90014
+ ],
90015
+ "description": "Update an existing organization"
90016
+ },
90017
+ "organization_id": {
90018
+ "type": "string",
90019
+ "minLength": 1,
90020
+ "description": "Organization ID or slug to update"
90021
+ },
90022
+ "name": {
90023
+ "type": "string",
90024
+ "description": "Updated organization name"
90025
+ },
90026
+ "slug": {
90027
+ "type": "string",
90028
+ "description": "Updated slug"
90029
+ },
90030
+ "public_metadata": {
90031
+ "type": "object",
90032
+ "additionalProperties": {},
90033
+ "description": "Updated public metadata"
90034
+ },
90035
+ "private_metadata": {
90036
+ "type": "object",
90037
+ "additionalProperties": {},
90038
+ "description": "Updated private metadata"
90039
+ },
90040
+ "max_allowed_memberships": {
90041
+ "type": "integer",
90042
+ "description": "Updated max allowed memberships"
90043
+ },
90044
+ "credentials": {
90045
+ "type": "object",
90046
+ "additionalProperties": {
90047
+ "type": "string"
90048
+ },
90049
+ "description": "Object mapping credential types to values (injected at runtime)"
90050
+ }
90051
+ },
90052
+ "required": [
90053
+ "operation",
90054
+ "organization_id"
90055
+ ],
90056
+ "additionalProperties": false
90057
+ },
90058
+ {
90059
+ "type": "object",
90060
+ "properties": {
90061
+ "operation": {
90062
+ "type": "string",
90063
+ "enum": [
90064
+ "delete_organization"
90065
+ ],
90066
+ "description": "Delete an organization by ID or slug"
90067
+ },
90068
+ "organization_id": {
90069
+ "type": "string",
90070
+ "minLength": 1,
90071
+ "description": "Organization ID or slug to delete"
90072
+ },
90073
+ "credentials": {
90074
+ "type": "object",
90075
+ "additionalProperties": {
90076
+ "type": "string"
90077
+ },
90078
+ "description": "Object mapping credential types to values (injected at runtime)"
90079
+ }
90080
+ },
90081
+ "required": [
90082
+ "operation",
90083
+ "organization_id"
90084
+ ],
90085
+ "additionalProperties": false
90086
+ },
90087
+ {
90088
+ "type": "object",
90089
+ "properties": {
90090
+ "operation": {
90091
+ "type": "string",
90092
+ "enum": [
90093
+ "list_organization_memberships"
90094
+ ],
90095
+ "description": "List memberships for an organization"
90096
+ },
90097
+ "organization_id": {
90098
+ "type": "string",
90099
+ "minLength": 1,
90100
+ "description": "Organization ID to list memberships for"
90101
+ },
90102
+ "limit": {
90103
+ "type": "integer",
90104
+ "minimum": 1,
90105
+ "maximum": 500,
90106
+ "default": 10,
90107
+ "description": "Maximum number of memberships to return"
90108
+ },
90109
+ "offset": {
90110
+ "type": "integer",
90111
+ "minimum": 0,
90112
+ "default": 0,
90113
+ "description": "Number of memberships to skip for pagination"
90114
+ },
90115
+ "credentials": {
90116
+ "type": "object",
90117
+ "additionalProperties": {
90118
+ "type": "string"
90119
+ },
90120
+ "description": "Object mapping credential types to values (injected at runtime)"
90121
+ }
90122
+ },
90123
+ "required": [
90124
+ "operation",
90125
+ "organization_id"
90126
+ ],
90127
+ "additionalProperties": false
90128
+ },
90129
+ {
90130
+ "type": "object",
90131
+ "properties": {
90132
+ "operation": {
90133
+ "type": "string",
90134
+ "enum": [
90135
+ "list_invitations"
90136
+ ],
90137
+ "description": "List all pending invitations"
90138
+ },
90139
+ "limit": {
90140
+ "type": "integer",
90141
+ "minimum": 1,
90142
+ "maximum": 500,
90143
+ "default": 10,
90144
+ "description": "Maximum number of invitations to return"
90145
+ },
90146
+ "offset": {
90147
+ "type": "integer",
90148
+ "minimum": 0,
90149
+ "default": 0,
90150
+ "description": "Number of invitations to skip for pagination"
90151
+ },
90152
+ "credentials": {
90153
+ "type": "object",
90154
+ "additionalProperties": {
90155
+ "type": "string"
90156
+ },
90157
+ "description": "Object mapping credential types to values (injected at runtime)"
90158
+ }
90159
+ },
90160
+ "required": [
90161
+ "operation"
90162
+ ],
90163
+ "additionalProperties": false
90164
+ },
90165
+ {
90166
+ "type": "object",
90167
+ "properties": {
90168
+ "operation": {
90169
+ "type": "string",
90170
+ "enum": [
90171
+ "create_invitation"
90172
+ ],
90173
+ "description": "Create an invitation to sign up"
90174
+ },
90175
+ "email_address": {
90176
+ "type": "string",
90177
+ "format": "email",
90178
+ "description": "Email address to invite"
90179
+ },
90180
+ "redirect_url": {
90181
+ "type": "string",
90182
+ "format": "uri",
90183
+ "description": "URL to redirect to after the invitation is accepted"
90184
+ },
90185
+ "public_metadata": {
90186
+ "type": "object",
90187
+ "additionalProperties": {},
90188
+ "description": "Public metadata for the invitation"
90189
+ },
90190
+ "credentials": {
90191
+ "type": "object",
90192
+ "additionalProperties": {
90193
+ "type": "string"
90194
+ },
90195
+ "description": "Object mapping credential types to values (injected at runtime)"
90196
+ }
90197
+ },
90198
+ "required": [
90199
+ "operation",
90200
+ "email_address"
90201
+ ],
90202
+ "additionalProperties": false
90203
+ },
90204
+ {
90205
+ "type": "object",
90206
+ "properties": {
90207
+ "operation": {
90208
+ "type": "string",
90209
+ "enum": [
90210
+ "revoke_invitation"
90211
+ ],
90212
+ "description": "Revoke a pending invitation"
90213
+ },
90214
+ "invitation_id": {
90215
+ "type": "string",
90216
+ "minLength": 1,
90217
+ "description": "The invitation ID to revoke (e.g. \"inv_abc123\")"
90218
+ },
90219
+ "credentials": {
90220
+ "type": "object",
90221
+ "additionalProperties": {
90222
+ "type": "string"
90223
+ },
90224
+ "description": "Object mapping credential types to values (injected at runtime)"
90225
+ }
90226
+ },
90227
+ "required": [
90228
+ "operation",
90229
+ "invitation_id"
90230
+ ],
90231
+ "additionalProperties": false
90232
+ },
90233
+ {
90234
+ "type": "object",
90235
+ "properties": {
90236
+ "operation": {
90237
+ "type": "string",
90238
+ "enum": [
90239
+ "list_sessions"
90240
+ ],
90241
+ "description": "List sessions for a user"
90242
+ },
90243
+ "user_id": {
90244
+ "type": "string",
90245
+ "minLength": 1,
90246
+ "description": "User ID to list sessions for (required by Clerk API)"
90247
+ },
90248
+ "status": {
90249
+ "type": "string",
90250
+ "enum": [
90251
+ "active",
90252
+ "ended",
90253
+ "expired",
90254
+ "removed",
90255
+ "replaced",
90256
+ "revoked",
90257
+ "abandoned"
90258
+ ],
90259
+ "description": "Filter by session status"
90260
+ },
90261
+ "limit": {
90262
+ "type": "integer",
90263
+ "minimum": 1,
90264
+ "maximum": 500,
90265
+ "default": 10,
90266
+ "description": "Maximum number of sessions to return"
90267
+ },
90268
+ "offset": {
90269
+ "type": "integer",
90270
+ "minimum": 0,
90271
+ "default": 0,
90272
+ "description": "Number of sessions to skip for pagination"
90273
+ },
90274
+ "credentials": {
90275
+ "type": "object",
90276
+ "additionalProperties": {
90277
+ "type": "string"
90278
+ },
90279
+ "description": "Object mapping credential types to values (injected at runtime)"
90280
+ }
90281
+ },
90282
+ "required": [
90283
+ "operation",
90284
+ "user_id"
90285
+ ],
90286
+ "additionalProperties": false
90287
+ },
90288
+ {
90289
+ "type": "object",
90290
+ "properties": {
90291
+ "operation": {
90292
+ "type": "string",
90293
+ "enum": [
90294
+ "revoke_session"
90295
+ ],
90296
+ "description": "Revoke an active session"
90297
+ },
90298
+ "session_id": {
90299
+ "type": "string",
90300
+ "minLength": 1,
90301
+ "description": "The session ID to revoke"
90302
+ },
90303
+ "credentials": {
90304
+ "type": "object",
90305
+ "additionalProperties": {
90306
+ "type": "string"
90307
+ },
90308
+ "description": "Object mapping credential types to values (injected at runtime)"
90309
+ }
90310
+ },
90311
+ "required": [
90312
+ "operation",
90313
+ "session_id"
90314
+ ],
90315
+ "additionalProperties": false
90316
+ },
90317
+ {
90318
+ "type": "object",
90319
+ "properties": {
90320
+ "operation": {
90321
+ "type": "string",
90322
+ "enum": [
90323
+ "get_user_subscription"
90324
+ ],
90325
+ "description": "Get a user's billing subscription status"
90326
+ },
90327
+ "user_id": {
90328
+ "type": "string",
90329
+ "minLength": 1,
90330
+ "description": "The user ID to get subscription info for"
90331
+ },
90332
+ "credentials": {
90333
+ "type": "object",
90334
+ "additionalProperties": {
90335
+ "type": "string"
90336
+ },
90337
+ "description": "Object mapping credential types to values (injected at runtime)"
90338
+ }
90339
+ },
90340
+ "required": [
90341
+ "operation",
90342
+ "user_id"
90343
+ ],
90344
+ "additionalProperties": false
90345
+ },
90346
+ {
90347
+ "type": "object",
90348
+ "properties": {
90349
+ "operation": {
90350
+ "type": "string",
90351
+ "enum": [
90352
+ "get_organization_subscription"
90353
+ ],
90354
+ "description": "Get an organization's billing subscription status"
90355
+ },
90356
+ "organization_id": {
90357
+ "type": "string",
90358
+ "minLength": 1,
90359
+ "description": "The organization ID to get subscription info for"
90360
+ },
90361
+ "credentials": {
90362
+ "type": "object",
90363
+ "additionalProperties": {
90364
+ "type": "string"
90365
+ },
90366
+ "description": "Object mapping credential types to values (injected at runtime)"
90367
+ }
90368
+ },
90369
+ "required": [
90370
+ "operation",
90371
+ "organization_id"
90372
+ ],
90373
+ "additionalProperties": false
90374
+ }
90375
+ ]
90376
+ },
90377
+ "outputJsonSchema": {
90378
+ "anyOf": [
90379
+ {
90380
+ "type": "object",
90381
+ "properties": {
90382
+ "operation": {
90383
+ "type": "string",
90384
+ "enum": [
90385
+ "list_users"
90386
+ ]
90387
+ },
90388
+ "users": {
90389
+ "type": "array",
90390
+ "items": {
90391
+ "type": "object",
90392
+ "additionalProperties": {}
90393
+ }
90394
+ },
90395
+ "total_count": {
90396
+ "type": "number"
90397
+ },
90398
+ "success": {
90399
+ "type": "boolean"
90400
+ },
90401
+ "error": {
90402
+ "type": "string"
90403
+ }
90404
+ },
90405
+ "required": [
90406
+ "operation",
90407
+ "success",
90408
+ "error"
90409
+ ],
90410
+ "additionalProperties": false
90411
+ },
90412
+ {
90413
+ "type": "object",
90414
+ "properties": {
90415
+ "operation": {
90416
+ "type": "string",
90417
+ "enum": [
90418
+ "get_user"
90419
+ ]
90420
+ },
90421
+ "user": {
90422
+ "type": "object",
90423
+ "additionalProperties": {}
90424
+ },
90425
+ "success": {
90426
+ "type": "boolean"
90427
+ },
90428
+ "error": {
90429
+ "type": "string"
90430
+ }
90431
+ },
90432
+ "required": [
90433
+ "operation",
90434
+ "success",
90435
+ "error"
90436
+ ],
90437
+ "additionalProperties": false
90438
+ },
90439
+ {
90440
+ "type": "object",
90441
+ "properties": {
90442
+ "operation": {
90443
+ "type": "string",
90444
+ "enum": [
90445
+ "create_user"
90446
+ ]
90447
+ },
90448
+ "user": {
90449
+ "type": "object",
90450
+ "additionalProperties": {}
90451
+ },
90452
+ "success": {
90453
+ "type": "boolean"
90454
+ },
90455
+ "error": {
90456
+ "type": "string"
90457
+ }
90458
+ },
90459
+ "required": [
90460
+ "operation",
90461
+ "success",
90462
+ "error"
90463
+ ],
90464
+ "additionalProperties": false
90465
+ },
90466
+ {
90467
+ "type": "object",
90468
+ "properties": {
90469
+ "operation": {
90470
+ "type": "string",
90471
+ "enum": [
90472
+ "update_user"
90473
+ ]
90474
+ },
90475
+ "user": {
90476
+ "type": "object",
90477
+ "additionalProperties": {}
90478
+ },
90479
+ "success": {
90480
+ "type": "boolean"
90481
+ },
90482
+ "error": {
90483
+ "type": "string"
90484
+ }
90485
+ },
90486
+ "required": [
90487
+ "operation",
90488
+ "success",
90489
+ "error"
90490
+ ],
90491
+ "additionalProperties": false
90492
+ },
90493
+ {
90494
+ "type": "object",
90495
+ "properties": {
90496
+ "operation": {
90497
+ "type": "string",
90498
+ "enum": [
90499
+ "delete_user"
90500
+ ]
90501
+ },
90502
+ "success": {
90503
+ "type": "boolean"
90504
+ },
90505
+ "error": {
90506
+ "type": "string"
90507
+ }
90508
+ },
90509
+ "required": [
90510
+ "operation",
90511
+ "success",
90512
+ "error"
90513
+ ],
90514
+ "additionalProperties": false
90515
+ },
90516
+ {
90517
+ "type": "object",
90518
+ "properties": {
90519
+ "operation": {
90520
+ "type": "string",
90521
+ "enum": [
90522
+ "ban_user"
90523
+ ]
90524
+ },
90525
+ "user": {
90526
+ "type": "object",
90527
+ "additionalProperties": {}
90528
+ },
90529
+ "success": {
90530
+ "type": "boolean"
90531
+ },
90532
+ "error": {
90533
+ "type": "string"
90534
+ }
90535
+ },
90536
+ "required": [
90537
+ "operation",
90538
+ "success",
90539
+ "error"
90540
+ ],
90541
+ "additionalProperties": false
90542
+ },
90543
+ {
90544
+ "type": "object",
90545
+ "properties": {
90546
+ "operation": {
90547
+ "type": "string",
90548
+ "enum": [
90549
+ "unban_user"
90550
+ ]
90551
+ },
90552
+ "user": {
90553
+ "type": "object",
90554
+ "additionalProperties": {}
90555
+ },
90556
+ "success": {
90557
+ "type": "boolean"
90558
+ },
90559
+ "error": {
90560
+ "type": "string"
90561
+ }
90562
+ },
90563
+ "required": [
90564
+ "operation",
90565
+ "success",
90566
+ "error"
90567
+ ],
90568
+ "additionalProperties": false
90569
+ },
90570
+ {
90571
+ "type": "object",
90572
+ "properties": {
90573
+ "operation": {
90574
+ "type": "string",
90575
+ "enum": [
90576
+ "list_organizations"
90577
+ ]
90578
+ },
90579
+ "organizations": {
90580
+ "type": "array",
90581
+ "items": {
90582
+ "type": "object",
90583
+ "additionalProperties": {}
90584
+ }
90585
+ },
90586
+ "total_count": {
90587
+ "type": "number"
90588
+ },
90589
+ "success": {
90590
+ "type": "boolean"
90591
+ },
90592
+ "error": {
90593
+ "type": "string"
90594
+ }
90595
+ },
90596
+ "required": [
90597
+ "operation",
90598
+ "success",
90599
+ "error"
90600
+ ],
90601
+ "additionalProperties": false
90602
+ },
90603
+ {
90604
+ "type": "object",
90605
+ "properties": {
90606
+ "operation": {
90607
+ "type": "string",
90608
+ "enum": [
90609
+ "get_organization"
90610
+ ]
90611
+ },
90612
+ "organization": {
90613
+ "type": "object",
90614
+ "additionalProperties": {}
90615
+ },
90616
+ "success": {
90617
+ "type": "boolean"
90618
+ },
90619
+ "error": {
90620
+ "type": "string"
90621
+ }
90622
+ },
90623
+ "required": [
90624
+ "operation",
90625
+ "success",
90626
+ "error"
90627
+ ],
90628
+ "additionalProperties": false
90629
+ },
90630
+ {
90631
+ "type": "object",
90632
+ "properties": {
90633
+ "operation": {
90634
+ "type": "string",
90635
+ "enum": [
90636
+ "create_organization"
90637
+ ]
90638
+ },
90639
+ "organization": {
90640
+ "type": "object",
90641
+ "additionalProperties": {}
90642
+ },
90643
+ "success": {
90644
+ "type": "boolean"
90645
+ },
90646
+ "error": {
90647
+ "type": "string"
90648
+ }
90649
+ },
90650
+ "required": [
90651
+ "operation",
90652
+ "success",
90653
+ "error"
90654
+ ],
90655
+ "additionalProperties": false
90656
+ },
90657
+ {
90658
+ "type": "object",
90659
+ "properties": {
90660
+ "operation": {
90661
+ "type": "string",
90662
+ "enum": [
90663
+ "update_organization"
90664
+ ]
90665
+ },
90666
+ "organization": {
90667
+ "type": "object",
90668
+ "additionalProperties": {}
90669
+ },
90670
+ "success": {
90671
+ "type": "boolean"
90672
+ },
90673
+ "error": {
90674
+ "type": "string"
90675
+ }
90676
+ },
90677
+ "required": [
90678
+ "operation",
90679
+ "success",
90680
+ "error"
90681
+ ],
90682
+ "additionalProperties": false
90683
+ },
90684
+ {
90685
+ "type": "object",
90686
+ "properties": {
90687
+ "operation": {
90688
+ "type": "string",
90689
+ "enum": [
90690
+ "delete_organization"
90691
+ ]
90692
+ },
90693
+ "success": {
90694
+ "type": "boolean"
90695
+ },
90696
+ "error": {
90697
+ "type": "string"
90698
+ }
90699
+ },
90700
+ "required": [
90701
+ "operation",
90702
+ "success",
90703
+ "error"
90704
+ ],
90705
+ "additionalProperties": false
90706
+ },
90707
+ {
90708
+ "type": "object",
90709
+ "properties": {
90710
+ "operation": {
90711
+ "type": "string",
90712
+ "enum": [
90713
+ "list_organization_memberships"
90714
+ ]
90715
+ },
90716
+ "memberships": {
90717
+ "type": "array",
90718
+ "items": {
90719
+ "type": "object",
90720
+ "additionalProperties": {}
90721
+ }
90722
+ },
90723
+ "total_count": {
90724
+ "type": "number"
90725
+ },
90726
+ "success": {
90727
+ "type": "boolean"
90728
+ },
90729
+ "error": {
90730
+ "type": "string"
90731
+ }
90732
+ },
90733
+ "required": [
90734
+ "operation",
90735
+ "success",
90736
+ "error"
90737
+ ],
90738
+ "additionalProperties": false
90739
+ },
90740
+ {
90741
+ "type": "object",
90742
+ "properties": {
90743
+ "operation": {
90744
+ "type": "string",
90745
+ "enum": [
90746
+ "list_invitations"
90747
+ ]
90748
+ },
90749
+ "invitations": {
90750
+ "type": "array",
90751
+ "items": {
90752
+ "type": "object",
90753
+ "additionalProperties": {}
90754
+ }
90755
+ },
90756
+ "total_count": {
90757
+ "type": "number"
90758
+ },
90759
+ "success": {
90760
+ "type": "boolean"
90761
+ },
90762
+ "error": {
90763
+ "type": "string"
90764
+ }
90765
+ },
90766
+ "required": [
90767
+ "operation",
90768
+ "success",
90769
+ "error"
90770
+ ],
90771
+ "additionalProperties": false
90772
+ },
90773
+ {
90774
+ "type": "object",
90775
+ "properties": {
90776
+ "operation": {
90777
+ "type": "string",
90778
+ "enum": [
90779
+ "create_invitation"
90780
+ ]
90781
+ },
90782
+ "invitation": {
90783
+ "type": "object",
90784
+ "additionalProperties": {}
90785
+ },
90786
+ "success": {
90787
+ "type": "boolean"
90788
+ },
90789
+ "error": {
90790
+ "type": "string"
90791
+ }
90792
+ },
90793
+ "required": [
90794
+ "operation",
90795
+ "success",
90796
+ "error"
90797
+ ],
90798
+ "additionalProperties": false
90799
+ },
90800
+ {
90801
+ "type": "object",
90802
+ "properties": {
90803
+ "operation": {
90804
+ "type": "string",
90805
+ "enum": [
90806
+ "revoke_invitation"
90807
+ ]
90808
+ },
90809
+ "success": {
90810
+ "type": "boolean"
90811
+ },
90812
+ "error": {
90813
+ "type": "string"
90814
+ }
90815
+ },
90816
+ "required": [
90817
+ "operation",
90818
+ "success",
90819
+ "error"
90820
+ ],
90821
+ "additionalProperties": false
90822
+ },
90823
+ {
90824
+ "type": "object",
90825
+ "properties": {
90826
+ "operation": {
90827
+ "type": "string",
90828
+ "enum": [
90829
+ "list_sessions"
90830
+ ]
90831
+ },
90832
+ "sessions": {
90833
+ "type": "array",
90834
+ "items": {
90835
+ "type": "object",
90836
+ "additionalProperties": {}
90837
+ }
90838
+ },
90839
+ "total_count": {
90840
+ "type": "number"
90841
+ },
90842
+ "success": {
90843
+ "type": "boolean"
90844
+ },
90845
+ "error": {
90846
+ "type": "string"
90847
+ }
90848
+ },
90849
+ "required": [
90850
+ "operation",
90851
+ "success",
90852
+ "error"
90853
+ ],
90854
+ "additionalProperties": false
90855
+ },
90856
+ {
90857
+ "type": "object",
90858
+ "properties": {
90859
+ "operation": {
90860
+ "type": "string",
90861
+ "enum": [
90862
+ "revoke_session"
90863
+ ]
90864
+ },
90865
+ "success": {
90866
+ "type": "boolean"
90867
+ },
90868
+ "error": {
90869
+ "type": "string"
90870
+ }
90871
+ },
90872
+ "required": [
90873
+ "operation",
90874
+ "success",
90875
+ "error"
90876
+ ],
90877
+ "additionalProperties": false
90878
+ },
90879
+ {
90880
+ "type": "object",
90881
+ "properties": {
90882
+ "operation": {
90883
+ "type": "string",
90884
+ "enum": [
90885
+ "get_user_subscription"
90886
+ ]
90887
+ },
90888
+ "subscription": {
90889
+ "type": "object",
90890
+ "additionalProperties": {}
90891
+ },
90892
+ "success": {
90893
+ "type": "boolean"
90894
+ },
90895
+ "error": {
90896
+ "type": "string"
90897
+ }
90898
+ },
90899
+ "required": [
90900
+ "operation",
90901
+ "success",
90902
+ "error"
90903
+ ],
90904
+ "additionalProperties": false
90905
+ },
90906
+ {
90907
+ "type": "object",
90908
+ "properties": {
90909
+ "operation": {
90910
+ "type": "string",
90911
+ "enum": [
90912
+ "get_organization_subscription"
90913
+ ]
90914
+ },
90915
+ "subscription": {
90916
+ "type": "object",
90917
+ "additionalProperties": {}
90918
+ },
90919
+ "success": {
90920
+ "type": "boolean"
90921
+ },
90922
+ "error": {
90923
+ "type": "string"
90924
+ }
90925
+ },
90926
+ "required": [
90927
+ "operation",
90928
+ "success",
90929
+ "error"
90930
+ ],
90931
+ "additionalProperties": false
90932
+ }
90933
+ ]
90934
+ },
90935
+ "usageExample": "// List Users example\nconst clerk_list_users = new ClerkBubble({\n operation: \"list_users\", // List users with optional filtering and pagination\n limit: 10 // default, // Maximum number of users to return (1-500)\n offset: 0 // default, // Number of users to skip for pagination\n order_by: \"example string\", // Sort field (e.g. \"-created_at\" for newest first, \"+created_at\" for oldest)\n query: \"example string\", // Search query across first name, last name, and email\n email_address: [\"example string\"], // Filter by specific email addresses\n});\n\nconst result = await clerk_list_users.action();\n// outputSchema for result.data when operation === 'list_users':\n// {\n// operation: \"list_users\",\n// users: Record<string, unknown>[] | undefined,\n// total_count: number | undefined,\n// success: boolean,\n// error: string\n// }\n\n\n// Get User example\nconst clerk_get_user = new ClerkBubble({\n operation: \"get_user\", // Get a single user by their ID\n user_id: \"example string\", // The Clerk user ID (e.g. \"user_abc123\")\n});\n\nconst result = await clerk_get_user.action();\n// outputSchema for result.data when operation === 'get_user':\n// {\n// operation: \"get_user\",\n// user: Record<string, unknown> | undefined,\n// success: boolean,\n// error: string\n// }\n\n\n// Create User example\nconst clerk_create_user = new ClerkBubble({\n operation: \"create_user\", // Create a new user in Clerk\n email_address: [\"example string\"], // Email addresses for the new user\n first_name: \"example string\", // First name\n last_name: \"example string\", // Last name\n username: \"example string\", // Username\n password: \"example string\", // Password for the user\n public_metadata: {}, // Public metadata visible to frontend and backend\n private_metadata: {}, // Private metadata visible only to the backend\n});\n\nconst result = await clerk_create_user.action();\n// outputSchema for result.data when operation === 'create_user':\n// {\n// operation: \"create_user\",\n// user: Record<string, unknown> | undefined,\n// success: boolean,\n// error: string\n// }\n\n\n// Update User example\nconst clerk_update_user = new ClerkBubble({\n operation: \"update_user\", // Update an existing user\n user_id: \"example string\", // The Clerk user ID to update\n first_name: \"example string\", // Updated first name\n last_name: \"example string\", // Updated last name\n username: \"example string\", // Updated username\n public_metadata: {}, // Updated public metadata\n private_metadata: {}, // Updated private metadata\n});\n\nconst result = await clerk_update_user.action();\n// outputSchema for result.data when operation === 'update_user':\n// {\n// operation: \"update_user\",\n// user: Record<string, unknown> | undefined,\n// success: boolean,\n// error: string\n// }\n\n\n// Delete User example\nconst clerk_delete_user = new ClerkBubble({\n operation: \"delete_user\", // Delete a user by ID\n user_id: \"example string\", // The Clerk user ID to delete\n});\n\nconst result = await clerk_delete_user.action();\n// outputSchema for result.data when operation === 'delete_user':\n// {\n// operation: \"delete_user\",\n// success: boolean,\n// error: string\n// }\n\n\n// Ban User example\nconst clerk_ban_user = new ClerkBubble({\n operation: \"ban_user\", // Ban a user, preventing them from signing in\n user_id: \"example string\", // The Clerk user ID to ban\n});\n\nconst result = await clerk_ban_user.action();\n// outputSchema for result.data when operation === 'ban_user':\n// {\n// operation: \"ban_user\",\n// user: Record<string, unknown> | undefined,\n// success: boolean,\n// error: string\n// }\n\n\n// Unban User example\nconst clerk_unban_user = new ClerkBubble({\n operation: \"unban_user\", // Unban a previously banned user\n user_id: \"example string\", // The Clerk user ID to unban\n});\n\nconst result = await clerk_unban_user.action();\n// outputSchema for result.data when operation === 'unban_user':\n// {\n// operation: \"unban_user\",\n// user: Record<string, unknown> | undefined,\n// success: boolean,\n// error: string\n// }\n\n\n// List Organizations example\nconst clerk_list_organizations = new ClerkBubble({\n operation: \"list_organizations\", // List all organizations\n limit: 10 // default, // Maximum number of organizations to return\n offset: 0 // default, // Number of organizations to skip for pagination\n});\n\nconst result = await clerk_list_organizations.action();\n// outputSchema for result.data when operation === 'list_organizations':\n// {\n// operation: \"list_organizations\",\n// organizations: Record<string, unknown>[] | undefined,\n// total_count: number | undefined,\n// success: boolean,\n// error: string\n// }\n\n\n// Get Organization example\nconst clerk_get_organization = new ClerkBubble({\n operation: \"get_organization\", // Get a single organization by ID or slug\n organization_id: \"example string\", // Organization ID or slug\n});\n\nconst result = await clerk_get_organization.action();\n// outputSchema for result.data when operation === 'get_organization':\n// {\n// operation: \"get_organization\",\n// organization: Record<string, unknown> | undefined,\n// success: boolean,\n// error: string\n// }\n\n\n// Create Organization example\nconst clerk_create_organization = new ClerkBubble({\n operation: \"create_organization\", // Create a new organization\n name: \"example string\", // Organization name\n slug: \"example string\", // URL-friendly slug\n created_by: \"example string\", // User ID of the organization creator\n public_metadata: {}, // Public metadata for the organization\n private_metadata: {}, // Private metadata for the organization\n max_allowed_memberships: 42, // Maximum number of members allowed\n});\n\nconst result = await clerk_create_organization.action();\n// outputSchema for result.data when operation === 'create_organization':\n// {\n// operation: \"create_organization\",\n// organization: Record<string, unknown> | undefined,\n// success: boolean,\n// error: string\n// }\n\n\n// Update Organization example\nconst clerk_update_organization = new ClerkBubble({\n operation: \"update_organization\", // Update an existing organization\n organization_id: \"example string\", // Organization ID or slug to update\n name: \"example string\", // Updated organization name\n slug: \"example string\", // Updated slug\n public_metadata: {}, // Updated public metadata\n private_metadata: {}, // Updated private metadata\n max_allowed_memberships: 42, // Updated max allowed memberships\n});\n\nconst result = await clerk_update_organization.action();\n// outputSchema for result.data when operation === 'update_organization':\n// {\n// operation: \"update_organization\",\n// organization: Record<string, unknown> | undefined,\n// success: boolean,\n// error: string\n// }\n\n\n// Delete Organization example\nconst clerk_delete_organization = new ClerkBubble({\n operation: \"delete_organization\", // Delete an organization by ID or slug\n organization_id: \"example string\", // Organization ID or slug to delete\n});\n\nconst result = await clerk_delete_organization.action();\n// outputSchema for result.data when operation === 'delete_organization':\n// {\n// operation: \"delete_organization\",\n// success: boolean,\n// error: string\n// }\n\n\n// List Organization Memberships example\nconst clerk_list_organization_memberships = new ClerkBubble({\n operation: \"list_organization_memberships\", // List memberships for an organization\n organization_id: \"example string\", // Organization ID to list memberships for\n limit: 10 // default, // Maximum number of memberships to return\n offset: 0 // default, // Number of memberships to skip for pagination\n});\n\nconst result = await clerk_list_organization_memberships.action();\n// outputSchema for result.data when operation === 'list_organization_memberships':\n// {\n// operation: \"list_organization_memberships\",\n// memberships: Record<string, unknown>[] | undefined,\n// total_count: number | undefined,\n// success: boolean,\n// error: string\n// }\n\n\n// List Invitations example\nconst clerk_list_invitations = new ClerkBubble({\n operation: \"list_invitations\", // List all pending invitations\n limit: 10 // default, // Maximum number of invitations to return\n offset: 0 // default, // Number of invitations to skip for pagination\n});\n\nconst result = await clerk_list_invitations.action();\n// outputSchema for result.data when operation === 'list_invitations':\n// {\n// operation: \"list_invitations\",\n// invitations: Record<string, unknown>[] | undefined,\n// total_count: number | undefined,\n// success: boolean,\n// error: string\n// }\n\n\n// Create Invitation example\nconst clerk_create_invitation = new ClerkBubble({\n operation: \"create_invitation\", // Create an invitation to sign up\n email_address: \"example string\", // Email address to invite\n redirect_url: \"example string\", // URL to redirect to after the invitation is accepted\n public_metadata: {}, // Public metadata for the invitation\n});\n\nconst result = await clerk_create_invitation.action();\n// outputSchema for result.data when operation === 'create_invitation':\n// {\n// operation: \"create_invitation\",\n// invitation: Record<string, unknown> | undefined,\n// success: boolean,\n// error: string\n// }\n\n\n// Revoke Invitation example\nconst clerk_revoke_invitation = new ClerkBubble({\n operation: \"revoke_invitation\", // Revoke a pending invitation\n invitation_id: \"example string\", // The invitation ID to revoke (e.g. \"inv_abc123\")\n});\n\nconst result = await clerk_revoke_invitation.action();\n// outputSchema for result.data when operation === 'revoke_invitation':\n// {\n// operation: \"revoke_invitation\",\n// success: boolean,\n// error: string\n// }\n\n\n// List Sessions example\nconst clerk_list_sessions = new ClerkBubble({\n operation: \"list_sessions\", // List sessions for a user\n user_id: \"example string\", // User ID to list sessions for (required by Clerk API)\n status: \"active\" // options: \"active\", \"ended\", \"expired\", \"removed\", \"replaced\", \"revoked\", \"abandoned\", // Filter by session status\n limit: 10 // default, // Maximum number of sessions to return\n offset: 0 // default, // Number of sessions to skip for pagination\n});\n\nconst result = await clerk_list_sessions.action();\n// outputSchema for result.data when operation === 'list_sessions':\n// {\n// operation: \"list_sessions\",\n// sessions: Record<string, unknown>[] | undefined,\n// total_count: number | undefined,\n// success: boolean,\n// error: string\n// }\n\n\n// Revoke Session example\nconst clerk_revoke_session = new ClerkBubble({\n operation: \"revoke_session\", // Revoke an active session\n session_id: \"example string\", // The session ID to revoke\n});\n\nconst result = await clerk_revoke_session.action();\n// outputSchema for result.data when operation === 'revoke_session':\n// {\n// operation: \"revoke_session\",\n// success: boolean,\n// error: string\n// }\n\n\n// Get User Subscription example\nconst clerk_get_user_subscription = new ClerkBubble({\n operation: \"get_user_subscription\", // Get a user's billing subscription status\n user_id: \"example string\", // The user ID to get subscription info for\n});\n\nconst result = await clerk_get_user_subscription.action();\n// outputSchema for result.data when operation === 'get_user_subscription':\n// {\n// operation: \"get_user_subscription\",\n// subscription: Record<string, unknown> | undefined,\n// success: boolean,\n// error: string\n// }\n\n\n// Get Organization Subscription example\nconst clerk_get_organization_subscription = new ClerkBubble({\n operation: \"get_organization_subscription\", // Get an organization's billing subscription status\n organization_id: \"example string\", // The organization ID to get subscription info for\n});\n\nconst result = await clerk_get_organization_subscription.action();\n// outputSchema for result.data when operation === 'get_organization_subscription':\n// {\n// operation: \"get_organization_subscription\",\n// subscription: Record<string, unknown> | undefined,\n// success: boolean,\n// error: string\n// }\n\n\n// Always check success status before using data\nif (!result.success) {\n throw new Error(`clerk failed: ${result.error}`);\n}\n\n// Access the actual data\nconst actualData = result.data;\nconsole.log(actualData);",
90936
+ "requiredCredentials": [
90937
+ "CLERK_CRED"
90938
+ ]
89604
90939
  }
89605
90940
  ]
89606
90941
  }