Skip to content

Commit c9cf094

Browse files
authored
release: 0.6.0
2 parents faea772 + f53f864 commit c9cf094

File tree

8 files changed

+36
-7
lines changed

8 files changed

+36
-7
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.5.0"
2+
".": "0.6.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 31
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/triglit%2Ftriglit-a764b362cc7f0cc0e27f4288a948ae5f7495c073e0b05bf68fe7cff70bd4fd91.yml
3-
openapi_spec_hash: fff16017770be5b1798130820585c72e
4-
config_hash: a9236c7ca77fbb3b03a51c6f84b2c3a1
1+
configured_endpoints: 32
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/triglit%2Ftriglit-e17deb50f80c7a9854d2f33b8ea044da9f7101a2e127c4c280b9eba7478364ca.yml
3+
openapi_spec_hash: 982216941e9ab9908c8345cc15526603
4+
config_hash: 6b917f828d9699c443f2a2592b9f586c

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.6.0 (2025-11-23)
4+
5+
Full Changelog: [v0.5.0...v0.6.0](https://github.com/Triglit/typescript-sdk/compare/v0.5.0...v0.6.0)
6+
7+
### Features
8+
9+
* **api:** implementa endpoint de alterar status do workflow ([a6ea906](https://github.com/Triglit/typescript-sdk/commit/a6ea90669f3cac9a787f8cf580c6b2cc5f026ac3))
10+
311
## 0.5.0 (2025-11-21)
412

513
Full Changelog: [v0.4.5...v0.5.0](https://github.com/Triglit/typescript-sdk/compare/v0.4.5...v0.5.0)

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Methods:
5151
- <code title="patch /v1/gateway/workflows/{workflowId}">client.workflows.<a href="./src/resources/workflows/workflows.ts">update</a>(workflowID, { ...params }) -> Workflow</code>
5252
- <code title="get /v1/gateway/workflows">client.workflows.<a href="./src/resources/workflows/workflows.ts">list</a>({ ...params }) -> WorkflowsPageBased</code>
5353
- <code title="delete /v1/gateway/workflows/{workflowId}">client.workflows.<a href="./src/resources/workflows/workflows.ts">delete</a>(workflowID) -> void</code>
54+
- <code title="patch /v1/gateway/workflows/{workflowId}/toggle-status">client.workflows.<a href="./src/resources/workflows/workflows.ts">toggleStatus</a>(workflowID) -> Workflow</code>
5455

5556
## Versions
5657

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "triglit",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"description": "The official TypeScript library for the Triglit API",
55
"author": "Triglit <suporte@triglit.com>",
66
"types": "dist/index.d.ts",

src/resources/workflows/workflows.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ export class Workflows extends APIResource {
6464
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
6565
});
6666
}
67+
68+
/**
69+
* Toggles the active/inactive status of a workflow. If active, becomes inactive;
70+
* if inactive, becomes active. Accepts both public and secret keys.
71+
*/
72+
toggleStatus(workflowID: string, options?: RequestOptions): APIPromise<Workflow> {
73+
return this._client.patch(path`/v1/gateway/workflows/${workflowID}/toggle-status`, options);
74+
}
6775
}
6876

6977
export type WorkflowsPageBased = PageBased<Workflow>;

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '0.5.0'; // x-release-please-version
1+
export const VERSION = '0.6.0'; // x-release-please-version

tests/api-resources/workflows/workflows.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,16 @@ describe('resource workflows', () => {
8787
expect(dataAndResponse.data).toBe(response);
8888
expect(dataAndResponse.response).toBe(rawResponse);
8989
});
90+
91+
// Prism tests are disabled
92+
test.skip('toggleStatus', async () => {
93+
const responsePromise = client.workflows.toggleStatus('wf_abc123def456');
94+
const rawResponse = await responsePromise.asResponse();
95+
expect(rawResponse).toBeInstanceOf(Response);
96+
const response = await responsePromise;
97+
expect(response).not.toBeInstanceOf(Response);
98+
const dataAndResponse = await responsePromise.withResponse();
99+
expect(dataAndResponse.data).toBe(response);
100+
expect(dataAndResponse.response).toBe(rawResponse);
101+
});
90102
});

0 commit comments

Comments
 (0)