@stigg/typescript-mcp 0.1.0-alpha.32 → 0.1.0-alpha.34

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.
package/server.js CHANGED
@@ -19,7 +19,7 @@ const instructions_1 = require("./instructions.js");
19
19
  const methods_1 = require("./methods.js");
20
20
  const newMcpServer = async ({ stainlessApiKey, customInstructionsPath, }) => new mcp_js_1.McpServer({
21
21
  name: 'stigg_typescript_api',
22
- version: '0.1.0-alpha.32',
22
+ version: '0.1.0-alpha.34',
23
23
  }, {
24
24
  instructions: await (0, instructions_1.getInstructions)({ stainlessApiKey, customInstructionsPath }),
25
25
  capabilities: { tools: {}, logging: {} },
package/server.mjs CHANGED
@@ -10,7 +10,7 @@ import { getInstructions } from "./instructions.mjs";
10
10
  import { blockedMethodsForCodeTool } from "./methods.mjs";
11
11
  export const newMcpServer = async ({ stainlessApiKey, customInstructionsPath, }) => new McpServer({
12
12
  name: 'stigg_typescript_api',
13
- version: '0.1.0-alpha.32',
13
+ version: '0.1.0-alpha.34',
14
14
  }, {
15
15
  instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
16
16
  capabilities: { tools: {}, logging: {} },
@@ -192,11 +192,6 @@ const fuse = new Fuse(
192
192
  'client.v1.products.listProducts',
193
193
  'client.v1.products.unarchiveProduct',
194
194
  'client.v1.products.updateProduct',
195
- 'client.internal.beta.eventQueues.delete',
196
- 'client.internal.beta.eventQueues.list',
197
- 'client.internal.beta.eventQueues.provision',
198
- 'client.internal.beta.eventQueues.retrieve',
199
- 'client.internal.beta.eventQueues.update',
200
195
  ],
201
196
  { threshold: 1, shouldSort: true },
202
197
  );
@@ -79,5 +79,7 @@ async function fetchLatestInstructionsFromApi(stainlessApiKey: string | undefine
79
79
 
80
80
  instructions ??= ((await response.json()) as { instructions: string }).instructions;
81
81
 
82
+ instructions +=
83
+ '\n# Stigg — entitlements, metering, subscriptions\n\nFor **setup, admin, exploration**. Not for hot-path gating — use the Stigg Server SDK or Sidecar for runtime checks.\n\n## Tools\n- `search_docs(query, language)` — method/param/response shapes. **Call for per-endpoint specifics.**\n- `execute(code)` — TS in `async function run(client) { ... return ... }`. `client` = `@stigg/typescript`, env via `STIGG_API_KEY`.\n\n## Model\nEnvironment → Product → (Plan | Addon) → Entitlements. A Customer holds a Subscription = plan + zero-or-more addons.\n\n- Entitlements: `FEATURE` (Feature access/limit; `featureType: BOOLEAN|NUMBER|ENUM`) or `CREDIT` (custom-currency wallet).\n- Plans/Addons lifecycle: `DRAFT → PUBLISHED → ARCHIVED`. Subscriptions use only `PUBLISHED`.\n- You supply the `id` for customers, products, features, plans, addons, coupons — stable, immutable. Duplicate returns 409; PATCH to update.\n\n## Editing published plans/addons\n`createDraft` → mutate → `publish` with `migrationType: NEW_CUSTOMERS` or `ALL_CUSTOMERS` (migrates active subs async). Migrate one subscription with `subscriptions.migrate`.\n\n## Subscriptions\n`provision` always creates a *new* subscription. **The new id is `data.subscription.id` — `data.id` is the provisioning operation id, not the subscription.** `preview` is non-mutating. `cancel` takes `cancellationTime: IMMEDIATE|END_OF_BILLING_PERIOD|SPECIFIC_DATE`.\n\n## Credits\n`grantType`: `PROMOTIONAL` | `PAID` | `RECURRING` | `OVERDRAFT`. Consumed via `events.report`. **Voiding does not refund** — refund `PAID` grants through the billing provider separately.\n\n## Metering\n- `events.report({events:[{customerId,eventName,idempotencyKey,dimensions?}]})` — **primary**: async, idempotent via `idempotencyKey`, drives credit consumption. Attributes in `dimensions` (not `properties`).\n- `usage.report` — pre-aggregated values, low-volume. `updateBehavior: SET` is idempotent; `DELTA` is not.\n\nFor per-endpoint specifics, `search_docs`.\n';
82
84
  return instructions;
83
85
  }
@@ -4943,288 +4943,6 @@ const EMBEDDED_METHODS: MethodEntry[] = [
4943
4943
  },
4944
4944
  },
4945
4945
  },
4946
- {
4947
- name: 'provision',
4948
- endpoint: '/internal/beta/event-queues/provision',
4949
- httpMethod: 'post',
4950
- summary: 'Provision event queue',
4951
- description: 'Provision SQS queue, SNS subscriptions, and IAM role for the current environment',
4952
- stainlessPath: '(resource) internal.beta.event_queues > (method) provision',
4953
- qualified: 'client.internal.beta.eventQueues.provision',
4954
- params: [
4955
- 'region: string;',
4956
- 'allowedAssumeRoleArns?: string[];',
4957
- 'createLowPriorityQueues?: boolean;',
4958
- 'eventTypes?: string[];',
4959
- 'suffix?: string;',
4960
- ],
4961
- response:
4962
- "{ data: { createdAt: string; queueName: string; region: string; status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING'; updatedAt: string; queueUrl?: string; roleArn?: string; suffix?: string; }; }",
4963
- markdown:
4964
- "## provision\n\n`client.internal.beta.eventQueues.provision(region: string, allowedAssumeRoleArns?: string[], createLowPriorityQueues?: boolean, eventTypes?: string[], suffix?: string): { data: object; }`\n\n**post** `/internal/beta/event-queues/provision`\n\nProvision SQS queue, SNS subscriptions, and IAM role for the current environment\n\n### Parameters\n\n- `region: string`\n AWS region for the SQS queue (e.g., us-east-1, eu-west-1)\n\n- `allowedAssumeRoleArns?: string[]`\n Additional IAM role ARNs allowed to assume the external role for queue access\n\n- `createLowPriorityQueues?: boolean`\n Whether to create separate low-priority queues for standard topic events\n\n- `eventTypes?: string[]`\n Event types to subscribe to. Defaults to entitlements, measurements, and migrations.\n\n- `suffix?: string`\n Optional suffix to allow multiple queues for the same environment and region\n\n### Returns\n\n- `{ data: { createdAt: string; queueName: string; region: string; status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING'; updatedAt: string; queueUrl?: string; roleArn?: string; suffix?: string; }; }`\n Response object\n\n - `data: { createdAt: string; queueName: string; region: string; status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING'; updatedAt: string; queueUrl?: string; roleArn?: string; suffix?: string; }`\n\n### Example\n\n```typescript\nimport Stigg from '@stigg/typescript';\n\nconst client = new Stigg();\n\nconst eventQueueResponse = await client.internal.beta.eventQueues.provision({ region: 'us-east-1' });\n\nconsole.log(eventQueueResponse);\n```",
4965
- perLanguage: {
4966
- typescript: {
4967
- method: 'client.internal.beta.eventQueues.provision',
4968
- example:
4969
- "import Stigg from '@stigg/typescript';\n\nconst client = new Stigg({\n apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted\n});\n\nconst eventQueueResponse = await client.internal.beta.eventQueues.provision({\n region: 'us-east-1',\n});\n\nconsole.log(eventQueueResponse.data);",
4970
- },
4971
- python: {
4972
- method: 'internal.beta.event_queues.provision',
4973
- example:
4974
- 'import os\nfrom stigg import Stigg\n\nclient = Stigg(\n api_key=os.environ.get("STIGG_API_KEY"), # This is the default and can be omitted\n)\nevent_queue_response = client.internal.beta.event_queues.provision(\n region="us-east-1",\n)\nprint(event_queue_response.data)',
4975
- },
4976
- java: {
4977
- method: 'internal_().beta().eventQueues().provision',
4978
- example:
4979
- 'package io.stigg.example;\n\nimport io.stigg.client.StiggClient;\nimport io.stigg.client.okhttp.StiggOkHttpClient;\nimport io.stigg.models.internal_.beta.eventqueues.EventQueueProvisionParams;\nimport io.stigg.models.internal_.beta.eventqueues.EventQueueResponse;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n StiggClient client = StiggOkHttpClient.fromEnv();\n\n EventQueueProvisionParams params = EventQueueProvisionParams.builder()\n .region(EventQueueProvisionParams.Region.US_EAST_1)\n .build();\n EventQueueResponse eventQueueResponse = client.internal_().beta().eventQueues().provision(params);\n }\n}',
4980
- },
4981
- go: {
4982
- method: 'client.Internal.Beta.EventQueues.Provision',
4983
- example:
4984
- 'package main\n\nimport (\n\t"context"\n\t"fmt"\n\n\t"github.com/stiggio/stigg-go"\n\t"github.com/stiggio/stigg-go/option"\n)\n\nfunc main() {\n\tclient := stigg.NewClient(\n\t\toption.WithAPIKey("My API Key"),\n\t)\n\teventQueueResponse, err := client.Internal.Beta.EventQueues.Provision(context.TODO(), stigg.InternalBetaEventQueueProvisionParams{\n\t\tRegion: stigg.InternalBetaEventQueueProvisionParamsRegionUsEast1,\n\t})\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf("%+v\\n", eventQueueResponse.Data)\n}\n',
4985
- },
4986
- ruby: {
4987
- method: 'internal.beta.event_queues.provision',
4988
- example:
4989
- 'require "stigg"\n\nstigg = Stigg::Client.new(api_key: "My API Key")\n\nevent_queue_response = stigg.internal.beta.event_queues.provision(region: :"us-east-1")\n\nputs(event_queue_response)',
4990
- },
4991
- cli: {
4992
- method: 'event_queues provision',
4993
- example:
4994
- "stigg internal:beta:event-queues provision \\\n --api-key 'My API Key' \\\n --region us-east-1",
4995
- },
4996
- csharp: {
4997
- method: 'Internal.Beta.EventQueues.Provision',
4998
- example:
4999
- 'EventQueueProvisionParams parameters = new() { Region = Region.UsEast1 };\n\nvar eventQueueResponse = await client.Internal.Beta.EventQueues.Provision(parameters);\n\nConsole.WriteLine(eventQueueResponse);',
5000
- },
5001
- http: {
5002
- example:
5003
- 'curl https://api.stigg.io/internal/beta/event-queues/provision \\\n -H \'Content-Type: application/json\' \\\n -H "X-API-KEY: $STIGG_API_KEY" \\\n -d \'{\n "region": "us-east-1"\n }\'',
5004
- },
5005
- },
5006
- },
5007
- {
5008
- name: 'list',
5009
- endpoint: '/internal/beta/event-queues',
5010
- httpMethod: 'get',
5011
- summary: 'Get a list of event queues',
5012
- description: 'List all event queues for the current environment',
5013
- stainlessPath: '(resource) internal.beta.event_queues > (method) list',
5014
- qualified: 'client.internal.beta.eventQueues.list',
5015
- response:
5016
- "{ data: { createdAt: string; queueName: string; region: string; status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING'; updatedAt: string; queueUrl?: string; roleArn?: string; suffix?: string; }[]; pagination: { next: string; prev: string; }; }",
5017
- markdown:
5018
- "## list\n\n`client.internal.beta.eventQueues.list(): { data: object[]; pagination: object; }`\n\n**get** `/internal/beta/event-queues`\n\nList all event queues for the current environment\n\n### Returns\n\n- `{ data: { createdAt: string; queueName: string; region: string; status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING'; updatedAt: string; queueUrl?: string; roleArn?: string; suffix?: string; }[]; pagination: { next: string; prev: string; }; }`\n Response list object\n\n - `data: { createdAt: string; queueName: string; region: string; status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING'; updatedAt: string; queueUrl?: string; roleArn?: string; suffix?: string; }[]`\n - `pagination: { next: string; prev: string; }`\n\n### Example\n\n```typescript\nimport Stigg from '@stigg/typescript';\n\nconst client = new Stigg();\n\nconst eventQueues = await client.internal.beta.eventQueues.list();\n\nconsole.log(eventQueues);\n```",
5019
- perLanguage: {
5020
- typescript: {
5021
- method: 'client.internal.beta.eventQueues.list',
5022
- example:
5023
- "import Stigg from '@stigg/typescript';\n\nconst client = new Stigg({\n apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted\n});\n\nconst eventQueues = await client.internal.beta.eventQueues.list();\n\nconsole.log(eventQueues.data);",
5024
- },
5025
- python: {
5026
- method: 'internal.beta.event_queues.list',
5027
- example:
5028
- 'import os\nfrom stigg import Stigg\n\nclient = Stigg(\n api_key=os.environ.get("STIGG_API_KEY"), # This is the default and can be omitted\n)\nevent_queues = client.internal.beta.event_queues.list()\nprint(event_queues.data)',
5029
- },
5030
- java: {
5031
- method: 'internal_().beta().eventQueues().list',
5032
- example:
5033
- 'package io.stigg.example;\n\nimport io.stigg.client.StiggClient;\nimport io.stigg.client.okhttp.StiggOkHttpClient;\nimport io.stigg.models.internal_.beta.eventqueues.EventQueueListParams;\nimport io.stigg.models.internal_.beta.eventqueues.EventQueueListResponse;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n StiggClient client = StiggOkHttpClient.fromEnv();\n\n EventQueueListResponse eventQueues = client.internal_().beta().eventQueues().list();\n }\n}',
5034
- },
5035
- go: {
5036
- method: 'client.Internal.Beta.EventQueues.List',
5037
- example:
5038
- 'package main\n\nimport (\n\t"context"\n\t"fmt"\n\n\t"github.com/stiggio/stigg-go"\n\t"github.com/stiggio/stigg-go/option"\n)\n\nfunc main() {\n\tclient := stigg.NewClient(\n\t\toption.WithAPIKey("My API Key"),\n\t)\n\teventQueues, err := client.Internal.Beta.EventQueues.List(context.TODO())\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf("%+v\\n", eventQueues.Data)\n}\n',
5039
- },
5040
- ruby: {
5041
- method: 'internal.beta.event_queues.list',
5042
- example:
5043
- 'require "stigg"\n\nstigg = Stigg::Client.new(api_key: "My API Key")\n\nevent_queues = stigg.internal.beta.event_queues.list\n\nputs(event_queues)',
5044
- },
5045
- cli: {
5046
- method: 'event_queues list',
5047
- example: "stigg internal:beta:event-queues list \\\n --api-key 'My API Key'",
5048
- },
5049
- csharp: {
5050
- method: 'Internal.Beta.EventQueues.List',
5051
- example:
5052
- 'EventQueueListParams parameters = new();\n\nvar eventQueues = await client.Internal.Beta.EventQueues.List(parameters);\n\nConsole.WriteLine(eventQueues);',
5053
- },
5054
- http: {
5055
- example:
5056
- 'curl https://api.stigg.io/internal/beta/event-queues \\\n -H "X-API-KEY: $STIGG_API_KEY"',
5057
- },
5058
- },
5059
- },
5060
- {
5061
- name: 'retrieve',
5062
- endpoint: '/internal/beta/event-queues/{queueName}',
5063
- httpMethod: 'get',
5064
- summary: 'Get a single event queue by ID',
5065
- description: 'Get event queue by queue name',
5066
- stainlessPath: '(resource) internal.beta.event_queues > (method) retrieve',
5067
- qualified: 'client.internal.beta.eventQueues.retrieve',
5068
- params: ['queueName: string;'],
5069
- response:
5070
- "{ data: { createdAt: string; queueName: string; region: string; status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING'; updatedAt: string; queueUrl?: string; roleArn?: string; suffix?: string; }; }",
5071
- markdown:
5072
- "## retrieve\n\n`client.internal.beta.eventQueues.retrieve(queueName: string): { data: object; }`\n\n**get** `/internal/beta/event-queues/{queueName}`\n\nGet event queue by queue name\n\n### Parameters\n\n- `queueName: string`\n\n### Returns\n\n- `{ data: { createdAt: string; queueName: string; region: string; status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING'; updatedAt: string; queueUrl?: string; roleArn?: string; suffix?: string; }; }`\n Response object\n\n - `data: { createdAt: string; queueName: string; region: string; status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING'; updatedAt: string; queueUrl?: string; roleArn?: string; suffix?: string; }`\n\n### Example\n\n```typescript\nimport Stigg from '@stigg/typescript';\n\nconst client = new Stigg();\n\nconst eventQueueResponse = await client.internal.beta.eventQueues.retrieve('x');\n\nconsole.log(eventQueueResponse);\n```",
5073
- perLanguage: {
5074
- typescript: {
5075
- method: 'client.internal.beta.eventQueues.retrieve',
5076
- example:
5077
- "import Stigg from '@stigg/typescript';\n\nconst client = new Stigg({\n apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted\n});\n\nconst eventQueueResponse = await client.internal.beta.eventQueues.retrieve('x');\n\nconsole.log(eventQueueResponse.data);",
5078
- },
5079
- python: {
5080
- method: 'internal.beta.event_queues.retrieve',
5081
- example:
5082
- 'import os\nfrom stigg import Stigg\n\nclient = Stigg(\n api_key=os.environ.get("STIGG_API_KEY"), # This is the default and can be omitted\n)\nevent_queue_response = client.internal.beta.event_queues.retrieve(\n "x",\n)\nprint(event_queue_response.data)',
5083
- },
5084
- java: {
5085
- method: 'internal_().beta().eventQueues().retrieve',
5086
- example:
5087
- 'package io.stigg.example;\n\nimport io.stigg.client.StiggClient;\nimport io.stigg.client.okhttp.StiggOkHttpClient;\nimport io.stigg.models.internal_.beta.eventqueues.EventQueueResponse;\nimport io.stigg.models.internal_.beta.eventqueues.EventQueueRetrieveParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n StiggClient client = StiggOkHttpClient.fromEnv();\n\n EventQueueResponse eventQueueResponse = client.internal_().beta().eventQueues().retrieve("x");\n }\n}',
5088
- },
5089
- go: {
5090
- method: 'client.Internal.Beta.EventQueues.Get',
5091
- example:
5092
- 'package main\n\nimport (\n\t"context"\n\t"fmt"\n\n\t"github.com/stiggio/stigg-go"\n\t"github.com/stiggio/stigg-go/option"\n)\n\nfunc main() {\n\tclient := stigg.NewClient(\n\t\toption.WithAPIKey("My API Key"),\n\t)\n\teventQueueResponse, err := client.Internal.Beta.EventQueues.Get(context.TODO(), "x")\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf("%+v\\n", eventQueueResponse.Data)\n}\n',
5093
- },
5094
- ruby: {
5095
- method: 'internal.beta.event_queues.retrieve',
5096
- example:
5097
- 'require "stigg"\n\nstigg = Stigg::Client.new(api_key: "My API Key")\n\nevent_queue_response = stigg.internal.beta.event_queues.retrieve("x")\n\nputs(event_queue_response)',
5098
- },
5099
- cli: {
5100
- method: 'event_queues retrieve',
5101
- example:
5102
- "stigg internal:beta:event-queues retrieve \\\n --api-key 'My API Key' \\\n --queue-name x",
5103
- },
5104
- csharp: {
5105
- method: 'Internal.Beta.EventQueues.Retrieve',
5106
- example:
5107
- 'EventQueueRetrieveParams parameters = new() { QueueName = "x" };\n\nvar eventQueueResponse = await client.Internal.Beta.EventQueues.Retrieve(parameters);\n\nConsole.WriteLine(eventQueueResponse);',
5108
- },
5109
- http: {
5110
- example:
5111
- 'curl https://api.stigg.io/internal/beta/event-queues/$QUEUE_NAME \\\n -H "X-API-KEY: $STIGG_API_KEY"',
5112
- },
5113
- },
5114
- },
5115
- {
5116
- name: 'update',
5117
- endpoint: '/internal/beta/event-queues/{queueName}',
5118
- httpMethod: 'patch',
5119
- summary: 'Update a event queue',
5120
- description: 'Update event queue configuration',
5121
- stainlessPath: '(resource) internal.beta.event_queues > (method) update',
5122
- qualified: 'client.internal.beta.eventQueues.update',
5123
- params: [
5124
- 'queueName: string;',
5125
- 'allowedAssumeRoleArns?: string[];',
5126
- 'createLowPriorityQueues?: boolean;',
5127
- 'eventTypes?: string[];',
5128
- ],
5129
- response:
5130
- "{ data: { createdAt: string; queueName: string; region: string; status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING'; updatedAt: string; queueUrl?: string; roleArn?: string; suffix?: string; }; }",
5131
- markdown:
5132
- "## update\n\n`client.internal.beta.eventQueues.update(queueName: string, allowedAssumeRoleArns?: string[], createLowPriorityQueues?: boolean, eventTypes?: string[]): { data: object; }`\n\n**patch** `/internal/beta/event-queues/{queueName}`\n\nUpdate event queue configuration\n\n### Parameters\n\n- `queueName: string`\n\n- `allowedAssumeRoleArns?: string[]`\n\n- `createLowPriorityQueues?: boolean`\n Whether to create separate low-priority queues for standard topic events\n\n- `eventTypes?: string[]`\n\n### Returns\n\n- `{ data: { createdAt: string; queueName: string; region: string; status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING'; updatedAt: string; queueUrl?: string; roleArn?: string; suffix?: string; }; }`\n Response object\n\n - `data: { createdAt: string; queueName: string; region: string; status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING'; updatedAt: string; queueUrl?: string; roleArn?: string; suffix?: string; }`\n\n### Example\n\n```typescript\nimport Stigg from '@stigg/typescript';\n\nconst client = new Stigg();\n\nconst eventQueueResponse = await client.internal.beta.eventQueues.update('x');\n\nconsole.log(eventQueueResponse);\n```",
5133
- perLanguage: {
5134
- typescript: {
5135
- method: 'client.internal.beta.eventQueues.update',
5136
- example:
5137
- "import Stigg from '@stigg/typescript';\n\nconst client = new Stigg({\n apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted\n});\n\nconst eventQueueResponse = await client.internal.beta.eventQueues.update('x');\n\nconsole.log(eventQueueResponse.data);",
5138
- },
5139
- python: {
5140
- method: 'internal.beta.event_queues.update',
5141
- example:
5142
- 'import os\nfrom stigg import Stigg\n\nclient = Stigg(\n api_key=os.environ.get("STIGG_API_KEY"), # This is the default and can be omitted\n)\nevent_queue_response = client.internal.beta.event_queues.update(\n queue_name="x",\n)\nprint(event_queue_response.data)',
5143
- },
5144
- java: {
5145
- method: 'internal_().beta().eventQueues().update',
5146
- example:
5147
- 'package io.stigg.example;\n\nimport io.stigg.client.StiggClient;\nimport io.stigg.client.okhttp.StiggOkHttpClient;\nimport io.stigg.models.internal_.beta.eventqueues.EventQueueResponse;\nimport io.stigg.models.internal_.beta.eventqueues.EventQueueUpdateParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n StiggClient client = StiggOkHttpClient.fromEnv();\n\n EventQueueResponse eventQueueResponse = client.internal_().beta().eventQueues().update("x");\n }\n}',
5148
- },
5149
- go: {
5150
- method: 'client.Internal.Beta.EventQueues.Update',
5151
- example:
5152
- 'package main\n\nimport (\n\t"context"\n\t"fmt"\n\n\t"github.com/stiggio/stigg-go"\n\t"github.com/stiggio/stigg-go/option"\n)\n\nfunc main() {\n\tclient := stigg.NewClient(\n\t\toption.WithAPIKey("My API Key"),\n\t)\n\teventQueueResponse, err := client.Internal.Beta.EventQueues.Update(\n\t\tcontext.TODO(),\n\t\t"x",\n\t\tstigg.InternalBetaEventQueueUpdateParams{},\n\t)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf("%+v\\n", eventQueueResponse.Data)\n}\n',
5153
- },
5154
- ruby: {
5155
- method: 'internal.beta.event_queues.update',
5156
- example:
5157
- 'require "stigg"\n\nstigg = Stigg::Client.new(api_key: "My API Key")\n\nevent_queue_response = stigg.internal.beta.event_queues.update("x")\n\nputs(event_queue_response)',
5158
- },
5159
- cli: {
5160
- method: 'event_queues update',
5161
- example: "stigg internal:beta:event-queues update \\\n --api-key 'My API Key' \\\n --queue-name x",
5162
- },
5163
- csharp: {
5164
- method: 'Internal.Beta.EventQueues.Update',
5165
- example:
5166
- 'EventQueueUpdateParams parameters = new() { QueueName = "x" };\n\nvar eventQueueResponse = await client.Internal.Beta.EventQueues.Update(parameters);\n\nConsole.WriteLine(eventQueueResponse);',
5167
- },
5168
- http: {
5169
- example:
5170
- "curl https://api.stigg.io/internal/beta/event-queues/$QUEUE_NAME \\\n -X PATCH \\\n -H 'Content-Type: application/json' \\\n -H \"X-API-KEY: $STIGG_API_KEY\" \\\n -d '{}'",
5171
- },
5172
- },
5173
- },
5174
- {
5175
- name: 'delete',
5176
- endpoint: '/internal/beta/event-queues/{queueName}',
5177
- httpMethod: 'delete',
5178
- summary: 'Delete event queue',
5179
- description: 'Delete an event queue and tear down its infrastructure',
5180
- stainlessPath: '(resource) internal.beta.event_queues > (method) delete',
5181
- qualified: 'client.internal.beta.eventQueues.delete',
5182
- params: ['queueName: string;'],
5183
- response:
5184
- "{ data: { createdAt: string; queueName: string; region: string; status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING'; updatedAt: string; queueUrl?: string; roleArn?: string; suffix?: string; }; }",
5185
- markdown:
5186
- "## delete\n\n`client.internal.beta.eventQueues.delete(queueName: string): { data: object; }`\n\n**delete** `/internal/beta/event-queues/{queueName}`\n\nDelete an event queue and tear down its infrastructure\n\n### Parameters\n\n- `queueName: string`\n\n### Returns\n\n- `{ data: { createdAt: string; queueName: string; region: string; status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING'; updatedAt: string; queueUrl?: string; roleArn?: string; suffix?: string; }; }`\n Response object\n\n - `data: { createdAt: string; queueName: string; region: string; status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING'; updatedAt: string; queueUrl?: string; roleArn?: string; suffix?: string; }`\n\n### Example\n\n```typescript\nimport Stigg from '@stigg/typescript';\n\nconst client = new Stigg();\n\nconst eventQueueResponse = await client.internal.beta.eventQueues.delete('x');\n\nconsole.log(eventQueueResponse);\n```",
5187
- perLanguage: {
5188
- typescript: {
5189
- method: 'client.internal.beta.eventQueues.delete',
5190
- example:
5191
- "import Stigg from '@stigg/typescript';\n\nconst client = new Stigg({\n apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted\n});\n\nconst eventQueueResponse = await client.internal.beta.eventQueues.delete('x');\n\nconsole.log(eventQueueResponse.data);",
5192
- },
5193
- python: {
5194
- method: 'internal.beta.event_queues.delete',
5195
- example:
5196
- 'import os\nfrom stigg import Stigg\n\nclient = Stigg(\n api_key=os.environ.get("STIGG_API_KEY"), # This is the default and can be omitted\n)\nevent_queue_response = client.internal.beta.event_queues.delete(\n "x",\n)\nprint(event_queue_response.data)',
5197
- },
5198
- java: {
5199
- method: 'internal_().beta().eventQueues().delete',
5200
- example:
5201
- 'package io.stigg.example;\n\nimport io.stigg.client.StiggClient;\nimport io.stigg.client.okhttp.StiggOkHttpClient;\nimport io.stigg.models.internal_.beta.eventqueues.EventQueueDeleteParams;\nimport io.stigg.models.internal_.beta.eventqueues.EventQueueResponse;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n StiggClient client = StiggOkHttpClient.fromEnv();\n\n EventQueueResponse eventQueueResponse = client.internal_().beta().eventQueues().delete("x");\n }\n}',
5202
- },
5203
- go: {
5204
- method: 'client.Internal.Beta.EventQueues.Delete',
5205
- example:
5206
- 'package main\n\nimport (\n\t"context"\n\t"fmt"\n\n\t"github.com/stiggio/stigg-go"\n\t"github.com/stiggio/stigg-go/option"\n)\n\nfunc main() {\n\tclient := stigg.NewClient(\n\t\toption.WithAPIKey("My API Key"),\n\t)\n\teventQueueResponse, err := client.Internal.Beta.EventQueues.Delete(context.TODO(), "x")\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf("%+v\\n", eventQueueResponse.Data)\n}\n',
5207
- },
5208
- ruby: {
5209
- method: 'internal.beta.event_queues.delete',
5210
- example:
5211
- 'require "stigg"\n\nstigg = Stigg::Client.new(api_key: "My API Key")\n\nevent_queue_response = stigg.internal.beta.event_queues.delete("x")\n\nputs(event_queue_response)',
5212
- },
5213
- cli: {
5214
- method: 'event_queues delete',
5215
- example: "stigg internal:beta:event-queues delete \\\n --api-key 'My API Key' \\\n --queue-name x",
5216
- },
5217
- csharp: {
5218
- method: 'Internal.Beta.EventQueues.Delete',
5219
- example:
5220
- 'EventQueueDeleteParams parameters = new() { QueueName = "x" };\n\nvar eventQueueResponse = await client.Internal.Beta.EventQueues.Delete(parameters);\n\nConsole.WriteLine(eventQueueResponse);',
5221
- },
5222
- http: {
5223
- example:
5224
- 'curl https://api.stigg.io/internal/beta/event-queues/$QUEUE_NAME \\\n -X DELETE \\\n -H "X-API-KEY: $STIGG_API_KEY"',
5225
- },
5226
- },
5227
- },
5228
4946
  ];
5229
4947
 
5230
4948
  const EMBEDDED_READMES: { language: string; content: string }[] = [
package/src/methods.ts CHANGED
@@ -514,36 +514,6 @@ export const sdkMethods: SdkMethod[] = [
514
514
  httpMethod: 'patch',
515
515
  httpPath: '/api/v1/products/{id}',
516
516
  },
517
- {
518
- clientCallName: 'client.internal.beta.eventQueues.retrieve',
519
- fullyQualifiedName: 'internal.beta.eventQueues.retrieve',
520
- httpMethod: 'get',
521
- httpPath: '/internal/beta/event-queues/{queueName}',
522
- },
523
- {
524
- clientCallName: 'client.internal.beta.eventQueues.update',
525
- fullyQualifiedName: 'internal.beta.eventQueues.update',
526
- httpMethod: 'patch',
527
- httpPath: '/internal/beta/event-queues/{queueName}',
528
- },
529
- {
530
- clientCallName: 'client.internal.beta.eventQueues.list',
531
- fullyQualifiedName: 'internal.beta.eventQueues.list',
532
- httpMethod: 'get',
533
- httpPath: '/internal/beta/event-queues',
534
- },
535
- {
536
- clientCallName: 'client.internal.beta.eventQueues.delete',
537
- fullyQualifiedName: 'internal.beta.eventQueues.delete',
538
- httpMethod: 'delete',
539
- httpPath: '/internal/beta/event-queues/{queueName}',
540
- },
541
- {
542
- clientCallName: 'client.internal.beta.eventQueues.provision',
543
- fullyQualifiedName: 'internal.beta.eventQueues.provision',
544
- httpMethod: 'post',
545
- httpPath: '/internal/beta/event-queues/provision',
546
- },
547
517
  ];
548
518
 
549
519
  function allowedMethodsForCodeTool(options: McpOptions | undefined): SdkMethod[] | undefined {
package/src/server.ts CHANGED
@@ -28,7 +28,7 @@ export const newMcpServer = async ({
28
28
  new McpServer(
29
29
  {
30
30
  name: 'stigg_typescript_api',
31
- version: '0.1.0-alpha.32',
31
+ version: '0.1.0-alpha.34',
32
32
  },
33
33
  {
34
34
  instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),