@gemies/sdk 10.16.0 → 10.17.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @gemies/sdk
2
2
 
3
+ ## 10.17.0
4
+
5
+ ### Phone calls are switched on per country
6
+
7
+ `@gemies/sdk/calls` gains the `pstn_not_enabled` error code (phone calls are not available in that
8
+ country yet), and `CallChannelsState.own_number.status` is now `available` or `not_configured`.
9
+
3
10
  ## 10.16.0
4
11
 
5
12
  ### Phone calls a person approves
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gemies/sdk",
3
- "version": "10.16.0",
3
+ "version": "10.17.0",
4
4
  "description": "The Gemies SDK: the conversation runtime, chat UI, voice calls and dictation for Oxy apps that talk to a gemie",
5
5
  "main": "src/index.ts",
6
6
  "react-native": "src/index.ts",
package/src/calls.ts CHANGED
@@ -65,6 +65,7 @@ export const CALL_ERROR_CODES = [
65
65
  'number_unavailable',
66
66
  'credits_exhausted',
67
67
  'provider_error',
68
+ 'pstn_not_enabled',
68
69
  ] as const;
69
70
  export type CallErrorCode = (typeof CALL_ERROR_CODES)[number];
70
71
 
@@ -128,7 +129,7 @@ export interface CallChannelsState {
128
129
  readonly status: 'available' | 'caller_id_required' | 'not_configured';
129
130
  readonly phoneNumber: string | null;
130
131
  };
131
- readonly own_number: { readonly status: 'not_enabled' };
132
+ readonly own_number: { readonly status: 'available' | 'not_configured' };
132
133
  }
133
134
 
134
135
  /** `GET /calls/caller-id`'s `callerId`: the number the person calls from. */